hfs 0.34.1 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/admin/assets/index-0859bb0d.js +415 -0
- package/{frontend/assets/sha512-5a1708b3.js → admin/assets/sha512-1ab69ff8.js} +1 -1
- package/admin/index.html +1 -1
- package/frontend/assets/index-21e40dc5.js +85 -0
- package/frontend/assets/index-c4c325e9.css +1 -0
- package/{admin/assets/sha512-9460fa50.js → frontend/assets/sha512-5cf58050.js} +1 -1
- package/frontend/index.html +2 -2
- package/package.json +3 -2
- package/plugins/antibrute/plugin.js +1 -1
- package/plugins/download-counter/public/main.js +2 -2
- package/plugins/download-counter/public/style.css +0 -1
- package/src/adminApis.js +2 -0
- package/src/api.lang.js +59 -0
- package/src/const.js +1 -1
- package/src/frontEndApis.js +23 -0
- package/src/serveGuiFiles.js +1 -1
- package/admin/assets/index-e198a951.js +0 -414
- package/frontend/assets/index-78793e0f.js +0 -85
- package/frontend/assets/index-993f3e4d.css +0 -1
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
var k6=Object.defineProperty,I6=Object.defineProperties;var _6=Object.getOwnPropertyDescriptors;var sh=Object.getOwnPropertySymbols;var lk=Object.prototype.hasOwnProperty,ak=Object.prototype.propertyIsEnumerable;var cs=Math.pow,sk=(e,t,n)=>t in e?k6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Le=(e,t)=>{for(var n in t||(t={}))lk.call(t,n)&&sk(e,n,t[n]);if(sh)for(var n of sh(t))ak.call(t,n)&&sk(e,n,t[n]);return e},Ut=(e,t)=>I6(e,_6(t));var cn=(e,t)=>{var n={};for(var r in e)lk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&sh)for(var r of sh(e))t.indexOf(r)<0&&ak.call(e,r)&&(n[r]=e[r]);return n};var ot=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(f){o(f)}},s=c=>{try{a(n.throw(c))}catch(f){o(f)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function $6(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 uo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Qb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var u={},M6={get exports(){return u},set exports(e){u=e}},Nt={};/**
|
|
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 Hf=Symbol.for("react.element"),T6=Symbol.for("react.portal"),R6=Symbol.for("react.fragment"),O6=Symbol.for("react.strict_mode"),L6=Symbol.for("react.profiler"),A6=Symbol.for("react.provider"),F6=Symbol.for("react.context"),N6=Symbol.for("react.forward_ref"),D6=Symbol.for("react.suspense"),B6=Symbol.for("react.memo"),z6=Symbol.for("react.lazy"),ck=Symbol.iterator;function j6(e){return e===null||typeof e!="object"?null:(e=ck&&e[ck]||e["@@iterator"],typeof e=="function"?e:null)}var B$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z$=Object.assign,j$={};function wu(e,t,n){this.props=e,this.context=t,this.refs=j$,this.updater=n||B$}wu.prototype.isReactComponent={};wu.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")};wu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function H$(){}H$.prototype=wu.prototype;function Jb(e,t,n){this.props=e,this.context=t,this.refs=j$,this.updater=n||B$}var Zb=Jb.prototype=new H$;Zb.constructor=Jb;z$(Zb,wu.prototype);Zb.isPureReactComponent=!0;var uk=Array.isArray,V$=Object.prototype.hasOwnProperty,ew={current:null},U$={key:!0,ref:!0,__self:!0,__source:!0};function W$(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)V$.call(t,r)&&!U$.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),f=0;f<a;f++)c[f]=arguments[f+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:Hf,type:e,key:i,ref:s,props:o,_owner:ew.current}}function H6(e,t){return{$$typeof:Hf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tw(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hf}function V6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var dk=/\/+/g;function Jy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?V6(""+e.key):t.toString(36)}function jh(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 Hf:case T6:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Jy(s,0):r,uk(o)?(n="",e!=null&&(n=e.replace(dk,"$&/")+"/"),jh(o,t,n,"",function(f){return f})):o!=null&&(tw(o)&&(o=H6(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(dk,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",uk(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+Jy(i,a);s+=jh(i,t,n,c,o)}else if(c=j6(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+Jy(i,a++),s+=jh(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 lh(e,t,n){if(e==null)return e;var r=[],o=0;return jh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function U6(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 Or={current:null},Hh={transition:null},W6={ReactCurrentDispatcher:Or,ReactCurrentBatchConfig:Hh,ReactCurrentOwner:ew};Nt.Children={map:lh,forEach:function(e,t,n){lh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return lh(e,function(){t++}),t},toArray:function(e){return lh(e,function(t){return t})||[]},only:function(e){if(!tw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Nt.Component=wu;Nt.Fragment=R6;Nt.Profiler=L6;Nt.PureComponent=Jb;Nt.StrictMode=O6;Nt.Suspense=D6;Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W6;Nt.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=z$({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=ew.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)V$.call(t,c)&&!U$.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 f=0;f<c;f++)a[f]=arguments[f+2];r.children=a}return{$$typeof:Hf,type:e.type,key:o,ref:i,props:r,_owner:s}};Nt.createContext=function(e){return e={$$typeof:F6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:A6,_context:e},e.Consumer=e};Nt.createElement=W$;Nt.createFactory=function(e){var t=W$.bind(null,e);return t.type=e,t};Nt.createRef=function(){return{current:null}};Nt.forwardRef=function(e){return{$$typeof:N6,render:e}};Nt.isValidElement=tw;Nt.lazy=function(e){return{$$typeof:z6,_payload:{_status:-1,_result:e},_init:U6}};Nt.memo=function(e,t){return{$$typeof:B6,type:e,compare:t===void 0?null:t}};Nt.startTransition=function(e){var t=Hh.transition;Hh.transition={};try{e()}finally{Hh.transition=t}};Nt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Nt.useCallback=function(e,t){return Or.current.useCallback(e,t)};Nt.useContext=function(e){return Or.current.useContext(e)};Nt.useDebugValue=function(){};Nt.useDeferredValue=function(e){return Or.current.useDeferredValue(e)};Nt.useEffect=function(e,t){return Or.current.useEffect(e,t)};Nt.useId=function(){return Or.current.useId()};Nt.useImperativeHandle=function(e,t,n){return Or.current.useImperativeHandle(e,t,n)};Nt.useInsertionEffect=function(e,t){return Or.current.useInsertionEffect(e,t)};Nt.useLayoutEffect=function(e,t){return Or.current.useLayoutEffect(e,t)};Nt.useMemo=function(e,t){return Or.current.useMemo(e,t)};Nt.useReducer=function(e,t,n){return Or.current.useReducer(e,t,n)};Nt.useRef=function(e){return Or.current.useRef(e)};Nt.useState=function(e){return Or.current.useState(e)};Nt.useSyncExternalStore=function(e,t,n){return Or.current.useSyncExternalStore(e,t,n)};Nt.useTransition=function(){return Or.current.useTransition()};Nt.version="18.2.0";(function(e){e.exports=Nt})(M6);const fo=Qb(u),Qc=$6({__proto__:null,default:fo},[u]);var xl={},G6={get exports(){return xl},set exports(e){xl=e}},bo={},l1={},K6={get exports(){return l1},set exports(e){l1=e}},G$={};/**
|
|
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,z){var G=A.length;A.push(z);e:for(;0<G;){var q=G-1>>>1,X=A[q];if(0<o(X,z))A[q]=z,A[G]=X,G=q;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var z=A[0],G=A.pop();if(G!==z){A[0]=G;e:for(var q=0,X=A.length,ie=X>>>1;q<ie;){var ee=2*(q+1)-1,se=A[ee],ae=ee+1,we=A[ae];if(0>o(se,G))ae<X&&0>o(we,se)?(A[q]=we,A[ae]=G,q=ae):(A[q]=se,A[ee]=G,q=ee);else if(ae<X&&0>o(we,G))A[q]=we,A[ae]=G,q=ae;else break e}}return z}function o(A,z){var G=A.sortIndex-z.sortIndex;return G!==0?G:A.id-z.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=[],f=[],p=1,h=null,m=3,v=!1,b=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var z=n(f);z!==null;){if(z.callback===null)r(f);else if(z.startTime<=A)r(f),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(f)}}function E(A){if(g=!1,w(A),!b)if(n(c)!==null)b=!0,B(I);else{var z=n(f);z!==null&&W(E,z.startTime-A)}}function I(A,z){b=!1,g&&(g=!1,C($),$=-1),v=!0;var G=m;try{for(w(z),h=n(c);h!==null&&(!(h.expirationTime>z)||A&&!N());){var q=h.callback;if(typeof q=="function"){h.callback=null,m=h.priorityLevel;var X=q(h.expirationTime<=z);z=e.unstable_now(),typeof X=="function"?h.callback=X:h===n(c)&&r(c),w(z)}else r(c);h=n(c)}if(h!==null)var ie=!0;else{var ee=n(f);ee!==null&&W(E,ee.startTime-z),ie=!1}return ie}finally{h=null,m=G,v=!1}}var _=!1,k=null,$=-1,T=5,O=-1;function N(){return!(e.unstable_now()-O<T)}function V(){if(k!==null){var A=e.unstable_now();O=A;var z=!0;try{z=k(!0,A)}finally{z?j():(_=!1,k=null)}}else _=!1}var j;if(typeof P=="function")j=function(){P(V)};else if(typeof MessageChannel!="undefined"){var L=new MessageChannel,D=L.port2;L.port1.onmessage=V,j=function(){D.postMessage(null)}}else j=function(){x(V,0)};function B(A){k=A,_||(_=!0,j())}function W(A,z){$=x(function(){A(e.unstable_now())},z)}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(){b||v||(b=!0,B(I))},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"):T=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 z=3;break;default:z=m}var G=m;m=z;try{return A()}finally{m=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,z){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var G=m;m=A;try{return z()}finally{m=G}},e.unstable_scheduleCallback=function(A,z,G){var q=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?q+G:q):G=q,A){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=G+X,A={id:p++,callback:z,priorityLevel:A,startTime:G,expirationTime:X,sortIndex:-1},G>q?(A.sortIndex=G,t(f,A),n(c)===null&&A===n(f)&&(g?(C($),$=-1):g=!0,W(E,G-q))):(A.sortIndex=X,t(c,A),b||v||(b=!0,B(I))),A},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(A){var z=m;return function(){var G=m;m=z;try{return A.apply(this,arguments)}finally{m=G}}}})(G$);(function(e){e.exports=G$})(K6);/**
|
|
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 K$=u,go=l1;function Me(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 q$=new Set,tf={};function Oa(e,t){Jc(e,t),Jc(e+"Capture",t)}function Jc(e,t){for(tf[e]=t,e=0;e<t.length;e++)q$.add(t[e])}var xs=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),a1=Object.prototype.hasOwnProperty,q6=/^[: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]*$/,fk={},pk={};function Y6(e){return a1.call(pk,e)?!0:a1.call(fk,e)?!1:q6.test(e)?pk[e]=!0:(fk[e]=!0,!1)}function X6(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 Q6(e,t,n,r){if(t===null||typeof t=="undefined"||X6(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 Lr(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 fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fr[e]=new Lr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fr[t]=new Lr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fr[e]=new Lr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fr[e]=new Lr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fr[e]=new Lr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fr[e]=new Lr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fr[e]=new Lr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fr[e]=new Lr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fr[e]=new Lr(e,5,!1,e.toLowerCase(),null,!1,!1)});var nw=/[\-:]([a-z])/g;function rw(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(nw,rw);fr[t]=new Lr(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(nw,rw);fr[t]=new Lr(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(nw,rw);fr[t]=new Lr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fr[e]=new Lr(e,1,!1,e.toLowerCase(),null,!1,!1)});fr.xlinkHref=new Lr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fr[e]=new Lr(e,1,!1,e.toLowerCase(),null,!0,!0)});function ow(e,t,n,r){var o=fr.hasOwnProperty(t)?fr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Q6(t,n,o,r)&&(n=null),r||o===null?Y6(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 Ts=K$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ah=Symbol.for("react.element"),Ec=Symbol.for("react.portal"),Pc=Symbol.for("react.fragment"),iw=Symbol.for("react.strict_mode"),c1=Symbol.for("react.profiler"),Y$=Symbol.for("react.provider"),X$=Symbol.for("react.context"),sw=Symbol.for("react.forward_ref"),u1=Symbol.for("react.suspense"),d1=Symbol.for("react.suspense_list"),lw=Symbol.for("react.memo"),Xs=Symbol.for("react.lazy"),Q$=Symbol.for("react.offscreen"),hk=Symbol.iterator;function td(e){return e===null||typeof e!="object"?null:(e=hk&&e[hk]||e["@@iterator"],typeof e=="function"?e:null)}var Tn=Object.assign,Zy;function Cd(e){if(Zy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zy=t&&t[1]||""}return`
|
|
26
|
+
`+Zy+e}var e0=!1;function t0(e,t){if(!e||e0)return"";e0=!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(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var o=f.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{e0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cd(e):""}function J6(e){switch(e.tag){case 5:return Cd(e.type);case 16:return Cd("Lazy");case 13:return Cd("Suspense");case 19:return Cd("SuspenseList");case 0:case 2:case 15:return e=t0(e.type,!1),e;case 11:return e=t0(e.type.render,!1),e;case 1:return e=t0(e.type,!0),e;default:return""}}function f1(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 Pc:return"Fragment";case Ec:return"Portal";case c1:return"Profiler";case iw:return"StrictMode";case u1:return"Suspense";case d1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X$:return(e.displayName||"Context")+".Consumer";case Y$:return(e._context.displayName||"Context")+".Provider";case sw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lw:return t=e.displayName||null,t!==null?t:f1(e.type)||"Memo";case Xs:t=e._payload,e=e._init;try{return f1(e(t))}catch(n){}}return null}function Z6(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 f1(t);case 8:return t===iw?"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 Sl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function J$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ej(e){var t=J$(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 ch(e){e._valueTracker||(e._valueTracker=ej(e))}function Z$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=J$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function um(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 p1(e,t){var n=t.checked;return Tn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function mk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sl(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 eM(e,t){t=t.checked,t!=null&&ow(e,"checked",t,!1)}function h1(e,t){eM(e,t);var n=Sl(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")?m1(e,t.type,n):t.hasOwnProperty("defaultValue")&&m1(e,t.type,Sl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gk(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 m1(e,t,n){(t!=="number"||um(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xd=Array.isArray;function Dc(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=""+Sl(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 g1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Me(91));return Tn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function vk(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Me(92));if(xd(n)){if(1<n.length)throw Error(Me(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sl(n)}}function tM(e,t){var n=Sl(t.value),r=Sl(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 yk(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nM(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 v1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uh,rM=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(uh=uh||document.createElement("div"),uh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Od={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},tj=["Webkit","ms","Moz","O"];Object.keys(Od).forEach(function(e){tj.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Od[t]=Od[e]})});function oM(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Od.hasOwnProperty(e)&&Od[e]?(""+t).trim():t+"px"}function iM(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=oM(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var nj=Tn({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 y1(e,t){if(t){if(nj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function b1(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 w1=null;function aw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var C1=null,Bc=null,zc=null;function bk(e){if(e=Wf(e)){if(typeof C1!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=cg(t),C1(e.stateNode,e.type,t))}}function sM(e){Bc?zc?zc.push(e):zc=[e]:Bc=e}function lM(){if(Bc){var e=Bc,t=zc;if(zc=Bc=null,bk(e),t)for(e=0;e<t.length;e++)bk(t[e])}}function aM(e,t){return e(t)}function cM(){}var n0=!1;function uM(e,t,n){if(n0)return e(t,n);n0=!0;try{return aM(e,t,n)}finally{n0=!1,(Bc!==null||zc!==null)&&(cM(),lM())}}function rf(e,t){var n=e.stateNode;if(n===null)return null;var r=cg(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(Me(231,t,typeof n));return n}var x1=!1;if(xs)try{var nd={};Object.defineProperty(nd,"passive",{get:function(){x1=!0}}),window.addEventListener("test",nd,nd),window.removeEventListener("test",nd,nd)}catch(e){x1=!1}function rj(e,t,n,r,o,i,s,a,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(p){this.onError(p)}}var Ld=!1,dm=null,fm=!1,S1=null,oj={onError:function(e){Ld=!0,dm=e}};function ij(e,t,n,r,o,i,s,a,c){Ld=!1,dm=null,rj.apply(oj,arguments)}function sj(e,t,n,r,o,i,s,a,c){if(ij.apply(this,arguments),Ld){if(Ld){var f=dm;Ld=!1,dm=null}else throw Error(Me(198));fm||(fm=!0,S1=f)}}function La(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 dM(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 wk(e){if(La(e)!==e)throw Error(Me(188))}function lj(e){var t=e.alternate;if(!t){if(t=La(e),t===null)throw Error(Me(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 wk(o),e;if(i===r)return wk(o),t;i=i.sibling}throw Error(Me(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(Me(189))}}if(n.alternate!==r)throw Error(Me(190))}if(n.tag!==3)throw Error(Me(188));return n.stateNode.current===n?e:t}function fM(e){return e=lj(e),e!==null?pM(e):null}function pM(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pM(e);if(t!==null)return t;e=e.sibling}return null}var hM=go.unstable_scheduleCallback,Ck=go.unstable_cancelCallback,aj=go.unstable_shouldYield,cj=go.unstable_requestPaint,zn=go.unstable_now,uj=go.unstable_getCurrentPriorityLevel,cw=go.unstable_ImmediatePriority,mM=go.unstable_UserBlockingPriority,pm=go.unstable_NormalPriority,dj=go.unstable_LowPriority,gM=go.unstable_IdlePriority,ig=null,ji=null;function fj(e){if(ji&&typeof ji.onCommitFiberRoot=="function")try{ji.onCommitFiberRoot(ig,e,void 0,(e.current.flags&128)===128)}catch(t){}}var pi=Math.clz32?Math.clz32:mj,pj=Math.log,hj=Math.LN2;function mj(e){return e>>>=0,e===0?32:31-(pj(e)/hj|0)|0}var dh=64,fh=4194304;function Sd(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 hm(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=Sd(a):(i&=s,i!==0&&(r=Sd(i)))}else s=n&~o,s!==0?r=Sd(s):i!==0&&(r=Sd(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pi(t),o=1<<n,r|=e[n],t&=~o;return r}function gj(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 vj(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-pi(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=gj(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function E1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vM(){var e=dh;return dh<<=1,!(dh&4194240)&&(dh=64),e}function r0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pi(t),e[t]=n}function yj(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-pi(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function uw(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pi(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var nn=0;function yM(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var bM,dw,wM,CM,xM,P1=!1,ph=[],ul=null,dl=null,fl=null,of=new Map,sf=new Map,tl=[],bj="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":ul=null;break;case"dragenter":case"dragleave":dl=null;break;case"mouseover":case"mouseout":fl=null;break;case"pointerover":case"pointerout":of.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sf.delete(t.pointerId)}}function rd(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=Wf(t),t!==null&&dw(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function wj(e,t,n,r,o){switch(t){case"focusin":return ul=rd(ul,e,t,n,r,o),!0;case"dragenter":return dl=rd(dl,e,t,n,r,o),!0;case"mouseover":return fl=rd(fl,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return of.set(i,rd(of.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,sf.set(i,rd(sf.get(i)||null,e,t,n,r,o)),!0}return!1}function SM(e){var t=na(e.target);if(t!==null){var n=La(t);if(n!==null){if(t=n.tag,t===13){if(t=dM(n),t!==null){e.blockedOn=t,xM(e.priority,function(){wM(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 Vh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=k1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);w1=r,n.target.dispatchEvent(r),w1=null}else return t=Wf(n),t!==null&&dw(t),e.blockedOn=n,!1;t.shift()}return!0}function Sk(e,t,n){Vh(e)&&n.delete(t)}function Cj(){P1=!1,ul!==null&&Vh(ul)&&(ul=null),dl!==null&&Vh(dl)&&(dl=null),fl!==null&&Vh(fl)&&(fl=null),of.forEach(Sk),sf.forEach(Sk)}function od(e,t){e.blockedOn===t&&(e.blockedOn=null,P1||(P1=!0,go.unstable_scheduleCallback(go.unstable_NormalPriority,Cj)))}function lf(e){function t(o){return od(o,e)}if(0<ph.length){od(ph[0],e);for(var n=1;n<ph.length;n++){var r=ph[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ul!==null&&od(ul,e),dl!==null&&od(dl,e),fl!==null&&od(fl,e),of.forEach(t),sf.forEach(t),n=0;n<tl.length;n++)r=tl[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tl.length&&(n=tl[0],n.blockedOn===null);)SM(n),n.blockedOn===null&&tl.shift()}var jc=Ts.ReactCurrentBatchConfig,mm=!0;function xj(e,t,n,r){var o=nn,i=jc.transition;jc.transition=null;try{nn=1,fw(e,t,n,r)}finally{nn=o,jc.transition=i}}function Sj(e,t,n,r){var o=nn,i=jc.transition;jc.transition=null;try{nn=4,fw(e,t,n,r)}finally{nn=o,jc.transition=i}}function fw(e,t,n,r){if(mm){var o=k1(e,t,n,r);if(o===null)p0(e,t,r,gm,n),xk(e,r);else if(wj(o,e,t,n,r))r.stopPropagation();else if(xk(e,r),t&4&&-1<bj.indexOf(e)){for(;o!==null;){var i=Wf(o);if(i!==null&&bM(i),i=k1(e,t,n,r),i===null&&p0(e,t,r,gm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else p0(e,t,r,null,n)}}var gm=null;function k1(e,t,n,r){if(gm=null,e=aw(r),e=na(e),e!==null)if(t=La(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dM(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 gm=e,null}function EM(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(uj()){case cw:return 1;case mM:return 4;case pm:case dj:return 16;case gM:return 536870912;default:return 16}default:return 16}}var ol=null,pw=null,Uh=null;function PM(){if(Uh)return Uh;var e,t=pw,n=t.length,r,o="value"in ol?ol.value:ol.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 Uh=o.slice(e,1<r?1-r:void 0)}function Wh(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 hh(){return!0}function Ek(){return!1}function wo(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)?hh:Ek,this.isPropagationStopped=Ek,this}return Tn(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=hh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hh)},persist:function(){},isPersistent:hh}),t}var Cu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hw=wo(Cu),Uf=Tn({},Cu,{view:0,detail:0}),Ej=wo(Uf),o0,i0,id,sg=Tn({},Uf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mw,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!==id&&(id&&e.type==="mousemove"?(o0=e.screenX-id.screenX,i0=e.screenY-id.screenY):i0=o0=0,id=e),o0)},movementY:function(e){return"movementY"in e?e.movementY:i0}}),Pk=wo(sg),Pj=Tn({},sg,{dataTransfer:0}),kj=wo(Pj),Ij=Tn({},Uf,{relatedTarget:0}),s0=wo(Ij),_j=Tn({},Cu,{animationName:0,elapsedTime:0,pseudoElement:0}),$j=wo(_j),Mj=Tn({},Cu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tj=wo(Mj),Rj=Tn({},Cu,{data:0}),kk=wo(Rj),Oj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lj={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"},Aj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Aj[e])?!!t[e]:!1}function mw(){return Fj}var Nj=Tn({},Uf,{key:function(e){if(e.key){var t=Oj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lj[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mw,charCode:function(e){return e.type==="keypress"?Wh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dj=wo(Nj),Bj=Tn({},sg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ik=wo(Bj),zj=Tn({},Uf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mw}),jj=wo(zj),Hj=Tn({},Cu,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vj=wo(Hj),Uj=Tn({},sg,{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}),Wj=wo(Uj),Gj=[9,13,27,32],gw=xs&&"CompositionEvent"in window,Ad=null;xs&&"documentMode"in document&&(Ad=document.documentMode);var Kj=xs&&"TextEvent"in window&&!Ad,kM=xs&&(!gw||Ad&&8<Ad&&11>=Ad),_k=String.fromCharCode(32),$k=!1;function IM(e,t){switch(e){case"keyup":return Gj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _M(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kc=!1;function qj(e,t){switch(e){case"compositionend":return _M(t);case"keypress":return t.which!==32?null:($k=!0,_k);case"textInput":return e=t.data,e===_k&&$k?null:e;default:return null}}function Yj(e,t){if(kc)return e==="compositionend"||!gw&&IM(e,t)?(e=PM(),Uh=pw=ol=null,kc=!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 kM&&t.locale!=="ko"?null:t.data;default:return null}}var Xj={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 Mk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xj[e.type]:t==="textarea"}function $M(e,t,n,r){sM(r),t=vm(t,"onChange"),0<t.length&&(n=new hw("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fd=null,af=null;function Qj(e){zM(e,0)}function lg(e){var t=$c(e);if(Z$(t))return e}function Jj(e,t){if(e==="change")return t}var MM=!1;if(xs){var l0;if(xs){var a0="oninput"in document;if(!a0){var Tk=document.createElement("div");Tk.setAttribute("oninput","return;"),a0=typeof Tk.oninput=="function"}l0=a0}else l0=!1;MM=l0&&(!document.documentMode||9<document.documentMode)}function Rk(){Fd&&(Fd.detachEvent("onpropertychange",TM),af=Fd=null)}function TM(e){if(e.propertyName==="value"&&lg(af)){var t=[];$M(t,af,e,aw(e)),uM(Qj,t)}}function Zj(e,t,n){e==="focusin"?(Rk(),Fd=t,af=n,Fd.attachEvent("onpropertychange",TM)):e==="focusout"&&Rk()}function e9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lg(af)}function t9(e,t){if(e==="click")return lg(t)}function n9(e,t){if(e==="input"||e==="change")return lg(t)}function r9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vi=typeof Object.is=="function"?Object.is:r9;function cf(e,t){if(vi(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(!a1.call(t,o)||!vi(e[o],t[o]))return!1}return!0}function Ok(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lk(e,t){var n=Ok(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=Ok(n)}}function RM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?RM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OM(){for(var e=window,t=um();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=um(e.document)}return t}function vw(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 o9(e){var t=OM(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&RM(n.ownerDocument.documentElement,n)){if(r!==null&&vw(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=Lk(n,i);var s=Lk(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 i9=xs&&"documentMode"in document&&11>=document.documentMode,Ic=null,I1=null,Nd=null,_1=!1;function Ak(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_1||Ic==null||Ic!==um(r)||(r=Ic,"selectionStart"in r&&vw(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}),Nd&&cf(Nd,r)||(Nd=r,r=vm(I1,"onSelect"),0<r.length&&(t=new hw("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ic)))}function mh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _c={animationend:mh("Animation","AnimationEnd"),animationiteration:mh("Animation","AnimationIteration"),animationstart:mh("Animation","AnimationStart"),transitionend:mh("Transition","TransitionEnd")},c0={},LM={};xs&&(LM=document.createElement("div").style,"AnimationEvent"in window||(delete _c.animationend.animation,delete _c.animationiteration.animation,delete _c.animationstart.animation),"TransitionEvent"in window||delete _c.transitionend.transition);function ag(e){if(c0[e])return c0[e];if(!_c[e])return e;var t=_c[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in LM)return c0[e]=t[n];return e}var AM=ag("animationend"),FM=ag("animationiteration"),NM=ag("animationstart"),DM=ag("transitionend"),BM=new Map,Fk="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 Rl(e,t){BM.set(e,t),Oa(t,[e])}for(var u0=0;u0<Fk.length;u0++){var d0=Fk[u0],s9=d0.toLowerCase(),l9=d0[0].toUpperCase()+d0.slice(1);Rl(s9,"on"+l9)}Rl(AM,"onAnimationEnd");Rl(FM,"onAnimationIteration");Rl(NM,"onAnimationStart");Rl("dblclick","onDoubleClick");Rl("focusin","onFocus");Rl("focusout","onBlur");Rl(DM,"onTransitionEnd");Jc("onMouseEnter",["mouseout","mouseover"]);Jc("onMouseLeave",["mouseout","mouseover"]);Jc("onPointerEnter",["pointerout","pointerover"]);Jc("onPointerLeave",["pointerout","pointerover"]);Oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Oa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Oa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ed="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(" "),a9=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ed));function Nk(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,sj(r,t,void 0,e),e.currentTarget=null}function zM(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,f=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;Nk(o,a,f),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,f=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;Nk(o,a,f),i=c}}}if(fm)throw e=S1,fm=!1,S1=null,e}function vn(e,t){var n=t[O1];n===void 0&&(n=t[O1]=new Set);var r=e+"__bubble";n.has(r)||(jM(t,e,2,!1),n.add(r))}function f0(e,t,n){var r=0;t&&(r|=4),jM(n,e,r,t)}var gh="_reactListening"+Math.random().toString(36).slice(2);function uf(e){if(!e[gh]){e[gh]=!0,q$.forEach(function(n){n!=="selectionchange"&&(a9.has(n)||f0(n,!1,e),f0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gh]||(t[gh]=!0,f0("selectionchange",!1,t))}}function jM(e,t,n,r){switch(EM(t)){case 1:var o=xj;break;case 4:o=Sj;break;default:o=fw}n=o.bind(null,t,n,e),o=void 0,!x1||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 p0(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=na(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}uM(function(){var f=i,p=aw(n),h=[];e:{var m=BM.get(e);if(m!==void 0){var v=hw,b=e;switch(e){case"keypress":if(Wh(n)===0)break e;case"keydown":case"keyup":v=Dj;break;case"focusin":b="focus",v=s0;break;case"focusout":b="blur",v=s0;break;case"beforeblur":case"afterblur":v=s0;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Pk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=kj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=jj;break;case AM:case FM:case NM:v=$j;break;case DM:v=Vj;break;case"scroll":v=Ej;break;case"wheel":v=Wj;break;case"copy":case"cut":case"paste":v=Tj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Ik}var g=(t&4)!==0,x=!g&&e==="scroll",C=g?m!==null?m+"Capture":null:m;g=[];for(var P=f,w;P!==null;){w=P;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,C!==null&&(E=rf(P,C),E!=null&&g.push(df(P,E,w)))),x)break;P=P.return}0<g.length&&(m=new v(m,b,null,n,p),h.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==w1&&(b=n.relatedTarget||n.fromElement)&&(na(b)||b[Ss]))break e;if((v||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=f,b=b?na(b):null,b!==null&&(x=La(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=f),v!==b)){if(g=Pk,E="onMouseLeave",C="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(g=Ik,E="onPointerLeave",C="onPointerEnter",P="pointer"),x=v==null?m:$c(v),w=b==null?m:$c(b),m=new g(E,P+"leave",v,n,p),m.target=x,m.relatedTarget=w,E=null,na(p)===f&&(g=new g(C,P+"enter",b,n,p),g.target=w,g.relatedTarget=x,E=g),x=E,v&&b)t:{for(g=v,C=b,P=0,w=g;w;w=lc(w))P++;for(w=0,E=C;E;E=lc(E))w++;for(;0<P-w;)g=lc(g),P--;for(;0<w-P;)C=lc(C),w--;for(;P--;){if(g===C||C!==null&&g===C.alternate)break t;g=lc(g),C=lc(C)}g=null}else g=null;v!==null&&Dk(h,m,v,g,!1),b!==null&&x!==null&&Dk(h,x,b,g,!0)}}e:{if(m=f?$c(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var I=Jj;else if(Mk(m))if(MM)I=n9;else{I=e9;var _=Zj}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(I=t9);if(I&&(I=I(e,f))){$M(h,I,n,p);break e}_&&_(e,m,f),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&m1(m,"number",m.value)}switch(_=f?$c(f):window,e){case"focusin":(Mk(_)||_.contentEditable==="true")&&(Ic=_,I1=f,Nd=null);break;case"focusout":Nd=I1=Ic=null;break;case"mousedown":_1=!0;break;case"contextmenu":case"mouseup":case"dragend":_1=!1,Ak(h,n,p);break;case"selectionchange":if(i9)break;case"keydown":case"keyup":Ak(h,n,p)}var k;if(gw)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else kc?IM(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(kM&&n.locale!=="ko"&&(kc||$!=="onCompositionStart"?$==="onCompositionEnd"&&kc&&(k=PM()):(ol=p,pw="value"in ol?ol.value:ol.textContent,kc=!0)),_=vm(f,$),0<_.length&&($=new kk($,e,null,n,p),h.push({event:$,listeners:_}),k?$.data=k:(k=_M(n),k!==null&&($.data=k)))),(k=Kj?qj(e,n):Yj(e,n))&&(f=vm(f,"onBeforeInput"),0<f.length&&(p=new kk("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:f}),p.data=k))}zM(h,t)})}function df(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vm(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=rf(e,n),i!=null&&r.unshift(df(e,i,o)),i=rf(e,t),i!=null&&r.push(df(e,i,o))),e=e.return}return r}function lc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dk(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,f=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&f!==null&&(a=f,o?(c=rf(n,i),c!=null&&s.unshift(df(n,c,a))):o||(c=rf(n,i),c!=null&&s.push(df(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var c9=/\r\n?/g,u9=/\u0000|\uFFFD/g;function Bk(e){return(typeof e=="string"?e:""+e).replace(c9,`
|
|
30
|
+
`).replace(u9,"")}function vh(e,t,n){if(t=Bk(t),Bk(e)!==t&&n)throw Error(Me(425))}function ym(){}var $1=null,M1=null;function T1(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 R1=typeof setTimeout=="function"?setTimeout:void 0,d9=typeof clearTimeout=="function"?clearTimeout:void 0,zk=typeof Promise=="function"?Promise:void 0,f9=typeof queueMicrotask=="function"?queueMicrotask:typeof zk!="undefined"?function(e){return zk.resolve(null).then(e).catch(p9)}:R1;function p9(e){setTimeout(function(){throw e})}function h0(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),lf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);lf(t)}function pl(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 jk(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 xu=Math.random().toString(36).slice(2),Bi="__reactFiber$"+xu,ff="__reactProps$"+xu,Ss="__reactContainer$"+xu,O1="__reactEvents$"+xu,h9="__reactListeners$"+xu,m9="__reactHandles$"+xu;function na(e){var t=e[Bi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ss]||n[Bi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jk(e);e!==null;){if(n=e[Bi])return n;e=jk(e)}return t}e=n,n=e.parentNode}return null}function Wf(e){return e=e[Bi]||e[Ss],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $c(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function cg(e){return e[ff]||null}var L1=[],Mc=-1;function Ol(e){return{current:e}}function yn(e){0>Mc||(e.current=L1[Mc],L1[Mc]=null,Mc--)}function fn(e,t){Mc++,L1[Mc]=e.current,e.current=t}var El={},Er=Ol(El),Gr=Ol(!1),va=El;function Zc(e,t){var n=e.type.contextTypes;if(!n)return El;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 Kr(e){return e=e.childContextTypes,e!=null}function bm(){yn(Gr),yn(Er)}function Hk(e,t,n){if(Er.current!==El)throw Error(Me(168));fn(Er,t),fn(Gr,n)}function HM(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(Me(108,Z6(e)||"Unknown",o));return Tn({},n,r)}function wm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||El,va=Er.current,fn(Er,e),fn(Gr,Gr.current),!0}function Vk(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=HM(e,t,va),r.__reactInternalMemoizedMergedChildContext=e,yn(Gr),yn(Er),fn(Er,e)):yn(Gr),fn(Gr,n)}var hs=null,ug=!1,m0=!1;function VM(e){hs===null?hs=[e]:hs.push(e)}function g9(e){ug=!0,VM(e)}function Ll(){if(!m0&&hs!==null){m0=!0;var e=0,t=nn;try{var n=hs;for(nn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}hs=null,ug=!1}catch(o){throw hs!==null&&(hs=hs.slice(e+1)),hM(cw,Ll),o}finally{nn=t,m0=!1}}return null}var Tc=[],Rc=0,Cm=null,xm=0,Fo=[],No=0,ya=null,ms=1,gs="";function Xl(e,t){Tc[Rc++]=xm,Tc[Rc++]=Cm,Cm=e,xm=t}function UM(e,t,n){Fo[No++]=ms,Fo[No++]=gs,Fo[No++]=ya,ya=e;var r=ms;e=gs;var o=32-pi(r)-1;r&=~(1<<o),n+=1;var i=32-pi(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,ms=1<<32-pi(t)+o|n<<o|r,gs=i+e}else ms=1<<i|n<<o|r,gs=e}function yw(e){e.return!==null&&(Xl(e,1),UM(e,1,0))}function bw(e){for(;e===Cm;)Cm=Tc[--Rc],Tc[Rc]=null,xm=Tc[--Rc],Tc[Rc]=null;for(;e===ya;)ya=Fo[--No],Fo[No]=null,gs=Fo[--No],Fo[No]=null,ms=Fo[--No],Fo[No]=null}var ho=null,po=null,Sn=!1,ui=null;function WM(e,t){var n=Bo(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 Uk(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,ho=e,po=pl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ho=e,po=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ya!==null?{id:ms,overflow:gs}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Bo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ho=e,po=null,!0):!1;default:return!1}}function A1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function F1(e){if(Sn){var t=po;if(t){var n=t;if(!Uk(e,t)){if(A1(e))throw Error(Me(418));t=pl(n.nextSibling);var r=ho;t&&Uk(e,t)?WM(r,n):(e.flags=e.flags&-4097|2,Sn=!1,ho=e)}}else{if(A1(e))throw Error(Me(418));e.flags=e.flags&-4097|2,Sn=!1,ho=e}}}function Wk(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ho=e}function yh(e){if(e!==ho)return!1;if(!Sn)return Wk(e),Sn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!T1(e.type,e.memoizedProps)),t&&(t=po)){if(A1(e))throw GM(),Error(Me(418));for(;t;)WM(e,t),t=pl(t.nextSibling)}if(Wk(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Me(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){po=pl(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}po=null}}else po=ho?pl(e.stateNode.nextSibling):null;return!0}function GM(){for(var e=po;e;)e=pl(e.nextSibling)}function eu(){po=ho=null,Sn=!1}function ww(e){ui===null?ui=[e]:ui.push(e)}var v9=Ts.ReactCurrentBatchConfig;function li(e,t){if(e&&e.defaultProps){t=Tn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Sm=Ol(null),Em=null,Oc=null,Cw=null;function xw(){Cw=Oc=Em=null}function Sw(e){var t=Sm.current;yn(Sm),e._currentValue=t}function N1(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 Hc(e,t){Em=e,Cw=Oc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wr=!0),e.firstContext=null)}function Wo(e){var t=e._currentValue;if(Cw!==e)if(e={context:e,memoizedValue:t,next:null},Oc===null){if(Em===null)throw Error(Me(308));Oc=e,Em.dependencies={lanes:0,firstContext:e}}else Oc=Oc.next=e;return t}var ra=null;function Ew(e){ra===null?ra=[e]:ra.push(e)}function KM(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ew(t)):(n.next=o.next,o.next=n),t.interleaved=n,Es(e,r)}function Es(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 Qs=!1;function Pw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qM(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 bs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Wt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Es(e,n)}return o=r.interleaved,o===null?(t.next=t,Ew(r)):(t.next=o.next,o.next=t),r.interleaved=t,Es(e,n)}function Gh(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,uw(e,n)}}function Gk(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 Pm(e,t,n,r){var o=e.updateQueue;Qs=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,f=c.next;c.next=null,s===null?i=f:s.next=f,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=f:a.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=f=c=null,a=i;do{var m=a.lane,v=a.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(m=t,v=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){h=b.call(v,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,m=typeof b=="function"?b.call(v,h,m):b,m==null)break e;h=Tn({},h,m);break e;case 2:Qs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else v={eventTime:v,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(f=p=v,c=h):p=p.next=v,s|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,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);wa|=s,e.lanes=s,e.memoizedState=h}}function Kk(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(Me(191,o));o.call(r)}}}var YM=new K$.Component().refs;function D1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Tn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dg={isMounted:function(e){return(e=e._reactInternals)?La(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Rr(),o=gl(e),i=bs(r,o);i.payload=t,n!=null&&(i.callback=n),t=hl(e,i,o),t!==null&&(hi(t,e,o,r),Gh(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Rr(),o=gl(e),i=bs(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=hl(e,i,o),t!==null&&(hi(t,e,o,r),Gh(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rr(),r=gl(e),o=bs(n,r);o.tag=2,t!=null&&(o.callback=t),t=hl(e,o,r),t!==null&&(hi(t,e,r,n),Gh(t,e,r))}};function qk(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?!cf(n,r)||!cf(o,i):!0}function XM(e,t,n){var r=!1,o=El,i=t.contextType;return typeof i=="object"&&i!==null?i=Wo(i):(o=Kr(t)?va:Er.current,r=t.contextTypes,i=(r=r!=null)?Zc(e,o):El),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=dg,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Yk(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&&dg.enqueueReplaceState(t,t.state,null)}function B1(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=YM,Pw(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Wo(i):(i=Kr(t)?va:Er.current,o.context=Zc(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(D1(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&&dg.enqueueReplaceState(o,o.state,null),Pm(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function sd(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(Me(309));var r=n.stateNode}if(!r)throw Error(Me(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===YM&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Me(284));if(!n._owner)throw Error(Me(290,e))}return e}function bh(e,t){throw e=Object.prototype.toString.call(t),Error(Me(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xk(e){var t=e._init;return t(e._payload)}function QM(e){function t(C,P){if(e){var w=C.deletions;w===null?(C.deletions=[P],C.flags|=16):w.push(P)}}function n(C,P){if(!e)return null;for(;P!==null;)t(C,P),P=P.sibling;return null}function r(C,P){for(C=new Map;P!==null;)P.key!==null?C.set(P.key,P):C.set(P.index,P),P=P.sibling;return C}function o(C,P){return C=vl(C,P),C.index=0,C.sibling=null,C}function i(C,P,w){return C.index=w,e?(w=C.alternate,w!==null?(w=w.index,w<P?(C.flags|=2,P):w):(C.flags|=2,P)):(C.flags|=1048576,P)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,P,w,E){return P===null||P.tag!==6?(P=x0(w,C.mode,E),P.return=C,P):(P=o(P,w),P.return=C,P)}function c(C,P,w,E){var I=w.type;return I===Pc?p(C,P,w.props.children,E,w.key):P!==null&&(P.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Xs&&Xk(I)===P.type)?(E=o(P,w.props),E.ref=sd(C,P,w),E.return=C,E):(E=Jh(w.type,w.key,w.props,null,C.mode,E),E.ref=sd(C,P,w),E.return=C,E)}function f(C,P,w,E){return P===null||P.tag!==4||P.stateNode.containerInfo!==w.containerInfo||P.stateNode.implementation!==w.implementation?(P=S0(w,C.mode,E),P.return=C,P):(P=o(P,w.children||[]),P.return=C,P)}function p(C,P,w,E,I){return P===null||P.tag!==7?(P=da(w,C.mode,E,I),P.return=C,P):(P=o(P,w),P.return=C,P)}function h(C,P,w){if(typeof P=="string"&&P!==""||typeof P=="number")return P=x0(""+P,C.mode,w),P.return=C,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case ah:return w=Jh(P.type,P.key,P.props,null,C.mode,w),w.ref=sd(C,null,P),w.return=C,w;case Ec:return P=S0(P,C.mode,w),P.return=C,P;case Xs:var E=P._init;return h(C,E(P._payload),w)}if(xd(P)||td(P))return P=da(P,C.mode,w,null),P.return=C,P;bh(C,P)}return null}function m(C,P,w,E){var I=P!==null?P.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return I!==null?null:a(C,P,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ah:return w.key===I?c(C,P,w,E):null;case Ec:return w.key===I?f(C,P,w,E):null;case Xs:return I=w._init,m(C,P,I(w._payload),E)}if(xd(w)||td(w))return I!==null?null:p(C,P,w,E,null);bh(C,w)}return null}function v(C,P,w,E,I){if(typeof E=="string"&&E!==""||typeof E=="number")return C=C.get(w)||null,a(P,C,""+E,I);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ah:return C=C.get(E.key===null?w:E.key)||null,c(P,C,E,I);case Ec:return C=C.get(E.key===null?w:E.key)||null,f(P,C,E,I);case Xs:var _=E._init;return v(C,P,w,_(E._payload),I)}if(xd(E)||td(E))return C=C.get(w)||null,p(P,C,E,I,null);bh(P,E)}return null}function b(C,P,w,E){for(var I=null,_=null,k=P,$=P=0,T=null;k!==null&&$<w.length;$++){k.index>$?(T=k,k=null):T=k.sibling;var O=m(C,k,w[$],E);if(O===null){k===null&&(k=T);break}e&&k&&O.alternate===null&&t(C,k),P=i(O,P,$),_===null?I=O:_.sibling=O,_=O,k=T}if($===w.length)return n(C,k),Sn&&Xl(C,$),I;if(k===null){for(;$<w.length;$++)k=h(C,w[$],E),k!==null&&(P=i(k,P,$),_===null?I=k:_.sibling=k,_=k);return Sn&&Xl(C,$),I}for(k=r(C,k);$<w.length;$++)T=v(k,C,$,w[$],E),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?$:T.key),P=i(T,P,$),_===null?I=T:_.sibling=T,_=T);return e&&k.forEach(function(N){return t(C,N)}),Sn&&Xl(C,$),I}function g(C,P,w,E){var I=td(w);if(typeof I!="function")throw Error(Me(150));if(w=I.call(w),w==null)throw Error(Me(151));for(var _=I=null,k=P,$=P=0,T=null,O=w.next();k!==null&&!O.done;$++,O=w.next()){k.index>$?(T=k,k=null):T=k.sibling;var N=m(C,k,O.value,E);if(N===null){k===null&&(k=T);break}e&&k&&N.alternate===null&&t(C,k),P=i(N,P,$),_===null?I=N:_.sibling=N,_=N,k=T}if(O.done)return n(C,k),Sn&&Xl(C,$),I;if(k===null){for(;!O.done;$++,O=w.next())O=h(C,O.value,E),O!==null&&(P=i(O,P,$),_===null?I=O:_.sibling=O,_=O);return Sn&&Xl(C,$),I}for(k=r(C,k);!O.done;$++,O=w.next())O=v(k,C,$,O.value,E),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?$:O.key),P=i(O,P,$),_===null?I=O:_.sibling=O,_=O);return e&&k.forEach(function(V){return t(C,V)}),Sn&&Xl(C,$),I}function x(C,P,w,E){if(typeof w=="object"&&w!==null&&w.type===Pc&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ah:e:{for(var I=w.key,_=P;_!==null;){if(_.key===I){if(I=w.type,I===Pc){if(_.tag===7){n(C,_.sibling),P=o(_,w.props.children),P.return=C,C=P;break e}}else if(_.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Xs&&Xk(I)===_.type){n(C,_.sibling),P=o(_,w.props),P.ref=sd(C,_,w),P.return=C,C=P;break e}n(C,_);break}else t(C,_);_=_.sibling}w.type===Pc?(P=da(w.props.children,C.mode,E,w.key),P.return=C,C=P):(E=Jh(w.type,w.key,w.props,null,C.mode,E),E.ref=sd(C,P,w),E.return=C,C=E)}return s(C);case Ec:e:{for(_=w.key;P!==null;){if(P.key===_)if(P.tag===4&&P.stateNode.containerInfo===w.containerInfo&&P.stateNode.implementation===w.implementation){n(C,P.sibling),P=o(P,w.children||[]),P.return=C,C=P;break e}else{n(C,P);break}else t(C,P);P=P.sibling}P=S0(w,C.mode,E),P.return=C,C=P}return s(C);case Xs:return _=w._init,x(C,P,_(w._payload),E)}if(xd(w))return b(C,P,w,E);if(td(w))return g(C,P,w,E);bh(C,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,P!==null&&P.tag===6?(n(C,P.sibling),P=o(P,w),P.return=C,C=P):(n(C,P),P=x0(w,C.mode,E),P.return=C,C=P),s(C)):n(C,P)}return x}var tu=QM(!0),JM=QM(!1),Gf={},Hi=Ol(Gf),pf=Ol(Gf),hf=Ol(Gf);function oa(e){if(e===Gf)throw Error(Me(174));return e}function kw(e,t){switch(fn(hf,t),fn(pf,e),fn(Hi,Gf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:v1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=v1(t,e)}yn(Hi),fn(Hi,t)}function nu(){yn(Hi),yn(pf),yn(hf)}function ZM(e){oa(hf.current);var t=oa(Hi.current),n=v1(t,e.type);t!==n&&(fn(pf,e),fn(Hi,n))}function Iw(e){pf.current===e&&(yn(Hi),yn(pf))}var _n=Ol(0);function km(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 g0=[];function _w(){for(var e=0;e<g0.length;e++)g0[e]._workInProgressVersionPrimary=null;g0.length=0}var Kh=Ts.ReactCurrentDispatcher,v0=Ts.ReactCurrentBatchConfig,ba=0,Mn=null,Xn=null,er=null,Im=!1,Dd=!1,mf=0,y9=0;function gr(){throw Error(Me(321))}function $w(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vi(e[n],t[n]))return!1;return!0}function Mw(e,t,n,r,o,i){if(ba=i,Mn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kh.current=e===null||e.memoizedState===null?x9:S9,e=n(r,o),Dd){i=0;do{if(Dd=!1,mf=0,25<=i)throw Error(Me(301));i+=1,er=Xn=null,t.updateQueue=null,Kh.current=E9,e=n(r,o)}while(Dd)}if(Kh.current=_m,t=Xn!==null&&Xn.next!==null,ba=0,er=Xn=Mn=null,Im=!1,t)throw Error(Me(300));return e}function Tw(){var e=mf!==0;return mf=0,e}function Mi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return er===null?Mn.memoizedState=er=e:er=er.next=e,er}function Go(){if(Xn===null){var e=Mn.alternate;e=e!==null?e.memoizedState:null}else e=Xn.next;var t=er===null?Mn.memoizedState:er.next;if(t!==null)er=t,Xn=e;else{if(e===null)throw Error(Me(310));Xn=e,e={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},er===null?Mn.memoizedState=er=e:er=er.next=e}return er}function gf(e,t){return typeof t=="function"?t(e):t}function y0(e){var t=Go(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=Xn,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,f=i;do{var p=f.lane;if((ba&p)===p)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var h={lane:p,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Mn.lanes|=p,wa|=p}f=f.next}while(f!==null&&f!==i);c===null?s=r:c.next=a,vi(r,t.memoizedState)||(Wr=!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,Mn.lanes|=i,wa|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function b0(e){var t=Go(),n=t.queue;if(n===null)throw Error(Me(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);vi(i,t.memoizedState)||(Wr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function eT(){}function tT(e,t){var n=Mn,r=Go(),o=t(),i=!vi(r.memoizedState,o);if(i&&(r.memoizedState=o,Wr=!0),r=r.queue,Rw(oT.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||er!==null&&er.memoizedState.tag&1){if(n.flags|=2048,vf(9,rT.bind(null,n,r,o,t),void 0,null),nr===null)throw Error(Me(349));ba&30||nT(n,t,o)}return o}function nT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Mn.updateQueue,t===null?(t={lastEffect:null,stores:null},Mn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rT(e,t,n,r){t.value=n,t.getSnapshot=r,iT(t)&&sT(e)}function oT(e,t,n){return n(function(){iT(t)&&sT(e)})}function iT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vi(e,n)}catch(r){return!0}}function sT(e){var t=Es(e,1);t!==null&&hi(t,e,1,-1)}function Qk(e){var t=Mi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gf,lastRenderedState:e},t.queue=e,e=e.dispatch=C9.bind(null,Mn,e),[t.memoizedState,e]}function vf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Mn.updateQueue,t===null?(t={lastEffect:null,stores:null},Mn.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 lT(){return Go().memoizedState}function qh(e,t,n,r){var o=Mi();Mn.flags|=e,o.memoizedState=vf(1|t,n,void 0,r===void 0?null:r)}function fg(e,t,n,r){var o=Go();r=r===void 0?null:r;var i=void 0;if(Xn!==null){var s=Xn.memoizedState;if(i=s.destroy,r!==null&&$w(r,s.deps)){o.memoizedState=vf(t,n,i,r);return}}Mn.flags|=e,o.memoizedState=vf(1|t,n,i,r)}function Jk(e,t){return qh(8390656,8,e,t)}function Rw(e,t){return fg(2048,8,e,t)}function aT(e,t){return fg(4,2,e,t)}function cT(e,t){return fg(4,4,e,t)}function uT(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 dT(e,t,n){return n=n!=null?n.concat([e]):null,fg(4,4,uT.bind(null,t,e),n)}function Ow(){}function fT(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$w(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pT(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$w(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hT(e,t,n){return ba&21?(vi(n,t)||(n=vM(),Mn.lanes|=n,wa|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Wr=!0),e.memoizedState=n)}function b9(e,t){var n=nn;nn=n!==0&&4>n?n:4,e(!0);var r=v0.transition;v0.transition={};try{e(!1),t()}finally{nn=n,v0.transition=r}}function mT(){return Go().memoizedState}function w9(e,t,n){var r=gl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gT(e))vT(t,n);else if(n=KM(e,t,n,r),n!==null){var o=Rr();hi(n,e,r,o),yT(n,t,r)}}function C9(e,t,n){var r=gl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gT(e))vT(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,vi(a,s)){var c=t.interleaved;c===null?(o.next=o,Ew(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(f){}finally{}n=KM(e,t,o,r),n!==null&&(o=Rr(),hi(n,e,r,o),yT(n,t,r))}}function gT(e){var t=e.alternate;return e===Mn||t!==null&&t===Mn}function vT(e,t){Dd=Im=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yT(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,uw(e,n)}}var _m={readContext:Wo,useCallback:gr,useContext:gr,useEffect:gr,useImperativeHandle:gr,useInsertionEffect:gr,useLayoutEffect:gr,useMemo:gr,useReducer:gr,useRef:gr,useState:gr,useDebugValue:gr,useDeferredValue:gr,useTransition:gr,useMutableSource:gr,useSyncExternalStore:gr,useId:gr,unstable_isNewReconciler:!1},x9={readContext:Wo,useCallback:function(e,t){return Mi().memoizedState=[e,t===void 0?null:t],e},useContext:Wo,useEffect:Jk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qh(4194308,4,uT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qh(4194308,4,e,t)},useInsertionEffect:function(e,t){return qh(4,2,e,t)},useMemo:function(e,t){var n=Mi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mi();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=w9.bind(null,Mn,e),[r.memoizedState,e]},useRef:function(e){var t=Mi();return e={current:e},t.memoizedState=e},useState:Qk,useDebugValue:Ow,useDeferredValue:function(e){return Mi().memoizedState=e},useTransition:function(){var e=Qk(!1),t=e[0];return e=b9.bind(null,e[1]),Mi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Mn,o=Mi();if(Sn){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),nr===null)throw Error(Me(349));ba&30||nT(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Jk(oT.bind(null,r,i,e),[e]),r.flags|=2048,vf(9,rT.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mi(),t=nr.identifierPrefix;if(Sn){var n=gs,r=ms;n=(r&~(1<<32-pi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=y9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},S9={readContext:Wo,useCallback:fT,useContext:Wo,useEffect:Rw,useImperativeHandle:dT,useInsertionEffect:aT,useLayoutEffect:cT,useMemo:pT,useReducer:y0,useRef:lT,useState:function(){return y0(gf)},useDebugValue:Ow,useDeferredValue:function(e){var t=Go();return hT(t,Xn.memoizedState,e)},useTransition:function(){var e=y0(gf)[0],t=Go().memoizedState;return[e,t]},useMutableSource:eT,useSyncExternalStore:tT,useId:mT,unstable_isNewReconciler:!1},E9={readContext:Wo,useCallback:fT,useContext:Wo,useEffect:Rw,useImperativeHandle:dT,useInsertionEffect:aT,useLayoutEffect:cT,useMemo:pT,useReducer:b0,useRef:lT,useState:function(){return b0(gf)},useDebugValue:Ow,useDeferredValue:function(e){var t=Go();return Xn===null?t.memoizedState=e:hT(t,Xn.memoizedState,e)},useTransition:function(){var e=b0(gf)[0],t=Go().memoizedState;return[e,t]},useMutableSource:eT,useSyncExternalStore:tT,useId:mT,unstable_isNewReconciler:!1};function ru(e,t){try{var n="",r=t;do n+=J6(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 w0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function z1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var P9=typeof WeakMap=="function"?WeakMap:Map;function bT(e,t,n){n=bs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mm||(Mm=!0,X1=r),z1(e,t)},n}function wT(e,t,n){n=bs(-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(){z1(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){z1(e,t),typeof r!="function"&&(ml===null?ml=new Set([this]):ml.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Zk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new P9;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=B9.bind(null,e,t,n),t.then(e,e))}function e2(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 t2(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=bs(-1,1),t.tag=2,hl(n,t,1))),n.lanes|=1),e)}var k9=Ts.ReactCurrentOwner,Wr=!1;function $r(e,t,n,r){t.child=e===null?JM(t,null,n,r):tu(t,e.child,n,r)}function n2(e,t,n,r,o){n=n.render;var i=t.ref;return Hc(t,o),r=Mw(e,t,n,r,i,o),n=Tw(),e!==null&&!Wr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ps(e,t,o)):(Sn&&n&&yw(t),t.flags|=1,$r(e,t,r,o),t.child)}function r2(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!jw(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,CT(e,t,i,r,o)):(e=Jh(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:cf,n(s,r)&&e.ref===t.ref)return Ps(e,t,o)}return t.flags|=1,e=vl(i,r),e.ref=t.ref,e.return=t,t.child=e}function CT(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(cf(i,r)&&e.ref===t.ref)if(Wr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Wr=!0);else return t.lanes=e.lanes,Ps(e,t,o)}return j1(e,t,n,r,o)}function xT(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},fn(Ac,ao),ao|=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,fn(Ac,ao),ao|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,fn(Ac,ao),ao|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,fn(Ac,ao),ao|=r;return $r(e,t,o,n),t.child}function ST(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function j1(e,t,n,r,o){var i=Kr(n)?va:Er.current;return i=Zc(t,i),Hc(t,o),n=Mw(e,t,n,r,i,o),r=Tw(),e!==null&&!Wr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ps(e,t,o)):(Sn&&r&&yw(t),t.flags|=1,$r(e,t,n,o),t.child)}function o2(e,t,n,r,o){if(Kr(n)){var i=!0;wm(t)}else i=!1;if(Hc(t,o),t.stateNode===null)Yh(e,t),XM(t,n,r),B1(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=Wo(f):(f=Kr(n)?va:Er.current,f=Zc(t,f));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!==f)&&Yk(t,s,r,f),Qs=!1;var m=t.memoizedState;s.state=m,Pm(t,r,s,o),c=t.memoizedState,a!==r||m!==c||Gr.current||Qs?(typeof p=="function"&&(D1(t,n,p,r),c=t.memoizedState),(a=Qs||qk(t,n,a,r,m,c,f))?(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=f,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,qM(e,t),a=t.memoizedProps,f=t.type===t.elementType?a:li(t.type,a),s.props=f,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Wo(c):(c=Kr(n)?va:Er.current,c=Zc(t,c));var v=n.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||m!==c)&&Yk(t,s,r,c),Qs=!1,m=t.memoizedState,s.state=m,Pm(t,r,s,o);var b=t.memoizedState;a!==h||m!==b||Gr.current||Qs?(typeof v=="function"&&(D1(t,n,v,r),b=t.memoizedState),(f=Qs||qk(t,n,f,r,m,b,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),s.props=r,s.state=b,s.context=c,r=f):(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 H1(e,t,n,r,i,o)}function H1(e,t,n,r,o,i){ST(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Vk(t,n,!1),Ps(e,t,i);r=t.stateNode,k9.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=tu(t,e.child,null,i),t.child=tu(t,null,a,i)):$r(e,t,a,i),t.memoizedState=r.state,o&&Vk(t,n,!0),t.child}function ET(e){var t=e.stateNode;t.pendingContext?Hk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hk(e,t.context,!1),kw(e,t.containerInfo)}function i2(e,t,n,r,o){return eu(),ww(o),t.flags|=256,$r(e,t,n,r),t.child}var V1={dehydrated:null,treeContext:null,retryLane:0};function U1(e){return{baseLanes:e,cachePool:null,transitions:null}}function PT(e,t,n){var r=t.pendingProps,o=_n.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),fn(_n,o&1),e===null)return F1(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=mg(s,r,0,null),e=da(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=U1(n),t.memoizedState=V1,e):Lw(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return I9(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=vl(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=vl(a,i):(i=da(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?U1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=V1,r}return i=e.child,e=i.sibling,r=vl(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 Lw(e,t){return t=mg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wh(e,t,n,r){return r!==null&&ww(r),tu(t,e.child,null,n),e=Lw(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function I9(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=w0(Error(Me(422))),wh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=mg({mode:"visible",children:r.children},o,0,null),i=da(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&tu(t,e.child,null,s),t.child.memoizedState=U1(s),t.memoizedState=V1,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(Me(419)),r=w0(i,r,void 0),wh(e,t,s,r)}if(a=(s&e.childLanes)!==0,Wr||a){if(r=nr,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,Es(e,o),hi(r,e,o,-1))}return zw(),r=w0(Error(Me(421))),wh(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=z9.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,po=pl(o.nextSibling),ho=t,Sn=!0,ui=null,e!==null&&(Fo[No++]=ms,Fo[No++]=gs,Fo[No++]=ya,ms=e.id,gs=e.overflow,ya=t),t=Lw(t,r.children),t.flags|=4096,t)}function s2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),N1(e.return,t,n)}function C0(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 kT(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if($r(e,t,r.children,n),r=_n.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&&s2(e,n,t);else if(e.tag===19)s2(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(fn(_n,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&&km(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),C0(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&&km(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}C0(t,!0,n,null,i);break;case"together":C0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ps(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Me(153));if(t.child!==null){for(e=t.child,n=vl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _9(e,t,n){switch(t.tag){case 3:ET(t),eu();break;case 5:ZM(t);break;case 1:Kr(t.type)&&wm(t);break;case 4:kw(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;fn(Sm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fn(_n,_n.current&1),t.flags|=128,null):n&t.child.childLanes?PT(e,t,n):(fn(_n,_n.current&1),e=Ps(e,t,n),e!==null?e.sibling:null);fn(_n,_n.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return kT(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),fn(_n,_n.current),r)break;return null;case 22:case 23:return t.lanes=0,xT(e,t,n)}return Ps(e,t,n)}var IT,W1,_T,$T;IT=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}};W1=function(){};_T=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,oa(Hi.current);var i=null;switch(n){case"input":o=p1(e,o),r=p1(e,r),i=[];break;case"select":o=Tn({},o,{value:void 0}),r=Tn({},r,{value:void 0}),i=[];break;case"textarea":o=g1(e,o),r=g1(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ym)}y1(n,r);var s;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var a=o[f];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(tf.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(a=o!=null?o[f]:void 0,r.hasOwnProperty(f)&&c!==a&&(c!=null||a!=null))if(f==="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(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(tf.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&vn("scroll",e),i||a===c||(i=[])):(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};$T=function(e,t,n,r){n!==r&&(t.flags|=4)};function ld(e,t){if(!Sn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $9(e,t,n){var r=t.pendingProps;switch(bw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vr(t),null;case 1:return Kr(t.type)&&bm(),vr(t),null;case 3:return r=t.stateNode,nu(),yn(Gr),yn(Er),_w(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ui!==null&&(Z1(ui),ui=null))),W1(e,t),vr(t),null;case 5:Iw(t);var o=oa(hf.current);if(n=t.type,e!==null&&t.stateNode!=null)_T(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Me(166));return vr(t),null}if(e=oa(Hi.current),yh(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Bi]=t,r[ff]=i,e=(t.mode&1)!==0,n){case"dialog":vn("cancel",r),vn("close",r);break;case"iframe":case"object":case"embed":vn("load",r);break;case"video":case"audio":for(o=0;o<Ed.length;o++)vn(Ed[o],r);break;case"source":vn("error",r);break;case"img":case"image":case"link":vn("error",r),vn("load",r);break;case"details":vn("toggle",r);break;case"input":mk(r,i),vn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},vn("invalid",r);break;case"textarea":vk(r,i),vn("invalid",r)}y1(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&&vh(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&vh(r.textContent,a,e),o=["children",""+a]):tf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&vn("scroll",r)}switch(n){case"input":ch(r),gk(r,i,!0);break;case"textarea":ch(r),yk(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ym)}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=nM(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[Bi]=t,e[ff]=r,IT(e,t,!1,!1),t.stateNode=e;e:{switch(s=b1(n,r),n){case"dialog":vn("cancel",e),vn("close",e),o=r;break;case"iframe":case"object":case"embed":vn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ed.length;o++)vn(Ed[o],e);o=r;break;case"source":vn("error",e),o=r;break;case"img":case"image":case"link":vn("error",e),vn("load",e),o=r;break;case"details":vn("toggle",e),o=r;break;case"input":mk(e,r),o=p1(e,r),vn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Tn({},r,{value:void 0}),vn("invalid",e);break;case"textarea":vk(e,r),o=g1(e,r),vn("invalid",e);break;default:o=r}y1(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?iM(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&rM(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&nf(e,c):typeof c=="number"&&nf(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(tf.hasOwnProperty(i)?c!=null&&i==="onScroll"&&vn("scroll",e):c!=null&&ow(e,i,c,s))}switch(n){case"input":ch(e),gk(e,r,!1);break;case"textarea":ch(e),yk(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Dc(e,!!r.multiple,i,!1):r.defaultValue!=null&&Dc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ym)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return vr(t),null;case 6:if(e&&t.stateNode!=null)$T(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Me(166));if(n=oa(hf.current),oa(Hi.current),yh(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bi]=t,(i=r.nodeValue!==n)&&(e=ho,e!==null))switch(e.tag){case 3:vh(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vh(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bi]=t,t.stateNode=r}return vr(t),null;case 13:if(yn(_n),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Sn&&po!==null&&t.mode&1&&!(t.flags&128))GM(),eu(),t.flags|=98560,i=!1;else if(i=yh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Me(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Me(317));i[Bi]=t}else eu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vr(t),i=!1}else ui!==null&&(Z1(ui),ui=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||_n.current&1?Qn===0&&(Qn=3):zw())),t.updateQueue!==null&&(t.flags|=4),vr(t),null);case 4:return nu(),W1(e,t),e===null&&uf(t.stateNode.containerInfo),vr(t),null;case 10:return Sw(t.type._context),vr(t),null;case 17:return Kr(t.type)&&bm(),vr(t),null;case 19:if(yn(_n),i=t.memoizedState,i===null)return vr(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)ld(i,!1);else{if(Qn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=km(e),s!==null){for(t.flags|=128,ld(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 fn(_n,_n.current&1|2),t.child}e=e.sibling}i.tail!==null&&zn()>ou&&(t.flags|=128,r=!0,ld(i,!1),t.lanes=4194304)}else{if(!r)if(e=km(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ld(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Sn)return vr(t),null}else 2*zn()-i.renderingStartTime>ou&&n!==1073741824&&(t.flags|=128,r=!0,ld(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=zn(),t.sibling=null,n=_n.current,fn(_n,r?n&1|2:n&1),t):(vr(t),null);case 22:case 23:return Bw(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ao&1073741824&&(vr(t),t.subtreeFlags&6&&(t.flags|=8192)):vr(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function M9(e,t){switch(bw(t),t.tag){case 1:return Kr(t.type)&&bm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nu(),yn(Gr),yn(Er),_w(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Iw(t),null;case 13:if(yn(_n),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));eu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yn(_n),null;case 4:return nu(),null;case 10:return Sw(t.type._context),null;case 22:case 23:return Bw(),null;case 24:return null;default:return null}}var Ch=!1,wr=!1,T9=typeof WeakSet=="function"?WeakSet:Set,He=null;function Lc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ln(e,t,r)}else n.current=null}function G1(e,t,n){try{n()}catch(r){Ln(e,t,r)}}var l2=!1;function R9(e,t){if($1=mm,e=OM(),vw(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(E){n=null;break e}var s=0,a=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(a=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===o&&(a=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(M1={focusedElem:e,selectionRange:n},mm=!1,He=t;He!==null;)if(t=He,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,He=e;else for(;He!==null;){t=He;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,x=b.memoizedState,C=t.stateNode,P=C.getSnapshotBeforeUpdate(t.elementType===t.type?g:li(t.type,g),x);C.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){Ln(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,He=e;break}He=t.return}return b=l2,l2=!1,b}function Bd(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&&G1(t,n,i)}o=o.next}while(o!==r)}}function pg(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 K1(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 MT(e){var t=e.alternate;t!==null&&(e.alternate=null,MT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bi],delete t[ff],delete t[O1],delete t[h9],delete t[m9])),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 TT(e){return e.tag===5||e.tag===3||e.tag===4}function a2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TT(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 q1(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=ym));else if(r!==4&&(e=e.child,e!==null))for(q1(e,t,n),e=e.sibling;e!==null;)q1(e,t,n),e=e.sibling}function Y1(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(Y1(e,t,n),e=e.sibling;e!==null;)Y1(e,t,n),e=e.sibling}var lr=null,ci=!1;function Us(e,t,n){for(n=n.child;n!==null;)RT(e,t,n),n=n.sibling}function RT(e,t,n){if(ji&&typeof ji.onCommitFiberUnmount=="function")try{ji.onCommitFiberUnmount(ig,n)}catch(a){}switch(n.tag){case 5:wr||Lc(n,t);case 6:var r=lr,o=ci;lr=null,Us(e,t,n),lr=r,ci=o,lr!==null&&(ci?(e=lr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lr.removeChild(n.stateNode));break;case 18:lr!==null&&(ci?(e=lr,n=n.stateNode,e.nodeType===8?h0(e.parentNode,n):e.nodeType===1&&h0(e,n),lf(e)):h0(lr,n.stateNode));break;case 4:r=lr,o=ci,lr=n.stateNode.containerInfo,ci=!0,Us(e,t,n),lr=r,ci=o;break;case 0:case 11:case 14:case 15:if(!wr&&(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)&&G1(n,t,s),o=o.next}while(o!==r)}Us(e,t,n);break;case 1:if(!wr&&(Lc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ln(n,t,a)}Us(e,t,n);break;case 21:Us(e,t,n);break;case 22:n.mode&1?(wr=(r=wr)||n.memoizedState!==null,Us(e,t,n),wr=r):Us(e,t,n);break;default:Us(e,t,n)}}function c2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new T9),t.forEach(function(r){var o=j9.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ii(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:lr=a.stateNode,ci=!1;break e;case 3:lr=a.stateNode.containerInfo,ci=!0;break e;case 4:lr=a.stateNode.containerInfo,ci=!0;break e}a=a.return}if(lr===null)throw Error(Me(160));RT(i,s,o),lr=null,ci=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(f){Ln(o,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)OT(t,e),t=t.sibling}function OT(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ii(t,e),_i(e),r&4){try{Bd(3,e,e.return),pg(3,e)}catch(g){Ln(e,e.return,g)}try{Bd(5,e,e.return)}catch(g){Ln(e,e.return,g)}}break;case 1:ii(t,e),_i(e),r&512&&n!==null&&Lc(n,n.return);break;case 5:if(ii(t,e),_i(e),r&512&&n!==null&&Lc(n,n.return),e.flags&32){var o=e.stateNode;try{nf(o,"")}catch(g){Ln(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&eM(o,i),b1(a,s);var f=b1(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?iM(o,h):p==="dangerouslySetInnerHTML"?rM(o,h):p==="children"?nf(o,h):ow(o,p,h,f)}switch(a){case"input":h1(o,i);break;case"textarea":tM(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Dc(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?Dc(o,!!i.multiple,i.defaultValue,!0):Dc(o,!!i.multiple,i.multiple?[]:"",!1))}o[ff]=i}catch(g){Ln(e,e.return,g)}}break;case 6:if(ii(t,e),_i(e),r&4){if(e.stateNode===null)throw Error(Me(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Ln(e,e.return,g)}}break;case 3:if(ii(t,e),_i(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lf(t.containerInfo)}catch(g){Ln(e,e.return,g)}break;case 4:ii(t,e),_i(e);break;case 13:ii(t,e),_i(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Nw=zn())),r&4&&c2(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(wr=(f=wr)||p,ii(t,e),wr=f):ii(t,e),_i(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!p&&e.mode&1)for(He=e,p=e.child;p!==null;){for(h=He=p;He!==null;){switch(m=He,v=m.child,m.tag){case 0:case 11:case 14:case 15:Bd(4,m,m.return);break;case 1:Lc(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){Ln(r,n,g)}}break;case 5:Lc(m,m.return);break;case 22:if(m.memoizedState!==null){d2(h);continue}}v!==null?(v.return=m,He=v):d2(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,f?(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=oM("display",s))}catch(g){Ln(e,e.return,g)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(g){Ln(e,e.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ii(t,e),_i(e),r&4&&c2(e);break;case 21:break;default:ii(t,e),_i(e)}}function _i(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(TT(n)){var r=n;break e}n=n.return}throw Error(Me(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(nf(o,""),r.flags&=-33);var i=a2(e);Y1(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=a2(e);q1(e,a,s);break;default:throw Error(Me(161))}}catch(c){Ln(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function O9(e,t,n){He=e,LT(e)}function LT(e,t,n){for(var r=(e.mode&1)!==0;He!==null;){var o=He,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ch;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||wr;a=Ch;var f=wr;if(Ch=s,(wr=c)&&!f)for(He=o;He!==null;)s=He,c=s.child,s.tag===22&&s.memoizedState!==null?f2(o):c!==null?(c.return=s,He=c):f2(o);for(;i!==null;)He=i,LT(i),i=i.sibling;He=o,Ch=a,wr=f}u2(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,He=i):u2(e)}}function u2(e){for(;He!==null;){var t=He;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:wr||pg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!wr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:li(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Kk(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}Kk(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 f=t.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&lf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Me(163))}wr||t.flags&512&&K1(t)}catch(m){Ln(t,t.return,m)}}if(t===e){He=null;break}if(n=t.sibling,n!==null){n.return=t.return,He=n;break}He=t.return}}function d2(e){for(;He!==null;){var t=He;if(t===e){He=null;break}var n=t.sibling;if(n!==null){n.return=t.return,He=n;break}He=t.return}}function f2(e){for(;He!==null;){var t=He;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{pg(4,t)}catch(c){Ln(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Ln(t,o,c)}}var i=t.return;try{K1(t)}catch(c){Ln(t,i,c)}break;case 5:var s=t.return;try{K1(t)}catch(c){Ln(t,s,c)}}}catch(c){Ln(t,t.return,c)}if(t===e){He=null;break}var a=t.sibling;if(a!==null){a.return=t.return,He=a;break}He=t.return}}var L9=Math.ceil,$m=Ts.ReactCurrentDispatcher,Aw=Ts.ReactCurrentOwner,jo=Ts.ReactCurrentBatchConfig,Wt=0,nr=null,Wn=null,ar=0,ao=0,Ac=Ol(0),Qn=0,yf=null,wa=0,hg=0,Fw=0,zd=null,Vr=null,Nw=0,ou=1/0,ds=null,Mm=!1,X1=null,ml=null,xh=!1,il=null,Tm=0,jd=0,Q1=null,Xh=-1,Qh=0;function Rr(){return Wt&6?zn():Xh!==-1?Xh:Xh=zn()}function gl(e){return e.mode&1?Wt&2&&ar!==0?ar&-ar:v9.transition!==null?(Qh===0&&(Qh=vM()),Qh):(e=nn,e!==0||(e=window.event,e=e===void 0?16:EM(e.type)),e):1}function hi(e,t,n,r){if(50<jd)throw jd=0,Q1=null,Error(Me(185));Vf(e,n,r),(!(Wt&2)||e!==nr)&&(e===nr&&(!(Wt&2)&&(hg|=n),Qn===4&&nl(e,ar)),qr(e,r),n===1&&Wt===0&&!(t.mode&1)&&(ou=zn()+500,ug&&Ll()))}function qr(e,t){var n=e.callbackNode;vj(e,t);var r=hm(e,e===nr?ar:0);if(r===0)n!==null&&Ck(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ck(n),t===1)e.tag===0?g9(p2.bind(null,e)):VM(p2.bind(null,e)),f9(function(){!(Wt&6)&&Ll()}),n=null;else{switch(yM(r)){case 1:n=cw;break;case 4:n=mM;break;case 16:n=pm;break;case 536870912:n=gM;break;default:n=pm}n=HT(n,AT.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function AT(e,t){if(Xh=-1,Qh=0,Wt&6)throw Error(Me(327));var n=e.callbackNode;if(Vc()&&e.callbackNode!==n)return null;var r=hm(e,e===nr?ar:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Rm(e,r);else{t=r;var o=Wt;Wt|=2;var i=NT();(nr!==e||ar!==t)&&(ds=null,ou=zn()+500,ua(e,t));do try{N9();break}catch(a){FT(e,a)}while(1);xw(),$m.current=i,Wt=o,Wn!==null?t=0:(nr=null,ar=0,t=Qn)}if(t!==0){if(t===2&&(o=E1(e),o!==0&&(r=o,t=J1(e,o))),t===1)throw n=yf,ua(e,0),nl(e,r),qr(e,zn()),n;if(t===6)nl(e,r);else{if(o=e.current.alternate,!(r&30)&&!A9(o)&&(t=Rm(e,r),t===2&&(i=E1(e),i!==0&&(r=i,t=J1(e,i))),t===1))throw n=yf,ua(e,0),nl(e,r),qr(e,zn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Me(345));case 2:Ql(e,Vr,ds);break;case 3:if(nl(e,r),(r&130023424)===r&&(t=Nw+500-zn(),10<t)){if(hm(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Rr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=R1(Ql.bind(null,e,Vr,ds),t);break}Ql(e,Vr,ds);break;case 4:if(nl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-pi(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=zn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*L9(r/1960))-r,10<r){e.timeoutHandle=R1(Ql.bind(null,e,Vr,ds),r);break}Ql(e,Vr,ds);break;case 5:Ql(e,Vr,ds);break;default:throw Error(Me(329))}}}return qr(e,zn()),e.callbackNode===n?AT.bind(null,e):null}function J1(e,t){var n=zd;return e.current.memoizedState.isDehydrated&&(ua(e,t).flags|=256),e=Rm(e,t),e!==2&&(t=Vr,Vr=n,t!==null&&Z1(t)),e}function Z1(e){Vr===null?Vr=e:Vr.push.apply(Vr,e)}function A9(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(!vi(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 nl(e,t){for(t&=~Fw,t&=~hg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pi(t),r=1<<n;e[n]=-1,t&=~r}}function p2(e){if(Wt&6)throw Error(Me(327));Vc();var t=hm(e,0);if(!(t&1))return qr(e,zn()),null;var n=Rm(e,t);if(e.tag!==0&&n===2){var r=E1(e);r!==0&&(t=r,n=J1(e,r))}if(n===1)throw n=yf,ua(e,0),nl(e,t),qr(e,zn()),n;if(n===6)throw Error(Me(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ql(e,Vr,ds),qr(e,zn()),null}function Dw(e,t){var n=Wt;Wt|=1;try{return e(t)}finally{Wt=n,Wt===0&&(ou=zn()+500,ug&&Ll())}}function Ca(e){il!==null&&il.tag===0&&!(Wt&6)&&Vc();var t=Wt;Wt|=1;var n=jo.transition,r=nn;try{if(jo.transition=null,nn=1,e)return e()}finally{nn=r,jo.transition=n,Wt=t,!(Wt&6)&&Ll()}}function Bw(){ao=Ac.current,yn(Ac)}function ua(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,d9(n)),Wn!==null)for(n=Wn.return;n!==null;){var r=n;switch(bw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&bm();break;case 3:nu(),yn(Gr),yn(Er),_w();break;case 5:Iw(r);break;case 4:nu();break;case 13:yn(_n);break;case 19:yn(_n);break;case 10:Sw(r.type._context);break;case 22:case 23:Bw()}n=n.return}if(nr=e,Wn=e=vl(e.current,null),ar=ao=t,Qn=0,yf=null,Fw=hg=wa=0,Vr=zd=null,ra!==null){for(t=0;t<ra.length;t++)if(n=ra[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}ra=null}return e}function FT(e,t){do{var n=Wn;try{if(xw(),Kh.current=_m,Im){for(var r=Mn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Im=!1}if(ba=0,er=Xn=Mn=null,Dd=!1,mf=0,Aw.current=null,n===null||n.return===null){Qn=1,yf=t,Wn=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=ar,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=c,p=a,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=e2(s);if(v!==null){v.flags&=-257,t2(v,s,a,i,t),v.mode&1&&Zk(i,f,t),t=v,c=f;var b=t.updateQueue;if(b===null){var g=new Set;g.add(c),t.updateQueue=g}else b.add(c);break e}else{if(!(t&1)){Zk(i,f,t),zw();break e}c=Error(Me(426))}}else if(Sn&&a.mode&1){var x=e2(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),t2(x,s,a,i,t),ww(ru(c,a));break e}}i=c=ru(c,a),Qn!==4&&(Qn=2),zd===null?zd=[i]:zd.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var C=bT(i,c,t);Gk(i,C);break e;case 1:a=c;var P=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof P.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(ml===null||!ml.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=wT(i,a,t);Gk(i,E);break e}}i=i.return}while(i!==null)}BT(n)}catch(I){t=I,Wn===n&&n!==null&&(Wn=n=n.return);continue}break}while(1)}function NT(){var e=$m.current;return $m.current=_m,e===null?_m:e}function zw(){(Qn===0||Qn===3||Qn===2)&&(Qn=4),nr===null||!(wa&268435455)&&!(hg&268435455)||nl(nr,ar)}function Rm(e,t){var n=Wt;Wt|=2;var r=NT();(nr!==e||ar!==t)&&(ds=null,ua(e,t));do try{F9();break}catch(o){FT(e,o)}while(1);if(xw(),Wt=n,$m.current=r,Wn!==null)throw Error(Me(261));return nr=null,ar=0,Qn}function F9(){for(;Wn!==null;)DT(Wn)}function N9(){for(;Wn!==null&&!aj();)DT(Wn)}function DT(e){var t=jT(e.alternate,e,ao);e.memoizedProps=e.pendingProps,t===null?BT(e):Wn=t,Aw.current=null}function BT(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=M9(n,t),n!==null){n.flags&=32767,Wn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Qn=6,Wn=null;return}}else if(n=$9(n,t,ao),n!==null){Wn=n;return}if(t=t.sibling,t!==null){Wn=t;return}Wn=t=e}while(t!==null);Qn===0&&(Qn=5)}function Ql(e,t,n){var r=nn,o=jo.transition;try{jo.transition=null,nn=1,D9(e,t,n,r)}finally{jo.transition=o,nn=r}return null}function D9(e,t,n,r){do Vc();while(il!==null);if(Wt&6)throw Error(Me(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(Me(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(yj(e,i),e===nr&&(Wn=nr=null,ar=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xh||(xh=!0,HT(pm,function(){return Vc(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=jo.transition,jo.transition=null;var s=nn;nn=1;var a=Wt;Wt|=4,Aw.current=null,R9(e,n),OT(n,e),o9(M1),mm=!!$1,M1=$1=null,e.current=n,O9(n),cj(),Wt=a,nn=s,jo.transition=i}else e.current=n;if(xh&&(xh=!1,il=e,Tm=o),i=e.pendingLanes,i===0&&(ml=null),fj(n.stateNode),qr(e,zn()),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(Mm)throw Mm=!1,e=X1,X1=null,e;return Tm&1&&e.tag!==0&&Vc(),i=e.pendingLanes,i&1?e===Q1?jd++:(jd=0,Q1=e):jd=0,Ll(),null}function Vc(){if(il!==null){var e=yM(Tm),t=jo.transition,n=nn;try{if(jo.transition=null,nn=16>e?16:e,il===null)var r=!1;else{if(e=il,il=null,Tm=0,Wt&6)throw Error(Me(331));var o=Wt;for(Wt|=4,He=e.current;He!==null;){var i=He,s=i.child;if(He.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var f=a[c];for(He=f;He!==null;){var p=He;switch(p.tag){case 0:case 11:case 15:Bd(8,p,i)}var h=p.child;if(h!==null)h.return=p,He=h;else for(;He!==null;){p=He;var m=p.sibling,v=p.return;if(MT(p),p===f){He=null;break}if(m!==null){m.return=v,He=m;break}He=v}}}var b=i.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}He=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,He=s;else e:for(;He!==null;){if(i=He,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Bd(9,i,i.return)}var C=i.sibling;if(C!==null){C.return=i.return,He=C;break e}He=i.return}}var P=e.current;for(He=P;He!==null;){s=He;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,He=w;else e:for(s=P;He!==null;){if(a=He,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:pg(9,a)}}catch(I){Ln(a,a.return,I)}if(a===s){He=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,He=E;break e}He=a.return}}if(Wt=o,Ll(),ji&&typeof ji.onPostCommitFiberRoot=="function")try{ji.onPostCommitFiberRoot(ig,e)}catch(I){}r=!0}return r}finally{nn=n,jo.transition=t}}return!1}function h2(e,t,n){t=ru(n,t),t=bT(e,t,1),e=hl(e,t,1),t=Rr(),e!==null&&(Vf(e,1,t),qr(e,t))}function Ln(e,t,n){if(e.tag===3)h2(e,e,n);else for(;t!==null;){if(t.tag===3){h2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ml===null||!ml.has(r))){e=ru(n,e),e=wT(t,e,1),t=hl(t,e,1),e=Rr(),t!==null&&(Vf(t,1,e),qr(t,e));break}}t=t.return}}function B9(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Rr(),e.pingedLanes|=e.suspendedLanes&n,nr===e&&(ar&n)===n&&(Qn===4||Qn===3&&(ar&130023424)===ar&&500>zn()-Nw?ua(e,0):Fw|=n),qr(e,t)}function zT(e,t){t===0&&(e.mode&1?(t=fh,fh<<=1,!(fh&130023424)&&(fh=4194304)):t=1);var n=Rr();e=Es(e,t),e!==null&&(Vf(e,t,n),qr(e,n))}function z9(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zT(e,n)}function j9(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(Me(314))}r!==null&&r.delete(t),zT(e,n)}var jT;jT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gr.current)Wr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Wr=!1,_9(e,t,n);Wr=!!(e.flags&131072)}else Wr=!1,Sn&&t.flags&1048576&&UM(t,xm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yh(e,t),e=t.pendingProps;var o=Zc(t,Er.current);Hc(t,n),o=Mw(null,t,r,e,o,n);var i=Tw();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,Kr(r)?(i=!0,wm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pw(t),o.updater=dg,t.stateNode=o,o._reactInternals=t,B1(t,r,e,n),t=H1(null,t,r,!0,i,n)):(t.tag=0,Sn&&i&&yw(t),$r(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=V9(r),e=li(r,e),o){case 0:t=j1(null,t,r,e,n);break e;case 1:t=o2(null,t,r,e,n);break e;case 11:t=n2(null,t,r,e,n);break e;case 14:t=r2(null,t,r,li(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:li(r,o),j1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:li(r,o),o2(e,t,r,o,n);case 3:e:{if(ET(t),e===null)throw Error(Me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,qM(e,t),Pm(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=ru(Error(Me(423)),t),t=i2(e,t,r,n,o);break e}else if(r!==o){o=ru(Error(Me(424)),t),t=i2(e,t,r,n,o);break e}else for(po=pl(t.stateNode.containerInfo.firstChild),ho=t,Sn=!0,ui=null,n=JM(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eu(),r===o){t=Ps(e,t,n);break e}$r(e,t,r,n)}t=t.child}return t;case 5:return ZM(t),e===null&&F1(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,T1(r,o)?s=null:i!==null&&T1(r,i)&&(t.flags|=32),ST(e,t),$r(e,t,s,n),t.child;case 6:return e===null&&F1(t),null;case 13:return PT(e,t,n);case 4:return kw(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tu(t,null,r,n):$r(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:li(r,o),n2(e,t,r,o,n);case 7:return $r(e,t,t.pendingProps,n),t.child;case 8:return $r(e,t,t.pendingProps.children,n),t.child;case 12:return $r(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,fn(Sm,r._currentValue),r._currentValue=s,i!==null)if(vi(i.value,s)){if(i.children===o.children&&!Gr.current){t=Ps(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=bs(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),N1(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(Me(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),N1(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}$r(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Hc(t,n),o=Wo(o),r=r(o),t.flags|=1,$r(e,t,r,n),t.child;case 14:return r=t.type,o=li(r,t.pendingProps),o=li(r.type,o),r2(e,t,r,o,n);case 15:return CT(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:li(r,o),Yh(e,t),t.tag=1,Kr(r)?(e=!0,wm(t)):e=!1,Hc(t,n),XM(t,r,o),B1(t,r,o,n),H1(null,t,r,!0,e,n);case 19:return kT(e,t,n);case 22:return xT(e,t,n)}throw Error(Me(156,t.tag))};function HT(e,t){return hM(e,t)}function H9(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 Bo(e,t,n,r){return new H9(e,t,n,r)}function jw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V9(e){if(typeof e=="function")return jw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sw)return 11;if(e===lw)return 14}return 2}function vl(e,t){var n=e.alternate;return n===null?(n=Bo(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 Jh(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")jw(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Pc:return da(n.children,o,i,t);case iw:s=8,o|=8;break;case c1:return e=Bo(12,n,t,o|2),e.elementType=c1,e.lanes=i,e;case u1:return e=Bo(13,n,t,o),e.elementType=u1,e.lanes=i,e;case d1:return e=Bo(19,n,t,o),e.elementType=d1,e.lanes=i,e;case Q$:return mg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y$:s=10;break e;case X$:s=9;break e;case sw:s=11;break e;case lw:s=14;break e;case Xs:s=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=Bo(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function da(e,t,n,r){return e=Bo(7,e,r,t),e.lanes=n,e}function mg(e,t,n,r){return e=Bo(22,e,r,t),e.elementType=Q$,e.lanes=n,e.stateNode={isHidden:!1},e}function x0(e,t,n){return e=Bo(6,e,null,t),e.lanes=n,e}function S0(e,t,n){return t=Bo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function U9(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=r0(0),this.expirationTimes=r0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=r0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hw(e,t,n,r,o,i,s,a,c){return e=new U9(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Bo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pw(i),e}function W9(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ec,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function VT(e){if(!e)return El;e=e._reactInternals;e:{if(La(e)!==e||e.tag!==1)throw Error(Me(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Kr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Me(171))}if(e.tag===1){var n=e.type;if(Kr(n))return HM(e,n,t)}return t}function UT(e,t,n,r,o,i,s,a,c){return e=Hw(n,r,!0,e,o,i,s,a,c),e.context=VT(null),n=e.current,r=Rr(),o=gl(n),i=bs(r,o),i.callback=t!=null?t:null,hl(n,i,o),e.current.lanes=o,Vf(e,o,r),qr(e,r),e}function gg(e,t,n,r){var o=t.current,i=Rr(),s=gl(o);return n=VT(n),t.context===null?t.context=n:t.pendingContext=n,t=bs(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=hl(o,t,s),e!==null&&(hi(e,o,s,i),Gh(e,o,s)),s}function Om(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 m2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vw(e,t){m2(e,t),(e=e.alternate)&&m2(e,t)}function G9(){return null}var WT=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uw(e){this._internalRoot=e}vg.prototype.render=Uw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Me(409));gg(e,t,null,null)};vg.prototype.unmount=Uw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ca(function(){gg(null,e,null,null)}),t[Ss]=null}};function vg(e){this._internalRoot=e}vg.prototype.unstable_scheduleHydration=function(e){if(e){var t=CM();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tl.length&&t!==0&&t<tl[n].priority;n++);tl.splice(n,0,e),n===0&&SM(e)}};function Ww(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function g2(){}function K9(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var f=Om(s);i.call(f)}}var s=UT(t,r,e,0,null,!1,!1,"",g2);return e._reactRootContainer=s,e[Ss]=s.current,uf(e.nodeType===8?e.parentNode:e),Ca(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var f=Om(c);a.call(f)}}var c=Hw(e,0,!1,null,null,!1,!1,"",g2);return e._reactRootContainer=c,e[Ss]=c.current,uf(e.nodeType===8?e.parentNode:e),Ca(function(){gg(t,c,n,r)}),c}function bg(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=Om(s);a.call(c)}}gg(t,s,e,o)}else s=K9(n,t,e,o,r);return Om(s)}bM=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Sd(t.pendingLanes);n!==0&&(uw(t,n|1),qr(t,zn()),!(Wt&6)&&(ou=zn()+500,Ll()))}break;case 13:Ca(function(){var r=Es(e,1);if(r!==null){var o=Rr();hi(r,e,1,o)}}),Vw(e,1)}};dw=function(e){if(e.tag===13){var t=Es(e,134217728);if(t!==null){var n=Rr();hi(t,e,134217728,n)}Vw(e,134217728)}};wM=function(e){if(e.tag===13){var t=gl(e),n=Es(e,t);if(n!==null){var r=Rr();hi(n,e,t,r)}Vw(e,t)}};CM=function(){return nn};xM=function(e,t){var n=nn;try{return nn=e,t()}finally{nn=n}};C1=function(e,t,n){switch(t){case"input":if(h1(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=cg(r);if(!o)throw Error(Me(90));Z$(r),h1(r,o)}}}break;case"textarea":tM(e,n);break;case"select":t=n.value,t!=null&&Dc(e,!!n.multiple,t,!1)}};aM=Dw;cM=Ca;var q9={usingClientEntryPoint:!1,Events:[Wf,$c,cg,sM,lM,Dw]},ad={findFiberByHostInstance:na,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Y9={bundleType:ad.bundleType,version:ad.version,rendererPackageName:ad.rendererPackageName,rendererConfig:ad.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ts.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fM(e),e===null?null:e.stateNode},findFiberByHostInstance:ad.findFiberByHostInstance||G9,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 Sh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sh.isDisabled&&Sh.supportsFiber)try{ig=Sh.inject(Y9),ji=Sh}catch(e){}}bo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q9;bo.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ww(t))throw Error(Me(200));return W9(e,t,null,n)};bo.createRoot=function(e,t){if(!Ww(e))throw Error(Me(299));var n=!1,r="",o=WT;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hw(e,1,!1,null,null,n,!1,r,o),e[Ss]=t.current,uf(e.nodeType===8?e.parentNode:e),new Uw(t)};bo.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(Me(188)):(e=Object.keys(e).join(","),Error(Me(268,e)));return e=fM(t),e=e===null?null:e.stateNode,e};bo.flushSync=function(e){return Ca(e)};bo.hydrate=function(e,t,n){if(!yg(t))throw Error(Me(200));return bg(null,e,t,!0,n)};bo.hydrateRoot=function(e,t,n){if(!Ww(e))throw Error(Me(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=WT;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=UT(t,null,e,1,n!=null?n:null,o,!1,i,s),e[Ss]=t.current,uf(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 vg(t)};bo.render=function(e,t,n){if(!yg(t))throw Error(Me(200));return bg(null,e,t,!1,n)};bo.unmountComponentAtNode=function(e){if(!yg(e))throw Error(Me(40));return e._reactRootContainer?(Ca(function(){bg(null,null,e,!1,function(){e._reactRootContainer=null,e[Ss]=null})}),!0):!1};bo.unstable_batchedUpdates=Dw;bo.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yg(n))throw Error(Me(200));if(e==null||e._reactInternals===void 0)throw Error(Me(38));return bg(e,t,n,!1,r)};bo.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=bo})(G6);const Eh=Qb(xl);var GT,v2=xl;GT=v2.createRoot,v2.hydrateRoot;const X9="modulepreload",Q9=function(e){return"/"+e},y2={},J9=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Q9(i),i in y2)return;y2[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 f=document.createElement("link");if(f.rel=s?"stylesheet":X9,s||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),s)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var N$;if(!((N$=window.crypto)!=null&&N$.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return ot(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield J9(()=>import("./sha512-1ab69ff8.js").then(s=>s.s),[])).default.arrayBuffer;return i(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}var ia;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ia||(ia={}));var b2=function(e){return e},w2="beforeunload",Z9="hashchange",eH="popstate";function tH(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function i(){var $=Pl(r.location.hash.substr(1)),T=$.pathname,O=T===void 0?"/":T,N=$.search,V=N===void 0?"":N,j=$.hash,L=j===void 0?"":j,D=o.state||{};return[D.idx,b2({pathname:O,search:V,hash:L,state:D.usr||null,key:D.key||"default"})]}var s=null;function a(){if(s)v.call(s),s=null;else{var $=ia.Pop,T=i(),O=T[0],N=T[1];if(v.length){if(O!=null){var V=p-O;V&&(s={action:$,location:N,retry:function(){_(V*-1)}},_(V))}}else w($)}}r.addEventListener(eH,a),r.addEventListener(Z9,function(){var $=i(),T=$[1];Hd(T)!==Hd(h)&&a()});var c=ia.Pop,f=i(),p=f[0],h=f[1],m=x2(),v=x2();p==null&&(p=0,o.replaceState(S({},o.state,{idx:p}),""));function b(){var $=document.querySelector("base"),T="";if($&&$.getAttribute("href")){var O=r.location.href,N=O.indexOf("#");T=N===-1?O:O.slice(0,N)}return T}function g($){return b()+"#"+(typeof $=="string"?$:Hd($))}function x($,T){return T===void 0&&(T=null),b2(S({pathname:h.pathname,hash:"",search:""},typeof $=="string"?Pl($):$,{state:T,key:nH()}))}function C($,T){return[{usr:$.state,key:$.key,idx:T},g($)]}function P($,T,O){return!v.length||(v.call({action:$,location:T,retry:O}),!1)}function w($){c=$;var T=i();p=T[0],h=T[1],m.call({action:c,location:h})}function E($,T){var O=ia.Push,N=x($,T);function V(){E($,T)}if(P(O,N,V)){var j=C(N,p+1),L=j[0],D=j[1];try{o.pushState(L,"",D)}catch(B){r.location.assign(D)}w(O)}}function I($,T){var O=ia.Replace,N=x($,T);function V(){I($,T)}if(P(O,N,V)){var j=C(N,p),L=j[0],D=j[1];o.replaceState(L,"",D),w(O)}}function _($){o.go($)}var k={get action(){return c},get location(){return h},createHref:g,push:E,replace:I,go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(T){return m.push(T)},block:function(T){var O=v.push(T);return v.length===1&&r.addEventListener(w2,C2),function(){O(),v.length||r.removeEventListener(w2,C2)}}};return k}function C2(e){e.preventDefault(),e.returnValue=""}function x2(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(r){return r!==n})}},call:function(n){e.forEach(function(r){return r&&r(n)})}}}function nH(){return Math.random().toString(36).substr(2,8)}function Hd(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,o=r===void 0?"":r,i=e.hash,s=i===void 0?"":i;return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Pl(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/**
|
|
33
|
+
* React Router v6.3.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
|
+
*/const Gw=u.createContext(null),Kw=u.createContext(null),wg=u.createContext({outlet:null,matches:[]});function Xi(e,t){if(!e)throw new Error(t)}function rH(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Pl(t):t,o=YT(r.pathname||"/",n);if(o==null)return null;let i=KT(e);oH(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=pH(i[a],o);return s}function KT(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((o,i)=>{let s={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(s.relativePath.startsWith(r)||Xi(!1),s.relativePath=s.relativePath.slice(r.length));let a=yl([r,s.relativePath]),c=n.concat(s);o.children&&o.children.length>0&&(o.index===!0&&Xi(!1),KT(o.children,t,c,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:dH(a,o.index),routesMeta:c})}),t}function oH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const iH=/^:\w+$/,sH=3,lH=2,aH=1,cH=10,uH=-2,S2=e=>e==="*";function dH(e,t){let n=e.split("/"),r=n.length;return n.some(S2)&&(r+=uH),t&&(r+=lH),n.filter(o=>!S2(o)).reduce((o,i)=>o+(iH.test(i)?sH:i===""?aH:cH),r)}function fH(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 pH(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,f=o==="/"?t:t.slice(o.length)||"/",p=hH({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},f);if(!p)return null;Object.assign(r,p.params);let h=a.route;i.push({params:r,pathname:yl([o,p.pathname]),pathnameBase:XT(yl([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=yl([o,p.pathnameBase]))}return i}function hH(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=mH(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((f,p,h)=>{if(p==="*"){let m=a[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return f[p]=gH(a[h]||""),f},{}),pathname:i,pathnameBase:s,pattern:e}}function mH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(s,a)=>(r.push(a),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(o,t?void 0:"i"),r]}function gH(e,t){try{return decodeURIComponent(e)}catch(n){return e}}function vH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Pl(e):e;return{pathname:n?n.startsWith("/")?n:yH(n,t):t,search:wH(r),hash:CH(o)}}function yH(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 qT(e,t,n){let r=typeof e=="string"?Pl(e):e,o=e===""||r.pathname===""?"/":r.pathname,i;if(o==null)i=n;else{let a=t.length-1;if(o.startsWith("..")){let c=o.split("/");for(;c[0]==="..";)c.shift(),a-=1;r.pathname=c.join("/")}i=a>=0?t[a]:"/"}let s=vH(r,i);return o&&o!=="/"&&o.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}function bH(e){return e===""||e.pathname===""?"/":typeof e=="string"?Pl(e).pathname:e.pathname}function YT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const yl=e=>e.join("/").replace(/\/\/+/g,"/"),XT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,CH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xH(e){Kf()||Xi(!1);let{basename:t,navigator:n}=u.useContext(Gw),{hash:r,pathname:o,search:i}=qw(e),s=o;if(t!=="/"){let a=bH(e),c=a!=null&&a.endsWith("/");s=o==="/"?t+(c?"/":""):yl([t,o])}return n.createHref({pathname:s,search:i,hash:r})}function Kf(){return u.useContext(Kw)!=null}function Su(){return Kf()||Xi(!1),u.useContext(Kw).location}function SH(){Kf()||Xi(!1);let{basename:e,navigator:t}=u.useContext(Gw),{matches:n}=u.useContext(wg),{pathname:r}=Su(),o=JSON.stringify(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 f=qT(a,JSON.parse(o),r);e!=="/"&&(f.pathname=yl([e,f.pathname])),(c.replace?t.replace:t.push)(f,c.state)},[e,t,o,r])}function qw(e){let{matches:t}=u.useContext(wg),{pathname:n}=Su(),r=JSON.stringify(t.map(o=>o.pathnameBase));return u.useMemo(()=>qT(e,JSON.parse(r),n),[e,r,n])}function EH(e,t){Kf()||Xi(!1);let{matches:n}=u.useContext(wg),r=n[n.length-1],o=r?r.params:{};r&&r.pathname;let i=r?r.pathnameBase:"/";r&&r.route;let s=Su(),a;if(t){var c;let m=typeof t=="string"?Pl(t):t;i==="/"||(c=m.pathname)!=null&&c.startsWith(i)||Xi(!1),a=m}else a=s;let f=a.pathname||"/",p=i==="/"?f:f.slice(i.length)||"/",h=rH(e,{pathname:p});return PH(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},o,m.params),pathname:yl([i,m.pathname]),pathnameBase:m.pathnameBase==="/"?i:yl([i,m.pathnameBase])})),n)}function PH(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,o)=>u.createElement(wg.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,o+1))}}),null)}function QT(e){Xi(!1)}function kH(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ia.Pop,navigator:i,static:s=!1}=e;Kf()&&Xi(!1);let a=XT(t),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=Pl(r));let{pathname:f="/",search:p="",hash:h="",state:m=null,key:v="default"}=r,b=u.useMemo(()=>{let g=YT(f,a);return g==null?null:{pathname:g,search:p,hash:h,state:m,key:v}},[a,f,p,h,m,v]);return b==null?null:u.createElement(Gw.Provider,{value:c},u.createElement(Kw.Provider,{children:n,value:{location:b,navigationType:o}}))}function IH(e){let{children:t,location:n}=e;return EH(eb(t),n)}function eb(e){let t=[];return u.Children.forEach(e,n=>{if(!u.isValidElement(n))return;if(n.type===u.Fragment){t.push.apply(t,eb(n.props.children));return}n.type!==QT&&Xi(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=eb(n.props.children)),t.push(r)}),t}/**
|
|
42
|
+
* React Router DOM v6.3.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 Lm(){return Lm=Object.assign||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},Lm.apply(this,arguments)}function JT(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}const _H=["onClick","reloadDocument","replace","state","target","to"],$H=["aria-current","caseSensitive","className","end","style","to","children"];function MH(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=tH({window:r}));let i=o.current,[s,a]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(a),[i]),u.createElement(kH,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}function TH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const ZT=u.forwardRef(function(t,n){let{onClick:r,reloadDocument:o,replace:i=!1,state:s,target:a,to:c}=t,f=JT(t,_H),p=xH(c),h=OH(c,{replace:i,state:s,target:a});function m(v){r&&r(v),!v.defaultPrevented&&!o&&h(v)}return u.createElement("a",Lm({},f,{href:p,onClick:m,ref:n,target:a}))}),RH=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:c,children:f}=t,p=JT(t,$H),h=Su(),m=qw(c),v=h.pathname,b=m.pathname;o||(v=v.toLowerCase(),b=b.toLowerCase());let g=v===b||!s&&v.startsWith(b)&&v.charAt(b.length)==="/",x=g?r:void 0,C;typeof i=="function"?C=i({isActive:g}):C=[i,g?"active":null].filter(Boolean).join(" ");let P=typeof a=="function"?a({isActive:g}):a;return u.createElement(ZT,Lm({},p,{"aria-current":x,className:C,ref:n,style:P,to:c}),typeof f=="function"?f({isActive:g}):f)});function OH(e,t){let{target:n,replace:r,state:o}=t===void 0?{}:t,i=SH(),s=Su(),a=qw(e);return u.useCallback(c=>{if(c.button===0&&(!n||n==="_self")&&!TH(c)){c.preventDefault();let f=!!r||Hd(s)===Hd(a);i(e,{replace:f,state:o})}},[s,i,a,r,o,n,e])}const LH={black:"#000",white:"#fff"},bf=LH,AH={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"},ac=AH,FH={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"},cc=FH,NH={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"},uc=NH,DH={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"},dc=DH,BH={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"},fc=BH,zH={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"},cd=zH,jH={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"},HH=jH;function oe(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 eR(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var VH=/^((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)-.*))$/,UH=eR(function(e){return VH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function WH(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 GH(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 KH=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(GH(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=WH(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}(),yr="-ms-",Am="-moz-",Yt="-webkit-",tR="comm",Yw="rule",Xw="decl",qH="@import",nR="@keyframes",YH=Math.abs,Cg=String.fromCharCode,XH=Object.assign;function QH(e,t){return(((t<<2^Hr(e,0))<<2^Hr(e,1))<<2^Hr(e,2))<<2^Hr(e,3)}function rR(e){return e.trim()}function JH(e,t){return(e=t.exec(e))?e[0]:e}function Zt(e,t,n){return e.replace(t,n)}function tb(e,t){return e.indexOf(t)}function Hr(e,t){return e.charCodeAt(t)|0}function wf(e,t,n){return e.slice(t,n)}function Ai(e){return e.length}function Qw(e){return e.length}function Ph(e,t){return t.push(e),e}function ZH(e,t){return e.map(t).join("")}var xg=1,iu=1,oR=0,Qr=0,Un=0,Eu="";function Sg(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xg,column:iu,length:s,return:""}}function ud(e,t){return XH(Sg("",null,null,"",null,null,0),e,{length:-e.length},t)}function e8(){return Un}function t8(){return Un=Qr>0?Hr(Eu,--Qr):0,iu--,Un===10&&(iu=1,xg--),Un}function mo(){return Un=Qr<oR?Hr(Eu,Qr++):0,iu++,Un===10&&(iu=1,xg++),Un}function Vi(){return Hr(Eu,Qr)}function Zh(){return Qr}function qf(e,t){return wf(Eu,e,t)}function Cf(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 iR(e){return xg=iu=1,oR=Ai(Eu=e),Qr=0,[]}function sR(e){return Eu="",e}function em(e){return rR(qf(Qr-1,nb(e===91?e+2:e===40?e+1:e)))}function n8(e){for(;(Un=Vi())&&Un<33;)mo();return Cf(e)>2||Cf(Un)>3?"":" "}function r8(e,t){for(;--t&&mo()&&!(Un<48||Un>102||Un>57&&Un<65||Un>70&&Un<97););return qf(e,Zh()+(t<6&&Vi()==32&&mo()==32))}function nb(e){for(;mo();)switch(Un){case e:return Qr;case 34:case 39:e!==34&&e!==39&&nb(Un);break;case 40:e===41&&nb(e);break;case 92:mo();break}return Qr}function o8(e,t){for(;mo()&&e+Un!==47+10;)if(e+Un===42+42&&Vi()===47)break;return"/*"+qf(t,Qr-1)+"*"+Cg(e===47?e:mo())}function i8(e){for(;!Cf(Vi());)mo();return qf(e,Qr)}function s8(e){return sR(tm("",null,null,null,[""],e=iR(e),0,[0],e))}function tm(e,t,n,r,o,i,s,a,c){for(var f=0,p=0,h=s,m=0,v=0,b=0,g=1,x=1,C=1,P=0,w="",E=o,I=i,_=r,k=w;x;)switch(b=P,P=mo()){case 40:if(b!=108&&k.charCodeAt(h-1)==58){tb(k+=Zt(em(P),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:k+=em(P);break;case 9:case 10:case 13:case 32:k+=n8(b);break;case 92:k+=r8(Zh()-1,7);continue;case 47:switch(Vi()){case 42:case 47:Ph(l8(o8(mo(),Zh()),t,n),c);break;default:k+="/"}break;case 123*g:a[f++]=Ai(k)*C;case 125*g:case 59:case 0:switch(P){case 0:case 125:x=0;case 59+p:v>0&&Ai(k)-h&&Ph(v>32?P2(k+";",r,n,h-1):P2(Zt(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(Ph(_=E2(k,t,n,f,p,o,a,w,E=[],I=[],h),i),P===123)if(p===0)tm(k,t,_,_,E,i,h,a,I);else switch(m){case 100:case 109:case 115:tm(e,_,_,r&&Ph(E2(e,_,_,0,0,o,a,w,o,E=[],h),I),o,I,h,a,r?E:I);break;default:tm(k,_,_,_,[""],I,0,a,I)}}f=p=v=0,g=C=1,w=k="",h=s;break;case 58:h=1+Ai(k),v=b;default:if(g<1){if(P==123)--g;else if(P==125&&g++==0&&t8()==125)continue}switch(k+=Cg(P),P*g){case 38:C=p>0?1:(k+="\f",-1);break;case 44:a[f++]=(Ai(k)-1)*C,C=1;break;case 64:Vi()===45&&(k+=em(mo())),m=Vi(),p=h=Ai(w=k+=i8(Zh())),P++;break;case 45:b===45&&Ai(k)==2&&(g=0)}}return i}function E2(e,t,n,r,o,i,s,a,c,f,p){for(var h=o-1,m=o===0?i:[""],v=Qw(m),b=0,g=0,x=0;b<r;++b)for(var C=0,P=wf(e,h+1,h=YH(g=s[b])),w=e;C<v;++C)(w=rR(g>0?m[C]+" "+P:Zt(P,/&\f/g,m[C])))&&(c[x++]=w);return Sg(e,t,n,o===0?Yw:a,c,f,p)}function l8(e,t,n){return Sg(e,t,n,tR,Cg(e8()),wf(e,2,-2),0)}function P2(e,t,n,r){return Sg(e,t,n,Xw,wf(e,0,r),wf(e,r+1,-1),r)}function lR(e,t){switch(QH(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+Am+e+yr+e+e;case 6828:case 4268:return Yt+e+yr+e+e;case 6165:return Yt+e+yr+"flex-"+e+e;case 5187:return Yt+e+Zt(e,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+yr+"flex-$1$2")+e;case 5443:return Yt+e+yr+"flex-item-"+Zt(e,/flex-|-self/,"")+e;case 4675:return Yt+e+yr+"flex-line-pack"+Zt(e,/align-content|flex-|-self/,"")+e;case 5548:return Yt+e+yr+Zt(e,"shrink","negative")+e;case 5292:return Yt+e+yr+Zt(e,"basis","preferred-size")+e;case 6060:return Yt+"box-"+Zt(e,"-grow","")+Yt+e+yr+Zt(e,"grow","positive")+e;case 4554:return Yt+Zt(e,/([^-])(transform)/g,"$1"+Yt+"$2")+e;case 6187:return Zt(Zt(Zt(e,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),e,"")+e;case 5495:case 3959:return Zt(e,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Zt(Zt(e,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+yr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+e+e;case 4095:case 3583:case 4068:case 2532:return Zt(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(Ai(e)-1-t>6)switch(Hr(e,t+1)){case 109:if(Hr(e,t+4)!==45)break;case 102:return Zt(e,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+Am+(Hr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tb(e,"stretch")?lR(Zt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Hr(e,t+1)!==115)break;case 6444:switch(Hr(e,Ai(e)-3-(~tb(e,"!important")&&10))){case 107:return Zt(e,":",":"+Yt)+e;case 101:return Zt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yt+(Hr(e,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+yr+"$2box$3")+e}break;case 5936:switch(Hr(e,t+11)){case 114:return Yt+e+yr+Zt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yt+e+yr+Zt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yt+e+yr+Zt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yt+e+yr+e+e}return e}function Uc(e,t){for(var n="",r=Qw(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function a8(e,t,n,r){switch(e.type){case qH:case Xw:return e.return=e.return||e.value;case tR:return"";case nR:return e.return=e.value+"{"+Uc(e.children,r)+"}";case Yw:e.value=e.props.join(",")}return Ai(n=Uc(e.children,r))?e.return=e.value+"{"+n+"}":""}function c8(e){var t=Qw(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 u8(e){return function(t){t.root||(t=t.return)&&e(t)}}function d8(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xw:e.return=lR(e.value,e.length);break;case nR:return Uc([ud(e,{value:Zt(e.value,"@","@"+Yt)})],r);case Yw:if(e.length)return ZH(e.props,function(o){switch(JH(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Uc([ud(e,{props:[Zt(o,/:(read-\w+)/,":"+Am+"$1")]})],r);case"::placeholder":return Uc([ud(e,{props:[Zt(o,/:(plac\w+)/,":"+Yt+"input-$1")]}),ud(e,{props:[Zt(o,/:(plac\w+)/,":"+Am+"$1")]}),ud(e,{props:[Zt(o,/:(plac\w+)/,yr+"input-$1")]})],r)}return""})}}var f8=function(t,n,r){for(var o=0,i=0;o=i,i=Vi(),o===38&&i===12&&(n[r]=1),!Cf(i);)mo();return qf(t,Qr)},p8=function(t,n){var r=-1,o=44;do switch(Cf(o)){case 0:o===38&&Vi()===12&&(n[r]=1),t[r]+=f8(Qr-1,n,r);break;case 2:t[r]+=em(o);break;case 4:if(o===44){t[++r]=Vi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Cg(o)}while(o=mo());return t},h8=function(t,n){return sR(p8(iR(t),n))},k2=new WeakMap,m8=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&&!k2.get(r))&&!o){k2.set(t,!0);for(var i=[],s=h8(n,i),a=r.props,c=0,f=0;c<s.length;c++)for(var p=0;p<a.length;p++,f++)t.props[f]=i[c]?s[c].replace(/&\f/g,a[p]):a[p]+" "+s[c]}}},g8=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},v8=[d8],y8=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||v8,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),C=1;C<x.length;C++)i[x[C]]=!0;a.push(g)});var c,f=[m8,g8];{var p,h=[a8,u8(function(g){p.insert(g)})],m=c8(f.concat(o,h)),v=function(x){return Uc(s8(x),m)};c=function(x,C,P,w){p=P,v(x?x+"{"+C.styles+"}":C.styles),w&&(b.inserted[C.name]=!0)}}var b={key:n,sheet:new KH({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return b.sheet.hydrate(a),b},rb={},b8={get exports(){return rb},set exports(e){rb=e}},rn={};/** @license React v16.13.1
|
|
51
|
+
* react-is.production.min.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var or=typeof Symbol=="function"&&Symbol.for,Jw=or?Symbol.for("react.element"):60103,Zw=or?Symbol.for("react.portal"):60106,Eg=or?Symbol.for("react.fragment"):60107,Pg=or?Symbol.for("react.strict_mode"):60108,kg=or?Symbol.for("react.profiler"):60114,Ig=or?Symbol.for("react.provider"):60109,_g=or?Symbol.for("react.context"):60110,eC=or?Symbol.for("react.async_mode"):60111,$g=or?Symbol.for("react.concurrent_mode"):60111,Mg=or?Symbol.for("react.forward_ref"):60112,Tg=or?Symbol.for("react.suspense"):60113,w8=or?Symbol.for("react.suspense_list"):60120,Rg=or?Symbol.for("react.memo"):60115,Og=or?Symbol.for("react.lazy"):60116,C8=or?Symbol.for("react.block"):60121,x8=or?Symbol.for("react.fundamental"):60117,S8=or?Symbol.for("react.responder"):60118,E8=or?Symbol.for("react.scope"):60119;function Co(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jw:switch(e=e.type,e){case eC:case $g:case Eg:case kg:case Pg:case Tg:return e;default:switch(e=e&&e.$$typeof,e){case _g:case Mg:case Og:case Rg:case Ig:return e;default:return t}}case Zw:return t}}}function aR(e){return Co(e)===$g}rn.AsyncMode=eC;rn.ConcurrentMode=$g;rn.ContextConsumer=_g;rn.ContextProvider=Ig;rn.Element=Jw;rn.ForwardRef=Mg;rn.Fragment=Eg;rn.Lazy=Og;rn.Memo=Rg;rn.Portal=Zw;rn.Profiler=kg;rn.StrictMode=Pg;rn.Suspense=Tg;rn.isAsyncMode=function(e){return aR(e)||Co(e)===eC};rn.isConcurrentMode=aR;rn.isContextConsumer=function(e){return Co(e)===_g};rn.isContextProvider=function(e){return Co(e)===Ig};rn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jw};rn.isForwardRef=function(e){return Co(e)===Mg};rn.isFragment=function(e){return Co(e)===Eg};rn.isLazy=function(e){return Co(e)===Og};rn.isMemo=function(e){return Co(e)===Rg};rn.isPortal=function(e){return Co(e)===Zw};rn.isProfiler=function(e){return Co(e)===kg};rn.isStrictMode=function(e){return Co(e)===Pg};rn.isSuspense=function(e){return Co(e)===Tg};rn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Eg||e===$g||e===kg||e===Pg||e===Tg||e===w8||typeof e=="object"&&e!==null&&(e.$$typeof===Og||e.$$typeof===Rg||e.$$typeof===Ig||e.$$typeof===_g||e.$$typeof===Mg||e.$$typeof===x8||e.$$typeof===S8||e.$$typeof===E8||e.$$typeof===C8)};rn.typeOf=Co;(function(e){e.exports=rn})(b8);var cR=rb,P8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},uR={};uR[cR.ForwardRef]=P8;uR[cR.Memo]=k8;var I8=!0;function _8(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var dR=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||I8===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},fR=function(t,n,r){dR(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 $8(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 M8={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},T8=/[A-Z]|^ms/g,R8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pR=function(t){return t.charCodeAt(1)===45},I2=function(t){return t!=null&&typeof t!="boolean"},E0=eR(function(e){return pR(e)?e:e.replace(T8,"-$&").toLowerCase()}),_2=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(R8,function(r,o,i){return Fi={name:o,styles:i,next:Fi},o})}return M8[t]!==1&&!pR(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 Fi={name:n.name,styles:n.styles,next:Fi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Fi={name:r.name,styles:r.styles,next:Fi},r=r.next;var o=n.styles+";";return o}return O8(e,t,n)}case"function":{if(e!==void 0){var i=Fi,s=n(e);return Fi=i,xf(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function O8(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]+"}":I2(s)&&(r+=E0(i)+":"+_2(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++)I2(s[a])&&(r+=E0(i)+":"+_2(i,s[a])+";");else{var c=xf(e,t,s);switch(i){case"animation":case"animationName":{r+=E0(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var $2=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Fi,tC=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="";Fi=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]);$2.lastIndex=0;for(var c="",f;(f=$2.exec(i))!==null;)c+="-"+f[1];var p=$8(i)+c;return{name:p,styles:i,next:Fi}},hR=u.createContext(typeof HTMLElement!="undefined"?y8({key:"css"}):null);hR.Provider;var mR=function(t){return u.forwardRef(function(n,r){var o=u.useContext(hR);return t(n,o,r)})},nC=u.createContext({}),M2=Qc["useInsertionEffect"]?Qc["useInsertionEffect"]:u.useLayoutEffect,L8=mR(function(e,t){var n=e.styles,r=tC([n],void 0,u.useContext(nC)),o=u.useRef();return M2(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]),M2(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&fR(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 Pu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tC(t)}var Al=function(){var t=Pu.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_"}}},A8=UH,F8=function(t){return t!=="theme"},T2=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?A8:F8},R2=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},N8=Qc["useInsertionEffect"]?Qc["useInsertionEffect"]:function(t){t()};function D8(e){N8(e)}var B8=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return dR(n,r,o),D8(function(){return fR(n,r,o)}),null},z8=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=R2(t,n,r),c=a||T2(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v<m;v++)h.push(p[v],p[0][v])}var b=mR(function(g,x,C){var P=f&&g.as||o,w="",E=[],I=g;if(g.theme==null){I={};for(var _ in g)I[_]=g[_];I.theme=u.useContext(nC)}typeof g.className=="string"?w=_8(x.registered,E,g.className):g.className!=null&&(w=g.className+" ");var k=tC(h.concat(E),x.registered,I);w+=x.key+"-"+k.name,s!==void 0&&(w+=" "+s);var $=f&&a===void 0?T2(P):c,T={};for(var O in g)f&&O==="as"||$(O)&&(T[O]=g[O]);return T.className=w,T.ref=C,u.createElement(u.Fragment,null,u.createElement(B8,{cache:x,serialized:k,isStringTag:typeof P=="string"}),u.createElement(P,T))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=h,b.__emotion_forwardProp=a,Object.defineProperty(b,"toString",{value:function(){return"."+s}}),b.withComponent=function(g,x){return e(g,S({},n,x,{shouldForwardProp:R2(b,x,!0)})).apply(void 0,h)},b}},j8=["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"],ob=z8.bind();j8.forEach(function(e){ob[e]=ob(e)});const H8=ob;var ue={},V8={get exports(){return ue},set exports(e){ue=e}},U8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",W8=U8,G8=W8;function gR(){}function vR(){}vR.resetWarningCache=gR;var K8=function(){function e(r,o,i,s,a,c){if(c!==G8){var f=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 f.name="Invariant Violation",f}}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:vR,resetWarningCache:gR};return n.PropTypes=n,n};V8.exports=K8();var Fm={},q8={get exports(){return Fm},set exports(e){Fm=e}},dd={};/**
|
|
58
|
+
* @license React
|
|
59
|
+
* react-jsx-runtime.production.min.js
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var O2;function Y8(){if(O2)return dd;O2=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,f){var p,h={},m=null,v=null;f!==void 0&&(m=""+f),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(v=c.ref);for(p in c)r.call(c,p)&&!i.hasOwnProperty(p)&&(h[p]=c[p]);if(a&&a.defaultProps)for(p in c=a.defaultProps,c)h[p]===void 0&&(h[p]=c[p]);return{$$typeof:t,type:a,key:m,ref:v,props:h,_owner:o.current}}return dd.Fragment=n,dd.jsx=s,dd.jsxs=s,dd}var L2;function at(){return L2||(L2=1,function(e){e.exports=Y8()}(q8)),Fm}var R=at();function X8(e){return e==null||Object.keys(e).length===0}function Q8(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(X8(o)?n:o):t;return R.jsx(L8,{styles:r})}/** @license MUI v5.10.2
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/function yR(e,t){return H8(e,t)}const J8=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function P0(e,t){return()=>null}function Pd(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Ho(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return Pd(e)&&Pd(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Pd(t[o])&&o in e&&Pd(e[o])?r[o]=Ho(e[o],t[o],n):r[o]=t[o])}),r}function kl(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 A2={},Z8={get exports(){return A2},set exports(e){A2=e}},on={};/**
|
|
70
|
+
* @license React
|
|
71
|
+
* react-is.production.min.js
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/var rC=Symbol.for("react.element"),oC=Symbol.for("react.portal"),Lg=Symbol.for("react.fragment"),Ag=Symbol.for("react.strict_mode"),Fg=Symbol.for("react.profiler"),Ng=Symbol.for("react.provider"),Dg=Symbol.for("react.context"),eV=Symbol.for("react.server_context"),Bg=Symbol.for("react.forward_ref"),zg=Symbol.for("react.suspense"),jg=Symbol.for("react.suspense_list"),Hg=Symbol.for("react.memo"),Vg=Symbol.for("react.lazy"),tV=Symbol.for("react.offscreen"),bR;bR=Symbol.for("react.module.reference");function Qo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rC:switch(e=e.type,e){case Lg:case Fg:case Ag:case zg:case jg:return e;default:switch(e=e&&e.$$typeof,e){case eV:case Dg:case Bg:case Vg:case Hg:case Ng:return e;default:return t}}case oC:return t}}}on.ContextConsumer=Dg;on.ContextProvider=Ng;on.Element=rC;on.ForwardRef=Bg;on.Fragment=Lg;on.Lazy=Vg;on.Memo=Hg;on.Portal=oC;on.Profiler=Fg;on.StrictMode=Ag;on.Suspense=zg;on.SuspenseList=jg;on.isAsyncMode=function(){return!1};on.isConcurrentMode=function(){return!1};on.isContextConsumer=function(e){return Qo(e)===Dg};on.isContextProvider=function(e){return Qo(e)===Ng};on.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rC};on.isForwardRef=function(e){return Qo(e)===Bg};on.isFragment=function(e){return Qo(e)===Lg};on.isLazy=function(e){return Qo(e)===Vg};on.isMemo=function(e){return Qo(e)===Hg};on.isPortal=function(e){return Qo(e)===oC};on.isProfiler=function(e){return Qo(e)===Fg};on.isStrictMode=function(e){return Qo(e)===Ag};on.isSuspense=function(e){return Qo(e)===zg};on.isSuspenseList=function(e){return Qo(e)===jg};on.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lg||e===Fg||e===Ag||e===zg||e===jg||e===tV||typeof e=="object"&&e!==null&&(e.$$typeof===Vg||e.$$typeof===Hg||e.$$typeof===Ng||e.$$typeof===Dg||e.$$typeof===Bg||e.$$typeof===bR||e.getModuleId!==void 0)};on.typeOf=Qo;(function(e){e.exports=on})(Z8);function fe(e){if(typeof e!="string")throw new Error(kl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ib(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ks(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 nV(e,t){return()=>null}function Vd(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function bn(e){return e&&e.ownerDocument||document}function Jr(e){return bn(e).defaultView||window}function rV(e,t){return()=>null}function su(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const oV=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,Rn=oV;let F2=0;function iV(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(F2+=1,n(`mui-${F2}`))},[t]),r}const N2=Qc["useId"];function Pn(e){if(N2!==void 0){const t=N2();return e!=null?e:t}return iV(e)}function sV(e,t,n,r,o){return null}function Ui({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(f=>{o||s(f)},[]);return[a,c]}function jn(e){const t=u.useRef(e);return Rn(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function St(e,t){return u.useMemo(()=>e==null&&t==null?null:n=>{su(e,n),su(t,n)},[e,t])}let Ug=!0,sb=!1,D2;const lV={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 aV(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&lV[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function cV(e){e.metaKey||e.altKey||e.ctrlKey||(Ug=!0)}function k0(){Ug=!1}function uV(){this.visibilityState==="hidden"&&sb&&(Ug=!0)}function dV(e){e.addEventListener("keydown",cV,!0),e.addEventListener("mousedown",k0,!0),e.addEventListener("pointerdown",k0,!0),e.addEventListener("touchstart",k0,!0),e.addEventListener("visibilitychange",uV,!0)}function fV(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Ug||aV(t)}function Wg(){const e=u.useCallback(o=>{o!=null&&dV(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(sb=!0,window.clearTimeout(D2),D2=window.setTimeout(()=>{sb=!1},100),t.current=!1,!0):!1}function r(o){return fV(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function wR(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let pc;function CR(){if(pc)return pc;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),pc="reverse",e.scrollLeft>0?pc="default":(e.scrollLeft=1,e.scrollLeft===0&&(pc="negative")),document.body.removeChild(e),pc}function B2(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(CR()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const pV=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},xR=pV;function SR(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{n[r]===void 0&&(n[r]=e[r])}),n}function Ie(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>(s&&(i.push(t(s)),n&&n[s]&&i.push(n[s])),i),[]).join(" ")}),r}const z2=e=>e,hV=()=>{let e=z2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=z2}}},mV=hV(),iC=mV,gV={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ke(e,t,n="Mui"){const r=gV[t];return r?`${n}-${r}`:`${iC.generate(e)}-${t}`}function Ve(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ke(e,o,n)}),r}function Ud(e,t){return t?Ho(e,t,{clone:!1}):e}const sC={xs:0,sm:600,md:900,lg:1200,xl:1536},j2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sC[e]}px)`};function bi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||j2;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||j2;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||sC).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 vV(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function yV(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function bV(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 Gg({values:e,breakpoints:t,base:n}){const r=n||bV(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 Sf(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 H2(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Sf(e,n)||r,t&&(o=t(o)),o}function We(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,f=Sf(c,r)||{};return bi(s,a,h=>{let m=H2(f,o,h);return h===m&&typeof h=="string"&&(m=H2(f,o,`${t}${h==="default"?"":fe(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function Fl(...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]?Ud(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function wV(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const CV={m:"margin",p:"padding"},xV={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},V2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},SV=wV(e=>{if(e.length>2)if(V2[e])e=V2[e];else return[e];const[t,n]=e.split(""),r=CV[t],o=xV[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),EV=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],PV=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ER=[...EV,...PV];function Yf(e,t,n,r){var o;const i=(o=Sf(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 PR(e){return Yf(e,"spacing",8)}function Xf(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 kV(e,t){return n=>e.reduce((r,o)=>(r[o]=Xf(t,n),r),{})}function IV(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=SV(n),i=kV(o,r),s=e[n];return bi(e,s,i)}function _V(e,t){const n=PR(e.theme);return Object.keys(e).map(r=>IV(e,t,r,n)).reduce(Ud,{})}function Kg(e){return _V(e,ER)}Kg.propTypes={};Kg.filterProps=ER;function Qf(e){return typeof e!="number"?e:`${e}px solid`}const $V=We({prop:"border",themeKey:"borders",transform:Qf}),MV=We({prop:"borderTop",themeKey:"borders",transform:Qf}),TV=We({prop:"borderRight",themeKey:"borders",transform:Qf}),RV=We({prop:"borderBottom",themeKey:"borders",transform:Qf}),OV=We({prop:"borderLeft",themeKey:"borders",transform:Qf}),LV=We({prop:"borderColor",themeKey:"palette"}),AV=We({prop:"borderTopColor",themeKey:"palette"}),FV=We({prop:"borderRightColor",themeKey:"palette"}),NV=We({prop:"borderBottomColor",themeKey:"palette"}),DV=We({prop:"borderLeftColor",themeKey:"palette"}),lC=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Xf(t,r)});return bi(e,e.borderRadius,n)}return null};lC.propTypes={};lC.filterProps=["borderRadius"];const BV=Fl($V,MV,TV,RV,OV,LV,AV,FV,NV,DV,lC),kR=BV,zV=We({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),jV=We({prop:"display"}),HV=We({prop:"overflow"}),VV=We({prop:"textOverflow"}),UV=We({prop:"visibility"}),WV=We({prop:"whiteSpace"}),IR=Fl(zV,jV,HV,VV,UV,WV),GV=We({prop:"flexBasis"}),KV=We({prop:"flexDirection"}),qV=We({prop:"flexWrap"}),YV=We({prop:"justifyContent"}),XV=We({prop:"alignItems"}),QV=We({prop:"alignContent"}),JV=We({prop:"order"}),ZV=We({prop:"flex"}),e7=We({prop:"flexGrow"}),t7=We({prop:"flexShrink"}),n7=We({prop:"alignSelf"}),r7=We({prop:"justifyItems"}),o7=We({prop:"justifySelf"}),i7=Fl(GV,KV,qV,YV,XV,QV,JV,ZV,e7,t7,n7,r7,o7),_R=i7,aC=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yf(e.theme,"spacing",8),n=r=>({gap:Xf(t,r)});return bi(e,e.gap,n)}return null};aC.propTypes={};aC.filterProps=["gap"];const cC=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yf(e.theme,"spacing",8),n=r=>({columnGap:Xf(t,r)});return bi(e,e.columnGap,n)}return null};cC.propTypes={};cC.filterProps=["columnGap"];const uC=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yf(e.theme,"spacing",8),n=r=>({rowGap:Xf(t,r)});return bi(e,e.rowGap,n)}return null};uC.propTypes={};uC.filterProps=["rowGap"];const s7=We({prop:"gridColumn"}),l7=We({prop:"gridRow"}),a7=We({prop:"gridAutoFlow"}),c7=We({prop:"gridAutoColumns"}),u7=We({prop:"gridAutoRows"}),d7=We({prop:"gridTemplateColumns"}),f7=We({prop:"gridTemplateRows"}),p7=We({prop:"gridTemplateAreas"}),h7=We({prop:"gridArea"}),m7=Fl(aC,cC,uC,s7,l7,a7,c7,u7,d7,f7,p7,h7),$R=m7,g7=We({prop:"color",themeKey:"palette"}),v7=We({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),y7=We({prop:"backgroundColor",themeKey:"palette"}),b7=Fl(g7,v7,y7),MR=b7,w7=We({prop:"position"}),C7=We({prop:"zIndex",themeKey:"zIndex"}),x7=We({prop:"top"}),S7=We({prop:"right"}),E7=We({prop:"bottom"}),P7=We({prop:"left"}),TR=Fl(w7,C7,x7,S7,E7,P7),k7=We({prop:"boxShadow",themeKey:"shadows"}),RR=k7;function Nl(e){return e<=1&&e!==0?`${e*100}%`:e}const I7=We({prop:"width",transform:Nl}),OR=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])||sC[n]||Nl(n)}};return bi(e,e.maxWidth,t)}return null};OR.filterProps=["maxWidth"];const _7=We({prop:"minWidth",transform:Nl}),$7=We({prop:"height",transform:Nl}),M7=We({prop:"maxHeight",transform:Nl}),T7=We({prop:"minHeight",transform:Nl});We({prop:"size",cssProperty:"width",transform:Nl});We({prop:"size",cssProperty:"height",transform:Nl});const R7=We({prop:"boxSizing"}),O7=Fl(I7,OR,_7,$7,M7,T7,R7),LR=O7,L7=We({prop:"fontFamily",themeKey:"typography"}),A7=We({prop:"fontSize",themeKey:"typography"}),F7=We({prop:"fontStyle",themeKey:"typography"}),N7=We({prop:"fontWeight",themeKey:"typography"}),D7=We({prop:"letterSpacing"}),B7=We({prop:"textTransform"}),z7=We({prop:"lineHeight"}),j7=We({prop:"textAlign"}),H7=We({prop:"typography",cssProperty:!1,themeKey:"typography"}),V7=Fl(H7,L7,A7,F7,N7,D7,z7,j7,B7),AR=V7,U2={borders:kR.filterProps,display:IR.filterProps,flexbox:_R.filterProps,grid:$R.filterProps,positions:TR.filterProps,palette:MR.filterProps,shadows:RR.filterProps,sizing:LR.filterProps,spacing:Kg.filterProps,typography:AR.filterProps},FR={borders:kR,display:IR,flexbox:_R,grid:$R,positions:TR,palette:MR,shadows:RR,sizing:LR,spacing:Kg,typography:AR},U7=Object.keys(U2).reduce((e,t)=>(U2[t].forEach(n=>{e[n]=FR[t]}),e),{});function W7(...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 G7(e,t){return typeof e=="function"?e(t):e}function K7(e=FR){const t=Object.keys(e).reduce((o,i)=>(e[i].filterProps.forEach(s=>{o[s]=e[i]}),o),{});function n(o,i,s){const a={[o]:i,theme:s},c=t[o];return c?c(a):{[o]:i}}function r(o){const{sx:i,theme:s={}}=o||{};if(!i)return null;function a(c){let f=c;if(typeof c=="function")f=c(s);else if(typeof c!="object")return c;if(!f)return null;const p=vV(s.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(v=>{const b=G7(f[v],s);if(b!=null)if(typeof b=="object")if(t[v])m=Ud(m,n(v,b,s));else{const g=bi({theme:s},b,x=>({[v]:x}));W7(g,b)?m[v]=r({sx:b,theme:s}):m=Ud(m,g)}else m=Ud(m,n(v,b,s))}),yV(h,m)}return Array.isArray(i)?i.map(a):a(i)}return r}const NR=K7();NR.filterProps=["sx"];const DR=NR,q7=["sx"],Y7=e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach(n=>{U7[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function dC(e){const{sx:t}=e,n=oe(e,q7),{systemProps:r,otherProps:o}=Y7(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Pd(a)?S({},r,a):r}:i=S({},r,t),S({},o,{sx:i})}function BR(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=BR(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=BR(e))&&(r&&(r+=" "),r+=t);return r}const X7=["values","unit","step"],Q7=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function J7(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=oe(e,X7),i=Q7(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 f(m,v){const b=s.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:v)-r/100}${n})`}function p(m){return s.indexOf(m)+1<s.length?f(m,s[s.indexOf(m)+1]):a(m)}function h(m){const v=s.indexOf(m);return v===0?a(s[1]):v===s.length-1?c(s[v]):f(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return S({keys:s,values:i,up:a,down:c,between:f,only:p,not:h,unit:n},o)}const Z7={borderRadius:4},eU=Z7;function tU(e=8){if(e.mui)return e;const t=PR({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}const nU=["breakpoints","palette","spacing","shape"];function fC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=oe(e,nU),a=J7(n),c=tU(o);let f=Ho({breakpoints:a,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:c,shape:S({},eU,i)},s);return f=t.reduce((p,h)=>Ho(p,h),f),f}const rU=u.createContext(null),zR=rU;function jR(){return u.useContext(zR)}const oU=typeof Symbol=="function"&&Symbol.for,iU=oU?Symbol.for("mui.nested"):"__THEME_NESTED__";function sU(e,t){return typeof t=="function"?t(e):S({},e,t)}function lU(e){const{children:t,theme:n}=e,r=jR(),o=u.useMemo(()=>{const i=r===null?n:sU(r,n);return i!=null&&(i[iU]=r!==null),i},[n,r]);return R.jsx(zR.Provider,{value:o,children:t})}function aU(e){return Object.keys(e).length===0}function pC(e=null){const t=jR();return!t||aU(t)?e:t}const cU=fC();function qg(e=cU){return pC(e)}const uU=["className","component"];function dU(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r,styleFunctionSx:o=DR}=e,i=yR("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(o);return u.forwardRef(function(c,f){const p=qg(t),h=dC(c),{className:m,component:v="div"}=h,b=oe(h,uU);return R.jsx(i,S({as:v,ref:f,className:he(m,r?r(n):n),theme:p},b))})}const fU=["variant"];function W2(e){return e.length===0}function HR(e){const{variant:t}=e,n=oe(e,fU);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=W2(r)?e[o]:fe(e[o]):r+=`${W2(r)?o:fe(o)}${fe(e[o].toString())}`}),r}const pU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],hU=["theme"],mU=["theme"];function fd(e){return Object.keys(e).length===0}function gU(e){return typeof e=="string"&&e.charCodeAt(0)>96}const vU=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,yU=(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=HR(o.props);r[i]=o.style}),r},bU=(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(f=>{let p=!0;Object.keys(f.props).forEach(h=>{s[h]!==f.props[h]&&e[h]!==f.props[h]&&(p=!1)}),p&&a.push(t[HR(f.props)])}),a};function Wd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wU=fC();function CU(e={}){const{defaultTheme:t=wU,rootShouldForwardProp:n=Wd,slotShouldForwardProp:r=Wd,styleFunctionSx:o=DR}=e,i=s=>{const a=fd(s.theme)?t:s.theme;return o(S({},s,{theme:a}))};return i.__mui_systemSx=!0,(s,a={})=>{J8(s,E=>E.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m}=a,v=oe(a,pU),b=p!==void 0?p:f&&f!=="Root"||!1,g=h||!1;let x,C=Wd;f==="Root"?C=n:f?C=r:gU(s)&&(C=void 0);const P=yR(s,S({shouldForwardProp:C,label:x},v)),w=(E,...I)=>{const _=I?I.map(O=>typeof O=="function"&&O.__emotion_real!==O?N=>{let{theme:V}=N,j=oe(N,hU);return O(S({theme:fd(V)?t:V},j))}:O):[];let k=E;c&&m&&_.push(O=>{const N=fd(O.theme)?t:O.theme,V=vU(c,N);if(V){const j={};return Object.entries(V).forEach(([L,D])=>{j[L]=typeof D=="function"?D(S({},O,{theme:N})):D}),m(O,j)}return null}),c&&!b&&_.push(O=>{const N=fd(O.theme)?t:O.theme;return bU(O,yU(c,N),N,c)}),g||_.push(i);const $=_.length-I.length;if(Array.isArray(E)&&$>0){const O=new Array($).fill("");k=[...E,...O],k.raw=[...E.raw,...O]}else typeof E=="function"&&E.__emotion_real!==E&&(k=O=>{let{theme:N}=O,V=oe(O,mU);return E(S({theme:fd(N)?t:N},V))});return P(k,..._)};return P.withConfig&&(w.withConfig=P.withConfig),w}}function VR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:SR(t.components[n].defaultProps,r)}function xU({props:e,name:t,defaultTheme:n}){const r=qg(n);return VR({theme:r,name:t,props:e})}function hC(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function SU(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 xa(e){if(e.type)return e;if(e.charAt(0)==="#")return xa(SU(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(kl(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(kl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Yg(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 EU(e){e=xa(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(f,p=(f+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])),Yg({type:a,values:c})}function G2(e){e=xa(e);let t=e.type==="hsl"?xa(EU(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:cs((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function PU(e,t){const n=G2(e),r=G2(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rt(e,t){return e=xa(e),t=hC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Yg(e)}function Is(e,t){if(e=xa(e),t=hC(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 Yg(e)}function _s(e,t){if(e=xa(e),t=hC(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 Yg(e)}function kU(e){const t=qg();return R.jsx(nC.Provider,{value:typeof t=="object"?t:{},children:e.children})}function IU(e){const{children:t,theme:n}=e;return R.jsx(lU,{theme:n,children:R.jsx(kU,{children:t})})}function Il(e){return typeof e=="string"}function kd(e,t={},n){return Il(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}function _U(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 lb(e,t){return typeof e=="function"?e(t):e}function K2(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 $U(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=he(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=S({},n,o,r);return v.length>0&&(g.className=v),Object.keys(b).length>0&&(g.style=b),{props:g,internalRef:void 0}}const s=_U(S({},o,r)),a=K2(r),c=K2(o),f=t(s),p=he(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=S({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},f,n,c,a);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}const MU=["elementType","externalSlotProps","ownerState"];function Ef(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=oe(e,MU),s=lb(r,o),{props:a,internalRef:c}=$U(S({},i,{externalSlotProps:s})),f=St(c,St(s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref));return kd(n,S({},a,{ref:f}),o)}function q2(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function UR(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:c,getOptionLabel:f})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=q2(p));const h=a.filter(m=>{let v=(i||f)(m);return n&&(v=v.toLowerCase()),t&&(v=q2(v)),o==="start"?v.indexOf(p)===0:v.indexOf(p)>-1});return typeof r=="number"?h.slice(0,r):h}}function I0(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const TU=UR(),Y2=5;function RU(e){const{autoComplete:t=!1,autoHighlight:n=!1,autoSelect:r=!1,blurOnSelect:o=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:s=!1,componentName:a="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:v=!1,filterOptions:b=TU,filterSelectedOptions:g=!1,freeSolo:x=!1,getOptionDisabled:C,getOptionLabel:P=ve=>{var ge;return(ge=ve.label)!=null?ge:ve},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:I,includeInputInList:_=!1,inputValue:k,isOptionEqualToValue:$=(ve,ge)=>ve===ge,multiple:T=!1,onChange:O,onClose:N,onHighlightChange:V,onInputChange:j,onOpen:L,open:D,openOnFocus:B=!1,options:W,readOnly:A=!1,selectOnFocus:z=!e.freeSolo,value:G}=e,q=Pn(I);let X=P;X=ve=>{const ge=P(ve);return typeof ge!="string"?String(ge):ge};const ie=u.useRef(!1),ee=u.useRef(!0),se=u.useRef(null),ae=u.useRef(null),[we,de]=u.useState(null),[le,te]=u.useState(-1),be=n?0:-1,_e=u.useRef(be),[Se,Fe]=Ui({controlled:G,default:c,name:a}),[Re,Ae]=Ui({controlled:k,default:"",name:a,state:"inputValue"}),[Oe,Ze]=u.useState(!1),yt=u.useCallback((ve,ge)=>{if(!(T?Se.length<ge.length:ge!==null)&&!i)return;let ft;if(T)ft="";else if(ge==null)ft="";else{const Vt=X(ge);ft=typeof Vt=="string"?Vt:""}Re!==ft&&(Ae(ft),j&&j(ve,ft,"reset"))},[X,Re,T,j,Ae,i,Se]),tt=u.useRef();u.useEffect(()=>{const ve=Se!==tt.current;tt.current=Se,!(Oe&&!ve)&&(x&&!ve||yt(null,Se))},[Se,yt,Oe,tt,x]);const[et,Pt]=Ui({controlled:D,default:!1,name:a,state:"open"}),[mt,lt]=u.useState(!0),It=!T&&Se!=null&&Re===X(Se),Xe=et&&!A,Te=Xe?b(W.filter(ve=>!(g&&(T?Se:[Se]).some(ge=>ge!==null&&$(ve,ge)))),{inputValue:It&&mt?"":Re,getOptionLabel:X}):[],ne=et&&Te.length>0&&!A,ke=jn(ve=>{ve===-1?se.current.focus():we.querySelector(`[data-tag-index="${ve}"]`).focus()});u.useEffect(()=>{T&&le>Se.length-1&&(te(-1),ke(-1))},[Se,T,le,ke]);function Ee(ve,ge){if(!ae.current||ve===-1)return-1;let nt=ve;for(;;){if(ge==="next"&&nt===Te.length||ge==="previous"&&nt===-1)return-1;const ft=ae.current.querySelector(`[data-option-index="${nt}"]`),Vt=m?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&!ft.hasAttribute("tabindex")||Vt)nt+=ge==="next"?1:-1;else return nt}}const $e=jn(({event:ve,index:ge,reason:nt="auto"})=>{if(_e.current=ge,ge===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${q}-option-${ge}`),V&&V(ve,ge===-1?null:Te[ge],nt),!ae.current)return;const ft=ae.current.querySelector('[role="option"].Mui-focused');ft&&(ft.classList.remove("Mui-focused"),ft.classList.remove("Mui-focusVisible"));const Vt=ae.current.parentElement.querySelector('[role="listbox"]');if(!Vt)return;if(ge===-1){Vt.scrollTop=0;return}const un=ae.current.querySelector(`[data-option-index="${ge}"]`);if(un&&(un.classList.add("Mui-focused"),nt==="keyboard"&&un.classList.add("Mui-focusVisible"),Vt.scrollHeight>Vt.clientHeight&&nt!=="mouse")){const wn=un,Fr=Vt.clientHeight+Vt.scrollTop,Ga=wn.offsetTop+wn.offsetHeight;Ga>Fr?Vt.scrollTop=Ga-Vt.clientHeight:wn.offsetTop-wn.offsetHeight*(w?1.3:0)<Vt.scrollTop&&(Vt.scrollTop=wn.offsetTop-wn.offsetHeight*(w?1.3:0))}}),Ge=jn(({event:ve,diff:ge,direction:nt="next",reason:ft="auto"})=>{if(!Xe)return;const un=Ee((()=>{const wn=Te.length-1;if(ge==="reset")return be;if(ge==="start")return 0;if(ge==="end")return wn;const Fr=_e.current+ge;return Fr<0?Fr===-1&&_?-1:v&&_e.current!==-1||Math.abs(ge)>1?0:wn:Fr>wn?Fr===wn+1&&_?-1:v||Math.abs(ge)>1?wn:0:Fr})(),nt);if($e({index:un,reason:ft,event:ve}),t&&ge!=="reset")if(un===-1)se.current.value=Re;else{const wn=X(Te[un]);se.current.value=wn,wn.toLowerCase().indexOf(Re.toLowerCase())===0&&Re.length>0&&se.current.setSelectionRange(Re.length,wn.length)}}),Ct=u.useCallback(()=>{if(!Xe)return;const ve=T?Se[0]:Se;if(Te.length===0||ve==null){Ge({diff:"reset"});return}if(ae.current){if(ve!=null){const ge=Te[_e.current];if(T&&ge&&I0(Se,ft=>$(ge,ft))!==-1)return;const nt=I0(Te,ft=>$(ft,ve));nt===-1?Ge({diff:"reset"}):$e({index:nt});return}if(_e.current>=Te.length-1){$e({index:Te.length-1});return}$e({index:_e.current})}},[Te.length,T?!1:Se,g,Ge,$e,Xe,Re,T]),jt=jn(ve=>{su(ae,ve),ve&&Ct()});u.useEffect(()=>{Ct()},[Ct]);const Ht=ve=>{et||(Pt(!0),lt(!0),L&&L(ve))},Jn=(ve,ge)=>{et&&(Pt(!1),N&&N(ve,ge))},hn=(ve,ge,nt,ft)=>{if(T){if(Se.length===ge.length&&Se.every((Vt,un)=>Vt===ge[un]))return}else if(Se===ge)return;O&&O(ve,ge,nt,ft),Fe(ge)},Kn=u.useRef(!1),Pr=(ve,ge,nt="selectOption",ft="options")=>{let Vt=nt,un=ge;if(T){un=Array.isArray(Se)?Se.slice():[];const wn=I0(un,Fr=>$(ge,Fr));wn===-1?un.push(ge):ft!=="freeSolo"&&(un.splice(wn,1),Vt="removeOption")}yt(ve,un),hn(ve,un,Vt,{option:ge}),!p&&(!ve||!ve.ctrlKey&&!ve.metaKey)&&Jn(ve,Vt),(o===!0||o==="touch"&&Kn.current||o==="mouse"&&!Kn.current)&&se.current.blur()};function mn(ve,ge){if(ve===-1)return-1;let nt=ve;for(;;){if(ge==="next"&&nt===Se.length||ge==="previous"&&nt===-1)return-1;const ft=we.querySelector(`[data-tag-index="${nt}"]`);if(!ft||!ft.hasAttribute("tabindex")||ft.disabled||ft.getAttribute("aria-disabled")==="true")nt+=ge==="next"?1:-1;else return nt}}const sn=(ve,ge)=>{if(!T)return;Re===""&&Jn(ve,"toggleInput");let nt=le;le===-1?Re===""&&ge==="previous"&&(nt=Se.length-1):(nt+=ge==="next"?1:-1,nt<0&&(nt=0),nt===Se.length&&(nt=-1)),nt=mn(nt,ge),te(nt),ke(nt)},en=ve=>{ie.current=!0,Ae(""),j&&j(ve,"","clear"),hn(ve,T?[]:null,"clear")},So=ve=>ge=>{if(ve.onKeyDown&&ve.onKeyDown(ge),!ge.defaultMuiPrevented&&(le!==-1&&["ArrowLeft","ArrowRight"].indexOf(ge.key)===-1&&(te(-1),ke(-1)),ge.which!==229))switch(ge.key){case"Home":Xe&&E&&(ge.preventDefault(),Ge({diff:"start",direction:"next",reason:"keyboard",event:ge}));break;case"End":Xe&&E&&(ge.preventDefault(),Ge({diff:"end",direction:"previous",reason:"keyboard",event:ge}));break;case"PageUp":ge.preventDefault(),Ge({diff:-Y2,direction:"previous",reason:"keyboard",event:ge}),Ht(ge);break;case"PageDown":ge.preventDefault(),Ge({diff:Y2,direction:"next",reason:"keyboard",event:ge}),Ht(ge);break;case"ArrowDown":ge.preventDefault(),Ge({diff:1,direction:"next",reason:"keyboard",event:ge}),Ht(ge);break;case"ArrowUp":ge.preventDefault(),Ge({diff:-1,direction:"previous",reason:"keyboard",event:ge}),Ht(ge);break;case"ArrowLeft":sn(ge,"previous");break;case"ArrowRight":sn(ge,"next");break;case"Enter":if(_e.current!==-1&&Xe){const nt=Te[_e.current],ft=C?C(nt):!1;if(ge.preventDefault(),ft)return;Pr(ge,nt,"selectOption"),t&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else x&&Re!==""&&It===!1&&(T&&ge.preventDefault(),Pr(ge,Re,"createOption","freeSolo"));break;case"Escape":Xe?(ge.preventDefault(),ge.stopPropagation(),Jn(ge,"escape")):s&&(Re!==""||T&&Se.length>0)&&(ge.preventDefault(),ge.stopPropagation(),en(ge));break;case"Backspace":if(T&&!A&&Re===""&&Se.length>0){const nt=le===-1?Se.length-1:le,ft=Se.slice();ft.splice(nt,1),hn(ge,ft,"removeOption",{option:Se[nt]})}break}},Ei=ve=>{Ze(!0),B&&!ie.current&&Ht(ve)},Ar=ve=>{if(ae.current!==null&&ae.current.parentElement.contains(document.activeElement)){se.current.focus();return}Ze(!1),ee.current=!0,ie.current=!1,r&&_e.current!==-1&&Xe?Pr(ve,Te[_e.current],"blur"):r&&x&&Re!==""?Pr(ve,Re,"blur","freeSolo"):i&&yt(ve,Se),Jn(ve,"blur")},ei=ve=>{const ge=ve.target.value;Re!==ge&&(Ae(ge),lt(!1),j&&j(ve,ge,"input")),ge===""?!f&&!T&&hn(ve,null,"clear"):Ht(ve)},Eo=ve=>{$e({event:ve,index:Number(ve.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Lt=()=>{Kn.current=!0},Nn=ve=>{const ge=Number(ve.currentTarget.getAttribute("data-option-index"));Pr(ve,Te[ge],"selectOption"),Kn.current=!1},ce=ve=>ge=>{const nt=Se.slice();nt.splice(ve,1),hn(ge,nt,"removeOption",{option:Se[ve]})},me=ve=>{et?Jn(ve,"toggleInput"):Ht(ve)},ze=ve=>{ve.target.getAttribute("id")!==q&&ve.preventDefault()},gt=()=>{se.current.focus(),z&&ee.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),ee.current=!1},bt=ve=>{(Re===""||!et)&&me(ve)};let Be=x&&Re.length>0;Be=Be||(T?Se.length>0:Se!==null);let ct=Te;return w&&(ct=Te.reduce((ve,ge,nt)=>{const ft=w(ge);return ve.length>0&&ve[ve.length-1].group===ft?ve[ve.length-1].options.push(ge):ve.push({key:nt,index:nt,group:ft,options:[ge]}),ve},[])),h&&Oe&&Ar(),{getRootProps:(ve={})=>S({"aria-owns":ne?`${q}-listbox`:null},ve,{onKeyDown:So(ve),onMouseDown:ze,onClick:gt}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Re,onBlur:Ar,onFocus:Ei,onChange:ei,onMouseDown:bt,"aria-activedescendant":Xe?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ne?`${q}-listbox`:void 0,"aria-expanded":ne,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox"}),getClearProps:()=>({tabIndex:-1,onClick:en}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:me}),getTagProps:({index:ve})=>S({key:ve,"data-tag-index":ve,tabIndex:-1},!A&&{onDelete:ce(ve)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:jt,onMouseDown:ve=>{ve.preventDefault()}}),getOptionProps:({index:ve,option:ge})=>{const nt=(T?Se:[Se]).some(Vt=>Vt!=null&&$(ge,Vt)),ft=C?C(ge):!1;return{key:X(ge),tabIndex:-1,role:"option",id:`${q}-option-${ve}`,onMouseOver:Eo,onClick:Nn,onTouchStart:Lt,"data-option-index":ve,"aria-disabled":ft,"aria-selected":nt}},id:q,inputValue:Re,value:Se,dirty:Be,popupOpen:Xe,focused:Oe||le!==-1,anchorEl:we,setAnchorEl:de,focusedTag:le,groupedOptions:ct}}function OU(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=xR({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:c=r}=s?i:e,f=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:f}}function LU(e){return Ke("BaseBadge",e)}Ve("BaseBadge",["root","badge","invisible"]);const AU=["badgeContent","component","children","components","componentsProps","invisible","max","showZero"],FU=e=>{const{invisible:t}=e;return Ie({root:["root"],badge:["badge",t&&"invisible"]},LU,void 0)},NU=u.forwardRef(function(t,n){const{component:r,children:o,components:i={},componentsProps:s={},max:a=99,showZero:c=!1}=t,f=oe(t,AU),{badgeContent:p,max:h,displayValue:m,invisible:v}=OU(S({},t,{max:a})),b=S({},t,{badgeContent:p,invisible:v,max:h,showZero:c}),g=FU(b),x=r||i.Root||"span",C=Ef({elementType:x,externalSlotProps:s.root,externalForwardedProps:f,additionalProps:{ref:n},ownerState:b,className:g.root}),P=i.Badge||"span",w=Ef({elementType:P,externalSlotProps:s.badge,ownerState:b,className:g.badge});return R.jsxs(x,S({},C,{children:[o,R.jsx(P,S({},w,{children:m}))]}))}),DU=NU;function X2(e){return e.substring(2).toLowerCase()}function BU(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function WR(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),f=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=St(t.ref,a),h=jn(b=>{const g=f.current;f.current=!1;const x=bn(a.current);if(!c.current||!a.current||"clientX"in b&&BU(b,x))return;if(s.current){s.current=!1;return}let C;b.composedPath?C=b.composedPath().indexOf(a.current)>-1:C=!x.documentElement.contains(b.target)||a.current.contains(b.target),!C&&(n||!g)&&o(b)}),m=b=>g=>{f.current=!0;const x=t.props[b];x&&x(g)},v={ref:p};return i!==!1&&(v[i]=m(i)),u.useEffect(()=>{if(i!==!1){const b=X2(i),g=bn(a.current),x=()=>{s.current=!0};return g.addEventListener(b,h),g.addEventListener("touchmove",x),()=>{g.removeEventListener(b,h),g.removeEventListener("touchmove",x)}}},[h,i]),r!==!1&&(v[r]=m(r)),u.useEffect(()=>{if(r!==!1){const b=X2(r),g=bn(a.current);return g.addEventListener(b,h),()=>{g.removeEventListener(b,h)}}},[h,r]),R.jsx(u.Fragment,{children:u.cloneElement(t,v)})}var Yr="top",Ko="bottom",qo="right",Xr="left",mC="auto",Jf=[Yr,Ko,qo,Xr],lu="start",Pf="end",zU="clippingParents",GR="viewport",pd="popper",jU="reference",Q2=Jf.reduce(function(e,t){return e.concat([t+"-"+lu,t+"-"+Pf])},[]),KR=[].concat(Jf,[mC]).reduce(function(e,t){return e.concat([t,t+"-"+lu,t+"-"+Pf])},[]),HU="beforeRead",VU="read",UU="afterRead",WU="beforeMain",GU="main",KU="afterMain",qU="beforeWrite",YU="write",XU="afterWrite",QU=[HU,VU,UU,WU,GU,KU,qU,YU,XU];function Qi(e){return e?(e.nodeName||"").toLowerCase():null}function Jo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sa(e){var t=Jo(e).Element;return e instanceof t||e instanceof Element}function Vo(e){var t=Jo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gC(e){if(typeof ShadowRoot=="undefined")return!1;var t=Jo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JU(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];!Vo(i)||!Qi(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 ZU(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,f){return c[f]="",c},{});!Vo(o)||!Qi(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const eW={name:"applyStyles",enabled:!0,phase:"write",fn:JU,effect:ZU,requires:["computeStyles"]};function Wi(e){return e.split("-")[0]}var fa=Math.max,Nm=Math.min,au=Math.round;function ab(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qR(){return!/^((?!chrome|android).)*safari/i.test(ab())}function cu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Vo(e)&&(o=e.offsetWidth>0&&au(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&au(r.height)/e.offsetHeight||1);var s=Sa(e)?Jo(e):window,a=s.visualViewport,c=!qR()&&n,f=(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:f+h,bottom:p+m,left:f,x:f,y:p}}function vC(e){var t=cu(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 YR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $s(e){return Jo(e).getComputedStyle(e)}function tW(e){return["table","td","th"].indexOf(Qi(e))>=0}function Dl(e){return((Sa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xg(e){return Qi(e)==="html"?e:e.assignedSlot||e.parentNode||(gC(e)?e.host:null)||Dl(e)}function J2(e){return!Vo(e)||$s(e).position==="fixed"?null:e.offsetParent}function nW(e){var t=/firefox/i.test(ab()),n=/Trident/i.test(ab());if(n&&Vo(e)){var r=$s(e);if(r.position==="fixed")return null}var o=Xg(e);for(gC(o)&&(o=o.host);Vo(o)&&["html","body"].indexOf(Qi(o))<0;){var i=$s(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 Zf(e){for(var t=Jo(e),n=J2(e);n&&tW(n)&&$s(n).position==="static";)n=J2(n);return n&&(Qi(n)==="html"||Qi(n)==="body"&&$s(n).position==="static")?t:n||nW(e)||t}function yC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gd(e,t,n){return fa(e,Nm(t,n))}function rW(e,t,n){var r=Gd(e,t,n);return r>n?n:r}function XR(){return{top:0,right:0,bottom:0,left:0}}function QR(e){return Object.assign({},XR(),e)}function JR(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var oW=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,QR(typeof t!="number"?t:JR(t,Jf))};function iW(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Wi(n.placement),c=yC(a),f=[Xr,qo].indexOf(a)>=0,p=f?"height":"width";if(!(!i||!s)){var h=oW(o.padding,n),m=vC(i),v=c==="y"?Yr:Xr,b=c==="y"?Ko:qo,g=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],x=s[c]-n.rects.reference[c],C=Zf(i),P=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,w=g/2-x/2,E=h[v],I=P-m[p]-h[b],_=P/2-m[p]/2+w,k=Gd(E,_,I),$=c;n.modifiersData[r]=(t={},t[$]=k,t.centerOffset=k-_,t)}}function sW(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)||YR(t.elements.popper,o)&&(t.elements.arrow=o))}const lW={name:"arrow",enabled:!0,phase:"main",fn:iW,effect:sW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uu(e){return e.split("-")[1]}var aW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:au(t*o)/o||0,y:au(n*o)/o||0}}function Z2(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,b=s.y,g=b===void 0?0:b,x=typeof p=="function"?p({x:v,y:g}):{x:v,y:g};v=x.x,g=x.y;var C=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),w=Xr,E=Yr,I=window;if(f){var _=Zf(n),k="clientHeight",$="clientWidth";if(_===Jo(n)&&(_=Dl(n),$s(_).position!=="static"&&a==="absolute"&&(k="scrollHeight",$="scrollWidth")),_=_,o===Yr||(o===Xr||o===qo)&&i===Pf){E=Ko;var T=h&&_===I&&I.visualViewport?I.visualViewport.height:_[k];g-=T-r.height,g*=c?1:-1}if(o===Xr||(o===Yr||o===Ko)&&i===Pf){w=qo;var O=h&&_===I&&I.visualViewport?I.visualViewport.width:_[$];v-=O-r.width,v*=c?1:-1}}var N=Object.assign({position:a},f&&aW),V=p===!0?cW({x:v,y:g}):{x:v,y:g};if(v=V.x,g=V.y,c){var j;return Object.assign({},N,(j={},j[E]=P?"0":"",j[w]=C?"0":"",j.transform=(I.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",j))}return Object.assign({},N,(t={},t[E]=P?g+"px":"",t[w]=C?v+"px":"",t.transform="",t))}function uW(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,f={placement:Wi(t.placement),variation:uu(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,Z2(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z2(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uW,data:{}};var kh={passive:!0};function fW(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=Jo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,kh)}),a&&c.addEventListener("resize",n.update,kh),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,kh)}),a&&c.removeEventListener("resize",n.update,kh)}}const pW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fW,data:{}};var hW={left:"right",right:"left",bottom:"top",top:"bottom"};function nm(e){return e.replace(/left|right|bottom|top/g,function(t){return hW[t]})}var mW={start:"end",end:"start"};function eI(e){return e.replace(/start|end/g,function(t){return mW[t]})}function bC(e){var t=Jo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wC(e){return cu(Dl(e)).left+bC(e).scrollLeft}function gW(e,t){var n=Jo(e),r=Dl(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var f=qR();(f||!f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+wC(e),y:c}}function vW(e){var t,n=Dl(e),r=bC(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=fa(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=fa(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wC(e),c=-r.scrollTop;return $s(o||n).direction==="rtl"&&(a+=fa(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function CC(e){var t=$s(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ZR(e){return["html","body","#document"].indexOf(Qi(e))>=0?e.ownerDocument.body:Vo(e)&&CC(e)?e:ZR(Xg(e))}function Kd(e,t){var n;t===void 0&&(t=[]);var r=ZR(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Jo(r),s=o?[i].concat(i.visualViewport||[],CC(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Kd(Xg(s)))}function cb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yW(e,t){var n=cu(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 tI(e,t,n){return t===GR?cb(gW(e,n)):Sa(t)?yW(t,n):cb(vW(Dl(e)))}function bW(e){var t=Kd(Xg(e)),n=["absolute","fixed"].indexOf($s(e).position)>=0,r=n&&Vo(e)?Zf(e):e;return Sa(r)?t.filter(function(o){return Sa(o)&&YR(o,r)&&Qi(o)!=="body"}):[]}function wW(e,t,n,r){var o=t==="clippingParents"?bW(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,f){var p=tI(e,f,r);return c.top=fa(p.top,c.top),c.right=Nm(p.right,c.right),c.bottom=Nm(p.bottom,c.bottom),c.left=fa(p.left,c.left),c},tI(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 eO(e){var t=e.reference,n=e.element,r=e.placement,o=r?Wi(r):null,i=r?uu(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Yr:c={x:s,y:t.y-n.height};break;case Ko:c={x:s,y:t.y+t.height};break;case qo:c={x:t.x+t.width,y:a};break;case Xr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?yC(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case lu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Pf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function kf(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?zU:a,f=n.rootBoundary,p=f===void 0?GR:f,h=n.elementContext,m=h===void 0?pd:h,v=n.altBoundary,b=v===void 0?!1:v,g=n.padding,x=g===void 0?0:g,C=QR(typeof x!="number"?x:JR(x,Jf)),P=m===pd?jU:pd,w=e.rects.popper,E=e.elements[b?P:m],I=wW(Sa(E)?E:E.contextElement||Dl(e.elements.popper),c,p,s),_=cu(e.elements.reference),k=eO({reference:_,element:w,strategy:"absolute",placement:o}),$=cb(Object.assign({},w,k)),T=m===pd?$:_,O={top:I.top-T.top+C.top,bottom:T.bottom-I.bottom+C.bottom,left:I.left-T.left+C.left,right:T.right-I.right+C.right},N=e.modifiersData.offset;if(m===pd&&N){var V=N[o];Object.keys(O).forEach(function(j){var L=[qo,Ko].indexOf(j)>=0?1:-1,D=[Yr,Ko].indexOf(j)>=0?"y":"x";O[j]+=V[D]*L})}return O}function CW(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,f=c===void 0?KR:c,p=uu(r),h=p?a?Q2:Q2.filter(function(b){return uu(b)===p}):Jf,m=h.filter(function(b){return f.indexOf(b)>=0});m.length===0&&(m=h);var v=m.reduce(function(b,g){return b[g]=kf(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[Wi(g)],b},{});return Object.keys(v).sort(function(b,g){return v[b]-v[g]})}function xW(e){if(Wi(e)===mC)return[];var t=nm(e);return[eI(e),t,eI(t)]}function SW(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,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,b=v===void 0?!0:v,g=n.allowedAutoPlacements,x=t.options.placement,C=Wi(x),P=C===x,w=c||(P||!b?[nm(x)]:xW(x)),E=[x].concat(w).reduce(function(ee,se){return ee.concat(Wi(se)===mC?CW(t,{placement:se,boundary:p,rootBoundary:h,padding:f,flipVariations:b,allowedAutoPlacements:g}):se)},[]),I=t.rects.reference,_=t.rects.popper,k=new Map,$=!0,T=E[0],O=0;O<E.length;O++){var N=E[O],V=Wi(N),j=uu(N)===lu,L=[Yr,Ko].indexOf(V)>=0,D=L?"width":"height",B=kf(t,{placement:N,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),W=L?j?qo:Xr:j?Ko:Yr;I[D]>_[D]&&(W=nm(W));var A=nm(W),z=[];if(i&&z.push(B[V]<=0),a&&z.push(B[W]<=0,B[A]<=0),z.every(function(ee){return ee})){T=N,$=!1;break}k.set(N,z)}if($)for(var G=b?3:1,q=function(se){var ae=E.find(function(we){var de=k.get(we);if(de)return de.slice(0,se).every(function(le){return le})});if(ae)return T=ae,"break"},X=G;X>0;X--){var ie=q(X);if(ie==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const EW={name:"flip",enabled:!0,phase:"main",fn:SW,requiresIfExists:["offset"],data:{_skip:!1}};function nI(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 rI(e){return[Yr,qo,Ko,Xr].some(function(t){return e[t]>=0})}function PW(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=kf(t,{elementContext:"reference"}),a=kf(t,{altBoundary:!0}),c=nI(s,r),f=nI(a,o,i),p=rI(c),h=rI(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const kW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PW};function IW(e,t,n){var r=Wi(e),o=[Xr,Yr].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,[Xr,qo].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function _W(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=KR.reduce(function(p,h){return p[h]=IW(h,t.rects,i),p},{}),a=s[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const $W={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_W};function MW(e){var t=e.state,n=e.name;t.modifiersData[n]=eO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const TW={name:"popperOffsets",enabled:!0,phase:"read",fn:MW,data:{}};function RW(e){return e==="x"?"y":"x"}function OW(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,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,b=n.tetherOffset,g=b===void 0?0:b,x=kf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),C=Wi(t.placement),P=uu(t.placement),w=!P,E=yC(C),I=RW(E),_=t.modifiersData.popperOffsets,k=t.rects.reference,$=t.rects.popper,T=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(_){if(i){var j,L=E==="y"?Yr:Xr,D=E==="y"?Ko:qo,B=E==="y"?"height":"width",W=_[E],A=W+x[L],z=W-x[D],G=v?-$[B]/2:0,q=P===lu?k[B]:$[B],X=P===lu?-$[B]:-k[B],ie=t.elements.arrow,ee=v&&ie?vC(ie):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:XR(),ae=se[L],we=se[D],de=Gd(0,k[B],ee[B]),le=w?k[B]/2-G-de-ae-O.mainAxis:q-de-ae-O.mainAxis,te=w?-k[B]/2+G+de+we+O.mainAxis:X+de+we+O.mainAxis,be=t.elements.arrow&&Zf(t.elements.arrow),_e=be?E==="y"?be.clientTop||0:be.clientLeft||0:0,Se=(j=N==null?void 0:N[E])!=null?j:0,Fe=W+le-Se-_e,Re=W+te-Se,Ae=Gd(v?Nm(A,Fe):A,W,v?fa(z,Re):z);_[E]=Ae,V[E]=Ae-W}if(a){var Oe,Ze=E==="x"?Yr:Xr,yt=E==="x"?Ko:qo,tt=_[I],et=I==="y"?"height":"width",Pt=tt+x[Ze],mt=tt-x[yt],lt=[Yr,Xr].indexOf(C)!==-1,It=(Oe=N==null?void 0:N[I])!=null?Oe:0,Xe=lt?Pt:tt-k[et]-$[et]-It+O.altAxis,Te=lt?tt+k[et]+$[et]-It-O.altAxis:mt,ne=v&<?rW(Xe,tt,Te):Gd(v?Xe:Pt,tt,v?Te:mt);_[I]=ne,V[I]=ne-tt}t.modifiersData[r]=V}}const LW={name:"preventOverflow",enabled:!0,phase:"main",fn:OW,requiresIfExists:["offset"]};function AW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FW(e){return e===Jo(e)||!Vo(e)?bC(e):AW(e)}function NW(e){var t=e.getBoundingClientRect(),n=au(t.width)/e.offsetWidth||1,r=au(t.height)/e.offsetHeight||1;return n!==1||r!==1}function DW(e,t,n){n===void 0&&(n=!1);var r=Vo(t),o=Vo(t)&&NW(t),i=Dl(t),s=cu(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Qi(t)!=="body"||CC(i))&&(a=FW(t)),Vo(t)?(c=cu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=wC(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function BW(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 zW(e){var t=BW(e);return QU.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function jW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HW(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 oI={placement:"bottom",modifiers:[],strategy:"absolute"};function iI(){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 VW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?oI:o;return function(a,c,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},oI,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,v={state:p,setOptions:function(C){var P=typeof C=="function"?C(p.options):C;g(),p.options=Object.assign({},i,p.options,P),p.scrollParents={reference:Sa(a)?Kd(a):a.contextElement?Kd(a.contextElement):[],popper:Kd(c)};var w=zW(HW([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(E){return E.enabled}),b(),v.update()},forceUpdate:function(){if(!m){var C=p.elements,P=C.reference,w=C.popper;if(iI(P,w)){p.rects={reference:DW(P,Zf(w),p.options.strategy==="fixed"),popper:vC(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(O){return p.modifiersData[O.name]=Object.assign({},O.data)});for(var E=0;E<p.orderedModifiers.length;E++){if(p.reset===!0){p.reset=!1,E=-1;continue}var I=p.orderedModifiers[E],_=I.fn,k=I.options,$=k===void 0?{}:k,T=I.name;typeof _=="function"&&(p=_({state:p,options:$,name:T,instance:v})||p)}}}},update:jW(function(){return new Promise(function(x){v.forceUpdate(),x(p)})}),destroy:function(){g(),m=!0}};if(!iI(a,c))return v;v.setOptions(f).then(function(x){!m&&f.onFirstUpdate&&f.onFirstUpdate(x)});function b(){p.orderedModifiers.forEach(function(x){var C=x.name,P=x.options,w=P===void 0?{}:P,E=x.effect;if(typeof E=="function"){var I=E({state:p,name:C,instance:v,options:w}),_=function(){};h.push(I||_)}})}function g(){h.forEach(function(x){return x()}),h=[]}return v}}var UW=[pW,TW,dW,eW,$W,EW,LW,lW,kW],WW=VW({defaultModifiers:UW});function GW(e){return typeof e=="function"?e():e}const KW=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=St(u.isValidElement(r)?r.ref:null,n);return Rn(()=>{i||a(GW(o)||document.body)},[o,i]),Rn(()=>{if(s&&!i)return su(n,s),()=>{su(n,null)}},[n,s,i]),i?u.isValidElement(r)?u.cloneElement(r,{ref:c}):r:s&&xl.createPortal(r,s)}),tO=KW;function qW(e){return Ke("MuiPopperUnstyled",e)}Ve("MuiPopperUnstyled",["root"]);const YW=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],XW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function QW(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 ub(e){return typeof e=="function"?e():e}const JW=()=>Ie({root:["root"]},qW,{}),ZW={},eG=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:s,components:a={},componentsProps:c={},direction:f,disablePortal:p,modifiers:h,open:m,ownerState:v,placement:b,popperOptions:g,popperRef:x,TransitionProps:C}=t,P=oe(t,YW),w=u.useRef(null),E=St(w,n),I=u.useRef(null),_=St(I,x),k=u.useRef(_);Rn(()=>{k.current=_},[_]),u.useImperativeHandle(x,()=>I.current,[]);const $=QW(b,f),[T,O]=u.useState($);u.useEffect(()=>{I.current&&I.current.forceUpdate()}),Rn(()=>{if(!o||!m)return;const D=A=>{O(A.placement)};ub(o);let B=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{D(A)}}];h!=null&&(B=B.concat(h)),g&&g.modifiers!=null&&(B=B.concat(g.modifiers));const W=WW(ub(o),w.current,S({placement:$},g,{modifiers:B}));return k.current(W),()=>{W.destroy(),k.current(null)}},[o,p,h,m,g,$]);const N={placement:T};C!==null&&(N.TransitionProps=C);const V=JW(),j=(r=s!=null?s:a.Root)!=null?r:"div",L=Ef({elementType:j,externalSlotProps:c.root,externalForwardedProps:P,additionalProps:{role:"tooltip",ref:E},ownerState:S({},t,v),className:V.root});return R.jsx(j,S({},L,{children:typeof i=="function"?i(N):i}))}),tG=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=ZW,popperRef:v,style:b,transition:g=!1}=t,x=oe(t,XW),[C,P]=u.useState(!0),w=()=>{P(!1)},E=()=>{P(!0)};if(!c&&!p&&(!g||C))return null;const I=i||(r?bn(ub(r)).body:void 0);return R.jsx(tO,{disablePortal:a,container:I,children:R.jsx(eG,S({anchorEl:r,direction:s,disablePortal:a,modifiers:f,ref:n,open:g?!C:p,placement:h,popperOptions:m,popperRef:v},x,{style:S({position:"fixed",top:0,left:0,display:!p&&c&&(!g||C)?"none":null},b),TransitionProps:g?{in:p,onEnter:w,onExited:E}:null,children:o}))})}),nG=tG;function rG(e){const t=bn(e);return t.body===e?Jr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sI(e){return parseInt(Jr(e).getComputedStyle(e).paddingRight,10)||0}function oG(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 lI(e,t,n,r=[],o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!oG(s);a&&c&&qd(s,o)})}function _0(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function iG(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(rG(r)){const s=wR(bn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${sI(r)+s}px`;const a=bn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${sI(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=bn(r).body;else{const s=r.parentElement,a=Jr(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 sG(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class lG{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&&qd(t.modalRef,!1);const o=sG(n);lI(n,t.mount,t.modalRef,o,!0);const i=_0(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=_0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=iG(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=_0(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&&qd(t.modalRef,n),lI(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&&qd(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const aG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cG(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 uG(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 dG(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||uG(e))}function fG(e){const t=[],n=[];return Array.from(e.querySelectorAll(aG)).forEach((r,o)=>{const i=cG(r);i===-1||!dG(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 pG(){return!0}function nO(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=fG,isEnabled:s=pG,open:a}=e,c=u.useRef(),f=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),v=u.useRef(!1),b=u.useRef(null),g=St(t.ref,b),x=u.useRef(null);u.useEffect(()=>{!a||!b.current||(v.current=!n)},[n,a]),u.useEffect(()=>{if(!a||!b.current)return;const w=bn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),v.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),u.useEffect(()=>{if(!a||!b.current)return;const w=bn(b.current),E=k=>{const{current:$}=b;if($!==null){if(!w.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!$.contains(w.activeElement)){if(k&&m.current!==k.target||w.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!v.current)return;let N=[];if((w.activeElement===f.current||w.activeElement===p.current)&&(N=i(b.current)),N.length>0){var T,O;const V=Boolean(((T=x.current)==null?void 0:T.shiftKey)&&((O=x.current)==null?void 0:O.key)==="Tab"),j=N[0],L=N[N.length-1];V?L.focus():j.focus()}else $.focus()}}},I=k=>{x.current=k,!(r||!s()||k.key!=="Tab")&&w.activeElement===b.current&&k.shiftKey&&(c.current=!0,p.current.focus())};w.addEventListener("focusin",E),w.addEventListener("keydown",I,!0);const _=setInterval(()=>{w.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(_),w.removeEventListener("focusin",E),w.removeEventListener("keydown",I,!0)}},[n,r,o,s,a,i]);const C=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0,m.current=w.target;const E=t.props.onFocus;E&&E(w)},P=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0};return R.jsxs(u.Fragment,{children:[R.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:f,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:g,onFocus:C}),R.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:p,"data-testid":"sentinelEnd"})]})}function hG(e){return Ke("MuiModal",e)}Ve("MuiModal",["root","hidden"]);const mG=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"],gG=e=>{const{open:t,exited:n,classes:r}=e;return Ie({root:["root",!t&&n&&"hidden"]},hG,r)};function vG(e){return typeof e=="function"?e():e}function yG(e){return e.children?e.children.props.hasOwnProperty("in"):!1}const bG=new lG,wG=u.forwardRef(function(t,n){var r;const{children:o,classes:i,closeAfterTransition:s=!1,component:a="div",components:c={},componentsProps:f={},container:p,disableAutoFocus:h=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:b=!1,disableRestoreFocus:g=!1,disableScrollLock:x=!1,hideBackdrop:C=!1,keepMounted:P=!1,manager:w=bG,onBackdropClick:E,onClose:I,onKeyDown:_,open:k,onTransitionEnter:$,onTransitionExited:T}=t,O=oe(t,mG),[N,V]=u.useState(!0),j=u.useRef({}),L=u.useRef(null),D=u.useRef(null),B=St(D,n),W=yG(t),A=(r=t["aria-hidden"])!=null?r:!0,z=()=>bn(L.current),G=()=>(j.current.modalRef=D.current,j.current.mountNode=L.current,j.current),q=()=>{w.mount(G(),{disableScrollLock:x}),D.current.scrollTop=0},X=jn(()=>{const Oe=vG(p)||z().body;w.add(G(),Oe),D.current&&q()}),ie=u.useCallback(()=>w.isTopModal(G()),[w]),ee=jn(Oe=>{L.current=Oe,Oe&&(k&&ie()?q():qd(D.current,A))}),se=u.useCallback(()=>{w.remove(G(),A)},[w,A]);u.useEffect(()=>()=>{se()},[se]),u.useEffect(()=>{k?X():(!W||!s)&&se()},[k,se,W,s,X]);const ae=S({},t,{classes:i,closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:b,disableRestoreFocus:g,disableScrollLock:x,exited:N,hideBackdrop:C,keepMounted:P}),we=gG(ae),de=()=>{V(!1),$&&$()},le=()=>{V(!0),T&&T(),s&&se()},te=Oe=>{Oe.target===Oe.currentTarget&&(E&&E(Oe),I&&I(Oe,"backdropClick"))},be=Oe=>{_&&_(Oe),!(Oe.key!=="Escape"||!ie())&&(v||(Oe.stopPropagation(),I&&I(Oe,"escapeKeyDown")))},_e={};o.props.tabIndex===void 0&&(_e.tabIndex="-1"),W&&(_e.onEnter=ib(de,o.props.onEnter),_e.onExited=ib(le,o.props.onExited));const Se=c.Root||a,Fe=Ef({elementType:Se,externalSlotProps:f.root,externalForwardedProps:O,additionalProps:{ref:B,role:"presentation",onKeyDown:be},className:we.root,ownerState:ae}),Re=c.Backdrop,Ae=Ef({elementType:Re,externalSlotProps:f.backdrop,additionalProps:{"aria-hidden":!0,onClick:te,open:k},ownerState:ae});return!P&&!k&&(!W||N)?null:R.jsx(tO,{ref:ee,container:p,disablePortal:b,children:R.jsxs(Se,S({},Fe,{children:[!C&&Re?R.jsx(Re,S({},Ae)):null,R.jsx(nO,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:g,isEnabled:ie,open:k,children:u.cloneElement(o,_e)})]}))})}),CG=wG,xG=["onChange","maxRows","minRows","style","value"];function Ih(e,t){return parseInt(e[t],10)||0}const SG={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function aI(e){return e==null||Object.keys(e).length===0}const EG=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=oe(t,xG),{current:f}=u.useRef(a!=null),p=u.useRef(null),h=St(n,p),m=u.useRef(null),v=u.useRef(0),[b,g]=u.useState({}),x=u.useCallback(()=>{const I=p.current,k=Jr(I).getComputedStyle(I);if(k.width==="0px")return{};const $=m.current;$.style.width=k.width,$.value=I.value||t.placeholder||"x",$.value.slice(-1)===`
|
|
78
|
+
`&&($.value+=" ");const T=k["box-sizing"],O=Ih(k,"padding-bottom")+Ih(k,"padding-top"),N=Ih(k,"border-bottom-width")+Ih(k,"border-top-width"),V=$.scrollHeight;$.value="x";const j=$.scrollHeight;let L=V;i&&(L=Math.max(Number(i)*j,L)),o&&(L=Math.min(Number(o)*j,L)),L=Math.max(L,j);const D=L+(T==="border-box"?O+N:0),B=Math.abs(L-V)<=1;return{outerHeightStyle:D,overflow:B}},[o,i,t.placeholder]),C=(I,_)=>{const{outerHeightStyle:k,overflow:$}=_;return v.current<20&&(k>0&&Math.abs((I.outerHeightStyle||0)-k)>1||I.overflow!==$)?(v.current+=1,{overflow:$,outerHeightStyle:k}):I},P=u.useCallback(()=>{const I=x();aI(I)||g(_=>C(_,I))},[x]),w=()=>{const I=x();aI(I)||xl.flushSync(()=>{g(_=>C(_,I))})};u.useEffect(()=>{const I=ks(()=>{v.current=0,p.current&&w()}),_=Jr(p.current);_.addEventListener("resize",I);let k;return typeof ResizeObserver!="undefined"&&(k=new ResizeObserver(I),k.observe(p.current)),()=>{I.clear(),_.removeEventListener("resize",I),k&&k.disconnect()}}),Rn(()=>{P()}),u.useEffect(()=>{v.current=0},[a]);const E=I=>{v.current=0,f||P(),r&&r(I)};return R.jsxs(u.Fragment,{children:[R.jsx("textarea",S({value:a,onChange:E,ref:h,rows:i,style:S({height:b.outerHeightStyle,overflow:b.overflow?"hidden":null},s)},c)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:S({},SG.shadow,s,{padding:0})})]})}),PG=EG;function kG(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const IG=["mode","contrastThreshold","tonalOffset"],cI={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:bf.white,default:bf.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}},$0={text:{primary:bf.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:bf.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 uI(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=_s(e.main,o):t==="dark"&&(e.dark=Is(e.main,i)))}function _G(e="light"){return e==="dark"?{main:uc[200],light:uc[50],dark:uc[400]}:{main:uc[700],light:uc[400],dark:uc[800]}}function $G(e="light"){return e==="dark"?{main:cc[200],light:cc[50],dark:cc[400]}:{main:cc[500],light:cc[300],dark:cc[700]}}function MG(e="light"){return e==="dark"?{main:ac[500],light:ac[300],dark:ac[700]}:{main:ac[700],light:ac[400],dark:ac[800]}}function TG(e="light"){return e==="dark"?{main:dc[400],light:dc[300],dark:dc[700]}:{main:dc[700],light:dc[500],dark:dc[900]}}function RG(e="light"){return e==="dark"?{main:fc[400],light:fc[300],dark:fc[700]}:{main:fc[800],light:fc[500],dark:fc[900]}}function OG(e="light"){return e==="dark"?{main:cd[400],light:cd[300],dark:cd[700]}:{main:"#ed6c02",light:cd[500],dark:cd[900]}}function LG(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=oe(e,IG),i=e.primary||_G(t),s=e.secondary||$G(t),a=e.error||MG(t),c=e.info||TG(t),f=e.success||RG(t),p=e.warning||OG(t);function h(g){return PU(g,$0.text.primary)>=n?$0.text.primary:cI.text.primary}const m=({color:g,name:x,mainShade:C=500,lightShade:P=300,darkShade:w=700})=>{if(g=S({},g),!g.main&&g[C]&&(g.main=g[C]),!g.hasOwnProperty("main"))throw new Error(kl(11,x?` (${x})`:"",C));if(typeof g.main!="string")throw new Error(kl(12,x?` (${x})`:"",JSON.stringify(g.main)));return uI(g,"light",P,r),uI(g,"dark",w,r),g.contrastText||(g.contrastText=h(g.main)),g},v={dark:$0,light:cI};return Ho(S({common:S({},bf),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:f,name:"success"}),grey:HH,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},v[t]),o)}const AG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function FG(e){return Math.round(e*1e5)/1e5}const dI={textTransform:"uppercase"},fI='"Roboto", "Helvetica", "Arial", sans-serif';function NG(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=fI,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=oe(n,AG),v=o/14,b=h||(C=>`${C/f*v}rem`),g=(C,P,w,E,I)=>S({fontFamily:r,fontWeight:C,fontSize:b(P),lineHeight:w},r===fI?{letterSpacing:`${FG(E/P)}em`}:{},I,p),x={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,dI),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,dI)};return Ho(S({htmlFontSize:f,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},x),m,{clone:!1})}const DG=.2,BG=.14,zG=.12;function xn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${DG})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${BG})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zG})`].join(",")}const jG=["none",xn(0,2,1,-1,0,1,1,0,0,1,3,0),xn(0,3,1,-2,0,2,2,0,0,1,5,0),xn(0,3,3,-2,0,3,4,0,0,1,8,0),xn(0,2,4,-1,0,4,5,0,0,1,10,0),xn(0,3,5,-1,0,5,8,0,0,1,14,0),xn(0,3,5,-1,0,6,10,0,0,1,18,0),xn(0,4,5,-2,0,7,10,1,0,2,16,1),xn(0,5,5,-3,0,8,10,1,0,3,14,2),xn(0,5,6,-3,0,9,12,1,0,3,16,2),xn(0,6,6,-3,0,10,14,1,0,4,18,3),xn(0,6,7,-4,0,11,15,1,0,4,20,3),xn(0,7,8,-4,0,12,17,2,0,5,22,4),xn(0,7,8,-4,0,13,19,2,0,5,24,4),xn(0,7,9,-4,0,14,21,2,0,5,26,4),xn(0,8,9,-5,0,15,22,2,0,6,28,5),xn(0,8,10,-5,0,16,24,2,0,6,30,5),xn(0,8,11,-5,0,17,26,2,0,6,32,5),xn(0,9,11,-5,0,18,28,2,0,7,34,6),xn(0,9,12,-6,0,19,29,2,0,7,36,6),xn(0,10,13,-6,0,20,31,3,0,8,38,7),xn(0,10,13,-6,0,21,33,3,0,8,40,7),xn(0,10,14,-6,0,22,35,3,0,8,42,7),xn(0,11,14,-7,0,23,36,3,0,9,44,8),xn(0,11,15,-7,0,24,38,3,0,9,46,8)],HG=jG,VG=["duration","easing","delay"],UG={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)"},rO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pI(e){return`${Math.round(e)}ms`}function WG(e){if(!e)return 0;const t=e/36;return Math.round((4+15*cs(t,.25)+t/5)*10)}function GG(e){const t=S({},UG,e.easing),n=S({},rO,e.duration);return S({getAutoHeightDuration:WG,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return oe(i,VG),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof s=="string"?s:pI(s)} ${a} ${typeof c=="string"?c:pI(c)}`).join(",")}},e,{easing:t,duration:n})}const KG={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},qG=KG,YG=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function xC(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=oe(e,YG);if(e.vars)throw new Error(kl(18));const a=LG(r),c=fC(e);let f=Ho(c,{mixins:kG(c.breakpoints,n),palette:a,shadows:HG.slice(),typography:NG(a,i),transitions:GG(o),zIndex:S({},qG)});return f=Ho(f,s),f=t.reduce((p,h)=>Ho(p,h),f),f}const XG=xC(),Qg=XG;function Zr(){return qg(Qg)}function Qe({props:e,name:t}){return xU({props:e,name:t,defaultTheme:Qg})}const xo=e=>Wd(e)&&e!=="classes",QG=Wd,JG=CU({defaultTheme:Qg,rootShouldForwardProp:xo}),re=JG;function ZG(e){return Ke("MuiPaper",e)}Ve("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 eK=["className","component","elevation","square","variant"],hI=e=>{let t;return e<1?t=5.11916*cs(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},tK=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ie(i,ZG,o)},nK=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${rt("#fff",hI(t.elevation))}, ${rt("#fff",hI(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),rK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,f=oe(r,eK),p=S({},r,{component:i,elevation:s,square:a,variant:c}),h=tK(p);return R.jsx(nK,S({as:i,ownerState:p,className:he(h.root,o),ref:n},f))}),Zo=rK;function oK(e){return Ke("MuiSvgIcon",e)}Ve("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iK=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],sK=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(n)}`]};return Ie(o,oK,r)},lK=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${fe(n.color)}`],t[`fontSize${fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,f,p,h,m,v,b,g,x,C,P;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||(f=c.pxToRem)==null?void 0:f.call(c,24))||"1.5rem",large:((p=e.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,35))||"2.1875"}[t.fontSize],color:(m=(v=(e.vars||e).palette)==null||(b=v[t.color])==null?void 0:b.main)!=null?m:{action:(g=(e.vars||e).palette)==null||(x=g.action)==null?void 0:x.active,disabled:(C=(e.vars||e).palette)==null||(P=C.action)==null?void 0:P.disabled,inherit:void 0}[t.color]}}),oO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,v=oe(r,iK),b=S({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),g={};p||(g.viewBox=m);const x=sK(b);return R.jsxs(lK,S({as:a,className:he(x.root,i),ownerState:b,focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},g,v,{children:[o,h?R.jsx("title",{children:h}):null]}))});oO.muiName="SvgIcon";const mI=oO;function Mt(e,t){const n=(r,o)=>R.jsx(mI,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}));return n.muiName=mI.muiName,u.memo(u.forwardRef(n))}const aK={configure:e=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
79
|
+
`)),iC.configure(e)}},cK=Object.freeze(Object.defineProperty({__proto__:null,capitalize:fe,createChainedFunction:ib,createSvgIcon:Mt,debounce:ks,deprecatedPropType:nV,isMuiElement:Vd,ownerDocument:bn,ownerWindow:Jr,requirePropFactory:rV,setRef:su,unstable_ClassNameGenerator:aK,unstable_useEnhancedEffect:Rn,unstable_useId:Pn,unsupportedProp:sV,useControlled:Ui,useEventCallback:jn,useForkRef:St,useIsFocusVisible:Wg},Symbol.toStringTag,{value:"Module"}));function db(e,t){return db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},db(e,t)}function SC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,db(e,t)}const gI={disabled:!1},Dm=fo.createContext(null);var uK=function(t){return t.scrollTop},Id="unmounted",Jl="exited",Zl="entering",wc="entered",fb="exiting",Rs=function(e){SC(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=Jl,i.appearStatus=Zl):c=wc:r.unmountOnExit||r.mountOnEnter?c=Id:c=Jl,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Id?{status:Jl}: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!==Zl&&s!==wc&&(i=Zl):(s===Zl||s===wc)&&(i=fb)}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===Zl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Eh.findDOMNode(this);s&&uK(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jl&&this.setState({status:Id})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[Eh.findDOMNode(this),a],f=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||gI.disabled){this.safeSetState({status:wc},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Zl},function(){i.props.onEntering(f,p),i.onTransitionEnd(m,function(){i.safeSetState({status:wc},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Eh.findDOMNode(this);if(!i||gI.disabled){this.safeSetState({status:Jl},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:fb},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Jl},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:Eh.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],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Id)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=oe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return fo.createElement(Dm.Provider,{value:null},typeof s=="function"?s(o,a):fo.cloneElement(fo.Children.only(s),a))},t}(fo.Component);Rs.contextType=Dm;Rs.propTypes={};function hc(){}Rs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hc,onEntering:hc,onEntered:hc,onExit:hc,onExiting:hc,onExited:hc};Rs.UNMOUNTED=Id;Rs.EXITED=Jl;Rs.ENTERING=Zl;Rs.ENTERED=wc;Rs.EXITING=fb;const Jg=Rs;function pb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EC(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 dK(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 f=r[c][s];a[r[c][s]]=n(f)}a[c]=n(c)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function sa(e,t,n){return n[t]!=null?n[t]:e.props[t]}function fK(e,t){return EC(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:sa(n,"appear",e),enter:sa(n,"enter",e),exit:sa(n,"exit",e)})})}function pK(e,t,n){var r=EC(e.children),o=dK(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,f=t[i],p=u.isValidElement(f)&&!f.props.in;c&&(!a||p)?o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:sa(s,"exit",e),enter:sa(s,"enter",e)}):!c&&a&&!p?o[i]=u.cloneElement(s,{in:!1}):c&&a&&u.isValidElement(f)&&(o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:sa(s,"exit",e),enter:sa(s,"enter",e)}))}}),o}var hK=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mK={component:"div",childFactory:function(t){return t}},PC=function(e){SC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(pb(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?fK(o,a):pK(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=EC(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=S({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=oe(o,["component","childFactory"]),c=this.state.contextValue,f=hK(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?fo.createElement(Dm.Provider,{value:c},f):fo.createElement(Dm.Provider,{value:c},fo.createElement(i,a,f))},t}(fo.Component);PC.propTypes={};PC.defaultProps=mK;const gK=PC,kC=e=>e.scrollTop;function _l(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 vK(e){return Ke("MuiCollapse",e)}Ve("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const yK=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],bK=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ie(r,vK,n)},wK=re("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>S({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&S({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),CK=re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),xK=re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),iO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:f,in:p,onEnter:h,onEntered:m,onEntering:v,onExit:b,onExited:g,onExiting:x,orientation:C="vertical",style:P,timeout:w=rO.standard,TransitionComponent:E=Jg}=r,I=oe(r,yK),_=S({},r,{orientation:C,collapsedSize:a}),k=bK(_),$=Zr(),T=u.useRef(),O=u.useRef(null),N=u.useRef(),V=typeof a=="number"?`${a}px`:a,j=C==="horizontal",L=j?"width":"height";u.useEffect(()=>()=>{clearTimeout(T.current)},[]);const D=u.useRef(null),B=St(n,D),W=ae=>we=>{if(ae){const de=D.current;we===void 0?ae(de):ae(de,we)}},A=()=>O.current?O.current[j?"clientWidth":"clientHeight"]:0,z=W((ae,we)=>{O.current&&j&&(O.current.style.position="absolute"),ae.style[L]=V,h&&h(ae,we)}),G=W((ae,we)=>{const de=A();O.current&&j&&(O.current.style.position="");const{duration:le,easing:te}=_l({style:P,timeout:w,easing:f},{mode:"enter"});if(w==="auto"){const be=$.transitions.getAutoHeightDuration(de);ae.style.transitionDuration=`${be}ms`,N.current=be}else ae.style.transitionDuration=typeof le=="string"?le:`${le}ms`;ae.style[L]=`${de}px`,ae.style.transitionTimingFunction=te,v&&v(ae,we)}),q=W((ae,we)=>{ae.style[L]="auto",m&&m(ae,we)}),X=W(ae=>{ae.style[L]=`${A()}px`,b&&b(ae)}),ie=W(g),ee=W(ae=>{const we=A(),{duration:de,easing:le}=_l({style:P,timeout:w,easing:f},{mode:"exit"});if(w==="auto"){const te=$.transitions.getAutoHeightDuration(we);ae.style.transitionDuration=`${te}ms`,N.current=te}else ae.style.transitionDuration=typeof de=="string"?de:`${de}ms`;ae.style[L]=V,ae.style.transitionTimingFunction=le,x&&x(ae)}),se=ae=>{w==="auto"&&(T.current=setTimeout(ae,N.current||0)),o&&o(D.current,ae)};return R.jsx(E,S({in:p,onEnter:z,onEntered:q,onEntering:G,onExit:X,onExited:ie,onExiting:ee,addEndListener:se,nodeRef:D,timeout:w==="auto"?null:w},I,{children:(ae,we)=>R.jsx(wK,S({as:c,className:he(k.root,s,{entered:k.entered,exited:!p&&V==="0px"&&k.hidden}[ae]),style:S({[j?"minWidth":"minHeight"]:V},P),ownerState:S({},_,{state:ae}),ref:B},we,{children:R.jsx(CK,{ownerState:S({},_,{state:ae}),className:k.wrapper,ref:O,children:R.jsx(xK,{ownerState:S({},_,{state:ae}),className:k.wrapperInner,children:i})})}))}))});iO.muiSupportAuto=!0;const sO=iO;function SK(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:c,timeout:f}=e,[p,h]=u.useState(!1),m=he(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},b=he(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,f);return()=>{clearTimeout(g)}}},[c,a,f]),R.jsx("span",{className:m,style:v,children:R.jsx("span",{className:b})})}const EK=Ve("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ao=EK,PK=["center","classes","className"];let Zg=e=>e,vI,yI,bI,wI;const hb=550,kK=80,IK=Al(vI||(vI=Zg`
|
|
80
|
+
0% {
|
|
81
|
+
transform: scale(0);
|
|
82
|
+
opacity: 0.1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
100% {
|
|
86
|
+
transform: scale(1);
|
|
87
|
+
opacity: 0.3;
|
|
88
|
+
}
|
|
89
|
+
`)),_K=Al(yI||(yI=Zg`
|
|
90
|
+
0% {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
100% {
|
|
95
|
+
opacity: 0;
|
|
96
|
+
}
|
|
97
|
+
`)),$K=Al(bI||(bI=Zg`
|
|
98
|
+
0% {
|
|
99
|
+
transform: scale(1);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
50% {
|
|
103
|
+
transform: scale(0.92);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
100% {
|
|
107
|
+
transform: scale(1);
|
|
108
|
+
}
|
|
109
|
+
`)),MK=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TK=re(SK,{name:"MuiTouchRipple",slot:"Ripple"})(wI||(wI=Zg`
|
|
110
|
+
opacity: 0;
|
|
111
|
+
position: absolute;
|
|
112
|
+
|
|
113
|
+
&.${0} {
|
|
114
|
+
opacity: 0.3;
|
|
115
|
+
transform: scale(1);
|
|
116
|
+
animation-name: ${0};
|
|
117
|
+
animation-duration: ${0}ms;
|
|
118
|
+
animation-timing-function: ${0};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&.${0} {
|
|
122
|
+
animation-duration: ${0}ms;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
& .${0} {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
display: block;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 100%;
|
|
130
|
+
border-radius: 50%;
|
|
131
|
+
background-color: currentColor;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
& .${0} {
|
|
135
|
+
opacity: 0;
|
|
136
|
+
animation-name: ${0};
|
|
137
|
+
animation-duration: ${0}ms;
|
|
138
|
+
animation-timing-function: ${0};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
& .${0} {
|
|
142
|
+
position: absolute;
|
|
143
|
+
/* @noflip */
|
|
144
|
+
left: 0px;
|
|
145
|
+
top: 0;
|
|
146
|
+
animation-name: ${0};
|
|
147
|
+
animation-duration: 2500ms;
|
|
148
|
+
animation-timing-function: ${0};
|
|
149
|
+
animation-iteration-count: infinite;
|
|
150
|
+
animation-delay: 200ms;
|
|
151
|
+
}
|
|
152
|
+
`),Ao.rippleVisible,IK,hb,({theme:e})=>e.transitions.easing.easeInOut,Ao.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ao.child,Ao.childLeaving,_K,hb,({theme:e})=>e.transitions.easing.easeInOut,Ao.childPulsate,$K,({theme:e})=>e.transitions.easing.easeInOut),RK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=oe(r,PK),[c,f]=u.useState([]),p=u.useRef(0),h=u.useRef(null);u.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=u.useRef(!1),v=u.useRef(null),b=u.useRef(null),g=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(v.current)},[]);const x=u.useCallback(E=>{const{pulsate:I,rippleX:_,rippleY:k,rippleSize:$,cb:T}=E;f(O=>[...O,R.jsx(TK,{classes:{ripple:he(i.ripple,Ao.ripple),rippleVisible:he(i.rippleVisible,Ao.rippleVisible),ripplePulsate:he(i.ripplePulsate,Ao.ripplePulsate),child:he(i.child,Ao.child),childLeaving:he(i.childLeaving,Ao.childLeaving),childPulsate:he(i.childPulsate,Ao.childPulsate)},timeout:hb,pulsate:I,rippleX:_,rippleY:k,rippleSize:$},p.current)]),p.current+=1,h.current=T},[i]),C=u.useCallback((E={},I={},_)=>{const{pulsate:k=!1,center:$=o||I.pulsate,fakeElement:T=!1}=I;if((E==null?void 0:E.type)==="mousedown"&&m.current){m.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(m.current=!0);const O=T?null:g.current,N=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,j,L;if($||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)V=Math.round(N.width/2),j=Math.round(N.height/2);else{const{clientX:D,clientY:B}=E.touches&&E.touches.length>0?E.touches[0]:E;V=Math.round(D-N.left),j=Math.round(B-N.top)}if($)L=Math.sqrt((2*cs(N.width,2)+cs(N.height,2))/3),L%2===0&&(L+=1);else{const D=Math.max(Math.abs((O?O.clientWidth:0)-V),V)*2+2,B=Math.max(Math.abs((O?O.clientHeight:0)-j),j)*2+2;L=Math.sqrt(cs(D,2)+cs(B,2))}E!=null&&E.touches?b.current===null&&(b.current=()=>{x({pulsate:k,rippleX:V,rippleY:j,rippleSize:L,cb:_})},v.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},kK)):x({pulsate:k,rippleX:V,rippleY:j,rippleSize:L,cb:_})},[o,x]),P=u.useCallback(()=>{C({},{pulsate:!0})},[C]),w=u.useCallback((E,I)=>{if(clearTimeout(v.current),(E==null?void 0:E.type)==="touchend"&&b.current){b.current(),b.current=null,v.current=setTimeout(()=>{w(E,I)});return}b.current=null,f(_=>_.length>0?_.slice(1):_),h.current=I},[]);return u.useImperativeHandle(n,()=>({pulsate:P,start:C,stop:w}),[P,C,w]),R.jsx(MK,S({className:he(Ao.root,i.root,s),ref:g},a,{children:R.jsx(gK,{component:null,exit:!0,children:c})}))}),OK=RK;function LK(e){return Ke("MuiButtonBase",e)}const AK=Ve("MuiButtonBase",["root","disabled","focusVisible"]),FK=AK,NK=["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"],DK=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},LK,o);return n&&r&&(s.root+=` ${r}`),s},BK=re("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"},[`&.${FK.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:b,onClick:g,onContextMenu:x,onDragLeave:C,onFocus:P,onFocusVisible:w,onKeyDown:E,onKeyUp:I,onMouseDown:_,onMouseLeave:k,onMouseUp:$,onTouchEnd:T,onTouchMove:O,onTouchStart:N,tabIndex:V=0,TouchRippleProps:j,touchRippleRef:L,type:D}=r,B=oe(r,NK),W=u.useRef(null),A=u.useRef(null),z=St(A,L),{isFocusVisibleRef:G,onFocus:q,onBlur:X,ref:ie}=Wg(),[ee,se]=u.useState(!1);f&&ee&&se(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{se(!0),W.current.focus()}}),[]);const[ae,we]=u.useState(!1);u.useEffect(()=>{we(!0)},[]);const de=ae&&!p&&!f;u.useEffect(()=>{ee&&m&&!p&&ae&&A.current.pulsate()},[p,m,ee,ae]);function le(Ee,$e,Ge=h){return jn(Ct=>($e&&$e(Ct),!Ge&&A.current&&A.current[Ee](Ct),!0))}const te=le("start",_),be=le("stop",x),_e=le("stop",C),Se=le("stop",$),Fe=le("stop",Ee=>{ee&&Ee.preventDefault(),k&&k(Ee)}),Re=le("start",N),Ae=le("stop",T),Oe=le("stop",O),Ze=le("stop",Ee=>{X(Ee),G.current===!1&&se(!1),b&&b(Ee)},!1),yt=jn(Ee=>{W.current||(W.current=Ee.currentTarget),q(Ee),G.current===!0&&(se(!0),w&&w(Ee)),P&&P(Ee)}),tt=()=>{const Ee=W.current;return c&&c!=="button"&&!(Ee.tagName==="A"&&Ee.href)},et=u.useRef(!1),Pt=jn(Ee=>{m&&!et.current&&ee&&A.current&&Ee.key===" "&&(et.current=!0,A.current.stop(Ee,()=>{A.current.start(Ee)})),Ee.target===Ee.currentTarget&&tt()&&Ee.key===" "&&Ee.preventDefault(),E&&E(Ee),Ee.target===Ee.currentTarget&&tt()&&Ee.key==="Enter"&&!f&&(Ee.preventDefault(),g&&g(Ee))}),mt=jn(Ee=>{m&&Ee.key===" "&&A.current&&ee&&!Ee.defaultPrevented&&(et.current=!1,A.current.stop(Ee,()=>{A.current.pulsate(Ee)})),I&&I(Ee),g&&Ee.target===Ee.currentTarget&&tt()&&Ee.key===" "&&!Ee.defaultPrevented&&g(Ee)});let lt=c;lt==="button"&&(B.href||B.to)&&(lt=v);const It={};lt==="button"?(It.type=D===void 0?"button":D,It.disabled=f):(!B.href&&!B.to&&(It.role="button"),f&&(It["aria-disabled"]=f));const Xe=St(ie,W),Te=St(n,Xe),ne=S({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:V,focusVisible:ee}),ke=DK(ne);return R.jsxs(BK,S({as:lt,className:he(ke.root,a),ownerState:ne,onBlur:Ze,onClick:g,onContextMenu:be,onFocus:yt,onKeyDown:Pt,onKeyUp:mt,onMouseDown:te,onMouseLeave:Fe,onMouseUp:Se,onDragLeave:_e,onTouchEnd:Ae,onTouchMove:Oe,onTouchStart:Re,ref:Te,tabIndex:f?-1:V,type:D},It,B,{children:[s,de?R.jsx(OK,S({ref:z,center:i},j)):null]}))}),Ji=zK;function jK(e){return Ke("MuiAlert",e)}const HK=Ve("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),CI=HK;function VK(e){return Ke("MuiIconButton",e)}const UK=Ve("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),WK=UK,GK=["edge","children","className","color","disabled","disableFocusRipple","size"],KK=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${fe(r)}`,o&&`edge${fe(o)}`,`size${fe(i)}`]};return Ie(s,VK,t)},qK=re(Ji,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(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})=>S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].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)},{[`&.${WK.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})),YK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=r,h=oe(r,GK),m=S({},r,{edge:o,color:a,disabled:c,disableFocusRipple:f,size:p}),v=KK(m);return R.jsx(qK,S({className:he(v.root,s),centerRipple:!0,focusRipple:!f,disabled:c,ref:n,ownerState:m},h,{children:i}))}),tr=YK,XK=Mt(R.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"),QK=Mt(R.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),JK=Mt(R.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"),ZK=Mt(R.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"),lO=Mt(R.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");var xI;const eq=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],tq=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${fe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(i,jK,o)},nq=re(Zo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Is:_s,r=e.palette.mode==="light"?_s:Is,o=t.color||t.severity;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${CI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette.mode==="dark"?e.palette[o].main:e.palette[o].light}},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}`,[`& .${CI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette.mode==="dark"?e.palette[o].main:e.palette[o].light}},o&&t.variant==="filled"&&S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main)}))}),rq=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),oq=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),SI=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),EI={success:R.jsx(XK,{fontSize:"inherit"}),warning:R.jsx(QK,{fontSize:"inherit"}),error:R.jsx(JK,{fontSize:"inherit"}),info:R.jsx(ZK,{fontSize:"inherit"})},iq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:c,icon:f,iconMapping:p=EI,onClose:h,role:m="alert",severity:v="success",variant:b="standard"}=r,g=oe(r,eq),x=S({},r,{color:c,severity:v,variant:b}),C=tq(x);return R.jsxs(nq,S({role:m,elevation:0,ownerState:x,className:he(C.root,s),ref:n},g,{children:[f!==!1?R.jsx(rq,{ownerState:x,className:C.icon,children:f||p[v]||EI[v]}):null,R.jsx(oq,{ownerState:x,className:C.message,children:i}),o!=null?R.jsx(SI,{ownerState:x,className:C.action,children:o}):null,o==null&&h?R.jsx(SI,{ownerState:x,className:C.action,children:R.jsx(tr,{size:"small","aria-label":a,title:a,color:"inherit",onClick:h,children:xI||(xI=R.jsx(lO,{fontSize:"small"}))})}):null]}))}),Yo=iq;function sq(e){return Ke("MuiTypography",e)}Ve("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const lq=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],aq=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ie(a,sq,s)},cq=re("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${fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({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})),PI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uq={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},dq=e=>uq[e]||e,fq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTypography"}),o=dq(r.color),i=dC(S({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:v=PI}=i,b=oe(i,lq),g=S({},i,{align:s,color:o,className:a,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:v}),x=c||(h?"p":v[m]||PI[m])||"span",C=aq(g);return R.jsx(cq,S({as:x,ref:n,ownerState:g,className:he(C.root,a)},b))}),Cr=fq;function pq(e){return Ke("MuiAppBar",e)}Ve("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const hq=["className","color","enableColorOnDark","position"],mq=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${fe(t)}`,`position${fe(n)}`]};return Ie(o,pq,r)},_h=(e,t)=>`${e==null?void 0:e.replace(")","")}, ${t})`,gq=re(Zo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],t[`color${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:_h(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:_h(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:_h(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:_h(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"}))}),vq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=oe(r,hq),f=S({},r,{color:i,position:a,enableColorOnDark:s}),p=mq(f);return R.jsx(gq,S({square:!0,component:"header",ownerState:f,elevation:4,className:he(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),yq=vq,bq=re(nG,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wq=u.forwardRef(function(t,n){const r=pC(),o=Qe({props:t,name:"MuiPopper"});return R.jsx(bq,S({direction:r==null?void 0:r.direction},o,{ref:n}))}),Aa=wq;function Cq(e){return Ke("MuiListSubheader",e)}Ve("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const xq=["className","color","component","disableGutters","disableSticky","inset"],Sq=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${fe(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ie(s,Cq,t)},Eq=re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>S({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Pq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:f=!1}=r,p=oe(r,xq),h=S({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:f}),m=Sq(h);return R.jsx(Eq,S({as:s,className:he(m.root,o),ref:n,ownerState:h},p))}),kq=Pq,Iq=Mt(R.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 _q(e){return Ke("MuiChip",e)}const $q=Ve("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","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"]),Gt=$q,Mq=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],Tq=e=>{const{classes:t,disabled:n,size:r,color:o,onDelete:i,clickable:s,variant:a}=e,c={root:["root",a,n&&"disabled",`size${fe(r)}`,`color${fe(o)}`,s&&"clickable",s&&`clickableColor${fe(o)}`,i&&"deletable",i&&`deletableColor${fe(o)}`,`${a}${fe(o)}`],label:["label",`label${fe(r)}`],avatar:["avatar",`avatar${fe(r)}`,`avatarColor${fe(o)}`],icon:["icon",`icon${fe(r)}`,`iconColor${fe(o)}`],deleteIcon:["deleteIcon",`deleteIcon${fe(r)}`,`deleteIconColor${fe(o)}`,`deleteIcon${fe(a)}Color${fe(o)}`]};return Ie(c,_q,t)},Rq=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,clickable:o,onDelete:i,size:s,variant:a}=n;return[{[`& .${Gt.avatar}`]:t.avatar},{[`& .${Gt.avatar}`]:t[`avatar${fe(s)}`]},{[`& .${Gt.avatar}`]:t[`avatarColor${fe(r)}`]},{[`& .${Gt.icon}`]:t.icon},{[`& .${Gt.icon}`]:t[`icon${fe(s)}`]},{[`& .${Gt.icon}`]:t[`iconColor${fe(r)}`]},{[`& .${Gt.deleteIcon}`]:t.deleteIcon},{[`& .${Gt.deleteIcon}`]:t[`deleteIcon${fe(s)}`]},{[`& .${Gt.deleteIcon}`]:t[`deleteIconColor${fe(r)}`]},{[`& .${Gt.deleteIcon}`]:t[`deleteIcon${fe(a)}Color${fe(r)}`]},t.root,t[`size${fe(s)}`],t[`color${fe(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${fe(r)}`],t[a],t[`${a}${fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=rt(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Gt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Gt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Gt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Gt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Gt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Gt.icon}`]:S({color:e.vars?e.vars.palette.Chip.defaultIconColor:r,marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.color!=="default"&&{color:"inherit"}),[`& .${Gt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:rt(n,.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)`:rt(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&&{[`&.${Gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.focusOpacity}))`:rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Gt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.hoverOpacity}))`:rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.focusOpacity}))`:rt(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, &.${Gt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Gt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Gt.avatar}`]:{marginLeft:4},[`& .${Gt.avatarSmall}`]:{marginLeft:2},[`& .${Gt.icon}`]:{marginLeft:4},[`& .${Gt.iconSmall}`]:{marginLeft:2},[`& .${Gt.deleteIcon}`]:{marginRight:5},[`& .${Gt.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)`:rt(e.palette[t.color].main,.7)}`,[`&.${Gt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:rt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Gt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Oq=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${fe(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function kI(e){return e.key==="Backspace"||e.key==="Delete"}const Lq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:c,deleteIcon:f,disabled:p=!1,icon:h,label:m,onClick:v,onDelete:b,onKeyDown:g,onKeyUp:x,size:C="medium",variant:P="filled"}=r,w=oe(r,Mq),E=u.useRef(null),I=St(E,n),_=W=>{W.stopPropagation(),b&&b(W)},k=W=>{W.currentTarget===W.target&&kI(W)&&W.preventDefault(),g&&g(W)},$=W=>{W.currentTarget===W.target&&(b&&kI(W)?b(W):W.key==="Escape"&&E.current&&E.current.blur()),x&&x(W)},T=s!==!1&&v?!0:s,O=T||b?Ji:c||"div",N=S({},r,{component:O,disabled:p,size:C,color:a,onDelete:!!b,clickable:T,variant:P}),V=Tq(N),j=O===Ji?S({component:c||"div",focusVisibleClassName:V.focusVisible},b&&{disableRipple:!0}):{};let L=null;b&&(L=f&&u.isValidElement(f)?u.cloneElement(f,{className:he(f.props.className,V.deleteIcon),onClick:_}):R.jsx(Iq,{className:he(V.deleteIcon),onClick:_}));let D=null;o&&u.isValidElement(o)&&(D=u.cloneElement(o,{className:he(V.avatar,o.props.className)}));let B=null;return h&&u.isValidElement(h)&&(B=u.cloneElement(h,{className:he(V.icon,h.props.className)})),R.jsxs(Rq,S({as:O,className:he(V.root,i),disabled:T&&p?!0:void 0,onClick:v,onKeyDown:k,onKeyUp:$,ref:I,ownerState:N},j,w,{children:[D||B,R.jsx(Oq,{className:he(V.label),ownerState:N,children:m}),L]}))}),ev=Lq;function Fa({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 Aq=u.createContext(),tv=Aq;function Os(){return u.useContext(tv)}function Fq(e){return R.jsx(Q8,S({},e,{defaultTheme:Qg}))}function II(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function IC(e,t=!1){return e&&(II(e.value)&&e.value!==""||t&&II(e.defaultValue)&&e.defaultValue!=="")}function Nq(e){return e.startAdornment}function Dq(e){return Ke("MuiInputBase",e)}const Bq=Ve("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),zi=Bq,zq=["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","startAdornment","type","value"],nv=(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${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rv=(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]},jq=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:h,size:m,startAdornment:v,type:b}=e,g={root:["root",`color${fe(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",v&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Ie(g,Dq,t)},ov=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nv})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${zi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),iv=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zi.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},[`&.${zi.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"})}),Hq=R.jsx(Fq,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Vq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,components:c={},componentsProps:f={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:m,endAdornment:v,fullWidth:b=!1,id:g,inputComponent:x="input",inputProps:C={},inputRef:P,maxRows:w,minRows:E,multiline:I=!1,name:_,onBlur:k,onChange:$,onClick:T,onFocus:O,onKeyDown:N,onKeyUp:V,placeholder:j,readOnly:L,renderSuffix:D,rows:B,startAdornment:W,type:A="text",value:z}=r,G=oe(r,zq),q=C.value!=null?C.value:z,{current:X}=u.useRef(q!=null),ie=u.useRef(),ee=u.useCallback(Te=>{},[]),se=St(C.ref,ee),ae=St(P,se),we=St(ie,ae),[de,le]=u.useState(!1),te=Os(),be=Fa({props:r,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});be.focused=te?te.focused:de,u.useEffect(()=>{!te&&h&&de&&(le(!1),k&&k())},[te,h,de,k]);const _e=te&&te.onFilled,Se=te&&te.onEmpty,Fe=u.useCallback(Te=>{IC(Te)?_e&&_e():Se&&Se()},[_e,Se]);Rn(()=>{X&&Fe({value:q})},[q,Fe,X]);const Re=Te=>{if(be.disabled){Te.stopPropagation();return}O&&O(Te),C.onFocus&&C.onFocus(Te),te&&te.onFocus?te.onFocus(Te):le(!0)},Ae=Te=>{k&&k(Te),C.onBlur&&C.onBlur(Te),te&&te.onBlur?te.onBlur(Te):le(!1)},Oe=(Te,...ne)=>{if(!X){const ke=Te.target||ie.current;if(ke==null)throw new Error(kl(1));Fe({value:ke.value})}C.onChange&&C.onChange(Te,...ne),$&&$(Te,...ne)};u.useEffect(()=>{Fe(ie.current)},[]);const Ze=Te=>{ie.current&&Te.currentTarget===Te.target&&ie.current.focus(),T&&T(Te)};let yt=x,tt=C;I&&yt==="input"&&(B?tt=S({type:void 0,minRows:B,maxRows:B},tt):tt=S({type:void 0,maxRows:w,minRows:E},tt),yt=PG);const et=Te=>{Fe(Te.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};u.useEffect(()=>{te&&te.setAdornedStart(Boolean(W))},[te,W]);const Pt=S({},r,{color:be.color||"primary",disabled:be.disabled,endAdornment:v,error:be.error,focused:be.focused,formControl:te,fullWidth:b,hiddenLabel:be.hiddenLabel,multiline:I,size:be.size,startAdornment:W,type:A}),mt=jq(Pt),lt=c.Root||ov,It=f.root||{},Xe=c.Input||iv;return tt=S({},tt,f.input),R.jsxs(u.Fragment,{children:[!m&&Hq,R.jsxs(lt,S({},It,!Il(lt)&&{ownerState:S({},Pt,It.ownerState)},{ref:n,onClick:Ze},G,{className:he(mt.root,It.className,a),children:[W,R.jsx(tv.Provider,{value:null,children:R.jsx(Xe,S({ownerState:Pt,"aria-invalid":be.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:be.disabled,id:g,onAnimationStart:et,name:_,placeholder:j,readOnly:L,required:be.required,rows:B,value:q,onKeyDown:N,onKeyUp:V,type:A},tt,!Il(Xe)&&{as:yt,ownerState:S({},Pt,tt.ownerState)},{ref:we,className:he(mt.input,tt.className),onBlur:Ae,onChange:Oe,onFocus:Re}))}),v,D?D(S({},be,{startAdornment:W})):null]}))]})}),ku=Vq;function Uq(e){return Ke("MuiInput",e)}const Wq=S({},zi,Ve("MuiInput",["root","underline","input"])),la=Wq;function Gq(e){return Ke("MuiOutlinedInput",e)}const Kq=S({},zi,Ve("MuiOutlinedInput",["root","notchedOutline","input"])),Ti=Kq;function qq(e){return Ke("MuiFilledInput",e)}const Yq=S({},zi,Ve("MuiFilledInput",["root","underline","input"])),Ni=Yq,aO=Mt(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Xq(e){return Ke("MuiAutocomplete",e)}const Qq=Ve("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),zt=Qq;var _I,$I;const Jq=["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","value"],Zq=e=>{const{classes:t,disablePortal:n,focused:r,fullWidth:o,hasClearIcon:i,hasPopupIcon:s,inputFocused:a,popupOpen:c,size:f}=e,p={root:["root",r&&"focused",o&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${fe(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(p,Xq,t)},eY=re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${zt.tag}`]:t.tag},{[`& .${zt.tag}`]:t[`tagSize${fe(a)}`]},{[`& .${zt.inputRoot}`]:t.inputRoot},{[`& .${zt.input}`]:t.input},{[`& .${zt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>S({[`&.${zt.focused} .${zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${zt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${zt.tag}`]:S({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${zt.inputRoot}`]:{flexWrap:"wrap",[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${zt.input}`]:{width:0,minWidth:30}},[`& .${la.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${la.root}.${zi.sizeSmall}`]:{[`& .${la.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ti.root}`]:{padding:9,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${zt.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${Ti.root}.${zi.sizeSmall}`]:{padding:6,[`& .${zt.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${Ni.root}`]:{paddingTop:19,paddingLeft:8,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ni.input}`]:{padding:"7px 4px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${Ni.root}.${zi.sizeSmall}`]:{paddingBottom:1,[`& .${Ni.input}`]:{padding:"2.5px 4px"}},[`& .${zi.hiddenLabel}`]:{paddingTop:8},[`& .${zt.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),tY=re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),nY=re(tr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),rY=re(tr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>S({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>S({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),oY=re(Aa,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),iY=re(Zo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),sY=re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),lY=re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),aY=re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${zt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${zt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${zt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),cY=re(kq,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),uY=re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${zt.option}`]:{paddingLeft:24}}),dY=u.forwardRef(function(t,n){var r,o,i,s;const a=Qe({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:f=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:v,clearIcon:b=_I||(_I=R.jsx(lO,{fontSize:"small"})),clearOnBlur:g=!a.freeSolo,clearOnEscape:x=!1,clearText:C="Clear",closeText:P="Close",componentsProps:w={},defaultValue:E=a.multiple?[]:null,disableClearable:I=!1,disableCloseOnSelect:_=!1,disabled:k=!1,disabledItemsFocusable:$=!1,disableListWrap:T=!1,disablePortal:O=!1,filterSelectedOptions:N=!1,forcePopupIcon:V="auto",freeSolo:j=!1,fullWidth:L=!1,getLimitTagsText:D=Lt=>`+${Lt}`,getOptionLabel:B=Lt=>{var Nn;return(Nn=Lt.label)!=null?Nn:Lt},groupBy:W,handleHomeEndKeys:A=!a.freeSolo,includeInputInList:z=!1,limitTags:G=-1,ListboxComponent:q="ul",ListboxProps:X,loading:ie=!1,loadingText:ee="Loading…",multiple:se=!1,noOptionsText:ae="No options",openOnFocus:we=!1,openText:de="Open",PaperComponent:le=Zo,PopperComponent:te=Aa,popupIcon:be=$I||($I=R.jsx(aO,{})),readOnly:_e=!1,renderGroup:Se,renderInput:Fe,renderOption:Re,renderTags:Ae,selectOnFocus:Oe=!a.freeSolo,size:Ze="medium"}=a,yt=oe(a,Jq),{getRootProps:tt,getInputProps:et,getInputLabelProps:Pt,getPopupIndicatorProps:mt,getClearProps:lt,getTagProps:It,getListboxProps:Xe,getOptionProps:Te,value:ne,dirty:ke,id:Ee,popupOpen:$e,focused:Ge,focusedTag:Ct,anchorEl:jt,setAnchorEl:Ht,inputValue:Jn,groupedOptions:hn}=RU(S({},a,{componentName:"Autocomplete"})),Kn=!I&&!k&&ke&&!_e,Pr=(!j||V===!0)&&V!==!1,mn=S({},a,{disablePortal:O,focused:Ge,fullWidth:L,hasClearIcon:Kn,hasPopupIcon:Pr,inputFocused:Ct===-1,popupOpen:$e,size:Ze}),sn=Zq(mn);let en;if(se&&ne.length>0){const Lt=Nn=>S({className:sn.tag,disabled:k},It(Nn));Ae?en=Ae(ne,Lt,mn):en=ne.map((Nn,ce)=>R.jsx(ev,S({label:B(Nn),size:Ze},Lt({index:ce}),m)))}if(G>-1&&Array.isArray(en)){const Lt=en.length-G;!Ge&&Lt>0&&(en=en.splice(0,G),en.push(R.jsx("span",{className:sn.tag,children:D(Lt)},en.length)))}const Ei=Se||(Lt=>R.jsxs("li",{children:[R.jsx(cY,{className:sn.groupLabel,ownerState:mn,component:"div",children:Lt.group}),R.jsx(uY,{className:sn.groupUl,ownerState:mn,children:Lt.children})]},Lt.key)),ei=Re||((Lt,Nn)=>R.jsx("li",S({},Lt,{children:B(Nn)}))),Eo=(Lt,Nn)=>{const ce=Te({option:Lt,index:Nn});return ei(S({},ce,{className:sn.option}),Lt,{selected:ce["aria-selected"],inputValue:Jn})};return R.jsxs(u.Fragment,{children:[R.jsx(eY,S({ref:n,className:he(sn.root,v),ownerState:mn},tt(yt),{children:Fe({id:Ee,disabled:k,fullWidth:!0,size:Ze==="small"?"small":void 0,InputLabelProps:Pt(),InputProps:S({ref:Ht,className:sn.inputRoot,startAdornment:en},(Kn||Pr)&&{endAdornment:R.jsxs(tY,{className:sn.endAdornment,ownerState:mn,children:[Kn?R.jsx(nY,S({},lt(),{"aria-label":C,title:C,ownerState:mn},w.clearIndicator,{className:he(sn.clearIndicator,(r=w.clearIndicator)==null?void 0:r.className),children:b})):null,Pr?R.jsx(rY,S({},mt(),{disabled:k,"aria-label":$e?P:de,title:$e?P:de,ownerState:mn},w.popupIndicator,{className:he(sn.popupIndicator,(o=w.popupIndicator)==null?void 0:o.className),children:be})):null]})}),inputProps:S({className:sn.input,disabled:k,readOnly:_e},et())})})),jt?R.jsx(oY,S({as:te,disablePortal:O,style:{width:jt?jt.clientWidth:null},ownerState:mn,role:"presentation",anchorEl:jt,open:$e},w.popper,{className:he(sn.popper,(i=w.popper)==null?void 0:i.className),children:R.jsxs(iY,S({ownerState:mn,as:le},w.paper,{className:he(sn.paper,(s=w.paper)==null?void 0:s.className),children:[ie&&hn.length===0?R.jsx(sY,{className:sn.loading,ownerState:mn,children:ee}):null,hn.length===0&&!j&&!ie?R.jsx(lY,{className:sn.noOptions,ownerState:mn,role:"presentation",onMouseDown:Lt=>{Lt.preventDefault()},children:ae}):null,hn.length>0?R.jsx(aY,S({as:q,className:sn.listbox,ownerState:mn},Xe(),X,{children:hn.map((Lt,Nn)=>W?Ei({key:Lt.key,group:Lt.group,children:Lt.options.map((ce,me)=>Eo(ce,Lt.index+me))}):Eo(Lt,Nn))})):null]}))})):null]})}),cO=dY,fY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pY={entering:{opacity:1},entered:{opacity:1}},hY=u.forwardRef(function(t,n){const r=Zr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:c,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:v,onExited:b,onExiting:g,style:x,timeout:C=o,TransitionComponent:P=Jg}=t,w=oe(t,fY),E=u.useRef(null),I=St(a.ref,n),_=St(E,I),k=D=>B=>{if(D){const W=E.current;B===void 0?D(W):D(W,B)}},$=k(m),T=k((D,B)=>{kC(D);const W=_l({style:x,timeout:C,easing:c},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",W),D.style.transition=r.transitions.create("opacity",W),p&&p(D,B)}),O=k(h),N=k(g),V=k(D=>{const B=_l({style:x,timeout:C,easing:c},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",B),D.style.transition=r.transitions.create("opacity",B),v&&v(D)}),j=k(b),L=D=>{i&&i(E.current,D)};return R.jsx(P,S({appear:s,in:f,nodeRef:E,onEnter:T,onEntered:O,onEntering:$,onExit:V,onExited:j,onExiting:N,addEndListener:L,timeout:C},w,{children:(D,B)=>u.cloneElement(a,S({style:S({opacity:0,visibility:D==="exited"&&!f?"hidden":void 0},pY[D],x,a.props.style),ref:_},B))}))}),uO=hY;function mY(e){return Ke("MuiBackdrop",e)}Ve("MuiBackdrop",["root","invisible"]);const gY=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],vY=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},mY,t)},yY=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),bY=u.forwardRef(function(t,n){var r,o;const i=Qe({props:t,name:"MuiBackdrop"}),{children:s,component:a="div",components:c={},componentsProps:f={},className:p,invisible:h=!1,open:m,transitionDuration:v,TransitionComponent:b=uO}=i,g=oe(i,gY),x=S({},i,{component:a,invisible:h}),C=vY(x);return R.jsx(b,S({in:m,timeout:v},g,{children:R.jsx(yY,{"aria-hidden":!0,as:(r=c.Root)!=null?r:a,className:he(C.root,p),ownerState:S({},x,(o=f.root)==null?void 0:o.ownerState),classes:C,ref:n,children:s})}))}),dO=bY,wY=e=>!e||!Il(e),MI=wY;function CY(e){return Ke("MuiBadge",e)}const xY=Ve("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"]),Ws=xY,SY=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],M0=10,T0=4,EY=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`,`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}${fe(o)}`,`overlap${fe(o)}`,t!=="default"&&`color${fe(t)}`]};return Ie(a,CY,s)},PY=re("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),kY=re("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}${fe(n.overlap)}`],n.color!=="default"&&t[`color${fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>S({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:M0*2,lineHeight:1,padding:"0 6px",height:M0*2,borderRadius:M0,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:T0,height:T0*2,minWidth:T0*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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),IY=u.forwardRef(function(t,n){var r,o,i,s;const a=Qe({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:f,component:p="span",components:h={},componentsProps:m={},overlap:v="rectangular",color:b="default",invisible:g=!1,max:x,badgeContent:C,showZero:P=!1,variant:w="standard"}=a,E=oe(a,SY),I=xR({anchorOrigin:c,color:b,overlap:v,variant:w});let _=g;g===!1&&(C===0&&!P||C==null&&w!=="dot")&&(_=!0);const{color:k=b,overlap:$=v,anchorOrigin:T=c,variant:O=w}=_?I:a,N=S({},a,{anchorOrigin:T,invisible:_,color:k,overlap:$,variant:O}),V=EY(N);let j;return O!=="dot"&&(j=C&&Number(C)>x?`${x}+`:C),R.jsx(DU,S({invisible:g,badgeContent:j,showZero:P,max:x},E,{components:S({Root:PY,Badge:kY},h),className:he((r=m.root)==null?void 0:r.className,V.root,f),componentsProps:{root:S({},m.root,MI(h.Root)&&{as:p,ownerState:S({},(o=m.root)==null?void 0:o.ownerState,{anchorOrigin:T,color:k,overlap:$,variant:O})}),badge:S({},m.badge,{className:he(V.badge,(i=m.badge)==null?void 0:i.className)},MI(h.Badge)&&{ownerState:S({},(s=m.badge)==null?void 0:s.ownerState,{anchorOrigin:T,color:k,overlap:$,variant:O})})},ref:n}))}),fO=IY,_Y=xC(),$Y=dU({defaultTheme:_Y,defaultClassName:"MuiBox-root",generateClassName:iC.generate}),it=$Y;function MY(e){return Ke("MuiButton",e)}const TY=Ve("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"]),$h=TY,RY=u.createContext({}),OY=RY,LY=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],AY=["root"],FY=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${fe(o)}`],endIcon:["endIcon",`iconSize${fe(o)}`]},c=Ie(a,MY,s);return S({},s,c)},pO=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),NY=re(Ji,{shouldForwardProp:e=>xo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color)}`],t[`size${fe(n.size)}`],t[`${n.variant}Size${fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(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})`:rt(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})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${$h.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$h.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="outlined"&&t.color==="secondary"&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},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 ${rt(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).palette.grey[300],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"},[`&.${$h.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$h.disabled}`]:{boxShadow:"none"}}),DY=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},pO(e))),BY=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},pO(e))),zY=u.forwardRef(function(t,n){const r=u.useContext(OY),o=SR(r,t),i=Qe({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:f,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:b,fullWidth:g=!1,size:x="medium",startIcon:C,type:P,variant:w="text"}=i,E=oe(i,LY),I=S({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:g,size:x,type:P,variant:w}),_=FY(I),{root:k}=_,$=oe(_,AY),T=C&&R.jsx(DY,{className:$.startIcon,ownerState:I,children:C}),O=v&&R.jsx(BY,{className:$.endIcon,ownerState:I,children:v});return R.jsxs(NY,S({ownerState:I,className:he(r.className,k,f),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:he($.focusVisible,b),ref:n,type:P},E,{classes:$,children:[T,s,O]}))}),cr=zY;function jY(e){return Ke("MuiCard",e)}Ve("MuiCard",["root"]);const HY=["className","raised"],VY=e=>{const{classes:t}=e;return Ie({root:["root"]},jY,t)},UY=re(Zo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),WY=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=oe(r,HY),a=S({},r,{raised:i}),c=VY(a);return R.jsx(UY,S({className:he(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),hO=WY;function GY(e){return Ke("MuiCardContent",e)}Ve("MuiCardContent",["root"]);const KY=["className","component"],qY=e=>{const{classes:t}=e;return Ie({root:["root"]},GY,t)},YY=re("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),XY=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=oe(r,KY),a=S({},r,{component:i}),c=qY(a);return R.jsx(YY,S({as:i,className:he(c.root,o),ownerState:a,ref:n},s))}),mO=XY;function QY(e){return Ke("PrivateSwitchBase",e)}Ve("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const JY=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ZY=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${fe(o)}`],input:["input"]};return Ie(i,QY,t)},eX=re(Ji)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),tX=re("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),nX=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:h,id:m,inputProps:v,inputRef:b,name:g,onBlur:x,onChange:C,onFocus:P,readOnly:w,required:E,tabIndex:I,type:_,value:k}=t,$=oe(t,JY),[T,O]=Ui({controlled:o,default:Boolean(a),name:"SwitchBase",state:"checked"}),N=Os(),V=z=>{P&&P(z),N&&N.onFocus&&N.onFocus(z)},j=z=>{x&&x(z),N&&N.onBlur&&N.onBlur(z)},L=z=>{if(z.nativeEvent.defaultPrevented)return;const G=z.target.checked;O(G),C&&C(z,G)};let D=c;N&&typeof D=="undefined"&&(D=N.disabled);const B=_==="checkbox"||_==="radio",W=S({},t,{checked:T,disabled:D,disableFocusRipple:f,edge:p}),A=ZY(W);return R.jsxs(eX,S({component:"span",className:he(A.root,s),centerRipple:!0,focusRipple:!f,disabled:D,tabIndex:null,role:void 0,onFocus:V,onBlur:j,ownerState:W,ref:n},$,{children:[R.jsx(tX,S({autoFocus:r,checked:o,defaultChecked:a,className:A.input,disabled:D,id:B&&m,name:g,onChange:L,readOnly:w,ref:b,required:E,ownerState:W,tabIndex:I,type:_},_==="checkbox"&&k===void 0?{}:{value:k},v)),T?i:h]}))}),gO=nX,rX=Mt(R.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"),oX=Mt(R.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"),iX=Mt(R.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 sX(e){return Ke("MuiCheckbox",e)}const lX=Ve("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),R0=lX,aX=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],cX=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${fe(r)}`]},i=Ie(o,sX,t);return S({},t,i)},uX=re(gO,{shouldForwardProp:e=>xo(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${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${R0.checked}, &.${R0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${R0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),dX=R.jsx(oX,{}),fX=R.jsx(rX,{}),pX=R.jsx(iX,{}),hX=u.forwardRef(function(t,n){var r,o;const i=Qe({props:t,name:"MuiCheckbox"}),{checkedIcon:s=dX,color:a="primary",icon:c=fX,indeterminate:f=!1,indeterminateIcon:p=pX,inputProps:h,size:m="medium"}=i,v=oe(i,aX),b=f?p:c,g=f?p:s,x=S({},i,{color:a,indeterminate:f,size:m}),C=cX(x);return R.jsx(uX,S({type:"checkbox",inputProps:S({"data-indeterminate":f},h),icon:u.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(g,{fontSize:(o=g.props.fontSize)!=null?o:m}),ownerState:x,ref:n},v,{classes:C}))}),vO=hX;function mX(e){return Ke("MuiCircularProgress",e)}Ve("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gX=["className","color","disableShrink","size","style","thickness","value","variant"];let sv=e=>e,TI,RI,OI,LI;const Gs=44,vX=Al(TI||(TI=sv`
|
|
153
|
+
0% {
|
|
154
|
+
transform: rotate(0deg);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
100% {
|
|
158
|
+
transform: rotate(360deg);
|
|
159
|
+
}
|
|
160
|
+
`)),yX=Al(RI||(RI=sv`
|
|
161
|
+
0% {
|
|
162
|
+
stroke-dasharray: 1px, 200px;
|
|
163
|
+
stroke-dashoffset: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
50% {
|
|
167
|
+
stroke-dasharray: 100px, 200px;
|
|
168
|
+
stroke-dashoffset: -15px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
100% {
|
|
172
|
+
stroke-dasharray: 100px, 200px;
|
|
173
|
+
stroke-dashoffset: -125px;
|
|
174
|
+
}
|
|
175
|
+
`)),bX=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${fe(r)}`],svg:["svg"],circle:["circle",`circle${fe(n)}`,o&&"circleDisableShrink"]};return Ie(i,mX,t)},wX=re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Pu(OI||(OI=sv`
|
|
176
|
+
animation: ${0} 1.4s linear infinite;
|
|
177
|
+
`),vX)),CX=re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),xX=re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${fe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Pu(LI||(LI=sv`
|
|
178
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
179
|
+
`),yX)),SX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:c,thickness:f=3.6,value:p=0,variant:h="indeterminate"}=r,m=oe(r,gX),v=S({},r,{color:i,disableShrink:s,size:a,thickness:f,value:p,variant:h}),b=bX(v),g={},x={},C={};if(h==="determinate"){const P=2*Math.PI*((Gs-f)/2);g.strokeDasharray=P.toFixed(3),C["aria-valuenow"]=Math.round(p),g.strokeDashoffset=`${((100-p)/100*P).toFixed(3)}px`,x.transform="rotate(-90deg)"}return R.jsx(wX,S({className:he(b.root,o),style:S({width:a,height:a},x,c),ownerState:v,ref:n,role:"progressbar"},C,m,{children:R.jsx(CX,{className:b.svg,ownerState:v,viewBox:`${Gs/2} ${Gs/2} ${Gs} ${Gs}`,children:R.jsx(xX,{className:b.circle,style:g,ownerState:v,cx:Gs,cy:Gs,r:(Gs-f)/2,fill:"none",strokeWidth:f})})}))}),ep=SX,EX=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],PX=e=>e.classes,kX=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),IX=re(dO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),_X=u.forwardRef(function(t,n){var r,o;const i=Qe({name:"MuiModal",props:t}),{BackdropComponent:s=IX,BackdropProps:a,closeAfterTransition:c=!1,children:f,component:p,components:h={},componentsProps:m={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:g=!1,disablePortal:x=!1,disableRestoreFocus:C=!1,disableScrollLock:P=!1,hideBackdrop:w=!1,keepMounted:E=!1,theme:I}=i,_=oe(i,EX),[k,$]=u.useState(!0),T={closeAfterTransition:c,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:g,disablePortal:x,disableRestoreFocus:C,disableScrollLock:P,hideBackdrop:w,keepMounted:E},O=S({},i,T,{exited:k}),N=PX(O),V=(r=(o=h.Root)!=null?o:p)!=null?r:kX;return R.jsx(CG,S({components:S({Root:V,Backdrop:s},h),componentsProps:{root:()=>S({},lb(m.root,O),!Il(V)&&{as:p,theme:I}),backdrop:()=>S({},a,lb(m.backdrop,O))},onTransitionEnter:()=>$(!1),onTransitionExited:()=>$(!0),ref:n},_,{classes:N},T,{children:f}))}),_C=_X;function $X(e){return Ke("MuiDialog",e)}const MX=Ve("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),O0=MX,TX=u.createContext({}),yO=TX,RX=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],OX=re(dO,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),LX=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(s,$X,t)},AX=re(_C,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),FX=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),NX=re(Zo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${O0.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}`,[`&.${O0.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,[`&.${O0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),DX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDialog"}),o=Zr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:f,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:g="sm",onBackdropClick:x,onClose:C,open:P,PaperComponent:w=Zo,PaperProps:E={},scroll:I="paper",TransitionComponent:_=uO,transitionDuration:k=i,TransitionProps:$}=r,T=oe(r,RX),O=S({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:b,maxWidth:g,scroll:I}),N=LX(O),V=u.useRef(),j=W=>{V.current=W.target===W.currentTarget},L=W=>{V.current&&(V.current=null,x&&x(W),C&&C(W,"backdropClick"))},D=Pn(a),B=u.useMemo(()=>({titleId:D}),[D]);return R.jsx(AX,S({className:he(N.root,h),closeAfterTransition:!0,components:{Backdrop:OX},componentsProps:{backdrop:S({transitionDuration:k,as:c},f)},disableEscapeKeyDown:m,onClose:C,open:P,ref:n,onClick:L,ownerState:O},T,{children:R.jsx(_,S({appear:!0,in:P,timeout:k,role:"presentation"},$,{children:R.jsx(FX,{className:he(N.container),onMouseDown:j,ownerState:O,children:R.jsx(NX,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},E,{className:he(N.paper,E.className),ownerState:O,children:R.jsx(yO.Provider,{value:B,children:p})}))})}))}))}),BX=DX;function zX(e){return Ke("MuiDialogContent",e)}Ve("MuiDialogContent",["root","dividers"]);function jX(e){return Ke("MuiDialogTitle",e)}const HX=Ve("MuiDialogTitle",["root"]),VX=HX,UX=["className","dividers"],WX=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},zX,t)},GX=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${VX.root} + &`]:{paddingTop:0}})),KX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=oe(r,UX),a=S({},r,{dividers:i}),c=WX(a);return R.jsx(GX,S({className:he(c.root,o),ownerState:a,ref:n},s))}),qX=KX,YX=["className","id"],XX=e=>{const{classes:t}=e;return Ie({root:["root"]},jX,t)},QX=re(Cr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),JX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=oe(r,YX),a=r,c=XX(a),{titleId:f=i}=u.useContext(yO);return R.jsx(QX,S({component:"h2",className:he(c.root,o),ownerState:a,ref:n,variant:"h6",id:f},s))}),ZX=JX,eQ=Ve("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),AI=eQ,tQ=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nQ(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Jr(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const f=i.getComputedStyle(t);s=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}let a=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const f=s.split("(")[1].split(")")[0].split(",");a=parseInt(f[4],10),c=parseInt(f[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 rQ(e){return typeof e=="function"?e():e}function Mh(e,t,n){const r=rQ(n),o=nQ(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const oQ=u.forwardRef(function(t,n){const r=Zr(),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:f,direction:p="down",easing:h=o,in:m,onEnter:v,onEntered:b,onEntering:g,onExit:x,onExited:C,onExiting:P,style:w,timeout:E=i,TransitionComponent:I=Jg}=t,_=oe(t,tQ),k=u.useRef(null),$=St(c.ref,k),T=St($,n),O=z=>G=>{z&&(G===void 0?z(k.current):z(k.current,G))},N=O((z,G)=>{Mh(p,z,f),kC(z),v&&v(z,G)}),V=O((z,G)=>{const q=_l({timeout:E,style:w,easing:h},{mode:"enter"});z.style.webkitTransition=r.transitions.create("-webkit-transform",S({},q)),z.style.transition=r.transitions.create("transform",S({},q)),z.style.webkitTransform="none",z.style.transform="none",g&&g(z,G)}),j=O(b),L=O(P),D=O(z=>{const G=_l({timeout:E,style:w,easing:h},{mode:"exit"});z.style.webkitTransition=r.transitions.create("-webkit-transform",G),z.style.transition=r.transitions.create("transform",G),Mh(p,z,f),x&&x(z)}),B=O(z=>{z.style.webkitTransition="",z.style.transition="",C&&C(z)}),W=z=>{s&&s(k.current,z)},A=u.useCallback(()=>{k.current&&Mh(p,k.current,f)},[p,f]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const z=ks(()=>{k.current&&Mh(p,k.current,f)}),G=Jr(k.current);return G.addEventListener("resize",z),()=>{z.clear(),G.removeEventListener("resize",z)}},[p,m,f]),u.useEffect(()=>{m||A()},[m,A]),R.jsx(I,S({nodeRef:k,onEnter:N,onEntered:j,onEntering:V,onExit:D,onExited:B,onExiting:L,addEndListener:W,appear:a,in:m,timeout:E},_,{children:(z,G)=>u.cloneElement(c,S({ref:T,style:S({visibility:z==="exited"&&!m?"hidden":void 0},w,c.props.style)},G))}))}),iQ=oQ;function sQ(e){return Ke("MuiDrawer",e)}Ve("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const lQ=["BackdropProps"],aQ=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],bO=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},cQ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${fe(n)}`,r!=="temporary"&&`paperAnchorDocked${fe(n)}`]};return Ie(o,sQ,t)},uQ=re(_C,{name:"MuiDrawer",slot:"Root",overridesResolver:bO})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),FI=re("div",{shouldForwardProp:xo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:bO})({flex:"0 0 auto"}),dQ=re(Zo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${fe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${fe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),wO={left:"right",right:"left",top:"down",bottom:"up"};function fQ(e){return["left","right"].indexOf(e)!==-1}function pQ(e,t){return e.direction==="rtl"&&fQ(t)?wO[t]:t}const hQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDrawer"}),o=Zr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:c,className:f,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:v,open:b=!1,PaperProps:g={},SlideProps:x,TransitionComponent:C=iQ,transitionDuration:P=i,variant:w="temporary"}=r,E=oe(r.ModalProps,lQ),I=oe(r,aQ),_=u.useRef(!1);u.useEffect(()=>{_.current=!0},[]);const k=pQ(o,s),T=S({},r,{anchor:s,elevation:p,open:b,variant:w},I),O=cQ(T),N=R.jsx(dQ,S({elevation:w==="temporary"?p:0,square:!0},g,{className:he(O.paper,g.className),ownerState:T,children:c}));if(w==="permanent")return R.jsx(FI,S({className:he(O.root,O.docked,f),ownerState:T,ref:n},I,{children:N}));const V=R.jsx(C,S({in:b,direction:wO[k],timeout:P,appear:_.current},x,{children:N}));return w==="persistent"?R.jsx(FI,S({className:he(O.root,O.docked,f),ownerState:T,ref:n},I,{children:V})):R.jsx(uQ,S({BackdropProps:S({},a,m,{transitionDuration:P}),className:he(O.root,O.modal,f),open:b,ownerState:T,onClose:v,hideBackdrop:h,ref:n},I,E,{children:V}))}),mQ=hQ,gQ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],vQ=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},qq,t);return S({},t,o)},yQ=re(ov,{shouldForwardProp:e=>xo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nv(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 S({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}},[`&.${Ni.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ni.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"},[`&.${Ni.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ni.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&: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(.${Ni.disabled}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ni.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),bQ=re(iv,{name:"MuiFilledInput",slot:"Input",overridesResolver:rv})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.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})),CO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFilledInput"}),{components:o={},componentsProps:i,fullWidth:s=!1,inputComponent:a="input",multiline:c=!1,type:f="text"}=r,p=oe(r,gQ),h=S({},r,{fullWidth:s,inputComponent:a,multiline:c,type:f}),m=vQ(r),v={root:{ownerState:h},input:{ownerState:h}},b=i?Ho(i,v):v;return R.jsx(ku,S({components:S({Root:yQ,Input:bQ},o),componentsProps:b,fullWidth:s,inputComponent:a,multiline:c,ref:n,type:f},p,{classes:m}))});CO.muiName="Input";const xO=CO;function wQ(e){return Ke("MuiFormControl",e)}Ve("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const CQ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xQ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${fe(n)}`,r&&"fullWidth"]};return Ie(o,wQ,t)},SQ=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),EQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:v="none",required:b=!1,size:g="medium",variant:x="outlined"}=r,C=oe(r,CQ),P=S({},r,{color:s,component:a,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:v,required:b,size:g,variant:x}),w=xQ(P),[E,I]=u.useState(()=>{let D=!1;return o&&u.Children.forEach(o,B=>{if(!Vd(B,["Input","Select"]))return;const W=Vd(B,["Select"])?B.props.input:B;W&&Nq(W.props)&&(D=!0)}),D}),[_,k]=u.useState(()=>{let D=!1;return o&&u.Children.forEach(o,B=>{Vd(B,["Input","Select"])&&IC(B.props,!0)&&(D=!0)}),D}),[$,T]=u.useState(!1);c&&$&&T(!1);const O=p!==void 0&&!c?p:$;let N;const V=u.useCallback(()=>{k(!0)},[]),j=u.useCallback(()=>{k(!1)},[]),L={adornedStart:E,setAdornedStart:I,color:s,disabled:c,error:f,filled:_,focused:O,fullWidth:h,hiddenLabel:m,size:g,onBlur:()=>{T(!1)},onEmpty:j,onFilled:V,onFocus:()=>{T(!0)},registerEffect:N,required:b,variant:x};return R.jsx(tv.Provider,{value:L,children:R.jsx(SQ,S({as:a,ownerState:P,className:he(w.root,i),ref:n},C,{children:o}))})}),Na=EQ;function PQ(e){return Ke("MuiFormControlLabel",e)}const kQ=Ve("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Th=kQ,IQ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],_Q=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e,i={root:["root",n&&"disabled",`labelPlacement${fe(r)}`,o&&"error"],label:["label",n&&"disabled"]};return Ie(i,PQ,t)},$Q=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Th.label}`]:t.label},t.root,t[`labelPlacement${fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Th.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},{[`& .${Th.label}`]:{[`&.${Th.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),MQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:i={},control:s,disabled:a,disableTypography:c,label:f,labelPlacement:p="end"}=r,h=oe(r,IQ),m=Os();let v=a;typeof v=="undefined"&&typeof s.props.disabled!="undefined"&&(v=s.props.disabled),typeof v=="undefined"&&m&&(v=m.disabled);const b={disabled:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof s.props[w]=="undefined"&&typeof r[w]!="undefined"&&(b[w]=r[w])});const g=Fa({props:r,muiFormControl:m,states:["error"]}),x=S({},r,{disabled:v,labelPlacement:p,error:g.error}),C=_Q(x);let P=f;return P!=null&&P.type!==Cr&&!c&&(P=R.jsx(Cr,S({component:"span",className:C.label},i.typography,{children:P}))),R.jsxs($Q,S({className:he(C.root,o),ownerState:x,ref:n},h,{children:[u.cloneElement(s,b),P]}))}),SO=MQ;function TQ(e){return Ke("MuiFormHelperText",e)}const RQ=Ve("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),NI=RQ;var DI;const OQ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],LQ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:c}=e,f={root:["root",o&&"disabled",i&&"error",r&&`size${fe(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return Ie(f,TQ,t)},AQ=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${NI.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${NI.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),FQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=oe(r,OQ),c=Os(),f=Fa({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=S({},r,{component:s,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),h=LQ(p);return R.jsx(AQ,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:o===" "?DI||(DI=R.jsx("span",{className:"notranslate",children:""})):o}))}),lv=FQ;function NQ(e){return Ke("MuiFormLabel",e)}const DQ=Ve("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Yd=DQ,BQ=["children","className","color","component","disabled","error","filled","focused","required"],zQ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${fe(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Ie(c,NQ,t)},jQ=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Yd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Yd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yd.error}`]:{color:(e.vars||e).palette.error.main}})),HQ=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Yd.error}`]:{color:(e.vars||e).palette.error.main}})),VQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=oe(r,BQ),c=Os(),f=Fa({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=S({},r,{color:f.color||"primary",component:s,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),h=zQ(p);return R.jsxs(jQ,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:[o,f.required&&R.jsxs(HQ,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),EO=VQ,UQ=u.createContext(),BI=UQ;function WQ(e){return Ke("MuiGrid",e)}const GQ=[0,1,2,3,4,5,6,7,8,9,10],KQ=["column-reverse","column","row-reverse","row"],qQ=["nowrap","wrap-reverse","wrap"],hd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],If=Ve("MuiGrid",["root","container","item","zeroMinWidth",...GQ.map(e=>`spacing-xs-${e}`),...KQ.map(e=>`direction-xs-${e}`),...qQ.map(e=>`wrap-xs-${e}`),...hd.map(e=>`grid-xs-${e}`),...hd.map(e=>`grid-sm-${e}`),...hd.map(e=>`grid-md-${e}`),...hd.map(e=>`grid-lg-${e}`),...hd.map(e=>`grid-xl-${e}`)]),YQ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Wc(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function XQ({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=Gg({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 f={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${c} + ${Wc(p)})`;f={flexBasis:h,maxWidth:h}}}i=S({flexBasis:c,flexGrow:0,maxWidth:c},f)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function QQ({theme:e,ownerState:t}){const n=Gg({values:t.direction,breakpoints:e.breakpoints.values});return bi({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${If.item}`]={maxWidth:"none"}),o})}function PO({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 JQ({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Gg({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=PO({breakpoints:e.breakpoints.values,values:i})),o=bi({theme:e},i,(a,c)=>{var f;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${Wc(p)}`,[`& > .${If.item}`]:{paddingTop:Wc(p)}}:(f=s)!=null&&f.includes(c)?{}:{marginTop:0,[`& > .${If.item}`]:{paddingTop:0}}})}return o}function ZQ({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Gg({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=PO({breakpoints:e.breakpoints.values,values:i})),o=bi({theme:e},i,(a,c)=>{var f;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${Wc(p)})`,marginLeft:`-${Wc(p)}`,[`& > .${If.item}`]:{paddingLeft:Wc(p)}}:(f=s)!=null&&f.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${If.item}`]:{paddingLeft:0}}})}return o}function eJ(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 tJ=re("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:f}=n;let p=[];r&&(p=eJ(s,f,t));const h=[];return f.forEach(m=>{const v=n[m];v&&h.push(t[`grid-${m}-${String(v)}`])}),[t.root,r&&t.container,i&&t.item,c&&t.zeroMinWidth,...p,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...h]}})(({ownerState:e})=>S({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),QQ,JQ,ZQ,XQ);function nJ(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 rJ=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let f=[];n&&(f=nJ(i,c));const p=[];c.forEach(m=>{const v=e[m];v&&p.push(`grid-${m}-${String(v)}`)});const h={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...f,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...p]};return Ie(h,WQ,t)},oJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiGrid"}),{breakpoints:o}=Zr(),i=dC(r),{className:s,columns:a,columnSpacing:c,component:f="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:v,spacing:b=0,wrap:g="wrap",zeroMinWidth:x=!1}=i,C=oe(i,YQ),P=v||b,w=c||b,E=u.useContext(BI),I=p?a||12:E,_={},k=S({},C);o.keys.forEach(O=>{C[O]!=null&&(_[O]=C[O],delete k[O])});const $=S({},i,{columns:I,container:p,direction:h,item:m,rowSpacing:P,columnSpacing:w,wrap:g,zeroMinWidth:x,spacing:b},_,{breakpoints:o.keys}),T=rJ($);return R.jsx(BI.Provider,{value:I,children:R.jsx(tJ,S({ownerState:$,className:he(T.root,s),as:f,ref:n},k))})}),Vn=oJ,iJ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mb(e){return`scale(${e}, ${cs(e,2)})`}const sJ={entering:{opacity:1,transform:mb(1)},entered:{opacity:1,transform:"none"}},L0=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),kO=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:v,style:b,timeout:g="auto",TransitionComponent:x=Jg}=t,C=oe(t,iJ),P=u.useRef(),w=u.useRef(),E=Zr(),I=u.useRef(null),_=St(i.ref,n),k=St(I,_),$=B=>W=>{if(B){const A=I.current;W===void 0?B(A):B(A,W)}},T=$(p),O=$((B,W)=>{kC(B);const{duration:A,delay:z,easing:G}=_l({style:b,timeout:g,easing:s},{mode:"enter"});let q;g==="auto"?(q=E.transitions.getAutoHeightDuration(B.clientHeight),w.current=q):q=A,B.style.transition=[E.transitions.create("opacity",{duration:q,delay:z}),E.transitions.create("transform",{duration:L0?q:q*.666,delay:z,easing:G})].join(","),c&&c(B,W)}),N=$(f),V=$(v),j=$(B=>{const{duration:W,delay:A,easing:z}=_l({style:b,timeout:g,easing:s},{mode:"exit"});let G;g==="auto"?(G=E.transitions.getAutoHeightDuration(B.clientHeight),w.current=G):G=W,B.style.transition=[E.transitions.create("opacity",{duration:G,delay:A}),E.transitions.create("transform",{duration:L0?G:G*.666,delay:L0?A:A||G*.333,easing:z})].join(","),B.style.opacity=0,B.style.transform=mb(.75),h&&h(B)}),L=$(m),D=B=>{g==="auto"&&(P.current=setTimeout(B,w.current||0)),r&&r(I.current,B)};return u.useEffect(()=>()=>{clearTimeout(P.current)},[]),R.jsx(x,S({appear:o,in:a,nodeRef:I,onEnter:O,onEntered:N,onEntering:T,onExit:j,onExited:L,onExiting:V,addEndListener:D,timeout:g==="auto"?null:g},C,{children:(B,W)=>u.cloneElement(i,S({style:S({opacity:0,transform:mb(.75),visibility:B==="exited"&&!a?"hidden":void 0},sJ[B],b,i.props.style),ref:k},W))}))});kO.muiSupportAuto=!0;const Bm=kO;function lJ(e,t,n,r,o){const i=typeof window!="undefined"&&typeof window.matchMedia!="undefined",[s,a]=u.useState(()=>o&&i?n(e).matches:r?r(e).matches:t);return Rn(()=>{let c=!0;if(!i)return;const f=n(e),p=()=>{c&&a(f.matches)};return p(),f.addListener(p),()=>{c=!1,f.removeListener(p)}},[e,n,i]),s}const IO=Qc["useSyncExternalStore"];function aJ(e,t,n,r){const o=u.useCallback(()=>t,[t]),i=u.useMemo(()=>{if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r]),[s,a]=u.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addListener(p),()=>{f.removeListener(p)})]},[o,n,e]);return IO(a,s,i)}function _O(e,t={}){const n=pC(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a}=VR({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(IO!==void 0?aJ:lJ)(c,o,i,s,a)}const cJ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],uJ=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},Uq,t);return S({},t,o)},dJ=re(ov,{shouldForwardProp:e=>xo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nv(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${la.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${la.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&: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(.${la.disabled}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${la.disabled}:before`]:{borderBottomStyle:"dotted"}})}),fJ=re(iv,{name:"MuiInput",slot:"Input",overridesResolver:rv})({}),$O=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiInput"}),{disableUnderline:o,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:c="input",multiline:f=!1,type:p="text"}=r,h=oe(r,cJ),m=uJ(r),b={root:{ownerState:{disableUnderline:o}}},g=s?Ho(s,b):b;return R.jsx(ku,S({components:S({Root:dJ,Input:fJ},i),componentsProps:g,fullWidth:a,inputComponent:c,multiline:f,ref:n,type:p},h,{classes:m}))});$O.muiName="Input";const MO=$O;function pJ(e){return Ke("MuiInputAdornment",e)}const hJ=Ve("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),zI=hJ;var jI;const mJ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},vJ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${fe(o)}`,s,r&&"hiddenLabel",i&&`size${fe(i)}`]};return Ie(a,pJ,t)},yJ=re("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gJ})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${zI.positionStart}&:not(.${zI.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),bJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:f,variant:p}=r,h=oe(r,mJ),m=Os()||{};let v=p;p&&m.variant,m&&!v&&(v=m.variant);const b=S({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:f,variant:v}),g=vJ(b);return R.jsx(tv.Provider,{value:null,children:R.jsx(yJ,S({as:s,ownerState:b,className:he(g.root,i),ref:n},h,{children:typeof o=="string"&&!c?R.jsx(Cr,{color:"text.secondary",children:o}):R.jsxs(u.Fragment,{children:[f==="start"?jI||(jI=R.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),zm=bJ;function wJ(e){return Ke("MuiInputLabel",e)}Ve("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const CJ=["disableAnimation","margin","shrink","variant"],xJ=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,f=Ie({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},wJ,t);return S({},t,f)},SJ=re(EO,{shouldForwardProp:e=>xo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Yd.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})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),EJ=u.forwardRef(function(t,n){const r=Qe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i}=r,s=oe(r,CJ),a=Os();let c=i;typeof c=="undefined"&&a&&(c=a.filled||a.focused||a.adornedStart);const f=Fa({props:r,muiFormControl:a,states:["size","variant","required"]}),p=S({},r,{disableAnimation:o,formControl:a,shrink:c,size:f.size,variant:f.variant,required:f.required}),h=xJ(p);return R.jsx(SJ,S({"data-shrink":c,ownerState:p,ref:n},s,{classes:h}))}),gb=EJ;function PJ(e){return Ke("MuiLinearProgress",e)}Ve("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const kJ=["className","color","value","valueBuffer","variant"];let Iu=e=>e,HI,VI,UI,WI,GI,KI;const vb=4,IJ=Al(HI||(HI=Iu`
|
|
180
|
+
0% {
|
|
181
|
+
left: -35%;
|
|
182
|
+
right: 100%;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
60% {
|
|
186
|
+
left: 100%;
|
|
187
|
+
right: -90%;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
100% {
|
|
191
|
+
left: 100%;
|
|
192
|
+
right: -90%;
|
|
193
|
+
}
|
|
194
|
+
`)),_J=Al(VI||(VI=Iu`
|
|
195
|
+
0% {
|
|
196
|
+
left: -200%;
|
|
197
|
+
right: 100%;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
60% {
|
|
201
|
+
left: 107%;
|
|
202
|
+
right: -8%;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
100% {
|
|
206
|
+
left: 107%;
|
|
207
|
+
right: -8%;
|
|
208
|
+
}
|
|
209
|
+
`)),$J=Al(UI||(UI=Iu`
|
|
210
|
+
0% {
|
|
211
|
+
opacity: 1;
|
|
212
|
+
background-position: 0 -23px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
60% {
|
|
216
|
+
opacity: 0;
|
|
217
|
+
background-position: 0 -23px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
100% {
|
|
221
|
+
opacity: 1;
|
|
222
|
+
background-position: -200px -23px;
|
|
223
|
+
}
|
|
224
|
+
`)),MJ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${fe(r)}`,n],dashed:["dashed",`dashedColor${fe(r)}`],bar1:["bar",`barColor${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${fe(r)}`,n==="buffer"&&`color${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ie(o,PJ,t)},$C=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?_s(e.palette[t].main,.62):Is(e.palette[t].main,.5),TJ=re("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${fe(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>S({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:$C(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)"})),RJ=re("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=$C(t,e.color);return S({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Pu(WI||(WI=Iu`
|
|
225
|
+
animation: ${0} 3s infinite linear;
|
|
226
|
+
`),$J)),OJ=re("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${vb}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${vb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Pu(GI||(GI=Iu`
|
|
227
|
+
width: auto;
|
|
228
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
229
|
+
`),IJ)),LJ=re("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:$C(t,e.color),transition:`transform .${vb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Pu(KI||(KI=Iu`
|
|
230
|
+
width: auto;
|
|
231
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
232
|
+
`),_J)),AJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,f=oe(r,kJ),p=S({},r,{color:i,variant:c}),h=MJ(p),m=Zr(),v={},b={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let g=s-100;m.direction==="rtl"&&(g=-g),b.bar1.transform=`translateX(${g}%)`}if(c==="buffer"&&a!==void 0){let g=(a||0)-100;m.direction==="rtl"&&(g=-g),b.bar2.transform=`translateX(${g}%)`}return R.jsxs(TJ,S({className:he(h.root,o),ownerState:p,role:"progressbar"},v,{ref:n},f,{children:[c==="buffer"?R.jsx(RJ,{className:h.dashed,ownerState:p}):null,R.jsx(OJ,{className:h.bar1,ownerState:p,style:b.bar1}),c==="determinate"?null:R.jsx(LJ,{className:h.bar2,ownerState:p,style:b.bar2})]}))}),FJ=AJ;function NJ(e){return Ke("MuiLink",e)}const DJ=Ve("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),BJ=DJ,TO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zJ=e=>TO[e]||e,jJ=({theme:e,ownerState:t})=>{const n=zJ(t.color),r=Sf(e,`palette.${n}`,!1)||t.color,o=Sf(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:rt(r,.4)},HJ=jJ,VJ=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],UJ=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${fe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Ie(i,NJ,t)},WJ=re(Cr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${fe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>S({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&S({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:HJ({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"},[`&.${BJ.focusVisible}`]:{outline:"auto"}})),GJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:c,TypographyClasses:f,underline:p="always",variant:h="inherit",sx:m}=r,v=oe(r,VJ),{isFocusVisibleRef:b,onBlur:g,onFocus:x,ref:C}=Wg(),[P,w]=u.useState(!1),E=St(n,C),I=T=>{g(T),b.current===!1&&w(!1),a&&a(T)},_=T=>{x(T),b.current===!0&&w(!0),c&&c(T)},k=S({},r,{color:i,component:s,focusVisible:P,underline:p,variant:h}),$=UJ(k);return R.jsx(WJ,S({color:i,className:he($.root,o),classes:f,component:s,onBlur:I,onFocus:_,ref:E,ownerState:k,variant:h,sx:[...Object.keys(TO).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},v))}),_f=GJ,KJ=u.createContext({}),mi=KJ;function qJ(e){return Ke("MuiList",e)}Ve("MuiList",["root","padding","dense","subheader"]);const YJ=["children","className","component","dense","disablePadding","subheader"],XJ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},qJ,t)},QJ=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),JJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:f}=r,p=oe(r,YJ),h=u.useMemo(()=>({dense:a}),[a]),m=S({},r,{component:s,dense:a,disablePadding:c}),v=XJ(m);return R.jsx(mi.Provider,{value:h,children:R.jsxs(QJ,S({as:s,className:he(v.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})}),av=JJ;function ZJ(e){return Ke("MuiListItem",e)}const eZ=Ve("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Cc=eZ;function tZ(e){return Ke("MuiListItemButton",e)}const nZ=Ve("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),xc=nZ,rZ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],oZ=(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]},iZ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,f=Ie({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},tZ,n);return S({},n,f)},sZ=re(Ji,{shouldForwardProp:e=>xo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:oZ})(({theme:e,ownerState:t})=>S({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xc.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})),lZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1}=r,v=oe(r,rZ),b=u.useContext(mi),g={dense:c||b.dense||!1,alignItems:o,disableGutters:f},x=u.useRef(null);Rn(()=>{i&&x.current&&x.current.focus()},[i]);const C=S({},r,{alignItems:o,dense:g.dense,disableGutters:f,divider:p,selected:m}),P=iZ(C),w=St(x,n);return R.jsx(mi.Provider,{value:g,children:R.jsx(sZ,S({ref:w,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"a":s,focusVisibleClassName:he(P.focusVisible,h),ownerState:C},v,{classes:P,children:a}))})}),aZ=lZ;function cZ(e){return Ke("MuiListItemSecondaryAction",e)}Ve("MuiListItemSecondaryAction",["root","disableGutters"]);const uZ=["className"],dZ=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},cZ,n)},fZ=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),RO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=oe(r,uZ),s=u.useContext(mi),a=S({},r,{disableGutters:s.disableGutters}),c=dZ(a);return R.jsx(fZ,S({className:he(c.root,o),ownerState:a,ref:n},i))});RO.muiName="ListItemSecondaryAction";const pZ=RO,hZ=["className"],mZ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],gZ=(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]},vZ=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:f,selected:p}=e;return Ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},ZJ,r)},yZ=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:gZ})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${xc.root}`]:{paddingRight:48}},{[`&.${Cc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cc.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"}},[`&.${Cc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),bZ=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),wZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:c,component:f,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:v}={},dense:b=!1,disabled:g=!1,disableGutters:x=!1,disablePadding:C=!1,divider:P=!1,focusVisibleClassName:w,secondaryAction:E,selected:I=!1}=r,_=oe(r.ContainerProps,hZ),k=oe(r,mZ),$=u.useContext(mi),T={dense:b||$.dense||!1,alignItems:o,disableGutters:x},O=u.useRef(null);Rn(()=>{i&&O.current&&O.current.focus()},[i]);const N=u.Children.toArray(a),V=N.length&&Vd(N[N.length-1],["ListItemSecondaryAction"]),j=S({},r,{alignItems:o,autoFocus:i,button:s,dense:T.dense,disabled:g,disableGutters:x,disablePadding:C,divider:P,hasSecondaryAction:V,selected:I}),L=vZ(j),D=St(O,n),B=p.Root||yZ,W=h.root||{},A=S({className:he(L.root,W.className,c),disabled:g},k);let z=f||"li";return s&&(A.component=f||"div",A.focusVisibleClassName=he(Cc.focusVisible,w),z=Ji),V?(z=!A.component&&!f?"div":z,m==="li"&&(z==="li"?z="div":A.component==="li"&&(A.component="div")),R.jsx(mi.Provider,{value:T,children:R.jsxs(bZ,S({as:m,className:he(L.container,v),ref:D,ownerState:j},_,{children:[R.jsx(B,S({},W,!Il(B)&&{as:z,ownerState:S({},j,W.ownerState)},A,{children:N})),N.pop()]}))})):R.jsx(mi.Provider,{value:T,children:R.jsxs(B,S({},W,{as:z,ref:D,ownerState:j},!Il(B)&&{ownerState:S({},j,W.ownerState)},A,{children:[N,E&&R.jsx(pZ,{children:E})]}))})}),OO=wZ;function CZ(e){return Ke("MuiListItemIcon",e)}const xZ=Ve("MuiListItemIcon",["root","alignItemsFlexStart"]),qI=xZ,SZ=["className"],EZ=e=>{const{alignItems:t,classes:n}=e;return Ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},CZ,n)},PZ=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),kZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=oe(r,SZ),s=u.useContext(mi),a=S({},r,{alignItems:s.alignItems}),c=EZ(a);return R.jsx(PZ,S({className:he(c.root,o),ownerState:a,ref:n},i))}),LO=kZ;function IZ(e){return Ke("MuiListItemText",e)}const _Z=Ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jm=_Z,$Z=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],MZ=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},IZ,t)},TZ=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jm.primary}`]:t.primary},{[`& .${jm.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),RZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,m=oe(r,$Z),{dense:v}=u.useContext(mi);let b=c!=null?c:o,g=p;const x=S({},r,{disableTypography:s,inset:a,primary:!!b,secondary:!!g,dense:v}),C=MZ(x);return b!=null&&b.type!==Cr&&!s&&(b=R.jsx(Cr,S({variant:v?"body2":"body1",className:C.primary,component:"span",display:"block"},f,{children:b}))),g!=null&&g.type!==Cr&&!s&&(g=R.jsx(Cr,S({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},h,{children:g}))),R.jsxs(TZ,S({className:he(C.root,i),ownerState:x,ref:n},m,{children:[b,g]}))}),cv=RZ,OZ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function A0(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function YI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function AO(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function md(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!AO(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const LZ=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:h="selectedMenu"}=t,m=oe(t,OZ),v=u.useRef(null),b=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Rn(()=>{o&&v.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,E)=>{const I=!v.current.style.width;if(w.clientHeight<v.current.clientHeight&&I){const _=`${wR(bn(w))}px`;v.current.style[E.direction==="rtl"?"paddingLeft":"paddingRight"]=_,v.current.style.width=`calc(100% + ${_})`}return v.current}}),[]);const g=w=>{const E=v.current,I=w.key,_=bn(E).activeElement;if(I==="ArrowDown")w.preventDefault(),md(E,_,f,c,A0);else if(I==="ArrowUp")w.preventDefault(),md(E,_,f,c,YI);else if(I==="Home")w.preventDefault(),md(E,null,f,c,A0);else if(I==="End")w.preventDefault(),md(E,null,f,c,YI);else if(I.length===1){const k=b.current,$=I.toLowerCase(),T=performance.now();k.keys.length>0&&(T-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&$!==k.keys[0]&&(k.repeating=!1)),k.lastTime=T,k.keys.push($);const O=_&&!k.repeating&&AO(_,k);k.previousKeyMatched&&(O||md(E,_,!1,c,A0,k))?w.preventDefault():k.previousKeyMatched=!1}p&&p(w)},x=St(v,n);let C=-1;u.Children.forEach(s,(w,E)=>{u.isValidElement(w)&&(w.props.disabled||(h==="selectedMenu"&&w.props.selected||C===-1)&&(C=E))});const P=u.Children.map(s,(w,E)=>{if(E===C){const I={};return i&&(I.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),u.cloneElement(w,I)}return w});return R.jsx(av,S({role:"menu",ref:x,className:a,onKeyDown:g,tabIndex:o?0:-1},m,{children:P}))}),MC=LZ;function AZ(e){return Ke("MuiPopover",e)}Ve("MuiPopover",["root","paper"]);const FZ=["onEntering"],NZ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function XI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function QI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function JI(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function F0(e){return typeof e=="function"?e():e}const DZ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},AZ,t)},BZ=re(_C,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zZ=re(Zo,{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}),jZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:f,className:p,container:h,elevation:m=8,marginThreshold:v=16,open:b,PaperProps:g={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:C=Bm,transitionDuration:P="auto",TransitionProps:{onEntering:w}={}}=r,E=oe(r.TransitionProps,FZ),I=oe(r,NZ),_=u.useRef(),k=St(_,g.ref),$=S({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:v,PaperProps:g,transformOrigin:x,TransitionComponent:C,transitionDuration:P,TransitionProps:E}),T=DZ($),O=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=F0(i),z=(W&&W.nodeType===1?W:bn(_.current).body).getBoundingClientRect();return{top:z.top+XI(z,s.vertical),left:z.left+QI(z,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),N=u.useCallback(W=>({vertical:XI(W,x.vertical),horizontal:QI(W,x.horizontal)}),[x.horizontal,x.vertical]),V=u.useCallback(W=>{const A={width:W.offsetWidth,height:W.offsetHeight},z=N(A);if(c==="none")return{top:null,left:null,transformOrigin:JI(z)};const G=O();let q=G.top-z.vertical,X=G.left-z.horizontal;const ie=q+A.height,ee=X+A.width,se=Jr(F0(i)),ae=se.innerHeight-v,we=se.innerWidth-v;if(q<v){const de=q-v;q-=de,z.vertical+=de}else if(ie>ae){const de=ie-ae;q-=de,z.vertical+=de}if(X<v){const de=X-v;X-=de,z.horizontal+=de}else if(ee>we){const de=ee-we;X-=de,z.horizontal+=de}return{top:`${Math.round(q)}px`,left:`${Math.round(X)}px`,transformOrigin:JI(z)}},[i,c,O,N,v]),j=u.useCallback(()=>{const W=_.current;if(!W)return;const A=V(W);A.top!==null&&(W.style.top=A.top),A.left!==null&&(W.style.left=A.left),W.style.transformOrigin=A.transformOrigin},[V]),L=(W,A)=>{w&&w(W,A),j()};u.useEffect(()=>{b&&j()}),u.useImperativeHandle(o,()=>b?{updatePosition:()=>{j()}}:null,[b,j]),u.useEffect(()=>{if(!b)return;const W=ks(()=>{j()}),A=Jr(i);return A.addEventListener("resize",W),()=>{W.clear(),A.removeEventListener("resize",W)}},[i,b,j]);let D=P;P==="auto"&&!C.muiSupportAuto&&(D=void 0);const B=h||(i?bn(F0(i)).body:void 0);return R.jsx(BZ,S({BackdropProps:{invisible:!0},className:he(T.root,p),container:B,open:b,ref:n,ownerState:$},I,{children:R.jsx(C,S({appear:!0,in:b,onEntering:L,timeout:D},E,{children:R.jsx(zZ,S({elevation:m},g,{ref:k,className:he(T.paper,g.className),children:f}))}))}))}),HZ=jZ;function VZ(e){return Ke("MuiMenu",e)}Ve("MuiMenu",["root","paper","list"]);const UZ=["onEntering"],WZ=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],GZ={vertical:"top",horizontal:"right"},KZ={vertical:"top",horizontal:"left"},qZ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},VZ,t)},YZ=re(HZ,{shouldForwardProp:e=>xo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),XZ=re(Zo,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),QZ=re(MC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),JZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:c,open:f,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:b="selectedMenu"}=r,g=oe(r.TransitionProps,UZ),x=oe(r,WZ),C=Zr(),P=C.direction==="rtl",w=S({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:g,variant:b}),E=qZ(w),I=o&&!s&&f,_=u.useRef(null),k=(O,N)=>{_.current&&_.current.adjustStyleForScrollbar(O,C),v&&v(O,N)},$=O=>{O.key==="Tab"&&(O.preventDefault(),c&&c(O,"tabKeyDown"))};let T=-1;return u.Children.map(i,(O,N)=>{u.isValidElement(O)&&(O.props.disabled||(b==="selectedMenu"&&O.props.selected||T===-1)&&(T=N))}),R.jsx(YZ,S({classes:h,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?GZ:KZ,PaperProps:S({component:XZ},p,{classes:S({},p.classes,{root:E.paper})}),className:E.root,open:f,ref:n,transitionDuration:m,TransitionProps:S({onEntering:k},g),ownerState:w},x,{children:R.jsx(QZ,S({onKeyDown:$,actions:_,autoFocus:o&&(T===-1||s),autoFocusItem:I,variant:b},a,{className:he(E.list,a.className),children:i}))}))}),FO=JZ;function ZZ(e){return Ke("MuiMenuItem",e)}const eee=Ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),gd=eee,tee=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],nee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ree=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,c=Ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},ZZ,s);return S({},s,c)},oee=re(Ji,{shouldForwardProp:e=>xo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:nee})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${gd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${AI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${AI.inset}`]:{marginLeft:52},[`& .${jm.root}`]:{marginTop:0,marginBottom:0},[`& .${jm.inset}`]:{paddingLeft:36},[`& .${qI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qI.root} svg`]:{fontSize:"1.25rem"}}))),iee=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:h}=r,m=oe(r,tee),v=u.useContext(mi),b={dense:s||v.dense||!1,disableGutters:c},g=u.useRef(null);Rn(()=>{o&&g.current&&g.current.focus()},[o]);const x=S({},r,{dense:b.dense,divider:a,disableGutters:c}),C=ree(r),P=St(g,n);let w;return r.disabled||(w=h!==void 0?h:-1),R.jsx(mi.Provider,{value:b,children:R.jsx(oee,S({ref:P,role:p,tabIndex:w,component:i,focusVisibleClassName:he(C.focusVisible,f)},m,{ownerState:x,classes:C}))})}),ur=iee;function see(e){return Ke("MuiNativeSelect",e)}const lee=Ve("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),TC=lee,aee=["className","disabled","IconComponent","inputRef","variant"],cee=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"]};return Ie(s,see,t)},NO=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${TC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),uee=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${TC.multiple}`]:t.multiple}]}})(NO),DO=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${TC.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),dee=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(DO),fee=u.forwardRef(function(t,n){const{className:r,disabled:o,IconComponent:i,inputRef:s,variant:a="standard"}=t,c=oe(t,aee),f=S({},t,{disabled:o,variant:a}),p=cee(f);return R.jsxs(u.Fragment,{children:[R.jsx(uee,S({ownerState:f,className:he(p.select,r),disabled:o,ref:s||n},c)),t.multiple?null:R.jsx(dee,{as:i,ownerState:f,className:p.icon})]})}),pee=fee;var ZI;const hee=["children","classes","className","label","notched"],mee=re("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%"}),gee=re("legend")(({ownerState:e,theme:t})=>S({float:"unset",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",width:"auto",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 vee(e){const{className:t,label:n,notched:r}=e,o=oe(e,hee),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return R.jsx(mee,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:R.jsx(gee,{ownerState:s,children:i?R.jsx("span",{children:n}):ZI||(ZI=R.jsx("span",{className:"notranslate",children:""}))})}))}const yee=["components","fullWidth","inputComponent","label","multiline","notched","type"],bee=e=>{const{classes:t}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Gq,t);return S({},t,r)},wee=re(ov,{shouldForwardProp:e=>xo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ti.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ti.focused} .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ti.error} .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ti.disabled} .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Cee=re(vee,{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}}),xee=re(iv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rv})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),BO=u.forwardRef(function(t,n){var r;const o=Qe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:c,multiline:f=!1,notched:p,type:h="text"}=o,m=oe(o,yee),v=bee(o),b=Os(),g=Fa({props:o,muiFormControl:b,states:["required"]}),x=S({},o,{color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:b,fullWidth:s,hiddenLabel:g.hiddenLabel,multiline:f,size:g.size,type:h});return R.jsx(ku,S({components:S({Root:wee,Input:xee},i),renderSuffix:C=>R.jsx(Cee,{ownerState:x,className:v.notchedOutline,label:c!=null&&c!==""&&g.required?r||(r=R.jsxs(u.Fragment,{children:[c," ","*"]})):c,notched:typeof p!="undefined"?p:Boolean(C.startAdornment||C.filled||C.focused)}),fullWidth:s,inputComponent:a,multiline:f,ref:n,type:h},m,{classes:S({},v,{notchedOutline:null})}))});BO.muiName="Input";const zO=BO,e_=Mt(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),t_=Mt(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function See(e){return Ke("MuiSelect",e)}const Eee=Ve("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Rh=Eee;var n_;const Pee=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],kee=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Rh.select}`]:t.select},{[`&.${Rh.select}`]:t[n.variant]},{[`&.${Rh.multiple}`]:t.multiple}]}})(NO,{[`&.${Rh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Iee=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(DO),_ee=re("input",{shouldForwardProp:e=>QG(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 r_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function $ee(e){return e==null||typeof e=="string"&&!e.trim()}const Mee=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(s,See,t)},Tee=u.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:c,defaultOpen:f,defaultValue:p,disabled:h,displayEmpty:m,IconComponent:v,inputRef:b,labelId:g,MenuProps:x={},multiple:C,name:P,onBlur:w,onChange:E,onClose:I,onFocus:_,onOpen:k,open:$,readOnly:T,renderValue:O,SelectDisplayProps:N={},tabIndex:V,value:j,variant:L="standard"}=t,D=oe(t,Pee),[B,W]=Ui({controlled:j,default:p,name:"Select"}),[A,z]=Ui({controlled:$,default:f,name:"Select"}),G=u.useRef(null),q=u.useRef(null),[X,ie]=u.useState(null),{current:ee}=u.useRef($!=null),[se,ae]=u.useState(),we=St(n,b),de=u.useCallback(ne=>{q.current=ne,ne&&ie(ne)},[]);u.useImperativeHandle(we,()=>({focus:()=>{q.current.focus()},node:G.current,value:B}),[B]),u.useEffect(()=>{f&&A&&X&&!ee&&(ae(s?null:X.clientWidth),q.current.focus())},[X,s]),u.useEffect(()=>{i&&q.current.focus()},[i]),u.useEffect(()=>{if(!g)return;const ne=bn(q.current).getElementById(g);if(ne){const ke=()=>{getSelection().isCollapsed&&q.current.focus()};return ne.addEventListener("click",ke),()=>{ne.removeEventListener("click",ke)}}},[g]);const le=(ne,ke)=>{ne?k&&k(ke):I&&I(ke),ee||(ae(s?null:X.clientWidth),z(ne))},te=ne=>{ne.button===0&&(ne.preventDefault(),q.current.focus(),le(!0,ne))},be=ne=>{le(!1,ne)},_e=u.Children.toArray(a),Se=ne=>{const ke=_e.map($e=>$e.props.value).indexOf(ne.target.value);if(ke===-1)return;const Ee=_e[ke];W(Ee.props.value),E&&E(ne,Ee)},Fe=ne=>ke=>{let Ee;if(ke.currentTarget.hasAttribute("tabindex")){if(C){Ee=Array.isArray(B)?B.slice():[];const $e=B.indexOf(ne.props.value);$e===-1?Ee.push(ne.props.value):Ee.splice($e,1)}else Ee=ne.props.value;if(ne.props.onClick&&ne.props.onClick(ke),B!==Ee&&(W(Ee),E)){const $e=ke.nativeEvent||ke,Ge=new $e.constructor($e.type,$e);Object.defineProperty(Ge,"target",{writable:!0,value:{value:Ee,name:P}}),E(Ge,ne)}C||le(!1,ke)}},Re=ne=>{T||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ne.key)!==-1&&(ne.preventDefault(),le(!0,ne))},Ae=X!==null&&A,Oe=ne=>{!Ae&&w&&(Object.defineProperty(ne,"target",{writable:!0,value:{value:B,name:P}}),w(ne))};delete D["aria-invalid"];let Ze,yt;const tt=[];let et=!1;(IC({value:B})||m)&&(O?Ze=O(B):et=!0);const Pt=_e.map((ne,ke,Ee)=>{if(!u.isValidElement(ne))return null;let $e;if(C){if(!Array.isArray(B))throw new Error(kl(2));$e=B.some(Ct=>r_(Ct,ne.props.value)),$e&&et&&tt.push(ne.props.children)}else $e=r_(B,ne.props.value),$e&&et&&(yt=ne.props.children);if(ne.props.value===void 0)return u.cloneElement(ne,{"aria-readonly":!0,role:"option"});const Ge=()=>{if(B)return $e;const Ct=Ee.find(jt=>jt.props.value!==void 0&&jt.props.disabled!==!0);return ne===Ct?!0:$e};return u.cloneElement(ne,{"aria-selected":$e?"true":"false",onClick:Fe(ne),onKeyUp:Ct=>{Ct.key===" "&&Ct.preventDefault(),ne.props.onKeyUp&&ne.props.onKeyUp(Ct)},role:"option",selected:Ee[0].props.value===void 0||Ee[0].props.disabled===!0?Ge():$e,value:void 0,"data-value":ne.props.value})});et&&(C?tt.length===0?Ze=null:Ze=tt.reduce((ne,ke,Ee)=>(ne.push(ke),Ee<tt.length-1&&ne.push(", "),ne),[]):Ze=yt);let mt=se;!s&&ee&&X&&(mt=X.clientWidth);let lt;typeof V!="undefined"?lt=V:lt=h?null:0;const It=N.id||(P?`mui-component-select-${P}`:void 0),Xe=S({},t,{variant:L,value:B,open:Ae}),Te=Mee(Xe);return R.jsxs(u.Fragment,{children:[R.jsx(kee,S({ref:de,tabIndex:lt,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":Ae?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,It].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:Re,onMouseDown:h||T?null:te,onBlur:Oe,onFocus:_},N,{ownerState:Xe,className:he(N.className,Te.select,c),id:It,children:$ee(Ze)?n_||(n_=R.jsx("span",{className:"notranslate",children:""})):Ze})),R.jsx(_ee,S({value:Array.isArray(B)?B.join(","):B,name:P,ref:G,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:h,className:Te.nativeInput,autoFocus:i,ownerState:Xe},D)),R.jsx(Iee,{as:v,className:Te.icon,ownerState:Xe}),R.jsx(FO,S({id:`menu-${P||""}`,anchorEl:X,open:Ae,onClose:be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},x,{MenuListProps:S({"aria-labelledby":g,role:"listbox",disableListWrap:!0},x.MenuListProps),PaperProps:S({},x.PaperProps,{style:S({minWidth:mt},x.PaperProps!=null?x.PaperProps.style:null)}),children:Pt}))]})}),Ree=Tee;var o_,i_;const Oee=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Lee=e=>{const{classes:t}=e;return t},RC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>xo(e)&&e!=="variant",slot:"Root"},Aee=re(MO,RC)(""),Fee=re(zO,RC)(""),Nee=re(xO,RC)(""),jO=u.forwardRef(function(t,n){const r=Qe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:p=aO,id:h,input:m,inputProps:v,label:b,labelId:g,MenuProps:x,multiple:C=!1,native:P=!1,onClose:w,onOpen:E,open:I,renderValue:_,SelectDisplayProps:k,variant:$="outlined"}=r,T=oe(r,Oee),O=P?pee:Ree,N=Os(),j=Fa({props:r,muiFormControl:N,states:["variant"]}).variant||$,L=m||{standard:o_||(o_=R.jsx(Aee,{})),outlined:R.jsx(Fee,{label:b}),filled:i_||(i_=R.jsx(Nee,{}))}[j],D=S({},r,{variant:j,classes:s}),B=Lee(D),W=St(n,L.ref);return u.cloneElement(L,S({inputComponent:O,inputProps:S({children:i,IconComponent:p,variant:j,type:void 0,multiple:C},P?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:g,MenuProps:x,onClose:w,onOpen:E,open:I,renderValue:_,SelectDisplayProps:S({id:h},k)},v,{classes:v?Ho(B,v.classes):B},m?m.props.inputProps:{})},C&&P&&j==="outlined"?{notched:!0}:{},{ref:W,className:he(L.props.className,a),variant:j},T))});jO.muiName="Select";const OC=jO;function Dee(e){return Ke("MuiTooltip",e)}const Bee=Ve("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),sl=Bee,zee=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];function jee(e){return Math.round(e*1e5)/1e5}const Hee=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${fe(i.split("-")[0])}`],arrow:["arrow"]};return Ie(s,Dee,t)},Vee=re(Aa,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${sl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${sl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${sl.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${sl.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Uee=re("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${fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rt(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:`${jee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${sl.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${sl.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${sl.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${sl.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Wee=re("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:rt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Oh=!1,N0=null;function Lh(e,t){return n=>{t&&t(n),e(n)}}const Gee=u.forwardRef(function(t,n){var r,o,i,s,a,c;const f=Qe({props:t,name:"MuiTooltip"}),{arrow:p=!1,children:h,components:m={},componentsProps:v={},describeChild:b=!1,disableFocusListener:g=!1,disableHoverListener:x=!1,disableInteractive:C=!1,disableTouchListener:P=!1,enterDelay:w=100,enterNextDelay:E=0,enterTouchDelay:I=700,followCursor:_=!1,id:k,leaveDelay:$=0,leaveTouchDelay:T=1500,onClose:O,onOpen:N,open:V,placement:j="bottom",PopperComponent:L,PopperProps:D={},title:B,TransitionComponent:W=Bm,TransitionProps:A}=f,z=oe(f,zee),G=Zr(),q=G.direction==="rtl",[X,ie]=u.useState(),[ee,se]=u.useState(null),ae=u.useRef(!1),we=C||_,de=u.useRef(),le=u.useRef(),te=u.useRef(),be=u.useRef(),[_e,Se]=Ui({controlled:V,default:!1,name:"Tooltip",state:"open"});let Fe=_e;const Re=Pn(k),Ae=u.useRef(),Oe=u.useCallback(()=>{Ae.current!==void 0&&(document.body.style.WebkitUserSelect=Ae.current,Ae.current=void 0),clearTimeout(be.current)},[]);u.useEffect(()=>()=>{clearTimeout(de.current),clearTimeout(le.current),clearTimeout(te.current),Oe()},[Oe]);const Ze=Be=>{clearTimeout(N0),Oh=!0,Se(!0),N&&!Fe&&N(Be)},yt=jn(Be=>{clearTimeout(N0),N0=setTimeout(()=>{Oh=!1},800+$),Se(!1),O&&Fe&&O(Be),clearTimeout(de.current),de.current=setTimeout(()=>{ae.current=!1},G.transitions.duration.shortest)}),tt=Be=>{ae.current&&Be.type!=="touchstart"||(X&&X.removeAttribute("title"),clearTimeout(le.current),clearTimeout(te.current),w||Oh&&E?le.current=setTimeout(()=>{Ze(Be)},Oh?E:w):Ze(Be))},et=Be=>{clearTimeout(le.current),clearTimeout(te.current),te.current=setTimeout(()=>{yt(Be)},$)},{isFocusVisibleRef:Pt,onBlur:mt,onFocus:lt,ref:It}=Wg(),[,Xe]=u.useState(!1),Te=Be=>{mt(Be),Pt.current===!1&&(Xe(!1),et(Be))},ne=Be=>{X||ie(Be.currentTarget),lt(Be),Pt.current===!0&&(Xe(!0),tt(Be))},ke=Be=>{ae.current=!0;const ct=h.props;ct.onTouchStart&&ct.onTouchStart(Be)},Ee=tt,$e=et,Ge=Be=>{ke(Be),clearTimeout(te.current),clearTimeout(de.current),Oe(),Ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ae.current,tt(Be)},I)},Ct=Be=>{h.props.onTouchEnd&&h.props.onTouchEnd(Be),Oe(),clearTimeout(te.current),te.current=setTimeout(()=>{yt(Be)},T)};u.useEffect(()=>{if(!Fe)return;function Be(ct){(ct.key==="Escape"||ct.key==="Esc")&&yt(ct)}return document.addEventListener("keydown",Be),()=>{document.removeEventListener("keydown",Be)}},[yt,Fe]);const jt=St(ie,n),Ht=St(It,jt),Jn=St(h.ref,Ht);B===""&&(Fe=!1);const hn=u.useRef({x:0,y:0}),Kn=u.useRef(),Pr=Be=>{const ct=h.props;ct.onMouseMove&&ct.onMouseMove(Be),hn.current={x:Be.clientX,y:Be.clientY},Kn.current&&Kn.current.update()},mn={},sn=typeof B=="string";b?(mn.title=!Fe&&sn&&!x?B:null,mn["aria-describedby"]=Fe?Re:null):(mn["aria-label"]=sn?B:null,mn["aria-labelledby"]=Fe&&!sn?Re:null);const en=S({},mn,z,h.props,{className:he(z.className,h.props.className),onTouchStart:ke,ref:Jn},_?{onMouseMove:Pr}:{}),So={};P||(en.onTouchStart=Ge,en.onTouchEnd=Ct),x||(en.onMouseOver=Lh(Ee,en.onMouseOver),en.onMouseLeave=Lh($e,en.onMouseLeave),we||(So.onMouseOver=Ee,So.onMouseLeave=$e)),g||(en.onFocus=Lh(ne,en.onFocus),en.onBlur=Lh(Te,en.onBlur),we||(So.onFocus=ne,So.onBlur=Te));const Ei=u.useMemo(()=>{var Be;let ct=[{name:"arrow",enabled:Boolean(ee),options:{element:ee,padding:4}}];return(Be=D.popperOptions)!=null&&Be.modifiers&&(ct=ct.concat(D.popperOptions.modifiers)),S({},D.popperOptions,{modifiers:ct})},[ee,D]),Ar=S({},f,{isRtl:q,arrow:p,disableInteractive:we,placement:j,PopperComponentProp:L,touch:ae.current}),ei=Hee(Ar),Eo=(r=m.Popper)!=null?r:Vee,Lt=(o=(i=m.Transition)!=null?i:W)!=null?o:Bm,Nn=(s=m.Tooltip)!=null?s:Uee,ce=(a=m.Arrow)!=null?a:Wee,me=kd(Eo,S({},D,v.popper),Ar),ze=kd(Lt,S({},A,v.transition),Ar),gt=kd(Nn,S({},v.tooltip),Ar),bt=kd(ce,S({},v.arrow),Ar);return R.jsxs(u.Fragment,{children:[u.cloneElement(h,en),R.jsx(Eo,S({as:L!=null?L:Aa,placement:j,anchorEl:_?{getBoundingClientRect:()=>({top:hn.current.y,left:hn.current.x,right:hn.current.x,bottom:hn.current.y,width:0,height:0})}:X,popperRef:Kn,open:X?Fe:!1,id:Re,transition:!0},So,me,{className:he(ei.popper,D==null?void 0:D.className,(c=v.popper)==null?void 0:c.className),popperOptions:Ei,children:({TransitionProps:Be})=>{var ct,ve;return R.jsx(Lt,S({timeout:G.transitions.duration.shorter},Be,ze,{children:R.jsxs(Nn,S({},gt,{className:he(ei.tooltip,(ct=v.tooltip)==null?void 0:ct.className),children:[B,p?R.jsx(ce,S({},bt,{className:he(ei.arrow,(ve=v.arrow)==null?void 0:ve.className),ref:se})):null]}))}))}}))]})}),uv=Gee;function Kee(e){return Ke("MuiSwitch",e)}const qee=Ve("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),br=qee,Yee=["className","color","edge","size","sx"],Xee=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${fe(n)}`,`size${fe(r)}`],switchBase:["switchBase",`color${fe(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ie(a,Kee,t);return S({},t,c)},Qee=re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({ownerState:e})=>S({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${br.thumb}`]:{width:16,height:16},[`& .${br.switchBase}`]:{padding:4,[`&.${br.checked}`]:{transform:"translateX(16px)"}}})),Jee=re(gO,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${br.input}`]:t.input},n.color!=="default"&&t[`color${fe(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}),[`&.${br.checked}`]:{transform:"translateX(20px)"},[`&.${br.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${br.checked} + .${br.track}`]:{opacity:.5},[`&.${br.disabled} + .${br.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${br.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>S({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${br.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})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${br.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?_s(e.palette[t.color].main,.62):Is(e.palette[t.color].main,.55)}`}},[`&.${br.checked} + .${br.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Zee=re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),ete=re("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%"})),tte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,f=oe(r,Yee),p=S({},r,{color:i,edge:s,size:a}),h=Xee(p),m=R.jsx(ete,{className:h.thumb,ownerState:p});return R.jsxs(Qee,{className:he(h.root,o),sx:c,ownerState:p,children:[R.jsx(Jee,S({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},f,{classes:S({},h,{root:h.switchBase})})),R.jsx(Zee,{className:h.track,ownerState:p})]})}),HO=tte;function nte(e){return Ke("MuiTab",e)}const rte=Ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Yl=rte,ote=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ite=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:c}=e,f={root:["root",i&&s&&"labelIcon",`textColor${fe(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Ie(f,nte,t)},ste=re(Ji,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Yl.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Yl.selected}`]:{opacity:1},[`&.${Yl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Yl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Yl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Yl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Yl.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)})),lte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:f="top",indicator:p,label:h,onChange:m,onClick:v,onFocus:b,selected:g,selectionFollowsFocus:x,textColor:C="inherit",value:P,wrapped:w=!1}=r,E=oe(r,ote),I=S({},r,{disabled:i,disableFocusRipple:s,selected:g,icon:!!c,iconPosition:f,label:!!h,fullWidth:a,textColor:C,wrapped:w}),_=ite(I),k=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:he(_.iconWrapper,c.props.className)}):c,$=O=>{!g&&m&&m(O,P),v&&v(O)},T=O=>{x&&!g&&m&&m(O,P),b&&b(O)};return R.jsxs(ste,S({focusRipple:!s,className:he(_.root,o),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:$,onFocus:T,ownerState:I,tabIndex:g?0:-1},E,{children:[f==="top"||f==="start"?R.jsxs(u.Fragment,{children:[k,h]}):R.jsxs(u.Fragment,{children:[h,k]}),p]}))}),VO=lte,ate=u.createContext(),cte=ate,ute=u.createContext(),dte=ute;function fte(e){return Ke("MuiTableCell",e)}const pte=Ve("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),hte=pte,mte=["align","className","component","padding","scope","size","sortDirection","variant"],gte=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${fe(r)}`,o!=="normal"&&`padding${fe(o)}`,`size${fe(i)}`]};return Ie(a,fte,t)},vte=re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${fe(n.size)}`],n.padding!=="normal"&&t[`padding${fe(n.padding)}`],n.align!=="inherit"&&t[`align${fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
233
|
+
${e.palette.mode==="light"?_s(rt(e.palette.divider,1),.88):Is(rt(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",[`&.${hte.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})),yte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:f,sortDirection:p,variant:h}=r,m=oe(r,mte),v=u.useContext(cte),b=u.useContext(dte),g=b&&b.variant==="head";let x;s?x=s:x=g?"th":"td";let C=c;!C&&g&&(C="col");const P=h||b&&b.variant,w=S({},r,{align:o,component:x,padding:a||(v&&v.padding?v.padding:"normal"),size:f||(v&&v.size?v.size:"medium"),sortDirection:p,stickyHeader:P==="head"&&v&&v.stickyHeader,variant:P}),E=gte(w);let I=null;return p&&(I=p==="asc"?"ascending":"descending"),R.jsx(vte,S({as:x,ref:n,className:he(E.root,i),"aria-sort":I,scope:C,ownerState:w},m))}),yb=yte;function bte(e){return Ke("MuiToolbar",e)}Ve("MuiToolbar",["root","gutters","regular","dense"]);const wte=["className","component","disableGutters","variant"],Cte=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ie({root:["root",!n&&"gutters",r]},bte,t)},xte=re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Ste=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=oe(r,wte),f=S({},r,{component:i,disableGutters:s,variant:a}),p=Cte(f);return R.jsx(xte,S({as:i,className:he(p.root,o),ref:n,ownerState:f},c))}),UO=Ste,bb=Mt(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),wb=Mt(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var s_,l_,a_,c_,u_,d_,f_,p_;const Ete=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Pte=u.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:c,rowsPerPage:f,showFirstButton:p,showLastButton:h}=t,m=oe(t,Ete),v=Zr(),b=P=>{a(P,0)},g=P=>{a(P,c-1)},x=P=>{a(P,c+1)},C=P=>{a(P,Math.max(0,Math.ceil(o/f)-1))};return R.jsxs("div",S({ref:n},m,{children:[p&&R.jsx(tr,{onClick:b,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:v.direction==="rtl"?s_||(s_=R.jsx(t_,{})):l_||(l_=R.jsx(e_,{}))}),R.jsx(tr,S({onClick:g,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:v.direction==="rtl"?a_||(a_=R.jsx(wb,{})):c_||(c_=R.jsx(bb,{}))})),R.jsx(tr,S({onClick:x,disabled:o!==-1?c>=Math.ceil(o/f)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:v.direction==="rtl"?u_||(u_=R.jsx(bb,{})):d_||(d_=R.jsx(wb,{}))})),h&&R.jsx(tr,{onClick:C,disabled:c>=Math.ceil(o/f)-1,"aria-label":i("last",c),title:i("last",c),children:v.direction==="rtl"?f_||(f_=R.jsx(e_,{})):p_||(p_=R.jsx(t_,{}))})]}))}),kte=Pte;function Ite(e){return Ke("MuiTablePagination",e)}const _te=Ve("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),pa=_te;var h_;const $te=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Mte=re(yb,{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}})),Tte=re(UO,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>S({[`& .${pa.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},[`& .${pa.actions}`]:{flexShrink:0,marginLeft:20}})),Rte=re("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Ote=re("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>S({},e.typography.body2,{flexShrink:0})),Lte=re(OC,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>S({[`& .${pa.selectIcon}`]:t.selectIcon,[`& .${pa.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${pa.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Ate=re(ur,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Fte=re("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>S({},e.typography.body2,{flexShrink:0}));function Nte({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Dte(e){return`Go to ${e} page`}const Bte=e=>{const{classes:t}=e;return Ie({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Ite,t)},zte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=kte,backIconButtonProps:i,className:s,colSpan:a,component:c=yb,count:f,getItemAriaLabel:p=Dte,labelDisplayedRows:h=Nte,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:v,onPageChange:b,onRowsPerPageChange:g,page:x,rowsPerPage:C,rowsPerPageOptions:P=[10,25,50,100],SelectProps:w={},showFirstButton:E=!1,showLastButton:I=!1}=r,_=oe(r,$te),k=r,$=Bte(k),T=w.native?"option":Ate;let O;(c===yb||c==="td")&&(O=a||1e3);const N=Pn(w.id),V=Pn(w.labelId),j=()=>f===-1?(x+1)*C:C===-1?f:Math.min(f,(x+1)*C);return R.jsx(Mte,S({colSpan:O,ref:n,as:c,ownerState:k,className:he($.root,s)},_,{children:R.jsxs(Tte,{className:$.toolbar,children:[R.jsx(Rte,{className:$.spacer}),P.length>1&&R.jsx(Ote,{className:$.selectLabel,id:V,children:m}),P.length>1&&R.jsx(Lte,S({variant:"standard",input:h_||(h_=R.jsx(ku,{})),value:C,onChange:g,id:N,labelId:V},w,{classes:S({},w.classes,{root:he($.input,$.selectRoot,(w.classes||{}).root),select:he($.select,(w.classes||{}).select),icon:he($.selectIcon,(w.classes||{}).icon)}),children:P.map(L=>u.createElement(T,S({},!Il(T)&&{ownerState:k},{className:$.menuItem,key:L.label?L.label:L,value:L.value?L.value:L}),L.label?L.label:L))})),R.jsx(Fte,{className:$.displayedRows,children:h({from:f===0?0:x*C+1,to:j(),count:f===-1?-1:f,page:x})}),R.jsx(o,{className:$.actions,backIconButtonProps:i,count:f,nextIconButtonProps:v,onPageChange:b,page:x,rowsPerPage:C,showFirstButton:E,showLastButton:I,getItemAriaLabel:p})]})}))}),jte=zte;function Hte(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Vte(e,t,n,r={},o=()=>{}){const{ease:i=Hte,duration:s=300}=r;let a=null;const c=t[e];let f=!1;const p=()=>{f=!0},h=m=>{if(f){o(new Error("Animation cancelled"));return}a===null&&(a=m);const v=Math.min(1,(m-a)/s);if(t[e]=i(v)*(n-c)+c,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const Ute=["onChange"],Wte={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Gte(e){const{onChange:t}=e,n=oe(e,Ute),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return u.useEffect(()=>{const s=ks(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=Jr(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),R.jsx("div",S({style:Wte,ref:o},n))}function Kte(e){return Ke("MuiTabScrollButton",e)}const qte=Ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Yte=qte;var m_,g_;const Xte=["className","direction","orientation","disabled"],Qte=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ie({root:["root",n,r&&"disabled"]},Kte,t)},Jte=re(Ji,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${Yte.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Zte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTabScrollButton"}),{className:o,direction:i}=r,s=oe(r,Xte),c=Zr().direction==="rtl",f=S({isRtl:c},r),p=Qte(f);return R.jsx(Jte,S({component:"div",className:he(p.root,o),ref:n,role:null,ownerState:f,tabIndex:null},s,{children:i==="left"?m_||(m_=R.jsx(bb,{fontSize:"small"})):g_||(g_=R.jsx(wb,{fontSize:"small"}))}))}),ene=Zte;function tne(e){return Ke("MuiTabs",e)}const nne=Ve("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),D0=nne,rne=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],v_=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,y_=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ah=(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}}},one=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return Ie({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"]},tne,c)},ine=re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${D0.scrollButtons}`]:t.scrollButtons},{[`& .${D0.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${D0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),sne=re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),lne=re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ane=re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),cne=re(Gte,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),b_={},une=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTabs"}),o=Zr(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:f=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:v=!1,indicatorColor:b="primary",onChange:g,orientation:x="horizontal",ScrollButtonComponent:C=ene,scrollButtons:P="auto",selectionFollowsFocus:w,TabIndicatorProps:E={},TabScrollButtonProps:I={},textColor:_="primary",value:k,variant:$="standard",visibleScrollbar:T=!1}=r,O=oe(r,rne),N=$==="scrollable",V=x==="vertical",j=V?"scrollTop":"scrollLeft",L=V?"top":"left",D=V?"bottom":"right",B=V?"clientHeight":"clientWidth",W=V?"height":"width",A=S({},r,{component:m,allowScrollButtonsMobile:v,indicatorColor:b,orientation:x,vertical:V,scrollButtons:P,textColor:_,variant:$,visibleScrollbar:T,fixed:!N,hideScrollbar:N&&!T,scrollableX:N&&!V,scrollableY:N&&V,centered:f&&!N,scrollButtonsHideMobile:!v}),z=one(A),[G,q]=u.useState(!1),[X,ie]=u.useState(b_),[ee,se]=u.useState({start:!1,end:!1}),[ae,we]=u.useState({overflow:"hidden",scrollbarWidth:0}),de=new Map,le=u.useRef(null),te=u.useRef(null),be=()=>{const ne=le.current;let ke;if(ne){const $e=ne.getBoundingClientRect();ke={clientWidth:ne.clientWidth,scrollLeft:ne.scrollLeft,scrollTop:ne.scrollTop,scrollLeftNormalized:B2(ne,o.direction),scrollWidth:ne.scrollWidth,top:$e.top,bottom:$e.bottom,left:$e.left,right:$e.right}}let Ee;if(ne&&k!==!1){const $e=te.current.children;if($e.length>0){const Ge=$e[de.get(k)];Ee=Ge?Ge.getBoundingClientRect():null}}return{tabsMeta:ke,tabMeta:Ee}},_e=jn(()=>{const{tabsMeta:ne,tabMeta:ke}=be();let Ee=0,$e;if(V)$e="top",ke&&ne&&(Ee=ke.top-ne.top+ne.scrollTop);else if($e=i?"right":"left",ke&&ne){const Ct=i?ne.scrollLeftNormalized+ne.clientWidth-ne.scrollWidth:ne.scrollLeft;Ee=(i?-1:1)*(ke[$e]-ne[$e]+Ct)}const Ge={[$e]:Ee,[W]:ke?ke[W]:0};if(isNaN(X[$e])||isNaN(X[W]))ie(Ge);else{const Ct=Math.abs(X[$e]-Ge[$e]),jt=Math.abs(X[W]-Ge[W]);(Ct>=1||jt>=1)&&ie(Ge)}}),Se=(ne,{animation:ke=!0}={})=>{ke?Vte(j,le.current,ne,{duration:o.transitions.duration.standard}):le.current[j]=ne},Fe=ne=>{let ke=le.current[j];V?ke+=ne:(ke+=ne*(i?-1:1),ke*=i&&CR()==="reverse"?-1:1),Se(ke)},Re=()=>{const ne=le.current[B];let ke=0;const Ee=Array.from(te.current.children);for(let $e=0;$e<Ee.length;$e+=1){const Ge=Ee[$e];if(ke+Ge[B]>ne){$e===0&&(ke=ne);break}ke+=Ge[B]}return ke},Ae=()=>{Fe(-1*Re())},Oe=()=>{Fe(Re())},Ze=u.useCallback(ne=>{we({overflow:null,scrollbarWidth:ne})},[]),yt=()=>{const ne={};ne.scrollbarSizeListener=N?R.jsx(cne,{onChange:Ze,className:he(z.scrollableX,z.hideScrollbar)}):null;const ke=ee.start||ee.end,Ee=N&&(P==="auto"&&ke||P===!0);return ne.scrollButtonStart=Ee?R.jsx(C,S({orientation:x,direction:i?"right":"left",onClick:Ae,disabled:!ee.start},I,{className:he(z.scrollButtons,I.className)})):null,ne.scrollButtonEnd=Ee?R.jsx(C,S({orientation:x,direction:i?"left":"right",onClick:Oe,disabled:!ee.end},I,{className:he(z.scrollButtons,I.className)})):null,ne},tt=jn(ne=>{const{tabsMeta:ke,tabMeta:Ee}=be();if(!(!Ee||!ke)){if(Ee[L]<ke[L]){const $e=ke[j]+(Ee[L]-ke[L]);Se($e,{animation:ne})}else if(Ee[D]>ke[D]){const $e=ke[j]+(Ee[D]-ke[D]);Se($e,{animation:ne})}}}),et=jn(()=>{if(N&&P!==!1){const{scrollTop:ne,scrollHeight:ke,clientHeight:Ee,scrollWidth:$e,clientWidth:Ge}=le.current;let Ct,jt;if(V)Ct=ne>1,jt=ne<ke-Ee-1;else{const Ht=B2(le.current,o.direction);Ct=i?Ht<$e-Ge-1:Ht>1,jt=i?Ht>1:Ht<$e-Ge-1}(Ct!==ee.start||jt!==ee.end)&&se({start:Ct,end:jt})}});u.useEffect(()=>{const ne=ks(()=>{le.current&&(_e(),et())}),ke=Jr(le.current);ke.addEventListener("resize",ne);let Ee;return typeof ResizeObserver!="undefined"&&(Ee=new ResizeObserver(ne),Array.from(te.current.children).forEach($e=>{Ee.observe($e)})),()=>{ne.clear(),ke.removeEventListener("resize",ne),Ee&&Ee.disconnect()}},[_e,et]);const Pt=u.useMemo(()=>ks(()=>{et()}),[et]);u.useEffect(()=>()=>{Pt.clear()},[Pt]),u.useEffect(()=>{q(!0)},[]),u.useEffect(()=>{_e(),et()}),u.useEffect(()=>{tt(b_!==X)},[tt,X]),u.useImperativeHandle(c,()=>({updateIndicator:_e,updateScrollButtons:et}),[_e,et]);const mt=R.jsx(ane,S({},E,{className:he(z.indicator,E.className),ownerState:A,style:S({},X,E.style)}));let lt=0;const It=u.Children.map(p,ne=>{if(!u.isValidElement(ne))return null;const ke=ne.props.value===void 0?lt:ne.props.value;de.set(ke,lt);const Ee=ke===k;return lt+=1,u.cloneElement(ne,S({fullWidth:$==="fullWidth",indicator:Ee&&!G&&mt,selected:Ee,selectionFollowsFocus:w,onChange:g,textColor:_,value:ke},lt===1&&k===!1&&!ne.props.tabIndex?{tabIndex:0}:{}))}),Xe=ne=>{const ke=te.current,Ee=bn(ke).activeElement;if(Ee.getAttribute("role")!=="tab")return;let Ge=x==="horizontal"?"ArrowLeft":"ArrowUp",Ct=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&i&&(Ge="ArrowRight",Ct="ArrowLeft"),ne.key){case Ge:ne.preventDefault(),Ah(ke,Ee,y_);break;case Ct:ne.preventDefault(),Ah(ke,Ee,v_);break;case"Home":ne.preventDefault(),Ah(ke,null,v_);break;case"End":ne.preventDefault(),Ah(ke,null,y_);break}},Te=yt();return R.jsxs(ine,S({className:he(z.root,h),ownerState:A,ref:n,as:m},O,{children:[Te.scrollButtonStart,Te.scrollbarSizeListener,R.jsxs(sne,{className:z.scroller,ownerState:A,style:{overflow:ae.overflow,[V?`margin${i?"Left":"Right"}`:"marginBottom"]:T?void 0:-ae.scrollbarWidth},ref:le,onScroll:Pt,children:[R.jsx(lne,{"aria-label":s,"aria-labelledby":a,"aria-orientation":x==="vertical"?"vertical":null,className:z.flexContainer,ownerState:A,onKeyDown:Xe,ref:te,role:"tablist",children:It}),G&&mt]}),Te.scrollButtonEnd]}))}),WO=une;function dne(e){return Ke("MuiTextField",e)}Ve("MuiTextField",["root"]);const fne=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],pne={standard:MO,filled:xO,outlined:zO},hne=e=>{const{classes:t}=e;return Ie({root:["root"]},dne,t)},mne=re(Na,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gne=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:c="primary",defaultValue:f,disabled:p=!1,error:h=!1,FormHelperTextProps:m,fullWidth:v=!1,helperText:b,id:g,InputLabelProps:x,inputProps:C,InputProps:P,inputRef:w,label:E,maxRows:I,minRows:_,multiline:k=!1,name:$,onBlur:T,onChange:O,onFocus:N,placeholder:V,required:j=!1,rows:L,select:D=!1,SelectProps:B,type:W,value:A,variant:z="outlined"}=r,G=oe(r,fne),q=S({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:v,multiline:k,required:j,select:D,variant:z}),X=hne(q),ie={};z==="outlined"&&(x&&typeof x.shrink!="undefined"&&(ie.notched=x.shrink),ie.label=E),D&&((!B||!B.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const ee=Pn(g),se=b&&ee?`${ee}-helper-text`:void 0,ae=E&&ee?`${ee}-label`:void 0,we=pne[z],de=R.jsx(we,S({"aria-describedby":se,autoComplete:o,autoFocus:i,defaultValue:f,fullWidth:v,multiline:k,name:$,rows:L,maxRows:I,minRows:_,type:W,value:A,id:ee,inputRef:w,onBlur:T,onChange:O,onFocus:N,placeholder:V,inputProps:C},ie,P));return R.jsxs(mne,S({className:he(X.root,a),disabled:p,error:h,fullWidth:v,ref:n,required:j,color:c,variant:z,ownerState:q},G,{children:[E!=null&&E!==""&&R.jsx(gb,S({htmlFor:ee,id:ae},x,{children:E})),D?R.jsx(OC,S({"aria-describedby":se,id:ee,labelId:ae,value:A,input:de},B,{children:s})):de,b&&R.jsx(lv,S({id:se},m,{children:b}))]}))}),tp=gne;var LC={},st={},vne={get exports(){return st},set exports(e){st=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vne);var B0={};const yne=D$(cK);var w_;function dt(){return w_||(w_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=yne}(B0)),B0}var bne=st;Object.defineProperty(LC,"__esModule",{value:!0});var GO=LC.default=void 0,wne=bne(dt()),Cne=at(),xne=(0,wne.default)((0,Cne.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");GO=LC.default=xne;var AC={},Sne=st;Object.defineProperty(AC,"__esModule",{value:!0});var KO=AC.default=void 0,Ene=Sne(dt()),Pne=at(),kne=(0,Ene.default)((0,Pne.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");KO=AC.default=kne;var FC={},Ine=st;Object.defineProperty(FC,"__esModule",{value:!0});var qO=FC.default=void 0,_ne=Ine(dt()),$ne=at(),Mne=(0,_ne.default)((0,$ne.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");qO=FC.default=Mne;var NC={},Tne=st;Object.defineProperty(NC,"__esModule",{value:!0});var YO=NC.default=void 0,Rne=Tne(dt()),One=at(),Lne=(0,Rne.default)((0,One.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");YO=NC.default=Lne;var DC={},Ane=st;Object.defineProperty(DC,"__esModule",{value:!0});var XO=DC.default=void 0,Fne=Ane(dt()),C_=at(),Nne=(0,Fne.default)([(0,C_.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,C_.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");XO=DC.default=Nne;var BC={},Dne=st;Object.defineProperty(BC,"__esModule",{value:!0});var QO=BC.default=void 0,Bne=Dne(dt()),zne=at(),jne=(0,Bne.default)((0,zne.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");QO=BC.default=jne;var zC={},Hne=st;Object.defineProperty(zC,"__esModule",{value:!0});var JO=zC.default=void 0,Vne=Hne(dt()),Une=at(),Wne=(0,Vne.default)((0,Une.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");JO=zC.default=Wne;var jC={},Gne=st;Object.defineProperty(jC,"__esModule",{value:!0});var HC=jC.default=void 0,Kne=Gne(dt()),qne=at(),Yne=(0,Kne.default)((0,qne.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");HC=jC.default=Yne;var VC={},Xne=st;Object.defineProperty(VC,"__esModule",{value:!0});var ZO=VC.default=void 0,Qne=Xne(dt()),Jne=at(),Zne=(0,Qne.default)((0,Jne.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");ZO=VC.default=Zne;var vs={},ere={get exports(){return vs},set exports(e){vs=e}};/**
|
|
234
|
+
* @license
|
|
235
|
+
* Lodash <https://lodash.com/>
|
|
236
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
237
|
+
* Released under MIT license <https://lodash.com/license>
|
|
238
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
239
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
240
|
+
*/(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__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,b=1,g=2,x=1,C=2,P=4,w=8,E=16,I=32,_=64,k=128,$=256,T=512,O=30,N="...",V=800,j=16,L=1,D=2,B=3,W=1/0,A=9007199254740991,z=17976931348623157e292,G=0/0,q=4294967295,X=q-1,ie=q>>>1,ee=[["ary",k],["bind",x],["bindKey",C],["curry",w],["curryRight",E],["flip",T],["partial",I],["partialRight",_],["rearg",$]],se="[object Arguments]",ae="[object Array]",we="[object AsyncFunction]",de="[object Boolean]",le="[object Date]",te="[object DOMException]",be="[object Error]",_e="[object Function]",Se="[object GeneratorFunction]",Fe="[object Map]",Re="[object Number]",Ae="[object Null]",Oe="[object Object]",Ze="[object Promise]",yt="[object Proxy]",tt="[object RegExp]",et="[object Set]",Pt="[object String]",mt="[object Symbol]",lt="[object Undefined]",It="[object WeakMap]",Xe="[object WeakSet]",Te="[object ArrayBuffer]",ne="[object DataView]",ke="[object Float32Array]",Ee="[object Float64Array]",$e="[object Int8Array]",Ge="[object Int16Array]",Ct="[object Int32Array]",jt="[object Uint8Array]",Ht="[object Uint8ClampedArray]",Jn="[object Uint16Array]",hn="[object Uint32Array]",Kn=/\b__p \+= '';/g,Pr=/\b(__p \+=) '' \+/g,mn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,sn=/&(?:amp|lt|gt|quot|#39);/g,en=/[&<>"']/g,So=RegExp(sn.source),Ei=RegExp(en.source),Ar=/<%-([\s\S]+?)%>/g,ei=/<%([\s\S]+?)%>/g,Eo=/<%=([\s\S]+?)%>/g,Lt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nn=/^\w*$/,ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,me=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(me.source),gt=/^\s+/,bt=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ct=/\{\n\/\* \[wrapped with (.+)\] \*/,ve=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,Vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,un=/\w*$/,wn=/^[-+]0x[0-9a-f]+$/i,Fr=/^0b[01]+$/i,Ga=/^\[object .+?Constructor\]$/,mN=/^0o[0-7]+$/i,gN=/^(?:0|[1-9]\d*)$/,vN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yp=/($^)/,yN=/['\n\r\u2028\u2029\\]/g,bp="\\ud800-\\udfff",bN="\\u0300-\\u036f",wN="\\ufe20-\\ufe2f",CN="\\u20d0-\\u20ff",AS=bN+wN+CN,FS="\\u2700-\\u27bf",NS="a-z\\xdf-\\xf6\\xf8-\\xff",xN="\\xac\\xb1\\xd7\\xf7",SN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",EN="\\u2000-\\u206f",PN=" \\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",DS="A-Z\\xc0-\\xd6\\xd8-\\xde",BS="\\ufe0e\\ufe0f",zS=xN+SN+EN+PN,Hv="['’]",kN="["+bp+"]",jS="["+zS+"]",wp="["+AS+"]",HS="\\d+",IN="["+FS+"]",VS="["+NS+"]",US="[^"+bp+zS+HS+FS+NS+DS+"]",Vv="\\ud83c[\\udffb-\\udfff]",_N="(?:"+wp+"|"+Vv+")",WS="[^"+bp+"]",Uv="(?:\\ud83c[\\udde6-\\uddff]){2}",Wv="[\\ud800-\\udbff][\\udc00-\\udfff]",Ka="["+DS+"]",GS="\\u200d",KS="(?:"+VS+"|"+US+")",$N="(?:"+Ka+"|"+US+")",qS="(?:"+Hv+"(?:d|ll|m|re|s|t|ve))?",YS="(?:"+Hv+"(?:D|LL|M|RE|S|T|VE))?",XS=_N+"?",QS="["+BS+"]?",MN="(?:"+GS+"(?:"+[WS,Uv,Wv].join("|")+")"+QS+XS+")*",TN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",RN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",JS=QS+XS+MN,ON="(?:"+[IN,Uv,Wv].join("|")+")"+JS,LN="(?:"+[WS+wp+"?",wp,Uv,Wv,kN].join("|")+")",AN=RegExp(Hv,"g"),FN=RegExp(wp,"g"),Gv=RegExp(Vv+"(?="+Vv+")|"+LN+JS,"g"),NN=RegExp([Ka+"?"+VS+"+"+qS+"(?="+[jS,Ka,"$"].join("|")+")",$N+"+"+YS+"(?="+[jS,Ka+KS,"$"].join("|")+")",Ka+"?"+KS+"+"+qS,Ka+"+"+YS,RN,TN,HS,ON].join("|"),"g"),DN=RegExp("["+GS+bp+AS+BS+"]"),BN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zN=["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"],jN=-1,gn={};gn[ke]=gn[Ee]=gn[$e]=gn[Ge]=gn[Ct]=gn[jt]=gn[Ht]=gn[Jn]=gn[hn]=!0,gn[se]=gn[ae]=gn[Te]=gn[de]=gn[ne]=gn[le]=gn[be]=gn[_e]=gn[Fe]=gn[Re]=gn[Oe]=gn[tt]=gn[et]=gn[Pt]=gn[It]=!1;var dn={};dn[se]=dn[ae]=dn[Te]=dn[ne]=dn[de]=dn[le]=dn[ke]=dn[Ee]=dn[$e]=dn[Ge]=dn[Ct]=dn[Fe]=dn[Re]=dn[Oe]=dn[tt]=dn[et]=dn[Pt]=dn[mt]=dn[jt]=dn[Ht]=dn[Jn]=dn[hn]=!0,dn[be]=dn[_e]=dn[It]=!1;var HN={À:"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"},VN={"&":"&","<":"<",">":">",'"':""","'":"'"},UN={"&":"&","<":"<",">":">",""":'"',"'":"'"},WN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},GN=parseFloat,KN=parseInt,ZS=typeof uo=="object"&&uo&&uo.Object===Object&&uo,qN=typeof self=="object"&&self&&self.Object===Object&&self,ir=ZS||qN||Function("return this")(),Kv=t&&!t.nodeType&&t,zl=Kv&&!0&&e&&!e.nodeType&&e,eE=zl&&zl.exports===Kv,qv=eE&&ZS.process,Po=function(){try{var Q=zl&&zl.require&&zl.require("util").types;return Q||qv&&qv.binding&&qv.binding("util")}catch(ye){}}(),tE=Po&&Po.isArrayBuffer,nE=Po&&Po.isDate,rE=Po&&Po.isMap,oE=Po&&Po.isRegExp,iE=Po&&Po.isSet,sE=Po&&Po.isTypedArray;function eo(Q,ye,pe){switch(pe.length){case 0:return Q.call(ye);case 1:return Q.call(ye,pe[0]);case 2:return Q.call(ye,pe[0],pe[1]);case 3:return Q.call(ye,pe[0],pe[1],pe[2])}return Q.apply(ye,pe)}function YN(Q,ye,pe,je){for(var wt=-1,qt=Q==null?0:Q.length;++wt<qt;){var qn=Q[wt];ye(je,qn,pe(qn),Q)}return je}function ko(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je&&ye(Q[pe],pe,Q)!==!1;);return Q}function XN(Q,ye){for(var pe=Q==null?0:Q.length;pe--&&ye(Q[pe],pe,Q)!==!1;);return Q}function lE(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je;)if(!ye(Q[pe],pe,Q))return!1;return!0}function As(Q,ye){for(var pe=-1,je=Q==null?0:Q.length,wt=0,qt=[];++pe<je;){var qn=Q[pe];ye(qn,pe,Q)&&(qt[wt++]=qn)}return qt}function Cp(Q,ye){var pe=Q==null?0:Q.length;return!!pe&&qa(Q,ye,0)>-1}function Yv(Q,ye,pe){for(var je=-1,wt=Q==null?0:Q.length;++je<wt;)if(pe(ye,Q[je]))return!0;return!1}function Cn(Q,ye){for(var pe=-1,je=Q==null?0:Q.length,wt=Array(je);++pe<je;)wt[pe]=ye(Q[pe],pe,Q);return wt}function Fs(Q,ye){for(var pe=-1,je=ye.length,wt=Q.length;++pe<je;)Q[wt+pe]=ye[pe];return Q}function Xv(Q,ye,pe,je){var wt=-1,qt=Q==null?0:Q.length;for(je&&qt&&(pe=Q[++wt]);++wt<qt;)pe=ye(pe,Q[wt],wt,Q);return pe}function QN(Q,ye,pe,je){var wt=Q==null?0:Q.length;for(je&&wt&&(pe=Q[--wt]);wt--;)pe=ye(pe,Q[wt],wt,Q);return pe}function Qv(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je;)if(ye(Q[pe],pe,Q))return!0;return!1}var JN=Jv("length");function ZN(Q){return Q.split("")}function e4(Q){return Q.match(ge)||[]}function aE(Q,ye,pe){var je;return pe(Q,function(wt,qt,qn){if(ye(wt,qt,qn))return je=qt,!1}),je}function xp(Q,ye,pe,je){for(var wt=Q.length,qt=pe+(je?1:-1);je?qt--:++qt<wt;)if(ye(Q[qt],qt,Q))return qt;return-1}function qa(Q,ye,pe){return ye===ye?f4(Q,ye,pe):xp(Q,cE,pe)}function t4(Q,ye,pe,je){for(var wt=pe-1,qt=Q.length;++wt<qt;)if(je(Q[wt],ye))return wt;return-1}function cE(Q){return Q!==Q}function uE(Q,ye){var pe=Q==null?0:Q.length;return pe?ey(Q,ye)/pe:G}function Jv(Q){return function(ye){return ye==null?n:ye[Q]}}function Zv(Q){return function(ye){return Q==null?n:Q[ye]}}function dE(Q,ye,pe,je,wt){return wt(Q,function(qt,qn,an){pe=je?(je=!1,qt):ye(pe,qt,qn,an)}),pe}function n4(Q,ye){var pe=Q.length;for(Q.sort(ye);pe--;)Q[pe]=Q[pe].value;return Q}function ey(Q,ye){for(var pe,je=-1,wt=Q.length;++je<wt;){var qt=ye(Q[je]);qt!==n&&(pe=pe===n?qt:pe+qt)}return pe}function ty(Q,ye){for(var pe=-1,je=Array(Q);++pe<Q;)je[pe]=ye(pe);return je}function r4(Q,ye){return Cn(ye,function(pe){return[pe,Q[pe]]})}function fE(Q){return Q&&Q.slice(0,gE(Q)+1).replace(gt,"")}function to(Q){return function(ye){return Q(ye)}}function ny(Q,ye){return Cn(ye,function(pe){return Q[pe]})}function zu(Q,ye){return Q.has(ye)}function pE(Q,ye){for(var pe=-1,je=Q.length;++pe<je&&qa(ye,Q[pe],0)>-1;);return pe}function hE(Q,ye){for(var pe=Q.length;pe--&&qa(ye,Q[pe],0)>-1;);return pe}function o4(Q,ye){for(var pe=Q.length,je=0;pe--;)Q[pe]===ye&&++je;return je}var i4=Zv(HN),s4=Zv(VN);function l4(Q){return"\\"+WN[Q]}function a4(Q,ye){return Q==null?n:Q[ye]}function Ya(Q){return DN.test(Q)}function c4(Q){return BN.test(Q)}function u4(Q){for(var ye,pe=[];!(ye=Q.next()).done;)pe.push(ye.value);return pe}function ry(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je,wt){pe[++ye]=[wt,je]}),pe}function mE(Q,ye){return function(pe){return Q(ye(pe))}}function Ns(Q,ye){for(var pe=-1,je=Q.length,wt=0,qt=[];++pe<je;){var qn=Q[pe];(qn===ye||qn===p)&&(Q[pe]=p,qt[wt++]=pe)}return qt}function Sp(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je){pe[++ye]=je}),pe}function d4(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je){pe[++ye]=[je,je]}),pe}function f4(Q,ye,pe){for(var je=pe-1,wt=Q.length;++je<wt;)if(Q[je]===ye)return je;return-1}function p4(Q,ye,pe){for(var je=pe+1;je--;)if(Q[je]===ye)return je;return je}function Xa(Q){return Ya(Q)?m4(Q):JN(Q)}function ti(Q){return Ya(Q)?g4(Q):ZN(Q)}function gE(Q){for(var ye=Q.length;ye--&&bt.test(Q.charAt(ye)););return ye}var h4=Zv(UN);function m4(Q){for(var ye=Gv.lastIndex=0;Gv.test(Q);)++ye;return ye}function g4(Q){return Q.match(Gv)||[]}function v4(Q){return Q.match(NN)||[]}var y4=function Q(ye){ye=ye==null?ir:Qa.defaults(ir.Object(),ye,Qa.pick(ir,zN));var pe=ye.Array,je=ye.Date,wt=ye.Error,qt=ye.Function,qn=ye.Math,an=ye.Object,oy=ye.RegExp,b4=ye.String,Io=ye.TypeError,Ep=pe.prototype,w4=qt.prototype,Ja=an.prototype,Pp=ye["__core-js_shared__"],kp=w4.toString,tn=Ja.hasOwnProperty,C4=0,vE=function(){var l=/[^.]+$/.exec(Pp&&Pp.keys&&Pp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Ip=Ja.toString,x4=kp.call(an),S4=ir._,E4=oy("^"+kp.call(tn).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_p=eE?ye.Buffer:n,Ds=ye.Symbol,$p=ye.Uint8Array,yE=_p?_p.allocUnsafe:n,Mp=mE(an.getPrototypeOf,an),bE=an.create,wE=Ja.propertyIsEnumerable,Tp=Ep.splice,CE=Ds?Ds.isConcatSpreadable:n,ju=Ds?Ds.iterator:n,jl=Ds?Ds.toStringTag:n,Rp=function(){try{var l=Gl(an,"defineProperty");return l({},"",{}),l}catch(d){}}(),P4=ye.clearTimeout!==ir.clearTimeout&&ye.clearTimeout,k4=je&&je.now!==ir.Date.now&&je.now,I4=ye.setTimeout!==ir.setTimeout&&ye.setTimeout,Op=qn.ceil,Lp=qn.floor,iy=an.getOwnPropertySymbols,_4=_p?_p.isBuffer:n,xE=ye.isFinite,$4=Ep.join,M4=mE(an.keys,an),Yn=qn.max,hr=qn.min,T4=je.now,R4=ye.parseInt,SE=qn.random,O4=Ep.reverse,sy=Gl(ye,"DataView"),Hu=Gl(ye,"Map"),ly=Gl(ye,"Promise"),Za=Gl(ye,"Set"),Vu=Gl(ye,"WeakMap"),Uu=Gl(an,"create"),Ap=Vu&&new Vu,ec={},L4=Kl(sy),A4=Kl(Hu),F4=Kl(ly),N4=Kl(Za),D4=Kl(Vu),Fp=Ds?Ds.prototype:n,Wu=Fp?Fp.valueOf:n,EE=Fp?Fp.toString:n;function H(l){if(On(l)&&!xt(l)&&!(l instanceof At)){if(l instanceof _o)return l;if(tn.call(l,"__wrapped__"))return PP(l)}return new _o(l)}var tc=function(){function l(){}return function(d){if(!In(d))return{};if(bE)return bE(d);l.prototype=d;var y=new l;return l.prototype=n,y}}();function Np(){}function _o(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}H.templateSettings={escape:Ar,evaluate:ei,interpolate:Eo,variable:"",imports:{_:H}},H.prototype=Np.prototype,H.prototype.constructor=H,_o.prototype=tc(Np.prototype),_o.prototype.constructor=_o;function At(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function B4(){var l=new At(this.__wrapped__);return l.__actions__=Nr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Nr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Nr(this.__views__),l}function z4(){if(this.__filtered__){var l=new At(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function j4(){var l=this.__wrapped__.value(),d=this.__dir__,y=xt(l),M=d<0,F=y?l.length:0,U=ZD(0,F,this.__views__),K=U.start,Y=U.end,J=Y-K,Ce=M?Y:K-1,xe=this.__iteratees__,Pe=xe.length,De=0,Je=hr(J,this.__takeCount__);if(!y||!M&&F==J&&Je==J)return qE(l,this.__actions__);var pt=[];e:for(;J--&&De<Je;){Ce+=d;for(var _t=-1,ht=l[Ce];++_t<Pe;){var Tt=xe[_t],Bt=Tt.iteratee,oo=Tt.type,_r=Bt(ht);if(oo==D)ht=_r;else if(!_r){if(oo==L)continue e;break e}}pt[De++]=ht}return pt}At.prototype=tc(Np.prototype),At.prototype.constructor=At;function Hl(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var M=l[d];this.set(M[0],M[1])}}function H4(){this.__data__=Uu?Uu(null):{},this.size=0}function V4(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function U4(l){var d=this.__data__;if(Uu){var y=d[l];return y===c?n:y}return tn.call(d,l)?d[l]:n}function W4(l){var d=this.__data__;return Uu?d[l]!==n:tn.call(d,l)}function G4(l,d){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=Uu&&d===n?c:d,this}Hl.prototype.clear=H4,Hl.prototype.delete=V4,Hl.prototype.get=U4,Hl.prototype.has=W4,Hl.prototype.set=G4;function es(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var M=l[d];this.set(M[0],M[1])}}function K4(){this.__data__=[],this.size=0}function q4(l){var d=this.__data__,y=Dp(d,l);if(y<0)return!1;var M=d.length-1;return y==M?d.pop():Tp.call(d,y,1),--this.size,!0}function Y4(l){var d=this.__data__,y=Dp(d,l);return y<0?n:d[y][1]}function X4(l){return Dp(this.__data__,l)>-1}function Q4(l,d){var y=this.__data__,M=Dp(y,l);return M<0?(++this.size,y.push([l,d])):y[M][1]=d,this}es.prototype.clear=K4,es.prototype.delete=q4,es.prototype.get=Y4,es.prototype.has=X4,es.prototype.set=Q4;function ts(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var M=l[d];this.set(M[0],M[1])}}function J4(){this.size=0,this.__data__={hash:new Hl,map:new(Hu||es),string:new Hl}}function Z4(l){var d=Xp(this,l).delete(l);return this.size-=d?1:0,d}function eD(l){return Xp(this,l).get(l)}function tD(l){return Xp(this,l).has(l)}function nD(l,d){var y=Xp(this,l),M=y.size;return y.set(l,d),this.size+=y.size==M?0:1,this}ts.prototype.clear=J4,ts.prototype.delete=Z4,ts.prototype.get=eD,ts.prototype.has=tD,ts.prototype.set=nD;function Vl(l){var d=-1,y=l==null?0:l.length;for(this.__data__=new ts;++d<y;)this.add(l[d])}function rD(l){return this.__data__.set(l,c),this}function oD(l){return this.__data__.has(l)}Vl.prototype.add=Vl.prototype.push=rD,Vl.prototype.has=oD;function ni(l){var d=this.__data__=new es(l);this.size=d.size}function iD(){this.__data__=new es,this.size=0}function sD(l){var d=this.__data__,y=d.delete(l);return this.size=d.size,y}function lD(l){return this.__data__.get(l)}function aD(l){return this.__data__.has(l)}function cD(l,d){var y=this.__data__;if(y instanceof es){var M=y.__data__;if(!Hu||M.length<o-1)return M.push([l,d]),this.size=++y.size,this;y=this.__data__=new ts(M)}return y.set(l,d),this.size=y.size,this}ni.prototype.clear=iD,ni.prototype.delete=sD,ni.prototype.get=lD,ni.prototype.has=aD,ni.prototype.set=cD;function PE(l,d){var y=xt(l),M=!y&&ql(l),F=!y&&!M&&Vs(l),U=!y&&!M&&!F&&ic(l),K=y||M||F||U,Y=K?ty(l.length,b4):[],J=Y.length;for(var Ce in l)(d||tn.call(l,Ce))&&!(K&&(Ce=="length"||F&&(Ce=="offset"||Ce=="parent")||U&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||is(Ce,J)))&&Y.push(Ce);return Y}function kE(l){var d=l.length;return d?l[yy(0,d-1)]:n}function uD(l,d){return Qp(Nr(l),Ul(d,0,l.length))}function dD(l){return Qp(Nr(l))}function ay(l,d,y){(y!==n&&!ri(l[d],y)||y===n&&!(d in l))&&ns(l,d,y)}function Gu(l,d,y){var M=l[d];(!(tn.call(l,d)&&ri(M,y))||y===n&&!(d in l))&&ns(l,d,y)}function Dp(l,d){for(var y=l.length;y--;)if(ri(l[y][0],d))return y;return-1}function fD(l,d,y,M){return Bs(l,function(F,U,K){d(M,F,y(F),K)}),M}function IE(l,d){return l&&ki(d,Zn(d),l)}function pD(l,d){return l&&ki(d,Br(d),l)}function ns(l,d,y){d=="__proto__"&&Rp?Rp(l,d,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[d]=y}function cy(l,d){for(var y=-1,M=d.length,F=pe(M),U=l==null;++y<M;)F[y]=U?n:Vy(l,d[y]);return F}function Ul(l,d,y){return l===l&&(y!==n&&(l=l<=y?l:y),d!==n&&(l=l>=d?l:d)),l}function $o(l,d,y,M,F,U){var K,Y=d&h,J=d&m,Ce=d&v;if(y&&(K=F?y(l,M,F,U):y(l)),K!==n)return K;if(!In(l))return l;var xe=xt(l);if(xe){if(K=t5(l),!Y)return Nr(l,K)}else{var Pe=mr(l),De=Pe==_e||Pe==Se;if(Vs(l))return QE(l,Y);if(Pe==Oe||Pe==se||De&&!F){if(K=J||De?{}:gP(l),!Y)return J?UD(l,pD(K,l)):VD(l,IE(K,l))}else{if(!dn[Pe])return F?l:{};K=n5(l,Pe,Y)}}U||(U=new ni);var Je=U.get(l);if(Je)return Je;U.set(l,K),WP(l)?l.forEach(function(ht){K.add($o(ht,d,y,ht,l,U))}):VP(l)&&l.forEach(function(ht,Tt){K.set(Tt,$o(ht,d,y,Tt,l,U))});var pt=Ce?J?$y:_y:J?Br:Zn,_t=xe?n:pt(l);return ko(_t||l,function(ht,Tt){_t&&(Tt=ht,ht=l[Tt]),Gu(K,Tt,$o(ht,d,y,Tt,l,U))}),K}function hD(l){var d=Zn(l);return function(y){return _E(y,l,d)}}function _E(l,d,y){var M=y.length;if(l==null)return!M;for(l=an(l);M--;){var F=y[M],U=d[F],K=l[F];if(K===n&&!(F in l)||!U(K))return!1}return!0}function $E(l,d,y){if(typeof l!="function")throw new Io(s);return Zu(function(){l.apply(n,y)},d)}function Ku(l,d,y,M){var F=-1,U=Cp,K=!0,Y=l.length,J=[],Ce=d.length;if(!Y)return J;y&&(d=Cn(d,to(y))),M?(U=Yv,K=!1):d.length>=o&&(U=zu,K=!1,d=new Vl(d));e:for(;++F<Y;){var xe=l[F],Pe=y==null?xe:y(xe);if(xe=M||xe!==0?xe:0,K&&Pe===Pe){for(var De=Ce;De--;)if(d[De]===Pe)continue e;J.push(xe)}else U(d,Pe,M)||J.push(xe)}return J}var Bs=nP(Pi),ME=nP(dy,!0);function mD(l,d){var y=!0;return Bs(l,function(M,F,U){return y=!!d(M,F,U),y}),y}function Bp(l,d,y){for(var M=-1,F=l.length;++M<F;){var U=l[M],K=d(U);if(K!=null&&(Y===n?K===K&&!ro(K):y(K,Y)))var Y=K,J=U}return J}function gD(l,d,y,M){var F=l.length;for(y=kt(y),y<0&&(y=-y>F?0:F+y),M=M===n||M>F?F:kt(M),M<0&&(M+=F),M=y>M?0:KP(M);y<M;)l[y++]=d;return l}function TE(l,d){var y=[];return Bs(l,function(M,F,U){d(M,F,U)&&y.push(M)}),y}function sr(l,d,y,M,F){var U=-1,K=l.length;for(y||(y=o5),F||(F=[]);++U<K;){var Y=l[U];d>0&&y(Y)?d>1?sr(Y,d-1,y,M,F):Fs(F,Y):M||(F[F.length]=Y)}return F}var uy=rP(),RE=rP(!0);function Pi(l,d){return l&&uy(l,d,Zn)}function dy(l,d){return l&&RE(l,d,Zn)}function zp(l,d){return As(d,function(y){return ss(l[y])})}function Wl(l,d){d=js(d,l);for(var y=0,M=d.length;l!=null&&y<M;)l=l[Ii(d[y++])];return y&&y==M?l:n}function OE(l,d,y){var M=d(l);return xt(l)?M:Fs(M,y(l))}function kr(l){return l==null?l===n?lt:Ae:jl&&jl in an(l)?JD(l):d5(l)}function fy(l,d){return l>d}function vD(l,d){return l!=null&&tn.call(l,d)}function yD(l,d){return l!=null&&d in an(l)}function bD(l,d,y){return l>=hr(d,y)&&l<Yn(d,y)}function py(l,d,y){for(var M=y?Yv:Cp,F=l[0].length,U=l.length,K=U,Y=pe(U),J=1/0,Ce=[];K--;){var xe=l[K];K&&d&&(xe=Cn(xe,to(d))),J=hr(xe.length,J),Y[K]=!y&&(d||F>=120&&xe.length>=120)?new Vl(K&&xe):n}xe=l[0];var Pe=-1,De=Y[0];e:for(;++Pe<F&&Ce.length<J;){var Je=xe[Pe],pt=d?d(Je):Je;if(Je=y||Je!==0?Je:0,!(De?zu(De,pt):M(Ce,pt,y))){for(K=U;--K;){var _t=Y[K];if(!(_t?zu(_t,pt):M(l[K],pt,y)))continue e}De&&De.push(pt),Ce.push(Je)}}return Ce}function wD(l,d,y,M){return Pi(l,function(F,U,K){d(M,y(F),U,K)}),M}function qu(l,d,y){d=js(d,l),l=wP(l,d);var M=l==null?l:l[Ii(To(d))];return M==null?n:eo(M,l,y)}function LE(l){return On(l)&&kr(l)==se}function CD(l){return On(l)&&kr(l)==Te}function xD(l){return On(l)&&kr(l)==le}function Yu(l,d,y,M,F){return l===d?!0:l==null||d==null||!On(l)&&!On(d)?l!==l&&d!==d:SD(l,d,y,M,Yu,F)}function SD(l,d,y,M,F,U){var K=xt(l),Y=xt(d),J=K?ae:mr(l),Ce=Y?ae:mr(d);J=J==se?Oe:J,Ce=Ce==se?Oe:Ce;var xe=J==Oe,Pe=Ce==Oe,De=J==Ce;if(De&&Vs(l)){if(!Vs(d))return!1;K=!0,xe=!1}if(De&&!xe)return U||(U=new ni),K||ic(l)?pP(l,d,y,M,F,U):XD(l,d,J,y,M,F,U);if(!(y&b)){var Je=xe&&tn.call(l,"__wrapped__"),pt=Pe&&tn.call(d,"__wrapped__");if(Je||pt){var _t=Je?l.value():l,ht=pt?d.value():d;return U||(U=new ni),F(_t,ht,y,M,U)}}return De?(U||(U=new ni),QD(l,d,y,M,F,U)):!1}function ED(l){return On(l)&&mr(l)==Fe}function hy(l,d,y,M){var F=y.length,U=F,K=!M;if(l==null)return!U;for(l=an(l);F--;){var Y=y[F];if(K&&Y[2]?Y[1]!==l[Y[0]]:!(Y[0]in l))return!1}for(;++F<U;){Y=y[F];var J=Y[0],Ce=l[J],xe=Y[1];if(K&&Y[2]){if(Ce===n&&!(J in l))return!1}else{var Pe=new ni;if(M)var De=M(Ce,xe,J,l,d,Pe);if(!(De===n?Yu(xe,Ce,b|g,M,Pe):De))return!1}}return!0}function AE(l){if(!In(l)||s5(l))return!1;var d=ss(l)?E4:Ga;return d.test(Kl(l))}function PD(l){return On(l)&&kr(l)==tt}function kD(l){return On(l)&&mr(l)==et}function ID(l){return On(l)&&rh(l.length)&&!!gn[kr(l)]}function FE(l){return typeof l=="function"?l:l==null?zr:typeof l=="object"?xt(l)?BE(l[0],l[1]):DE(l):ok(l)}function my(l){if(!Ju(l))return M4(l);var d=[];for(var y in an(l))tn.call(l,y)&&y!="constructor"&&d.push(y);return d}function _D(l){if(!In(l))return u5(l);var d=Ju(l),y=[];for(var M in l)M=="constructor"&&(d||!tn.call(l,M))||y.push(M);return y}function gy(l,d){return l<d}function NE(l,d){var y=-1,M=Dr(l)?pe(l.length):[];return Bs(l,function(F,U,K){M[++y]=d(F,U,K)}),M}function DE(l){var d=Ty(l);return d.length==1&&d[0][2]?yP(d[0][0],d[0][1]):function(y){return y===l||hy(y,l,d)}}function BE(l,d){return Oy(l)&&vP(d)?yP(Ii(l),d):function(y){var M=Vy(y,l);return M===n&&M===d?Uy(y,l):Yu(d,M,b|g)}}function jp(l,d,y,M,F){l!==d&&uy(d,function(U,K){if(F||(F=new ni),In(U))$D(l,d,K,y,jp,M,F);else{var Y=M?M(Ay(l,K),U,K+"",l,d,F):n;Y===n&&(Y=U),ay(l,K,Y)}},Br)}function $D(l,d,y,M,F,U,K){var Y=Ay(l,y),J=Ay(d,y),Ce=K.get(J);if(Ce){ay(l,y,Ce);return}var xe=U?U(Y,J,y+"",l,d,K):n,Pe=xe===n;if(Pe){var De=xt(J),Je=!De&&Vs(J),pt=!De&&!Je&&ic(J);xe=J,De||Je||pt?xt(Y)?xe=Y:Dn(Y)?xe=Nr(Y):Je?(Pe=!1,xe=QE(J,!0)):pt?(Pe=!1,xe=JE(J,!0)):xe=[]:ed(J)||ql(J)?(xe=Y,ql(Y)?xe=qP(Y):(!In(Y)||ss(Y))&&(xe=gP(J))):Pe=!1}Pe&&(K.set(J,xe),F(xe,J,M,U,K),K.delete(J)),ay(l,y,xe)}function zE(l,d){var y=l.length;if(y)return d+=d<0?y:0,is(d,y)?l[d]:n}function jE(l,d,y){d.length?d=Cn(d,function(U){return xt(U)?function(K){return Wl(K,U.length===1?U[0]:U)}:U}):d=[zr];var M=-1;d=Cn(d,to(ut()));var F=NE(l,function(U,K,Y){var J=Cn(d,function(Ce){return Ce(U)});return{criteria:J,index:++M,value:U}});return n4(F,function(U,K){return HD(U,K,y)})}function MD(l,d){return HE(l,d,function(y,M){return Uy(l,M)})}function HE(l,d,y){for(var M=-1,F=d.length,U={};++M<F;){var K=d[M],Y=Wl(l,K);y(Y,K)&&Xu(U,js(K,l),Y)}return U}function TD(l){return function(d){return Wl(d,l)}}function vy(l,d,y,M){var F=M?t4:qa,U=-1,K=d.length,Y=l;for(l===d&&(d=Nr(d)),y&&(Y=Cn(l,to(y)));++U<K;)for(var J=0,Ce=d[U],xe=y?y(Ce):Ce;(J=F(Y,xe,J,M))>-1;)Y!==l&&Tp.call(Y,J,1),Tp.call(l,J,1);return l}function VE(l,d){for(var y=l?d.length:0,M=y-1;y--;){var F=d[y];if(y==M||F!==U){var U=F;is(F)?Tp.call(l,F,1):Cy(l,F)}}return l}function yy(l,d){return l+Lp(SE()*(d-l+1))}function RD(l,d,y,M){for(var F=-1,U=Yn(Op((d-l)/(y||1)),0),K=pe(U);U--;)K[M?U:++F]=l,l+=y;return K}function by(l,d){var y="";if(!l||d<1||d>A)return y;do d%2&&(y+=l),d=Lp(d/2),d&&(l+=l);while(d);return y}function $t(l,d){return Fy(bP(l,d,zr),l+"")}function OD(l){return kE(sc(l))}function LD(l,d){var y=sc(l);return Qp(y,Ul(d,0,y.length))}function Xu(l,d,y,M){if(!In(l))return l;d=js(d,l);for(var F=-1,U=d.length,K=U-1,Y=l;Y!=null&&++F<U;){var J=Ii(d[F]),Ce=y;if(J==="__proto__"||J==="constructor"||J==="prototype")return l;if(F!=K){var xe=Y[J];Ce=M?M(xe,J,Y):n,Ce===n&&(Ce=In(xe)?xe:is(d[F+1])?[]:{})}Gu(Y,J,Ce),Y=Y[J]}return l}var UE=Ap?function(l,d){return Ap.set(l,d),l}:zr,AD=Rp?function(l,d){return Rp(l,"toString",{configurable:!0,enumerable:!1,value:Gy(d),writable:!0})}:zr;function FD(l){return Qp(sc(l))}function Mo(l,d,y){var M=-1,F=l.length;d<0&&(d=-d>F?0:F+d),y=y>F?F:y,y<0&&(y+=F),F=d>y?0:y-d>>>0,d>>>=0;for(var U=pe(F);++M<F;)U[M]=l[M+d];return U}function ND(l,d){var y;return Bs(l,function(M,F,U){return y=d(M,F,U),!y}),!!y}function Hp(l,d,y){var M=0,F=l==null?M:l.length;if(typeof d=="number"&&d===d&&F<=ie){for(;M<F;){var U=M+F>>>1,K=l[U];K!==null&&!ro(K)&&(y?K<=d:K<d)?M=U+1:F=U}return F}return wy(l,d,zr,y)}function wy(l,d,y,M){var F=0,U=l==null?0:l.length;if(U===0)return 0;d=y(d);for(var K=d!==d,Y=d===null,J=ro(d),Ce=d===n;F<U;){var xe=Lp((F+U)/2),Pe=y(l[xe]),De=Pe!==n,Je=Pe===null,pt=Pe===Pe,_t=ro(Pe);if(K)var ht=M||pt;else Ce?ht=pt&&(M||De):Y?ht=pt&&De&&(M||!Je):J?ht=pt&&De&&!Je&&(M||!_t):Je||_t?ht=!1:ht=M?Pe<=d:Pe<d;ht?F=xe+1:U=xe}return hr(U,X)}function WE(l,d){for(var y=-1,M=l.length,F=0,U=[];++y<M;){var K=l[y],Y=d?d(K):K;if(!y||!ri(Y,J)){var J=Y;U[F++]=K===0?0:K}}return U}function GE(l){return typeof l=="number"?l:ro(l)?G:+l}function no(l){if(typeof l=="string")return l;if(xt(l))return Cn(l,no)+"";if(ro(l))return EE?EE.call(l):"";var d=l+"";return d=="0"&&1/l==-W?"-0":d}function zs(l,d,y){var M=-1,F=Cp,U=l.length,K=!0,Y=[],J=Y;if(y)K=!1,F=Yv;else if(U>=o){var Ce=d?null:qD(l);if(Ce)return Sp(Ce);K=!1,F=zu,J=new Vl}else J=d?[]:Y;e:for(;++M<U;){var xe=l[M],Pe=d?d(xe):xe;if(xe=y||xe!==0?xe:0,K&&Pe===Pe){for(var De=J.length;De--;)if(J[De]===Pe)continue e;d&&J.push(Pe),Y.push(xe)}else F(J,Pe,y)||(J!==Y&&J.push(Pe),Y.push(xe))}return Y}function Cy(l,d){return d=js(d,l),l=wP(l,d),l==null||delete l[Ii(To(d))]}function KE(l,d,y,M){return Xu(l,d,y(Wl(l,d)),M)}function Vp(l,d,y,M){for(var F=l.length,U=M?F:-1;(M?U--:++U<F)&&d(l[U],U,l););return y?Mo(l,M?0:U,M?U+1:F):Mo(l,M?U+1:0,M?F:U)}function qE(l,d){var y=l;return y instanceof At&&(y=y.value()),Xv(d,function(M,F){return F.func.apply(F.thisArg,Fs([M],F.args))},y)}function xy(l,d,y){var M=l.length;if(M<2)return M?zs(l[0]):[];for(var F=-1,U=pe(M);++F<M;)for(var K=l[F],Y=-1;++Y<M;)Y!=F&&(U[F]=Ku(U[F]||K,l[Y],d,y));return zs(sr(U,1),d,y)}function YE(l,d,y){for(var M=-1,F=l.length,U=d.length,K={};++M<F;){var Y=M<U?d[M]:n;y(K,l[M],Y)}return K}function Sy(l){return Dn(l)?l:[]}function Ey(l){return typeof l=="function"?l:zr}function js(l,d){return xt(l)?l:Oy(l,d)?[l]:EP(Jt(l))}var DD=$t;function Hs(l,d,y){var M=l.length;return y=y===n?M:y,!d&&y>=M?l:Mo(l,d,y)}var XE=P4||function(l){return ir.clearTimeout(l)};function QE(l,d){if(d)return l.slice();var y=l.length,M=yE?yE(y):new l.constructor(y);return l.copy(M),M}function Py(l){var d=new l.constructor(l.byteLength);return new $p(d).set(new $p(l)),d}function BD(l,d){var y=d?Py(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}function zD(l){var d=new l.constructor(l.source,un.exec(l));return d.lastIndex=l.lastIndex,d}function jD(l){return Wu?an(Wu.call(l)):{}}function JE(l,d){var y=d?Py(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}function ZE(l,d){if(l!==d){var y=l!==n,M=l===null,F=l===l,U=ro(l),K=d!==n,Y=d===null,J=d===d,Ce=ro(d);if(!Y&&!Ce&&!U&&l>d||U&&K&&J&&!Y&&!Ce||M&&K&&J||!y&&J||!F)return 1;if(!M&&!U&&!Ce&&l<d||Ce&&y&&F&&!M&&!U||Y&&y&&F||!K&&F||!J)return-1}return 0}function HD(l,d,y){for(var M=-1,F=l.criteria,U=d.criteria,K=F.length,Y=y.length;++M<K;){var J=ZE(F[M],U[M]);if(J){if(M>=Y)return J;var Ce=y[M];return J*(Ce=="desc"?-1:1)}}return l.index-d.index}function eP(l,d,y,M){for(var F=-1,U=l.length,K=y.length,Y=-1,J=d.length,Ce=Yn(U-K,0),xe=pe(J+Ce),Pe=!M;++Y<J;)xe[Y]=d[Y];for(;++F<K;)(Pe||F<U)&&(xe[y[F]]=l[F]);for(;Ce--;)xe[Y++]=l[F++];return xe}function tP(l,d,y,M){for(var F=-1,U=l.length,K=-1,Y=y.length,J=-1,Ce=d.length,xe=Yn(U-Y,0),Pe=pe(xe+Ce),De=!M;++F<xe;)Pe[F]=l[F];for(var Je=F;++J<Ce;)Pe[Je+J]=d[J];for(;++K<Y;)(De||F<U)&&(Pe[Je+y[K]]=l[F++]);return Pe}function Nr(l,d){var y=-1,M=l.length;for(d||(d=pe(M));++y<M;)d[y]=l[y];return d}function ki(l,d,y,M){var F=!y;y||(y={});for(var U=-1,K=d.length;++U<K;){var Y=d[U],J=M?M(y[Y],l[Y],Y,y,l):n;J===n&&(J=l[Y]),F?ns(y,Y,J):Gu(y,Y,J)}return y}function VD(l,d){return ki(l,Ry(l),d)}function UD(l,d){return ki(l,hP(l),d)}function Up(l,d){return function(y,M){var F=xt(y)?YN:fD,U=d?d():{};return F(y,l,ut(M,2),U)}}function nc(l){return $t(function(d,y){var M=-1,F=y.length,U=F>1?y[F-1]:n,K=F>2?y[2]:n;for(U=l.length>3&&typeof U=="function"?(F--,U):n,K&&Ir(y[0],y[1],K)&&(U=F<3?n:U,F=1),d=an(d);++M<F;){var Y=y[M];Y&&l(d,Y,M,U)}return d})}function nP(l,d){return function(y,M){if(y==null)return y;if(!Dr(y))return l(y,M);for(var F=y.length,U=d?F:-1,K=an(y);(d?U--:++U<F)&&M(K[U],U,K)!==!1;);return y}}function rP(l){return function(d,y,M){for(var F=-1,U=an(d),K=M(d),Y=K.length;Y--;){var J=K[l?Y:++F];if(y(U[J],J,U)===!1)break}return d}}function WD(l,d,y){var M=d&x,F=Qu(l);function U(){var K=this&&this!==ir&&this instanceof U?F:l;return K.apply(M?y:this,arguments)}return U}function oP(l){return function(d){d=Jt(d);var y=Ya(d)?ti(d):n,M=y?y[0]:d.charAt(0),F=y?Hs(y,1).join(""):d.slice(1);return M[l]()+F}}function rc(l){return function(d){return Xv(nk(tk(d).replace(AN,"")),l,"")}}function Qu(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var y=tc(l.prototype),M=l.apply(y,d);return In(M)?M:y}}function GD(l,d,y){var M=Qu(l);function F(){for(var U=arguments.length,K=pe(U),Y=U,J=oc(F);Y--;)K[Y]=arguments[Y];var Ce=U<3&&K[0]!==J&&K[U-1]!==J?[]:Ns(K,J);if(U-=Ce.length,U<y)return cP(l,d,Wp,F.placeholder,n,K,Ce,n,n,y-U);var xe=this&&this!==ir&&this instanceof F?M:l;return eo(xe,this,K)}return F}function iP(l){return function(d,y,M){var F=an(d);if(!Dr(d)){var U=ut(y,3);d=Zn(d),y=function(Y){return U(F[Y],Y,F)}}var K=l(d,y,M);return K>-1?F[U?d[K]:K]:n}}function sP(l){return os(function(d){var y=d.length,M=y,F=_o.prototype.thru;for(l&&d.reverse();M--;){var U=d[M];if(typeof U!="function")throw new Io(s);if(F&&!K&&Yp(U)=="wrapper")var K=new _o([],!0)}for(M=K?M:y;++M<y;){U=d[M];var Y=Yp(U),J=Y=="wrapper"?My(U):n;J&&Ly(J[0])&&J[1]==(k|w|I|$)&&!J[4].length&&J[9]==1?K=K[Yp(J[0])].apply(K,J[3]):K=U.length==1&&Ly(U)?K[Y]():K.thru(U)}return function(){var Ce=arguments,xe=Ce[0];if(K&&Ce.length==1&&xt(xe))return K.plant(xe).value();for(var Pe=0,De=y?d[Pe].apply(this,Ce):xe;++Pe<y;)De=d[Pe].call(this,De);return De}})}function Wp(l,d,y,M,F,U,K,Y,J,Ce){var xe=d&k,Pe=d&x,De=d&C,Je=d&(w|E),pt=d&T,_t=De?n:Qu(l);function ht(){for(var Tt=arguments.length,Bt=pe(Tt),oo=Tt;oo--;)Bt[oo]=arguments[oo];if(Je)var _r=oc(ht),io=o4(Bt,_r);if(M&&(Bt=eP(Bt,M,F,Je)),U&&(Bt=tP(Bt,U,K,Je)),Tt-=io,Je&&Tt<Ce){var Bn=Ns(Bt,_r);return cP(l,d,Wp,ht.placeholder,y,Bt,Bn,Y,J,Ce-Tt)}var oi=Pe?y:this,as=De?oi[l]:l;return Tt=Bt.length,Y?Bt=f5(Bt,Y):pt&&Tt>1&&Bt.reverse(),xe&&J<Tt&&(Bt.length=J),this&&this!==ir&&this instanceof ht&&(as=_t||Qu(as)),as.apply(oi,Bt)}return ht}function lP(l,d){return function(y,M){return wD(y,l,d(M),{})}}function Gp(l,d){return function(y,M){var F;if(y===n&&M===n)return d;if(y!==n&&(F=y),M!==n){if(F===n)return M;typeof y=="string"||typeof M=="string"?(y=no(y),M=no(M)):(y=GE(y),M=GE(M)),F=l(y,M)}return F}}function ky(l){return os(function(d){return d=Cn(d,to(ut())),$t(function(y){var M=this;return l(d,function(F){return eo(F,M,y)})})})}function Kp(l,d){d=d===n?" ":no(d);var y=d.length;if(y<2)return y?by(d,l):d;var M=by(d,Op(l/Xa(d)));return Ya(d)?Hs(ti(M),0,l).join(""):M.slice(0,l)}function KD(l,d,y,M){var F=d&x,U=Qu(l);function K(){for(var Y=-1,J=arguments.length,Ce=-1,xe=M.length,Pe=pe(xe+J),De=this&&this!==ir&&this instanceof K?U:l;++Ce<xe;)Pe[Ce]=M[Ce];for(;J--;)Pe[Ce++]=arguments[++Y];return eo(De,F?y:this,Pe)}return K}function aP(l){return function(d,y,M){return M&&typeof M!="number"&&Ir(d,y,M)&&(y=M=n),d=ls(d),y===n?(y=d,d=0):y=ls(y),M=M===n?d<y?1:-1:ls(M),RD(d,y,M,l)}}function qp(l){return function(d,y){return typeof d=="string"&&typeof y=="string"||(d=Ro(d),y=Ro(y)),l(d,y)}}function cP(l,d,y,M,F,U,K,Y,J,Ce){var xe=d&w,Pe=xe?K:n,De=xe?n:K,Je=xe?U:n,pt=xe?n:U;d|=xe?I:_,d&=~(xe?_:I),d&P||(d&=~(x|C));var _t=[l,d,F,Je,Pe,pt,De,Y,J,Ce],ht=y.apply(n,_t);return Ly(l)&&CP(ht,_t),ht.placeholder=M,xP(ht,l,d)}function Iy(l){var d=qn[l];return function(y,M){if(y=Ro(y),M=M==null?0:hr(kt(M),292),M&&xE(y)){var F=(Jt(y)+"e").split("e"),U=d(F[0]+"e"+(+F[1]+M));return F=(Jt(U)+"e").split("e"),+(F[0]+"e"+(+F[1]-M))}return d(y)}}var qD=Za&&1/Sp(new Za([,-0]))[1]==W?function(l){return new Za(l)}:Yy;function uP(l){return function(d){var y=mr(d);return y==Fe?ry(d):y==et?d4(d):r4(d,l(d))}}function rs(l,d,y,M,F,U,K,Y){var J=d&C;if(!J&&typeof l!="function")throw new Io(s);var Ce=M?M.length:0;if(Ce||(d&=~(I|_),M=F=n),K=K===n?K:Yn(kt(K),0),Y=Y===n?Y:kt(Y),Ce-=F?F.length:0,d&_){var xe=M,Pe=F;M=F=n}var De=J?n:My(l),Je=[l,d,y,M,F,xe,Pe,U,K,Y];if(De&&c5(Je,De),l=Je[0],d=Je[1],y=Je[2],M=Je[3],F=Je[4],Y=Je[9]=Je[9]===n?J?0:l.length:Yn(Je[9]-Ce,0),!Y&&d&(w|E)&&(d&=~(w|E)),!d||d==x)var pt=WD(l,d,y);else d==w||d==E?pt=GD(l,d,Y):(d==I||d==(x|I))&&!F.length?pt=KD(l,d,y,M):pt=Wp.apply(n,Je);var _t=De?UE:CP;return xP(_t(pt,Je),l,d)}function dP(l,d,y,M){return l===n||ri(l,Ja[y])&&!tn.call(M,y)?d:l}function fP(l,d,y,M,F,U){return In(l)&&In(d)&&(U.set(d,l),jp(l,d,n,fP,U),U.delete(d)),l}function YD(l){return ed(l)?n:l}function pP(l,d,y,M,F,U){var K=y&b,Y=l.length,J=d.length;if(Y!=J&&!(K&&J>Y))return!1;var Ce=U.get(l),xe=U.get(d);if(Ce&&xe)return Ce==d&&xe==l;var Pe=-1,De=!0,Je=y&g?new Vl:n;for(U.set(l,d),U.set(d,l);++Pe<Y;){var pt=l[Pe],_t=d[Pe];if(M)var ht=K?M(_t,pt,Pe,d,l,U):M(pt,_t,Pe,l,d,U);if(ht!==n){if(ht)continue;De=!1;break}if(Je){if(!Qv(d,function(Tt,Bt){if(!zu(Je,Bt)&&(pt===Tt||F(pt,Tt,y,M,U)))return Je.push(Bt)})){De=!1;break}}else if(!(pt===_t||F(pt,_t,y,M,U))){De=!1;break}}return U.delete(l),U.delete(d),De}function XD(l,d,y,M,F,U,K){switch(y){case ne:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case Te:return!(l.byteLength!=d.byteLength||!U(new $p(l),new $p(d)));case de:case le:case Re:return ri(+l,+d);case be:return l.name==d.name&&l.message==d.message;case tt:case Pt:return l==d+"";case Fe:var Y=ry;case et:var J=M&b;if(Y||(Y=Sp),l.size!=d.size&&!J)return!1;var Ce=K.get(l);if(Ce)return Ce==d;M|=g,K.set(l,d);var xe=pP(Y(l),Y(d),M,F,U,K);return K.delete(l),xe;case mt:if(Wu)return Wu.call(l)==Wu.call(d)}return!1}function QD(l,d,y,M,F,U){var K=y&b,Y=_y(l),J=Y.length,Ce=_y(d),xe=Ce.length;if(J!=xe&&!K)return!1;for(var Pe=J;Pe--;){var De=Y[Pe];if(!(K?De in d:tn.call(d,De)))return!1}var Je=U.get(l),pt=U.get(d);if(Je&&pt)return Je==d&&pt==l;var _t=!0;U.set(l,d),U.set(d,l);for(var ht=K;++Pe<J;){De=Y[Pe];var Tt=l[De],Bt=d[De];if(M)var oo=K?M(Bt,Tt,De,d,l,U):M(Tt,Bt,De,l,d,U);if(!(oo===n?Tt===Bt||F(Tt,Bt,y,M,U):oo)){_t=!1;break}ht||(ht=De=="constructor")}if(_t&&!ht){var _r=l.constructor,io=d.constructor;_r!=io&&"constructor"in l&&"constructor"in d&&!(typeof _r=="function"&&_r instanceof _r&&typeof io=="function"&&io instanceof io)&&(_t=!1)}return U.delete(l),U.delete(d),_t}function os(l){return Fy(bP(l,n,_P),l+"")}function _y(l){return OE(l,Zn,Ry)}function $y(l){return OE(l,Br,hP)}var My=Ap?function(l){return Ap.get(l)}:Yy;function Yp(l){for(var d=l.name+"",y=ec[d],M=tn.call(ec,d)?y.length:0;M--;){var F=y[M],U=F.func;if(U==null||U==l)return F.name}return d}function oc(l){var d=tn.call(H,"placeholder")?H:l;return d.placeholder}function ut(){var l=H.iteratee||Ky;return l=l===Ky?FE:l,arguments.length?l(arguments[0],arguments[1]):l}function Xp(l,d){var y=l.__data__;return i5(d)?y[typeof d=="string"?"string":"hash"]:y.map}function Ty(l){for(var d=Zn(l),y=d.length;y--;){var M=d[y],F=l[M];d[y]=[M,F,vP(F)]}return d}function Gl(l,d){var y=a4(l,d);return AE(y)?y:n}function JD(l){var d=tn.call(l,jl),y=l[jl];try{l[jl]=n;var M=!0}catch(U){}var F=Ip.call(l);return M&&(d?l[jl]=y:delete l[jl]),F}var Ry=iy?function(l){return l==null?[]:(l=an(l),As(iy(l),function(d){return wE.call(l,d)}))}:Xy,hP=iy?function(l){for(var d=[];l;)Fs(d,Ry(l)),l=Mp(l);return d}:Xy,mr=kr;(sy&&mr(new sy(new ArrayBuffer(1)))!=ne||Hu&&mr(new Hu)!=Fe||ly&&mr(ly.resolve())!=Ze||Za&&mr(new Za)!=et||Vu&&mr(new Vu)!=It)&&(mr=function(l){var d=kr(l),y=d==Oe?l.constructor:n,M=y?Kl(y):"";if(M)switch(M){case L4:return ne;case A4:return Fe;case F4:return Ze;case N4:return et;case D4:return It}return d});function ZD(l,d,y){for(var M=-1,F=y.length;++M<F;){var U=y[M],K=U.size;switch(U.type){case"drop":l+=K;break;case"dropRight":d-=K;break;case"take":d=hr(d,l+K);break;case"takeRight":l=Yn(l,d-K);break}}return{start:l,end:d}}function e5(l){var d=l.match(ct);return d?d[1].split(ve):[]}function mP(l,d,y){d=js(d,l);for(var M=-1,F=d.length,U=!1;++M<F;){var K=Ii(d[M]);if(!(U=l!=null&&y(l,K)))break;l=l[K]}return U||++M!=F?U:(F=l==null?0:l.length,!!F&&rh(F)&&is(K,F)&&(xt(l)||ql(l)))}function t5(l){var d=l.length,y=new l.constructor(d);return d&&typeof l[0]=="string"&&tn.call(l,"index")&&(y.index=l.index,y.input=l.input),y}function gP(l){return typeof l.constructor=="function"&&!Ju(l)?tc(Mp(l)):{}}function n5(l,d,y){var M=l.constructor;switch(d){case Te:return Py(l);case de:case le:return new M(+l);case ne:return BD(l,y);case ke:case Ee:case $e:case Ge:case Ct:case jt:case Ht:case Jn:case hn:return JE(l,y);case Fe:return new M;case Re:case Pt:return new M(l);case tt:return zD(l);case et:return new M;case mt:return jD(l)}}function r5(l,d){var y=d.length;if(!y)return l;var M=y-1;return d[M]=(y>1?"& ":"")+d[M],d=d.join(y>2?", ":" "),l.replace(Be,`{
|
|
241
|
+
/* [wrapped with `+d+`] */
|
|
242
|
+
`)}function o5(l){return xt(l)||ql(l)||!!(CE&&l&&l[CE])}function is(l,d){var y=typeof l;return d=d==null?A:d,!!d&&(y=="number"||y!="symbol"&&gN.test(l))&&l>-1&&l%1==0&&l<d}function Ir(l,d,y){if(!In(y))return!1;var M=typeof d;return(M=="number"?Dr(y)&&is(d,y.length):M=="string"&&d in y)?ri(y[d],l):!1}function Oy(l,d){if(xt(l))return!1;var y=typeof l;return y=="number"||y=="symbol"||y=="boolean"||l==null||ro(l)?!0:Nn.test(l)||!Lt.test(l)||d!=null&&l in an(d)}function i5(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function Ly(l){var d=Yp(l),y=H[d];if(typeof y!="function"||!(d in At.prototype))return!1;if(l===y)return!0;var M=My(y);return!!M&&l===M[0]}function s5(l){return!!vE&&vE in l}var l5=Pp?ss:Qy;function Ju(l){var d=l&&l.constructor,y=typeof d=="function"&&d.prototype||Ja;return l===y}function vP(l){return l===l&&!In(l)}function yP(l,d){return function(y){return y==null?!1:y[l]===d&&(d!==n||l in an(y))}}function a5(l){var d=th(l,function(M){return y.size===f&&y.clear(),M}),y=d.cache;return d}function c5(l,d){var y=l[1],M=d[1],F=y|M,U=F<(x|C|k),K=M==k&&y==w||M==k&&y==$&&l[7].length<=d[8]||M==(k|$)&&d[7].length<=d[8]&&y==w;if(!(U||K))return l;M&x&&(l[2]=d[2],F|=y&x?0:P);var Y=d[3];if(Y){var J=l[3];l[3]=J?eP(J,Y,d[4]):Y,l[4]=J?Ns(l[3],p):d[4]}return Y=d[5],Y&&(J=l[5],l[5]=J?tP(J,Y,d[6]):Y,l[6]=J?Ns(l[5],p):d[6]),Y=d[7],Y&&(l[7]=Y),M&k&&(l[8]=l[8]==null?d[8]:hr(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=F,l}function u5(l){var d=[];if(l!=null)for(var y in an(l))d.push(y);return d}function d5(l){return Ip.call(l)}function bP(l,d,y){return d=Yn(d===n?l.length-1:d,0),function(){for(var M=arguments,F=-1,U=Yn(M.length-d,0),K=pe(U);++F<U;)K[F]=M[d+F];F=-1;for(var Y=pe(d+1);++F<d;)Y[F]=M[F];return Y[d]=y(K),eo(l,this,Y)}}function wP(l,d){return d.length<2?l:Wl(l,Mo(d,0,-1))}function f5(l,d){for(var y=l.length,M=hr(d.length,y),F=Nr(l);M--;){var U=d[M];l[M]=is(U,y)?F[U]:n}return l}function Ay(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var CP=SP(UE),Zu=I4||function(l,d){return ir.setTimeout(l,d)},Fy=SP(AD);function xP(l,d,y){var M=d+"";return Fy(l,r5(M,p5(e5(M),y)))}function SP(l){var d=0,y=0;return function(){var M=T4(),F=j-(M-y);if(y=M,F>0){if(++d>=V)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qp(l,d){var y=-1,M=l.length,F=M-1;for(d=d===n?M:d;++y<d;){var U=yy(y,F),K=l[U];l[U]=l[y],l[y]=K}return l.length=d,l}var EP=a5(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(ce,function(y,M,F,U){d.push(F?U.replace(ft,"$1"):M||y)}),d});function Ii(l){if(typeof l=="string"||ro(l))return l;var d=l+"";return d=="0"&&1/l==-W?"-0":d}function Kl(l){if(l!=null){try{return kp.call(l)}catch(d){}try{return l+""}catch(d){}}return""}function p5(l,d){return ko(ee,function(y){var M="_."+y[0];d&y[1]&&!Cp(l,M)&&l.push(M)}),l.sort()}function PP(l){if(l instanceof At)return l.clone();var d=new _o(l.__wrapped__,l.__chain__);return d.__actions__=Nr(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function h5(l,d,y){(y?Ir(l,d,y):d===n)?d=1:d=Yn(kt(d),0);var M=l==null?0:l.length;if(!M||d<1)return[];for(var F=0,U=0,K=pe(Op(M/d));F<M;)K[U++]=Mo(l,F,F+=d);return K}function m5(l){for(var d=-1,y=l==null?0:l.length,M=0,F=[];++d<y;){var U=l[d];U&&(F[M++]=U)}return F}function g5(){var l=arguments.length;if(!l)return[];for(var d=pe(l-1),y=arguments[0],M=l;M--;)d[M-1]=arguments[M];return Fs(xt(y)?Nr(y):[y],sr(d,1))}var v5=$t(function(l,d){return Dn(l)?Ku(l,sr(d,1,Dn,!0)):[]}),y5=$t(function(l,d){var y=To(d);return Dn(y)&&(y=n),Dn(l)?Ku(l,sr(d,1,Dn,!0),ut(y,2)):[]}),b5=$t(function(l,d){var y=To(d);return Dn(y)&&(y=n),Dn(l)?Ku(l,sr(d,1,Dn,!0),n,y):[]});function w5(l,d,y){var M=l==null?0:l.length;return M?(d=y||d===n?1:kt(d),Mo(l,d<0?0:d,M)):[]}function C5(l,d,y){var M=l==null?0:l.length;return M?(d=y||d===n?1:kt(d),d=M-d,Mo(l,0,d<0?0:d)):[]}function x5(l,d){return l&&l.length?Vp(l,ut(d,3),!0,!0):[]}function S5(l,d){return l&&l.length?Vp(l,ut(d,3),!0):[]}function E5(l,d,y,M){var F=l==null?0:l.length;return F?(y&&typeof y!="number"&&Ir(l,d,y)&&(y=0,M=F),gD(l,d,y,M)):[]}function kP(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=y==null?0:kt(y);return F<0&&(F=Yn(M+F,0)),xp(l,ut(d,3),F)}function IP(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=M-1;return y!==n&&(F=kt(y),F=y<0?Yn(M+F,0):hr(F,M-1)),xp(l,ut(d,3),F,!0)}function _P(l){var d=l==null?0:l.length;return d?sr(l,1):[]}function P5(l){var d=l==null?0:l.length;return d?sr(l,W):[]}function k5(l,d){var y=l==null?0:l.length;return y?(d=d===n?1:kt(d),sr(l,d)):[]}function I5(l){for(var d=-1,y=l==null?0:l.length,M={};++d<y;){var F=l[d];M[F[0]]=F[1]}return M}function $P(l){return l&&l.length?l[0]:n}function _5(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=y==null?0:kt(y);return F<0&&(F=Yn(M+F,0)),qa(l,d,F)}function $5(l){var d=l==null?0:l.length;return d?Mo(l,0,-1):[]}var M5=$t(function(l){var d=Cn(l,Sy);return d.length&&d[0]===l[0]?py(d):[]}),T5=$t(function(l){var d=To(l),y=Cn(l,Sy);return d===To(y)?d=n:y.pop(),y.length&&y[0]===l[0]?py(y,ut(d,2)):[]}),R5=$t(function(l){var d=To(l),y=Cn(l,Sy);return d=typeof d=="function"?d:n,d&&y.pop(),y.length&&y[0]===l[0]?py(y,n,d):[]});function O5(l,d){return l==null?"":$4.call(l,d)}function To(l){var d=l==null?0:l.length;return d?l[d-1]:n}function L5(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=M;return y!==n&&(F=kt(y),F=F<0?Yn(M+F,0):hr(F,M-1)),d===d?p4(l,d,F):xp(l,cE,F,!0)}function A5(l,d){return l&&l.length?zE(l,kt(d)):n}var F5=$t(MP);function MP(l,d){return l&&l.length&&d&&d.length?vy(l,d):l}function N5(l,d,y){return l&&l.length&&d&&d.length?vy(l,d,ut(y,2)):l}function D5(l,d,y){return l&&l.length&&d&&d.length?vy(l,d,n,y):l}var B5=os(function(l,d){var y=l==null?0:l.length,M=cy(l,d);return VE(l,Cn(d,function(F){return is(F,y)?+F:F}).sort(ZE)),M});function z5(l,d){var y=[];if(!(l&&l.length))return y;var M=-1,F=[],U=l.length;for(d=ut(d,3);++M<U;){var K=l[M];d(K,M,l)&&(y.push(K),F.push(M))}return VE(l,F),y}function Ny(l){return l==null?l:O4.call(l)}function j5(l,d,y){var M=l==null?0:l.length;return M?(y&&typeof y!="number"&&Ir(l,d,y)?(d=0,y=M):(d=d==null?0:kt(d),y=y===n?M:kt(y)),Mo(l,d,y)):[]}function H5(l,d){return Hp(l,d)}function V5(l,d,y){return wy(l,d,ut(y,2))}function U5(l,d){var y=l==null?0:l.length;if(y){var M=Hp(l,d);if(M<y&&ri(l[M],d))return M}return-1}function W5(l,d){return Hp(l,d,!0)}function G5(l,d,y){return wy(l,d,ut(y,2),!0)}function K5(l,d){var y=l==null?0:l.length;if(y){var M=Hp(l,d,!0)-1;if(ri(l[M],d))return M}return-1}function q5(l){return l&&l.length?WE(l):[]}function Y5(l,d){return l&&l.length?WE(l,ut(d,2)):[]}function X5(l){var d=l==null?0:l.length;return d?Mo(l,1,d):[]}function Q5(l,d,y){return l&&l.length?(d=y||d===n?1:kt(d),Mo(l,0,d<0?0:d)):[]}function J5(l,d,y){var M=l==null?0:l.length;return M?(d=y||d===n?1:kt(d),d=M-d,Mo(l,d<0?0:d,M)):[]}function Z5(l,d){return l&&l.length?Vp(l,ut(d,3),!1,!0):[]}function e3(l,d){return l&&l.length?Vp(l,ut(d,3)):[]}var t3=$t(function(l){return zs(sr(l,1,Dn,!0))}),n3=$t(function(l){var d=To(l);return Dn(d)&&(d=n),zs(sr(l,1,Dn,!0),ut(d,2))}),r3=$t(function(l){var d=To(l);return d=typeof d=="function"?d:n,zs(sr(l,1,Dn,!0),n,d)});function o3(l){return l&&l.length?zs(l):[]}function i3(l,d){return l&&l.length?zs(l,ut(d,2)):[]}function s3(l,d){return d=typeof d=="function"?d:n,l&&l.length?zs(l,n,d):[]}function Dy(l){if(!(l&&l.length))return[];var d=0;return l=As(l,function(y){if(Dn(y))return d=Yn(y.length,d),!0}),ty(d,function(y){return Cn(l,Jv(y))})}function TP(l,d){if(!(l&&l.length))return[];var y=Dy(l);return d==null?y:Cn(y,function(M){return eo(d,n,M)})}var l3=$t(function(l,d){return Dn(l)?Ku(l,d):[]}),a3=$t(function(l){return xy(As(l,Dn))}),c3=$t(function(l){var d=To(l);return Dn(d)&&(d=n),xy(As(l,Dn),ut(d,2))}),u3=$t(function(l){var d=To(l);return d=typeof d=="function"?d:n,xy(As(l,Dn),n,d)}),d3=$t(Dy);function f3(l,d){return YE(l||[],d||[],Gu)}function p3(l,d){return YE(l||[],d||[],Xu)}var h3=$t(function(l){var d=l.length,y=d>1?l[d-1]:n;return y=typeof y=="function"?(l.pop(),y):n,TP(l,y)});function RP(l){var d=H(l);return d.__chain__=!0,d}function m3(l,d){return d(l),l}function Jp(l,d){return d(l)}var g3=os(function(l){var d=l.length,y=d?l[0]:0,M=this.__wrapped__,F=function(U){return cy(U,l)};return d>1||this.__actions__.length||!(M instanceof At)||!is(y)?this.thru(F):(M=M.slice(y,+y+(d?1:0)),M.__actions__.push({func:Jp,args:[F],thisArg:n}),new _o(M,this.__chain__).thru(function(U){return d&&!U.length&&U.push(n),U}))});function v3(){return RP(this)}function y3(){return new _o(this.value(),this.__chain__)}function b3(){this.__values__===n&&(this.__values__=GP(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function w3(){return this}function C3(l){for(var d,y=this;y instanceof Np;){var M=PP(y);M.__index__=0,M.__values__=n,d?F.__wrapped__=M:d=M;var F=M;y=y.__wrapped__}return F.__wrapped__=l,d}function x3(){var l=this.__wrapped__;if(l instanceof At){var d=l;return this.__actions__.length&&(d=new At(this)),d=d.reverse(),d.__actions__.push({func:Jp,args:[Ny],thisArg:n}),new _o(d,this.__chain__)}return this.thru(Ny)}function S3(){return qE(this.__wrapped__,this.__actions__)}var E3=Up(function(l,d,y){tn.call(l,y)?++l[y]:ns(l,y,1)});function P3(l,d,y){var M=xt(l)?lE:mD;return y&&Ir(l,d,y)&&(d=n),M(l,ut(d,3))}function k3(l,d){var y=xt(l)?As:TE;return y(l,ut(d,3))}var I3=iP(kP),_3=iP(IP);function $3(l,d){return sr(Zp(l,d),1)}function M3(l,d){return sr(Zp(l,d),W)}function T3(l,d,y){return y=y===n?1:kt(y),sr(Zp(l,d),y)}function OP(l,d){var y=xt(l)?ko:Bs;return y(l,ut(d,3))}function LP(l,d){var y=xt(l)?XN:ME;return y(l,ut(d,3))}var R3=Up(function(l,d,y){tn.call(l,y)?l[y].push(d):ns(l,y,[d])});function O3(l,d,y,M){l=Dr(l)?l:sc(l),y=y&&!M?kt(y):0;var F=l.length;return y<0&&(y=Yn(F+y,0)),oh(l)?y<=F&&l.indexOf(d,y)>-1:!!F&&qa(l,d,y)>-1}var L3=$t(function(l,d,y){var M=-1,F=typeof d=="function",U=Dr(l)?pe(l.length):[];return Bs(l,function(K){U[++M]=F?eo(d,K,y):qu(K,d,y)}),U}),A3=Up(function(l,d,y){ns(l,y,d)});function Zp(l,d){var y=xt(l)?Cn:NE;return y(l,ut(d,3))}function F3(l,d,y,M){return l==null?[]:(xt(d)||(d=d==null?[]:[d]),y=M?n:y,xt(y)||(y=y==null?[]:[y]),jE(l,d,y))}var N3=Up(function(l,d,y){l[y?0:1].push(d)},function(){return[[],[]]});function D3(l,d,y){var M=xt(l)?Xv:dE,F=arguments.length<3;return M(l,ut(d,4),y,F,Bs)}function B3(l,d,y){var M=xt(l)?QN:dE,F=arguments.length<3;return M(l,ut(d,4),y,F,ME)}function z3(l,d){var y=xt(l)?As:TE;return y(l,nh(ut(d,3)))}function j3(l){var d=xt(l)?kE:OD;return d(l)}function H3(l,d,y){(y?Ir(l,d,y):d===n)?d=1:d=kt(d);var M=xt(l)?uD:LD;return M(l,d)}function V3(l){var d=xt(l)?dD:FD;return d(l)}function U3(l){if(l==null)return 0;if(Dr(l))return oh(l)?Xa(l):l.length;var d=mr(l);return d==Fe||d==et?l.size:my(l).length}function W3(l,d,y){var M=xt(l)?Qv:ND;return y&&Ir(l,d,y)&&(d=n),M(l,ut(d,3))}var G3=$t(function(l,d){if(l==null)return[];var y=d.length;return y>1&&Ir(l,d[0],d[1])?d=[]:y>2&&Ir(d[0],d[1],d[2])&&(d=[d[0]]),jE(l,sr(d,1),[])}),eh=k4||function(){return ir.Date.now()};function K3(l,d){if(typeof d!="function")throw new Io(s);return l=kt(l),function(){if(--l<1)return d.apply(this,arguments)}}function AP(l,d,y){return d=y?n:d,d=l&&d==null?l.length:d,rs(l,k,n,n,n,n,d)}function FP(l,d){var y;if(typeof d!="function")throw new Io(s);return l=kt(l),function(){return--l>0&&(y=d.apply(this,arguments)),l<=1&&(d=n),y}}var By=$t(function(l,d,y){var M=x;if(y.length){var F=Ns(y,oc(By));M|=I}return rs(l,M,d,y,F)}),NP=$t(function(l,d,y){var M=x|C;if(y.length){var F=Ns(y,oc(NP));M|=I}return rs(d,M,l,y,F)});function DP(l,d,y){d=y?n:d;var M=rs(l,w,n,n,n,n,n,d);return M.placeholder=DP.placeholder,M}function BP(l,d,y){d=y?n:d;var M=rs(l,E,n,n,n,n,n,d);return M.placeholder=BP.placeholder,M}function zP(l,d,y){var M,F,U,K,Y,J,Ce=0,xe=!1,Pe=!1,De=!0;if(typeof l!="function")throw new Io(s);d=Ro(d)||0,In(y)&&(xe=!!y.leading,Pe="maxWait"in y,U=Pe?Yn(Ro(y.maxWait)||0,d):U,De="trailing"in y?!!y.trailing:De);function Je(Bn){var oi=M,as=F;return M=F=n,Ce=Bn,K=l.apply(as,oi),K}function pt(Bn){return Ce=Bn,Y=Zu(Tt,d),xe?Je(Bn):K}function _t(Bn){var oi=Bn-J,as=Bn-Ce,ik=d-oi;return Pe?hr(ik,U-as):ik}function ht(Bn){var oi=Bn-J,as=Bn-Ce;return J===n||oi>=d||oi<0||Pe&&as>=U}function Tt(){var Bn=eh();if(ht(Bn))return Bt(Bn);Y=Zu(Tt,_t(Bn))}function Bt(Bn){return Y=n,De&&M?Je(Bn):(M=F=n,K)}function oo(){Y!==n&&XE(Y),Ce=0,M=J=F=Y=n}function _r(){return Y===n?K:Bt(eh())}function io(){var Bn=eh(),oi=ht(Bn);if(M=arguments,F=this,J=Bn,oi){if(Y===n)return pt(J);if(Pe)return XE(Y),Y=Zu(Tt,d),Je(J)}return Y===n&&(Y=Zu(Tt,d)),K}return io.cancel=oo,io.flush=_r,io}var q3=$t(function(l,d){return $E(l,1,d)}),Y3=$t(function(l,d,y){return $E(l,Ro(d)||0,y)});function X3(l){return rs(l,T)}function th(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Io(s);var y=function(){var M=arguments,F=d?d.apply(this,M):M[0],U=y.cache;if(U.has(F))return U.get(F);var K=l.apply(this,M);return y.cache=U.set(F,K)||U,K};return y.cache=new(th.Cache||ts),y}th.Cache=ts;function nh(l){if(typeof l!="function")throw new Io(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function Q3(l){return FP(2,l)}var J3=DD(function(l,d){d=d.length==1&&xt(d[0])?Cn(d[0],to(ut())):Cn(sr(d,1),to(ut()));var y=d.length;return $t(function(M){for(var F=-1,U=hr(M.length,y);++F<U;)M[F]=d[F].call(this,M[F]);return eo(l,this,M)})}),zy=$t(function(l,d){var y=Ns(d,oc(zy));return rs(l,I,n,d,y)}),jP=$t(function(l,d){var y=Ns(d,oc(jP));return rs(l,_,n,d,y)}),Z3=os(function(l,d){return rs(l,$,n,n,n,d)});function eB(l,d){if(typeof l!="function")throw new Io(s);return d=d===n?d:kt(d),$t(l,d)}function tB(l,d){if(typeof l!="function")throw new Io(s);return d=d==null?0:Yn(kt(d),0),$t(function(y){var M=y[d],F=Hs(y,0,d);return M&&Fs(F,M),eo(l,this,F)})}function nB(l,d,y){var M=!0,F=!0;if(typeof l!="function")throw new Io(s);return In(y)&&(M="leading"in y?!!y.leading:M,F="trailing"in y?!!y.trailing:F),zP(l,d,{leading:M,maxWait:d,trailing:F})}function rB(l){return AP(l,1)}function oB(l,d){return zy(Ey(d),l)}function iB(){if(!arguments.length)return[];var l=arguments[0];return xt(l)?l:[l]}function sB(l){return $o(l,v)}function lB(l,d){return d=typeof d=="function"?d:n,$o(l,v,d)}function aB(l){return $o(l,h|v)}function cB(l,d){return d=typeof d=="function"?d:n,$o(l,h|v,d)}function uB(l,d){return d==null||_E(l,d,Zn(d))}function ri(l,d){return l===d||l!==l&&d!==d}var dB=qp(fy),fB=qp(function(l,d){return l>=d}),ql=LE(function(){return arguments}())?LE:function(l){return On(l)&&tn.call(l,"callee")&&!wE.call(l,"callee")},xt=pe.isArray,pB=tE?to(tE):CD;function Dr(l){return l!=null&&rh(l.length)&&!ss(l)}function Dn(l){return On(l)&&Dr(l)}function hB(l){return l===!0||l===!1||On(l)&&kr(l)==de}var Vs=_4||Qy,mB=nE?to(nE):xD;function gB(l){return On(l)&&l.nodeType===1&&!ed(l)}function vB(l){if(l==null)return!0;if(Dr(l)&&(xt(l)||typeof l=="string"||typeof l.splice=="function"||Vs(l)||ic(l)||ql(l)))return!l.length;var d=mr(l);if(d==Fe||d==et)return!l.size;if(Ju(l))return!my(l).length;for(var y in l)if(tn.call(l,y))return!1;return!0}function yB(l,d){return Yu(l,d)}function bB(l,d,y){y=typeof y=="function"?y:n;var M=y?y(l,d):n;return M===n?Yu(l,d,n,y):!!M}function jy(l){if(!On(l))return!1;var d=kr(l);return d==be||d==te||typeof l.message=="string"&&typeof l.name=="string"&&!ed(l)}function wB(l){return typeof l=="number"&&xE(l)}function ss(l){if(!In(l))return!1;var d=kr(l);return d==_e||d==Se||d==we||d==yt}function HP(l){return typeof l=="number"&&l==kt(l)}function rh(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=A}function In(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function On(l){return l!=null&&typeof l=="object"}var VP=rE?to(rE):ED;function CB(l,d){return l===d||hy(l,d,Ty(d))}function xB(l,d,y){return y=typeof y=="function"?y:n,hy(l,d,Ty(d),y)}function SB(l){return UP(l)&&l!=+l}function EB(l){if(l5(l))throw new wt(i);return AE(l)}function PB(l){return l===null}function kB(l){return l==null}function UP(l){return typeof l=="number"||On(l)&&kr(l)==Re}function ed(l){if(!On(l)||kr(l)!=Oe)return!1;var d=Mp(l);if(d===null)return!0;var y=tn.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&kp.call(y)==x4}var Hy=oE?to(oE):PD;function IB(l){return HP(l)&&l>=-A&&l<=A}var WP=iE?to(iE):kD;function oh(l){return typeof l=="string"||!xt(l)&&On(l)&&kr(l)==Pt}function ro(l){return typeof l=="symbol"||On(l)&&kr(l)==mt}var ic=sE?to(sE):ID;function _B(l){return l===n}function $B(l){return On(l)&&mr(l)==It}function MB(l){return On(l)&&kr(l)==Xe}var TB=qp(gy),RB=qp(function(l,d){return l<=d});function GP(l){if(!l)return[];if(Dr(l))return oh(l)?ti(l):Nr(l);if(ju&&l[ju])return u4(l[ju]());var d=mr(l),y=d==Fe?ry:d==et?Sp:sc;return y(l)}function ls(l){if(!l)return l===0?l:0;if(l=Ro(l),l===W||l===-W){var d=l<0?-1:1;return d*z}return l===l?l:0}function kt(l){var d=ls(l),y=d%1;return d===d?y?d-y:d:0}function KP(l){return l?Ul(kt(l),0,q):0}function Ro(l){if(typeof l=="number")return l;if(ro(l))return G;if(In(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=In(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=fE(l);var y=Fr.test(l);return y||mN.test(l)?KN(l.slice(2),y?2:8):wn.test(l)?G:+l}function qP(l){return ki(l,Br(l))}function OB(l){return l?Ul(kt(l),-A,A):l===0?l:0}function Jt(l){return l==null?"":no(l)}var LB=nc(function(l,d){if(Ju(d)||Dr(d)){ki(d,Zn(d),l);return}for(var y in d)tn.call(d,y)&&Gu(l,y,d[y])}),YP=nc(function(l,d){ki(d,Br(d),l)}),ih=nc(function(l,d,y,M){ki(d,Br(d),l,M)}),AB=nc(function(l,d,y,M){ki(d,Zn(d),l,M)}),FB=os(cy);function NB(l,d){var y=tc(l);return d==null?y:IE(y,d)}var DB=$t(function(l,d){l=an(l);var y=-1,M=d.length,F=M>2?d[2]:n;for(F&&Ir(d[0],d[1],F)&&(M=1);++y<M;)for(var U=d[y],K=Br(U),Y=-1,J=K.length;++Y<J;){var Ce=K[Y],xe=l[Ce];(xe===n||ri(xe,Ja[Ce])&&!tn.call(l,Ce))&&(l[Ce]=U[Ce])}return l}),BB=$t(function(l){return l.push(n,fP),eo(XP,n,l)});function zB(l,d){return aE(l,ut(d,3),Pi)}function jB(l,d){return aE(l,ut(d,3),dy)}function HB(l,d){return l==null?l:uy(l,ut(d,3),Br)}function VB(l,d){return l==null?l:RE(l,ut(d,3),Br)}function UB(l,d){return l&&Pi(l,ut(d,3))}function WB(l,d){return l&&dy(l,ut(d,3))}function GB(l){return l==null?[]:zp(l,Zn(l))}function KB(l){return l==null?[]:zp(l,Br(l))}function Vy(l,d,y){var M=l==null?n:Wl(l,d);return M===n?y:M}function qB(l,d){return l!=null&&mP(l,d,vD)}function Uy(l,d){return l!=null&&mP(l,d,yD)}var YB=lP(function(l,d,y){d!=null&&typeof d.toString!="function"&&(d=Ip.call(d)),l[d]=y},Gy(zr)),XB=lP(function(l,d,y){d!=null&&typeof d.toString!="function"&&(d=Ip.call(d)),tn.call(l,d)?l[d].push(y):l[d]=[y]},ut),QB=$t(qu);function Zn(l){return Dr(l)?PE(l):my(l)}function Br(l){return Dr(l)?PE(l,!0):_D(l)}function JB(l,d){var y={};return d=ut(d,3),Pi(l,function(M,F,U){ns(y,d(M,F,U),M)}),y}function ZB(l,d){var y={};return d=ut(d,3),Pi(l,function(M,F,U){ns(y,F,d(M,F,U))}),y}var ez=nc(function(l,d,y){jp(l,d,y)}),XP=nc(function(l,d,y,M){jp(l,d,y,M)}),tz=os(function(l,d){var y={};if(l==null)return y;var M=!1;d=Cn(d,function(U){return U=js(U,l),M||(M=U.length>1),U}),ki(l,$y(l),y),M&&(y=$o(y,h|m|v,YD));for(var F=d.length;F--;)Cy(y,d[F]);return y});function nz(l,d){return QP(l,nh(ut(d)))}var rz=os(function(l,d){return l==null?{}:MD(l,d)});function QP(l,d){if(l==null)return{};var y=Cn($y(l),function(M){return[M]});return d=ut(d),HE(l,y,function(M,F){return d(M,F[0])})}function oz(l,d,y){d=js(d,l);var M=-1,F=d.length;for(F||(F=1,l=n);++M<F;){var U=l==null?n:l[Ii(d[M])];U===n&&(M=F,U=y),l=ss(U)?U.call(l):U}return l}function iz(l,d,y){return l==null?l:Xu(l,d,y)}function sz(l,d,y,M){return M=typeof M=="function"?M:n,l==null?l:Xu(l,d,y,M)}var JP=uP(Zn),ZP=uP(Br);function lz(l,d,y){var M=xt(l),F=M||Vs(l)||ic(l);if(d=ut(d,4),y==null){var U=l&&l.constructor;F?y=M?new U:[]:In(l)?y=ss(U)?tc(Mp(l)):{}:y={}}return(F?ko:Pi)(l,function(K,Y,J){return d(y,K,Y,J)}),y}function az(l,d){return l==null?!0:Cy(l,d)}function cz(l,d,y){return l==null?l:KE(l,d,Ey(y))}function uz(l,d,y,M){return M=typeof M=="function"?M:n,l==null?l:KE(l,d,Ey(y),M)}function sc(l){return l==null?[]:ny(l,Zn(l))}function dz(l){return l==null?[]:ny(l,Br(l))}function fz(l,d,y){return y===n&&(y=d,d=n),y!==n&&(y=Ro(y),y=y===y?y:0),d!==n&&(d=Ro(d),d=d===d?d:0),Ul(Ro(l),d,y)}function pz(l,d,y){return d=ls(d),y===n?(y=d,d=0):y=ls(y),l=Ro(l),bD(l,d,y)}function hz(l,d,y){if(y&&typeof y!="boolean"&&Ir(l,d,y)&&(d=y=n),y===n&&(typeof d=="boolean"?(y=d,d=n):typeof l=="boolean"&&(y=l,l=n)),l===n&&d===n?(l=0,d=1):(l=ls(l),d===n?(d=l,l=0):d=ls(d)),l>d){var M=l;l=d,d=M}if(y||l%1||d%1){var F=SE();return hr(l+F*(d-l+GN("1e-"+((F+"").length-1))),d)}return yy(l,d)}var mz=rc(function(l,d,y){return d=d.toLowerCase(),l+(y?ek(d):d)});function ek(l){return Wy(Jt(l).toLowerCase())}function tk(l){return l=Jt(l),l&&l.replace(vN,i4).replace(FN,"")}function gz(l,d,y){l=Jt(l),d=no(d);var M=l.length;y=y===n?M:Ul(kt(y),0,M);var F=y;return y-=d.length,y>=0&&l.slice(y,F)==d}function vz(l){return l=Jt(l),l&&Ei.test(l)?l.replace(en,s4):l}function yz(l){return l=Jt(l),l&&ze.test(l)?l.replace(me,"\\$&"):l}var bz=rc(function(l,d,y){return l+(y?"-":"")+d.toLowerCase()}),wz=rc(function(l,d,y){return l+(y?" ":"")+d.toLowerCase()}),Cz=oP("toLowerCase");function xz(l,d,y){l=Jt(l),d=kt(d);var M=d?Xa(l):0;if(!d||M>=d)return l;var F=(d-M)/2;return Kp(Lp(F),y)+l+Kp(Op(F),y)}function Sz(l,d,y){l=Jt(l),d=kt(d);var M=d?Xa(l):0;return d&&M<d?l+Kp(d-M,y):l}function Ez(l,d,y){l=Jt(l),d=kt(d);var M=d?Xa(l):0;return d&&M<d?Kp(d-M,y)+l:l}function Pz(l,d,y){return y||d==null?d=0:d&&(d=+d),R4(Jt(l).replace(gt,""),d||0)}function kz(l,d,y){return(y?Ir(l,d,y):d===n)?d=1:d=kt(d),by(Jt(l),d)}function Iz(){var l=arguments,d=Jt(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var _z=rc(function(l,d,y){return l+(y?"_":"")+d.toLowerCase()});function $z(l,d,y){return y&&typeof y!="number"&&Ir(l,d,y)&&(d=y=n),y=y===n?q:y>>>0,y?(l=Jt(l),l&&(typeof d=="string"||d!=null&&!Hy(d))&&(d=no(d),!d&&Ya(l))?Hs(ti(l),0,y):l.split(d,y)):[]}var Mz=rc(function(l,d,y){return l+(y?" ":"")+Wy(d)});function Tz(l,d,y){return l=Jt(l),y=y==null?0:Ul(kt(y),0,l.length),d=no(d),l.slice(y,y+d.length)==d}function Rz(l,d,y){var M=H.templateSettings;y&&Ir(l,d,y)&&(d=n),l=Jt(l),d=ih({},d,M,dP);var F=ih({},d.imports,M.imports,dP),U=Zn(F),K=ny(F,U),Y,J,Ce=0,xe=d.interpolate||yp,Pe="__p += '",De=oy((d.escape||yp).source+"|"+xe.source+"|"+(xe===Eo?Vt:yp).source+"|"+(d.evaluate||yp).source+"|$","g"),Je="//# sourceURL="+(tn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jN+"]")+`
|
|
243
|
+
`;l.replace(De,function(ht,Tt,Bt,oo,_r,io){return Bt||(Bt=oo),Pe+=l.slice(Ce,io).replace(yN,l4),Tt&&(Y=!0,Pe+=`' +
|
|
244
|
+
__e(`+Tt+`) +
|
|
245
|
+
'`),_r&&(J=!0,Pe+=`';
|
|
246
|
+
`+_r+`;
|
|
247
|
+
__p += '`),Bt&&(Pe+=`' +
|
|
248
|
+
((__t = (`+Bt+`)) == null ? '' : __t) +
|
|
249
|
+
'`),Ce=io+ht.length,ht}),Pe+=`';
|
|
250
|
+
`;var pt=tn.call(d,"variable")&&d.variable;if(!pt)Pe=`with (obj) {
|
|
251
|
+
`+Pe+`
|
|
252
|
+
}
|
|
253
|
+
`;else if(nt.test(pt))throw new wt(a);Pe=(J?Pe.replace(Kn,""):Pe).replace(Pr,"$1").replace(mn,"$1;"),Pe="function("+(pt||"obj")+`) {
|
|
254
|
+
`+(pt?"":`obj || (obj = {});
|
|
255
|
+
`)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(J?`, __j = Array.prototype.join;
|
|
256
|
+
function print() { __p += __j.call(arguments, '') }
|
|
257
|
+
`:`;
|
|
258
|
+
`)+Pe+`return __p
|
|
259
|
+
}`;var _t=rk(function(){return qt(U,Je+"return "+Pe).apply(n,K)});if(_t.source=Pe,jy(_t))throw _t;return _t}function Oz(l){return Jt(l).toLowerCase()}function Lz(l){return Jt(l).toUpperCase()}function Az(l,d,y){if(l=Jt(l),l&&(y||d===n))return fE(l);if(!l||!(d=no(d)))return l;var M=ti(l),F=ti(d),U=pE(M,F),K=hE(M,F)+1;return Hs(M,U,K).join("")}function Fz(l,d,y){if(l=Jt(l),l&&(y||d===n))return l.slice(0,gE(l)+1);if(!l||!(d=no(d)))return l;var M=ti(l),F=hE(M,ti(d))+1;return Hs(M,0,F).join("")}function Nz(l,d,y){if(l=Jt(l),l&&(y||d===n))return l.replace(gt,"");if(!l||!(d=no(d)))return l;var M=ti(l),F=pE(M,ti(d));return Hs(M,F).join("")}function Dz(l,d){var y=O,M=N;if(In(d)){var F="separator"in d?d.separator:F;y="length"in d?kt(d.length):y,M="omission"in d?no(d.omission):M}l=Jt(l);var U=l.length;if(Ya(l)){var K=ti(l);U=K.length}if(y>=U)return l;var Y=y-Xa(M);if(Y<1)return M;var J=K?Hs(K,0,Y).join(""):l.slice(0,Y);if(F===n)return J+M;if(K&&(Y+=J.length-Y),Hy(F)){if(l.slice(Y).search(F)){var Ce,xe=J;for(F.global||(F=oy(F.source,Jt(un.exec(F))+"g")),F.lastIndex=0;Ce=F.exec(xe);)var Pe=Ce.index;J=J.slice(0,Pe===n?Y:Pe)}}else if(l.indexOf(no(F),Y)!=Y){var De=J.lastIndexOf(F);De>-1&&(J=J.slice(0,De))}return J+M}function Bz(l){return l=Jt(l),l&&So.test(l)?l.replace(sn,h4):l}var zz=rc(function(l,d,y){return l+(y?" ":"")+d.toUpperCase()}),Wy=oP("toUpperCase");function nk(l,d,y){return l=Jt(l),d=y?n:d,d===n?c4(l)?v4(l):e4(l):l.match(d)||[]}var rk=$t(function(l,d){try{return eo(l,n,d)}catch(y){return jy(y)?y:new wt(y)}}),jz=os(function(l,d){return ko(d,function(y){y=Ii(y),ns(l,y,By(l[y],l))}),l});function Hz(l){var d=l==null?0:l.length,y=ut();return l=d?Cn(l,function(M){if(typeof M[1]!="function")throw new Io(s);return[y(M[0]),M[1]]}):[],$t(function(M){for(var F=-1;++F<d;){var U=l[F];if(eo(U[0],this,M))return eo(U[1],this,M)}})}function Vz(l){return hD($o(l,h))}function Gy(l){return function(){return l}}function Uz(l,d){return l==null||l!==l?d:l}var Wz=sP(),Gz=sP(!0);function zr(l){return l}function Ky(l){return FE(typeof l=="function"?l:$o(l,h))}function Kz(l){return DE($o(l,h))}function qz(l,d){return BE(l,$o(d,h))}var Yz=$t(function(l,d){return function(y){return qu(y,l,d)}}),Xz=$t(function(l,d){return function(y){return qu(l,y,d)}});function qy(l,d,y){var M=Zn(d),F=zp(d,M);y==null&&!(In(d)&&(F.length||!M.length))&&(y=d,d=l,l=this,F=zp(d,Zn(d)));var U=!(In(y)&&"chain"in y)||!!y.chain,K=ss(l);return ko(F,function(Y){var J=d[Y];l[Y]=J,K&&(l.prototype[Y]=function(){var Ce=this.__chain__;if(U||Ce){var xe=l(this.__wrapped__),Pe=xe.__actions__=Nr(this.__actions__);return Pe.push({func:J,args:arguments,thisArg:l}),xe.__chain__=Ce,xe}return J.apply(l,Fs([this.value()],arguments))})}),l}function Qz(){return ir._===this&&(ir._=S4),this}function Yy(){}function Jz(l){return l=kt(l),$t(function(d){return zE(d,l)})}var Zz=ky(Cn),e6=ky(lE),t6=ky(Qv);function ok(l){return Oy(l)?Jv(Ii(l)):TD(l)}function n6(l){return function(d){return l==null?n:Wl(l,d)}}var r6=aP(),o6=aP(!0);function Xy(){return[]}function Qy(){return!1}function i6(){return{}}function s6(){return""}function l6(){return!0}function a6(l,d){if(l=kt(l),l<1||l>A)return[];var y=q,M=hr(l,q);d=ut(d),l-=q;for(var F=ty(M,d);++y<l;)d(y);return F}function c6(l){return xt(l)?Cn(l,Ii):ro(l)?[l]:Nr(EP(Jt(l)))}function u6(l){var d=++C4;return Jt(l)+d}var d6=Gp(function(l,d){return l+d},0),f6=Iy("ceil"),p6=Gp(function(l,d){return l/d},1),h6=Iy("floor");function m6(l){return l&&l.length?Bp(l,zr,fy):n}function g6(l,d){return l&&l.length?Bp(l,ut(d,2),fy):n}function v6(l){return uE(l,zr)}function y6(l,d){return uE(l,ut(d,2))}function b6(l){return l&&l.length?Bp(l,zr,gy):n}function w6(l,d){return l&&l.length?Bp(l,ut(d,2),gy):n}var C6=Gp(function(l,d){return l*d},1),x6=Iy("round"),S6=Gp(function(l,d){return l-d},0);function E6(l){return l&&l.length?ey(l,zr):0}function P6(l,d){return l&&l.length?ey(l,ut(d,2)):0}return H.after=K3,H.ary=AP,H.assign=LB,H.assignIn=YP,H.assignInWith=ih,H.assignWith=AB,H.at=FB,H.before=FP,H.bind=By,H.bindAll=jz,H.bindKey=NP,H.castArray=iB,H.chain=RP,H.chunk=h5,H.compact=m5,H.concat=g5,H.cond=Hz,H.conforms=Vz,H.constant=Gy,H.countBy=E3,H.create=NB,H.curry=DP,H.curryRight=BP,H.debounce=zP,H.defaults=DB,H.defaultsDeep=BB,H.defer=q3,H.delay=Y3,H.difference=v5,H.differenceBy=y5,H.differenceWith=b5,H.drop=w5,H.dropRight=C5,H.dropRightWhile=x5,H.dropWhile=S5,H.fill=E5,H.filter=k3,H.flatMap=$3,H.flatMapDeep=M3,H.flatMapDepth=T3,H.flatten=_P,H.flattenDeep=P5,H.flattenDepth=k5,H.flip=X3,H.flow=Wz,H.flowRight=Gz,H.fromPairs=I5,H.functions=GB,H.functionsIn=KB,H.groupBy=R3,H.initial=$5,H.intersection=M5,H.intersectionBy=T5,H.intersectionWith=R5,H.invert=YB,H.invertBy=XB,H.invokeMap=L3,H.iteratee=Ky,H.keyBy=A3,H.keys=Zn,H.keysIn=Br,H.map=Zp,H.mapKeys=JB,H.mapValues=ZB,H.matches=Kz,H.matchesProperty=qz,H.memoize=th,H.merge=ez,H.mergeWith=XP,H.method=Yz,H.methodOf=Xz,H.mixin=qy,H.negate=nh,H.nthArg=Jz,H.omit=tz,H.omitBy=nz,H.once=Q3,H.orderBy=F3,H.over=Zz,H.overArgs=J3,H.overEvery=e6,H.overSome=t6,H.partial=zy,H.partialRight=jP,H.partition=N3,H.pick=rz,H.pickBy=QP,H.property=ok,H.propertyOf=n6,H.pull=F5,H.pullAll=MP,H.pullAllBy=N5,H.pullAllWith=D5,H.pullAt=B5,H.range=r6,H.rangeRight=o6,H.rearg=Z3,H.reject=z3,H.remove=z5,H.rest=eB,H.reverse=Ny,H.sampleSize=H3,H.set=iz,H.setWith=sz,H.shuffle=V3,H.slice=j5,H.sortBy=G3,H.sortedUniq=q5,H.sortedUniqBy=Y5,H.split=$z,H.spread=tB,H.tail=X5,H.take=Q5,H.takeRight=J5,H.takeRightWhile=Z5,H.takeWhile=e3,H.tap=m3,H.throttle=nB,H.thru=Jp,H.toArray=GP,H.toPairs=JP,H.toPairsIn=ZP,H.toPath=c6,H.toPlainObject=qP,H.transform=lz,H.unary=rB,H.union=t3,H.unionBy=n3,H.unionWith=r3,H.uniq=o3,H.uniqBy=i3,H.uniqWith=s3,H.unset=az,H.unzip=Dy,H.unzipWith=TP,H.update=cz,H.updateWith=uz,H.values=sc,H.valuesIn=dz,H.without=l3,H.words=nk,H.wrap=oB,H.xor=a3,H.xorBy=c3,H.xorWith=u3,H.zip=d3,H.zipObject=f3,H.zipObjectDeep=p3,H.zipWith=h3,H.entries=JP,H.entriesIn=ZP,H.extend=YP,H.extendWith=ih,qy(H,H),H.add=d6,H.attempt=rk,H.camelCase=mz,H.capitalize=ek,H.ceil=f6,H.clamp=fz,H.clone=sB,H.cloneDeep=aB,H.cloneDeepWith=cB,H.cloneWith=lB,H.conformsTo=uB,H.deburr=tk,H.defaultTo=Uz,H.divide=p6,H.endsWith=gz,H.eq=ri,H.escape=vz,H.escapeRegExp=yz,H.every=P3,H.find=I3,H.findIndex=kP,H.findKey=zB,H.findLast=_3,H.findLastIndex=IP,H.findLastKey=jB,H.floor=h6,H.forEach=OP,H.forEachRight=LP,H.forIn=HB,H.forInRight=VB,H.forOwn=UB,H.forOwnRight=WB,H.get=Vy,H.gt=dB,H.gte=fB,H.has=qB,H.hasIn=Uy,H.head=$P,H.identity=zr,H.includes=O3,H.indexOf=_5,H.inRange=pz,H.invoke=QB,H.isArguments=ql,H.isArray=xt,H.isArrayBuffer=pB,H.isArrayLike=Dr,H.isArrayLikeObject=Dn,H.isBoolean=hB,H.isBuffer=Vs,H.isDate=mB,H.isElement=gB,H.isEmpty=vB,H.isEqual=yB,H.isEqualWith=bB,H.isError=jy,H.isFinite=wB,H.isFunction=ss,H.isInteger=HP,H.isLength=rh,H.isMap=VP,H.isMatch=CB,H.isMatchWith=xB,H.isNaN=SB,H.isNative=EB,H.isNil=kB,H.isNull=PB,H.isNumber=UP,H.isObject=In,H.isObjectLike=On,H.isPlainObject=ed,H.isRegExp=Hy,H.isSafeInteger=IB,H.isSet=WP,H.isString=oh,H.isSymbol=ro,H.isTypedArray=ic,H.isUndefined=_B,H.isWeakMap=$B,H.isWeakSet=MB,H.join=O5,H.kebabCase=bz,H.last=To,H.lastIndexOf=L5,H.lowerCase=wz,H.lowerFirst=Cz,H.lt=TB,H.lte=RB,H.max=m6,H.maxBy=g6,H.mean=v6,H.meanBy=y6,H.min=b6,H.minBy=w6,H.stubArray=Xy,H.stubFalse=Qy,H.stubObject=i6,H.stubString=s6,H.stubTrue=l6,H.multiply=C6,H.nth=A5,H.noConflict=Qz,H.noop=Yy,H.now=eh,H.pad=xz,H.padEnd=Sz,H.padStart=Ez,H.parseInt=Pz,H.random=hz,H.reduce=D3,H.reduceRight=B3,H.repeat=kz,H.replace=Iz,H.result=oz,H.round=x6,H.runInContext=Q,H.sample=j3,H.size=U3,H.snakeCase=_z,H.some=W3,H.sortedIndex=H5,H.sortedIndexBy=V5,H.sortedIndexOf=U5,H.sortedLastIndex=W5,H.sortedLastIndexBy=G5,H.sortedLastIndexOf=K5,H.startCase=Mz,H.startsWith=Tz,H.subtract=S6,H.sum=E6,H.sumBy=P6,H.template=Rz,H.times=a6,H.toFinite=ls,H.toInteger=kt,H.toLength=KP,H.toLower=Oz,H.toNumber=Ro,H.toSafeInteger=OB,H.toString=Jt,H.toUpper=Lz,H.trim=Az,H.trimEnd=Fz,H.trimStart=Nz,H.truncate=Dz,H.unescape=Bz,H.uniqueId=u6,H.upperCase=zz,H.upperFirst=Wy,H.each=OP,H.eachRight=LP,H.first=$P,qy(H,function(){var l={};return Pi(H,function(d,y){tn.call(H.prototype,y)||(l[y]=d)}),l}(),{chain:!1}),H.VERSION=r,ko(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){H[l].placeholder=H}),ko(["drop","take"],function(l,d){At.prototype[l]=function(y){y=y===n?1:Yn(kt(y),0);var M=this.__filtered__&&!d?new At(this):this.clone();return M.__filtered__?M.__takeCount__=hr(y,M.__takeCount__):M.__views__.push({size:hr(y,q),type:l+(M.__dir__<0?"Right":"")}),M},At.prototype[l+"Right"]=function(y){return this.reverse()[l](y).reverse()}}),ko(["filter","map","takeWhile"],function(l,d){var y=d+1,M=y==L||y==B;At.prototype[l]=function(F){var U=this.clone();return U.__iteratees__.push({iteratee:ut(F,3),type:y}),U.__filtered__=U.__filtered__||M,U}}),ko(["head","last"],function(l,d){var y="take"+(d?"Right":"");At.prototype[l]=function(){return this[y](1).value()[0]}}),ko(["initial","tail"],function(l,d){var y="drop"+(d?"":"Right");At.prototype[l]=function(){return this.__filtered__?new At(this):this[y](1)}}),At.prototype.compact=function(){return this.filter(zr)},At.prototype.find=function(l){return this.filter(l).head()},At.prototype.findLast=function(l){return this.reverse().find(l)},At.prototype.invokeMap=$t(function(l,d){return typeof l=="function"?new At(this):this.map(function(y){return qu(y,l,d)})}),At.prototype.reject=function(l){return this.filter(nh(ut(l)))},At.prototype.slice=function(l,d){l=kt(l);var y=this;return y.__filtered__&&(l>0||d<0)?new At(y):(l<0?y=y.takeRight(-l):l&&(y=y.drop(l)),d!==n&&(d=kt(d),y=d<0?y.dropRight(-d):y.take(d-l)),y)},At.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},At.prototype.toArray=function(){return this.take(q)},Pi(At.prototype,function(l,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),M=/^(?:head|last)$/.test(d),F=H[M?"take"+(d=="last"?"Right":""):d],U=M||/^find/.test(d);F&&(H.prototype[d]=function(){var K=this.__wrapped__,Y=M?[1]:arguments,J=K instanceof At,Ce=Y[0],xe=J||xt(K),Pe=function(Tt){var Bt=F.apply(H,Fs([Tt],Y));return M&&De?Bt[0]:Bt};xe&&y&&typeof Ce=="function"&&Ce.length!=1&&(J=xe=!1);var De=this.__chain__,Je=!!this.__actions__.length,pt=U&&!De,_t=J&&!Je;if(!U&&xe){K=_t?K:new At(this);var ht=l.apply(K,Y);return ht.__actions__.push({func:Jp,args:[Pe],thisArg:n}),new _o(ht,De)}return pt&&_t?l.apply(this,Y):(ht=this.thru(Pe),pt?M?ht.value()[0]:ht.value():ht)})}),ko(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ep[l],y=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",M=/^(?:pop|shift)$/.test(l);H.prototype[l]=function(){var F=arguments;if(M&&!this.__chain__){var U=this.value();return d.apply(xt(U)?U:[],F)}return this[y](function(K){return d.apply(xt(K)?K:[],F)})}}),Pi(At.prototype,function(l,d){var y=H[d];if(y){var M=y.name+"";tn.call(ec,M)||(ec[M]=[]),ec[M].push({name:d,func:y})}}),ec[Wp(n,C).name]=[{name:"wrapper",func:n}],At.prototype.clone=B4,At.prototype.reverse=z4,At.prototype.value=j4,H.prototype.at=g3,H.prototype.chain=v3,H.prototype.commit=y3,H.prototype.next=b3,H.prototype.plant=C3,H.prototype.reverse=x3,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=S3,H.prototype.first=H.prototype.head,ju&&(H.prototype[ju]=w3),H},Qa=y4();zl?((zl.exports=Qa)._=Qa,Kv._=Qa):ir._=Qa}).call(uo)})(ere,vs);const Qt=vs;var UC={},tre=st;Object.defineProperty(UC,"__esModule",{value:!0});var eL=UC.default=void 0,nre=tre(dt()),rre=at(),ore=(0,nre.default)((0,rre.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");eL=UC.default=ore;var WC={},ire=st;Object.defineProperty(WC,"__esModule",{value:!0});var np=WC.default=void 0,sre=ire(dt()),lre=at(),are=(0,sre.default)((0,lre.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");np=WC.default=are;var GC={},cre=st;Object.defineProperty(GC,"__esModule",{value:!0});var dv=GC.default=void 0,ure=cre(dt()),dre=at(),fre=(0,ure.default)((0,dre.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");dv=GC.default=fre;var KC={},pre=st;Object.defineProperty(KC,"__esModule",{value:!0});var tL=KC.default=void 0,hre=pre(dt()),mre=at(),gre=(0,hre.default)((0,mre.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");tL=KC.default=gre;var qC={},vre=st;Object.defineProperty(qC,"__esModule",{value:!0});var du=qC.default=void 0,yre=vre(dt()),bre=at(),wre=(0,yre.default)((0,bre.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");du=qC.default=wre;var YC={},Cre=st;Object.defineProperty(YC,"__esModule",{value:!0});var XC=YC.default=void 0,xre=Cre(dt()),Sre=at(),Ere=(0,xre.default)((0,Sre.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");XC=YC.default=Ere;globalThis&&globalThis.__awaiter;function Pre(e,t,n,r){const o=u.useRef(t);nL(()=>{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 kre(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}const nL=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function Ire(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Pre("resize",n),nL(()=>{n()},[]),e}function co(e){const t=kre(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function _re(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function $re(e,t){const n=[];for(const r of _re(t))n.push(r,e);return n.splice(-1,1),Hm(n)}function Hm(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?Hm(t):u.createElement(u.Fragment,{key:n,children:t}))}const Cb=Symbol(),Mre=Symbol(),QC=Symbol();let Tre=(e,t)=>new Proxy(e,t);const xb=Object.getPrototypeOf,Sb=new WeakMap,rL=e=>e&&(Sb.has(e)?Sb.get(e):xb(e)===Object.prototype||xb(e)===Array.prototype),Vm=e=>typeof e=="object"&&e!==null,x_=new WeakMap,JC=e=>e[QC]||e,oL=(e,t,n)=>{if(!rL(e))return e;const r=JC(e),o=(s=>Object.isFrozen(s)||Object.values(Object.getOwnPropertyDescriptors(s)).some(a=>!a.writable))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((s,a)=>{const c={f:a};let f=!1;const p=(m,v)=>{if(!f){let b=c.a.get(s);b||(b=new Set,c.a.set(s,b)),v&&b.has(Cb)||b.add(m)}},h={get:(m,v)=>v===QC?s:(p(v),oL(m[v],c.a,c.c)),has:(m,v)=>v===Mre?(f=!0,c.a.delete(s),!0):(p(v),v in m),getOwnPropertyDescriptor:(m,v)=>(p(v,!0),Object.getOwnPropertyDescriptor(m,v)),ownKeys:m=>(p(Cb),Reflect.ownKeys(m))};return a&&(h.set=h.deleteProperty=()=>!1),[h,c]})(r,o),i[1].p=Tre(o?(s=>{let a=x_.get(s);if(!a){if(Array.isArray(s))a=Array.from(s);else{const c=Object.getOwnPropertyDescriptors(s);Object.values(c).forEach(f=>{f.configurable=!0}),a=Object.create(xb(s),c)}x_.set(s,a)}return a})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},Rre=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((o,i)=>o!==r[i])},iL=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Vm(e)||!Vm(t))return!0;const o=n.get(JC(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;for(const s of o){const a=s===Cb?Rre(e,t):iL(e[s],t[s],n,r);if(a!==!0&&a!==!1||(i=a),i)break}return i===null&&(i=!0),r&&r.set(e,{n:t,g:i}),i},Ore=e=>rL(e)&&e[QC]||null,S_=(e,t=!0)=>{Sb.set(e,t)},Lre=(e,t)=>{const n=[],r=new WeakSet,o=(i,s)=>{if(r.has(i))return;Vm(i)&&r.add(i);const a=Vm(i)&&t.get(JC(i));a?a.forEach(c=>{o(i[c],s?[...s,c]:[c])}):s&&n.push(s)};return o(e),n};var Eb={},Are={get exports(){return Eb},set exports(e){Eb=e}},sL={};/**
|
|
260
|
+
* @license React
|
|
261
|
+
* use-sync-external-store-shim.production.min.js
|
|
262
|
+
*
|
|
263
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
264
|
+
*
|
|
265
|
+
* This source code is licensed under the MIT license found in the
|
|
266
|
+
* LICENSE file in the root directory of this source tree.
|
|
267
|
+
*/var fu=u;function Fre(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nre=typeof Object.is=="function"?Object.is:Fre,Dre=fu.useState,Bre=fu.useEffect,zre=fu.useLayoutEffect,jre=fu.useDebugValue;function Hre(e,t){var n=t(),r=Dre({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return zre(function(){o.value=n,o.getSnapshot=t,z0(o)&&i({inst:o})},[e,n,t]),Bre(function(){return z0(o)&&i({inst:o}),e(function(){z0(o)&&i({inst:o})})},[e]),jre(n),n}function z0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nre(e,n)}catch(r){return!0}}function Vre(e,t){return t()}var Ure=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Vre:Hre;sL.useSyncExternalStore=fu.useSyncExternalStore!==void 0?fu.useSyncExternalStore:Ure;(function(e){e.exports=sL})(Are);const Wre=Qb(Eb),Gre=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("VERSION"):Symbol(),Li=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("LISTENERS"):Symbol(),Um=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("SNAPSHOT"):Symbol(),Kre=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("HANDLER"):Symbol(),vd=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_RESULT"):Symbol(),E_=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_ERROR"):Symbol(),lL=new WeakSet,Pb=e=>typeof e=="object"&&e!==null,qre=e=>Pb(e)&&!lL.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),P_=new WeakMap;let k_=1;const I_=new WeakMap;function _u(e={}){if(!Pb(e))throw new Error("object required");const t=P_.get(e);if(t)return t;let n=k_;const r=new Set,o=(m,v=++k_)=>{n!==v&&(n=v,r.forEach(b=>b(m,v)))},i=new Map,s=m=>{let v=i.get(m);return v||(v=(b,g)=>{const x=[...b];x[1]=[m,...x[1]],o(x,g)},i.set(m,v)),v},a=m=>{const v=i.get(m);return i.delete(m),v},c=(m,v)=>{const b=I_.get(v);if((b==null?void 0:b[0])===n)return b[1];const g=Array.isArray(m)?[]:Object.create(Object.getPrototypeOf(m));return S_(g,!0),I_.set(v,[n,g]),Reflect.ownKeys(m).forEach(x=>{const C=Reflect.get(m,x,v);if(lL.has(C))S_(C,!1),g[x]=C;else if(C instanceof Promise)if(vd in C)g[x]=C[vd];else{const P=C[E_]||C;Object.defineProperty(g,x,{get(){if(vd in C)return C[vd];throw P}})}else C!=null&&C[Li]?g[x]=C[Um]:g[x]=C}),Object.freeze(g)},f=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e)),p={get(m,v,b){return v===Gre?n:v===Li?r:v===Um?c(m,b):v===Kre?p:Reflect.get(m,v,b)},deleteProperty(m,v){const b=Reflect.get(m,v),g=b==null?void 0:b[Li];g&&g.delete(a(v));const x=Reflect.deleteProperty(m,v);return x&&o(["delete",[v],b]),x},is:Object.is,canProxy:qre,set(m,v,b,g){var x;const C=Reflect.has(m,v),P=Reflect.get(m,v,g);if(C&&this.is(P,b))return!0;const w=P==null?void 0:P[Li];w&&w.delete(a(v)),Pb(b)&&(b=Ore(b)||b);let E;return(x=Object.getOwnPropertyDescriptor(m,v))!=null&&x.set?E=b:b instanceof Promise?E=b.then(I=>(E[vd]=I,o(["resolve",[v],I]),I)).catch(I=>{E[E_]=I,o(["reject",[v],I])}):b!=null&&b[Li]?(E=b,E[Li].add(s(v))):this.canProxy(b)?(E=_u(b),E[Li].add(s(v))):E=b,Reflect.set(m,v,E,g),o(["set",[v],b,P]),!0}},h=new Proxy(f,p);return P_.set(e,h),Reflect.ownKeys(e).forEach(m=>{const v=Object.getOwnPropertyDescriptor(e,m);v.get||v.set?Object.defineProperty(f,m,v):h[m]=e[m]}),h}function aL(e,t,n){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[Li])&&console.warn("Please use proxy object");let r;const o=[],i=s=>{if(o.push(s),n){t(o.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,t(o.splice(0))}))};return e[Li].add(i),()=>{e[Li].delete(i)}}function __(e){return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[Um])&&console.warn("Please use proxy object"),e[Um]}const{useSyncExternalStore:Yre}=Wre,Xre=(e,t)=>{const n=u.useRef();u.useEffect(()=>{n.current=Lre(e,t)}),u.useDebugValue(n.current)};function fv(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=Yre(u.useCallback(f=>{const p=aL(e,f,n);return f(),p},[e,n]),()=>{const f=__(e);try{if(!i&&r.current&&o.current&&!iL(r.current,f,o.current,new WeakMap))return r.current}catch(p){}return f},()=>__(e));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&Xre(s,a);const c=u.useMemo(()=>new WeakMap,[]);return oL(s,a,c)}const ha=_u([]),rm={closableContent:"x",padding:!0};function Qre(){const e=fv(ha);return u.createElement(u.Fragment,{},e.length>0&&e.map((t,n)=>u.createElement(Jre,Le({key:n},t))))}function Jre(e){const t=u.useRef();return u.useEffect(()=>{var n;(n=t.current)==null||n.focus()},[]),e=Le(Le({},rm),e),e.Container?u.createElement(e.Container,e):u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:Zre,onClick:()=>yi()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",Le({className:"dialog",onClick(n){n.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",{className:"dialog-icon dialog-closer",onClick(){yi()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"},kb(e.icon)),u.createElement("div",{className:"dialog-title"},kb(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))))}function kb(e){return typeof e=="function"?u.createElement(e):e}function Zre(e){e.key==="Escape"&&yi()}function wi(e){const t=Math.random();return e.$id=t,ha.push(e),n=>{var o;const r=ha.findIndex(i=>i.$id===t);r<0||(ha.splice(r,1),(o=e.onClose)==null||o.call(e,n))}}function yi(e){var n;let t=ha.length;for(;t--;){const r=ha[t];if(!r.reserveClosing)return ha.splice(t,1),(n=r.onClose)==null?void 0:n.call(r,e)}}var ma={},pv={},pu={};const eoe={},toe=Object.freeze(Object.defineProperty({__proto__:null,default:eoe},Symbol.toStringTag,{value:"Module"})),$_=D$(toe);Object.defineProperty(pu,"__esModule",{value:!0});var M_=pu.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||$_.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);M_=pu.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=$_,n=r=>o=>t.createHash(r).update(o).digest().buffer;M_=pu.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(pv,"__esModule",{value:!0});pv.SRPParameters=void 0;const Fh=pu;class hu{constructor(t=hu.PrimeGroup[2048],n=hu.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}pv.SRPParameters=hu;hu.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)}};hu.H={SHA1:Fh.crossEnvCrypto.hashFunctions.SHA1,SHA256:Fh.crossEnvCrypto.hashFunctions.SHA256,SHA384:Fh.crossEnvCrypto.hashFunctions.SHA384,SHA512:Fh.crossEnvCrypto.hashFunctions.SHA512};var hv={},mv={};(function(e){var t=uo&&uo.__awaiter||function(w,E,I,_){function k($){return $ instanceof I?$:new I(function(T){T($)})}return new(I||(I=Promise))(function($,T){function O(j){try{V(_.next(j))}catch(L){T(L)}}function N(j){try{V(_.throw(j))}catch(L){T(L)}}function V(j){j.done?$(j.value):k(j.value).then(O,N)}V((_=_.apply(w,E||[])).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=pu,r=BigInt(0),o=BigInt(1),i=BigInt(2),s=w=>{const E=w.toString(16),I=new ArrayBuffer(Math.ceil(E.length/2)),_=new Uint8Array(I);let k=0;E.length%2!==0&&(_[0]=parseInt(E[0],16),k=1);for(let $=0;$<I.byteLength;$++)_[$+k]=parseInt(E.slice(2*$+k,2*$+2+k),16);return I};e.bigIntToArrayBuffer=s;const a=w=>{const E=[];return new Uint8Array(w).forEach(I=>{E.push(("0"+I.toString(16)).slice(-2))}),BigInt(`0x${E.join("")}`)};e.arrayBufferToBigInt=a;function c(w){return new TextEncoder().encode(w).buffer}e.stringToArrayBuffer=c;const f=(w,E)=>{const I=new Uint8Array(w);if(I.length<E){const _=new Uint8Array(E);return _.fill(0,0,E-I.length),_.set(I,E-I.length),_}return I};e.padStartArrayBuffer=f;function p(w,...E){const I=E.reduce((k,$)=>k+$.byteLength,0),_=new Uint8Array(I);for(let k=0,$=0;$<E.length;$++)_.set(new Uint8Array(E[$]),k),k+=E[$].byteLength;return w.H(_)}e.hash=p;function h(w,E,...I){const _=I.map(k=>e.padStartArrayBuffer(k,E));return p(w,..._)}e.hashPadded=h;function m(w=10){const E=new Uint8Array(Math.ceil(Math.ceil(w/2)));return n.crossEnvCrypto.randomBytes(E),E.reduce((I,_)=>{const k=_.toString(16).toString();return k.length===1?I+"0"+k:I+k},"").slice(0,w)}e.generateRandomString=m;function v(w=16){return e.arrayBufferToBigInt(P(w))}e.generateRandomBigInt=v;function b(w,E,I,_){return t(this,void 0,void 0,function*(){if(!E||!E.trim())throw new Error("Identity (I) must not be null or empty.");if(!I)throw new Error("Salt (s) must not be null.");if(!_)throw new Error("Password (P) must not be null");const k=yield w.computeX(E,I,_);return w.computeVerifier(k)})}e.createVerifier=b;function g(w,E,I,_){return t(this,void 0,void 0,function*(){const k=yield w.generateRandomSalt(_);return{s:k,v:yield b(w,E,k,I)}})}e.createVerifierAndSalt=g;const x=w=>t(void 0,void 0,void 0,function*(){return(yield p(w,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=x;function C(w,E,I){let _=o;for(;E>r;)E%i==o?(_=w*_%I,E-=o):(w=w*w%I,E/=i);return _}e.modPow=C;const P=w=>{const E=new Uint8Array(w);return n.crossEnvCrypto.randomBytes(E),E.buffer}})(mv);var Ks=uo&&uo.__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{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(hv,"__esModule",{value:!0});hv.SRPRoutines=void 0;const ln=mv;class noe{constructor(t){this.parameters=t}hash(...t){return ln.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return ln.hashPadded(this.parameters,n,...t)}computeK(){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hashPadded(ln.bigIntToArrayBuffer(this.parameters.primeGroup.N),ln.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return Ks(this,void 0,void 0,function*(){const n=yield ln.hashBitCount(this.parameters),r=t||2*n/8;return ln.generateRandomBigInt(r)})}computeX(t,n,r){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Ks(this,void 0,void 0,function*(){return yield this.hash(ln.stringToArrayBuffer(n))})}computeVerifier(t){return ln.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=ln.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return ln.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hashPadded(ln.bigIntToArrayBuffer(t),ln.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(r),ln.bigIntToArrayBuffer(o),ln.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(t),ln.bigIntToArrayBuffer(n),ln.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=ln.modPow(this.parameters.primeGroup.g,n,s)*t%s;return ln.modPow(i+s-c,a,s)}}hv.SRPRoutines=noe;var bl={},ZC=uo&&uo.__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{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(bl,"__esModule",{value:!0});bl.SRPClientSessionStep2=bl.SRPClientSessionStep1=bl.SRPClientSession=void 0;class roe{constructor(t){this.routines=t}step1(t,n){return ZC(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 gv(this.routines,t,r)})}}bl.SRPClientSession=roe;class gv{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return ZC(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),f=yield this.routines.computeClientEvidence(this.I,t,i,n,c);return new vv(this.routines,i,f,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new gv(t,n.I,new Uint8Array(n.IH).buffer)}}bl.SRPClientSessionStep1=gv;class vv{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return ZC(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 vv(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}bl.SRPClientSessionStep2=vv;var mu={},Ib=uo&&uo.__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{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(mu,"__esModule",{value:!0});mu.SRPServerSessionStep1=mu.SRPServerSession=void 0;const _b=mv;class ooe{constructor(t){this.routines=t}step1(t,n,r){return Ib(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=ioe(this.routines.parameters,i,r,o);return new yv(this.routines,t,n,r,o,s)})}}mu.SRPServerSession=ooe;class yv{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 Ib(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 soe(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return Ib(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 yv(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}mu.SRPServerSessionStep1=yv;const ioe=(e,t,n,r)=>(_b.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,soe=(e,t,n,r,o)=>_b.modPow(_b.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=pv;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=hv;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=bl;Object.defineProperty(e,"SRPClientSession",{enumerable:!0,get:function(){return r.SRPClientSession}}),Object.defineProperty(e,"SRPClientSessionStep1",{enumerable:!0,get:function(){return r.SRPClientSessionStep1}}),Object.defineProperty(e,"SRPClientSessionStep2",{enumerable:!0,get:function(){return r.SRPClientSessionStep2}});var o=mu;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var i=mv;Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return i.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return i.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return i.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return i.generateRandomBigInt}})})(ma);function loe(e,t,n){return ot(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new ma.SRPRoutines(new ma.SRPParameters),c=yield(yield new ma.SRPClientSession(i).step1(e,t)).step2(BigInt(o),BigInt(r)),f=yield n("loginSrp2",{pubKey:String(c.A),proof:String(c.M1)});return yield c.step3(BigInt(f.proof)).catch(()=>Promise.reject("trust")),f})}Object.fromEntries(new URLSearchParams(window.location.search).entries());const T_=["","K","M","G","T"];function $u(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";let o=1,i=n,s=0;for(;s<T_.length&&e>i;)o=i,i*=n,++s;return e/=o,(s&&!isNaN(r)?e.toFixed(r):Qt.round(e,isNaN(r)?e>=100?0:1:r))+" "+(T_[s]||"")+t}function aoe(e,t,n=""){return t?e+t+n:""}function cL(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 uL(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function coe(e,t){return!t||t.endsWith(e)?t:t+e}function uoe(e){return Boolean(e)}function Ea(e){return e.filter(uoe)}function doe(e,t){return Object.defineProperties(e,uL(t,n=>({enumerable:!1,writable:!0,value:n})))}function foe(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function R_(e,t){return t(e)}function poe(e,t){for(const n of e){const r=t(n);if(r!==void 0)return r}}function hoe(e,{multiple:t=!0,folder:n=!1}={}){const r=Object.assign(document.createElement("input"),{type:"file",name:"file",multiple:t,webkitdirectory:n});r.addEventListener("change",()=>e(r.files)),r.click()}function moe(e){return new Promise((t,n)=>{const r=new FileReader;r.addEventListener("load",o=>{if(!o.target)return n();t(o.target.result)}),r.readAsText(e)})}var ex={},goe=st;Object.defineProperty(ex,"__esModule",{value:!0});var dL=ex.default=void 0,voe=goe(dt()),yoe=at(),boe=(0,voe.default)((0,yoe.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");dL=ex.default=boe;function woe(e){return Ke("MuiLoadingButton",e)}const Coe=Ve("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),us=Coe,xoe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Soe=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${fe(n)}`],endIcon:[t&&`endIconLoading${fe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${fe(n)}`]},i=Ie(o,woe,r);return S({},r,i)},Eoe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Poe=re(cr,{shouldForwardProp:e=>Eoe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${us.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${us.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>S({[`& .${us.startIconLoadingStart}, & .${us.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}),[`&.${us.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${us.startIconLoadingStart}, & .${us.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${us.startIconLoadingStart}, & .${us.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),koe=re("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${fe(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>S({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),Ioe=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:f="center",variant:p="text"}=r,h=oe(r,xoe),m=Pn(s),v=c!=null?c:R.jsx(ep,{"aria-labelledby":m,color:"inherit",size:16}),b=S({},r,{disabled:i,loading:a,loadingIndicator:v,loadingPosition:f,variant:p}),g=Soe(b),x=a?R.jsx(koe,{className:g.loadingIndicator,ownerState:b,children:v}):null;return R.jsxs(Poe,S({disabled:i||a,id:m,ref:n},h,{variant:p,classes:g,ownerState:b,children:[b.loadingPosition==="end"?o:x,b.loadingPosition==="end"?x:o]}))}),_oe=Ioe,$oe=u.createContext({}),tx=$oe,Moe=["element"];function Toe(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function Roe(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 fL=u.createContext({});function Ooe(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const O_=()=>{};function Loe(e){const[,t]=u.useState(),{registerDescendant:n=O_,unregisterDescendant:r=O_,descendants:o=[],parentId:i=null}=u.useContext(fL),s=Toe(o,f=>f.element===e.element),a=Ooe(o),c=o.some((f,p)=>a&&a[p]&&a[p].element!==f.element);return Rn(()=>{if(e.element)return n(S({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function pL(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:f}=c,p=oe(c,Moe);o(h=>{let m;if(h.length===0)return[S({},p,{element:f,index:0})];const v=Roe(h,f);if(h[v]&&h[v].element===f)m=h;else{const b=S({},p,{element:f,index:v});m=h.slice(),m.splice(v,0,b)}return m.forEach((b,g)=>{b.index=g}),m})},[]),s=u.useCallback(c=>{o(f=>f.filter(p=>c!==p.element))},[]),a=u.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:s,parentId:n}),[r,i,s,n]);return R.jsx(fL.Provider,{value:a,children:t})}function Aoe(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:f,toggleExpansion:p}=u.useContext(tx),h=r?r(e):!1,m=n?n(e):!1,v=o?o(e):!1,b=i?i(e):!1,g=s?s(e):!1;return{disabled:b,expanded:m,selected:g,focused:v,handleExpansion:w=>{if(!b){v||t(w,e);const E=a&&(w.shiftKey||w.ctrlKey||w.metaKey);h&&!(E&&n(e))&&p(w,e)}},handleSelection:w=>{b||(v||t(w,e),a&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?f(w,{end:e}):c(w,e,!0):c(w,e))},preventSelection:w=>{(w.shiftKey||w.ctrlKey||w.metaKey||b)&&w.preventDefault()}}}const Foe=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],Noe=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:s,icon:a,label:c,nodeId:f,onClick:p,onMouseDown:h}=t,m=oe(t,Foe),{disabled:v,expanded:b,selected:g,focused:x,handleExpansion:C,handleSelection:P,preventSelection:w}=Aoe(f),E=a||s||i,I=k=>{w(k),h&&h(k)},_=k=>{C(k),P(k),p&&p(k)};return R.jsxs("div",S({className:he(o,r.root,b&&r.expanded,g&&r.selected,x&&r.focused,v&&r.disabled),onClick:_,onMouseDown:I,ref:n},m,{children:[R.jsx("div",{className:r.iconContainer,children:E}),R.jsx("div",{className:r.label,children:c})]}))}),hL=Noe;function Doe(e){return Ke("MuiTreeItem",e)}const Boe=Ve("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),qs=Boe,zoe=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],joe=e=>{const{classes:t}=e;return Ie({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},Doe,t)},Hoe=re("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Voe=re(hL,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${qs.iconContainer}`]:t.iconContainer},t.label&&{[`& .${qs.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"}},[`&.${qs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${qs.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(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}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qs.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${qs.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${qs.label}`]:S({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),Uoe=re(sO,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Woe=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=hL,ContentProps:c,endIcon:f,expandIcon:p,disabled:h,icon:m,id:v,label:b,nodeId:g,onClick:x,onMouseDown:C,TransitionComponent:P=sO,TransitionProps:w}=r,E=oe(r,zoe),{icons:I={},focus:_,isExpanded:k,isFocused:$,isSelected:T,isDisabled:O,multiSelect:N,disabledItemsFocusable:V,mapFirstChar:j,unMapFirstChar:L,registerNode:D,unregisterNode:B,treeId:W}=u.useContext(tx);let A=null;v!=null?A=v:W&&g&&(A=`${W}-${g}`);const[z,G]=u.useState(null),q=u.useRef(null),X=St(G,n),ie=u.useMemo(()=>({element:z,id:g}),[g,z]),{index:ee,parentId:se}=Loe(ie),ae=Boolean(Array.isArray(o)?o.length:o),we=k?k(g):!1,de=$?$(g):!1,le=T?T(g):!1,te=O?O(g):!1,be=S({},r,{expanded:we,focused:de,selected:le,disabled:te}),_e=joe(be);let Se,Fe;ae&&(we?Fe=s||I.defaultCollapseIcon:Fe=p||I.defaultExpandIcon),ae?Se=I.defaultParentIcon:Se=f||I.defaultEndIcon,u.useEffect(()=>{if(D&&B&&ee!==-1)return D({id:g,idAttribute:A,index:ee,parentId:se,expandable:ae,disabled:h}),()=>{B(g)}},[D,B,se,ee,g,ae,h,A]),u.useEffect(()=>{if(j&&L&&b)return j(g,q.current.textContent.substring(0,1).toLowerCase()),()=>{L(g)}},[j,L,g,b]);let Re;N?Re=le:le&&(Re=!0);function Ae(Oe){Oe.target===Oe.currentTarget&&bn(Oe.target).getElementById(W).focus({preventScroll:!0});const Ze=!V&&te;!de&&Oe.currentTarget===Oe.target&&!Ze&&_(Oe,g)}return R.jsxs(Hoe,S({className:he(_e.root,i),role:"treeitem","aria-expanded":ae?we:null,"aria-selected":Re,"aria-disabled":te||null,ref:X,id:A,tabIndex:-1},E,{ownerState:be,onFocus:Ae,children:[R.jsx(Voe,S({as:a,ref:q,classes:{root:_e.content,expanded:_e.expanded,selected:_e.selected,focused:_e.focused,disabled:_e.disabled,iconContainer:_e.iconContainer,label:_e.label},label:b,nodeId:g,onClick:x,onMouseDown:C,icon:m,expansionIcon:Fe,displayIcon:Se,ownerState:be},c)),o&&R.jsx(pL,{id:g,children:R.jsx(Uoe,S({as:P,unmountOnExit:!0,className:_e.group,in:we,component:"ul",role:"group"},w,{children:o}))})]}))}),$b=Woe;function Goe(e){return Ke("MuiTreeView",e)}Ve("MuiTreeView",["root"]);const Koe=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],qoe=e=>{const{classes:t}=e;return Ie({root:["root"]},Goe,t)},Yoe=re("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function Xoe(e){return e&&e.length===1&&e.match(/\S/)}function L_(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function A_(){return!1}const Qoe=[],Joe=[],Zoe=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=Qoe,defaultExpandIcon:f,defaultParentIcon:p,defaultSelected:h=Joe,disabledItemsFocusable:m=!1,disableSelection:v=!1,expanded:b,id:g,multiSelect:x=!1,onBlur:C,onFocus:P,onKeyDown:w,onNodeFocus:E,onNodeSelect:I,onNodeToggle:_,selected:k}=r,$=oe(r,Koe),O=Zr().direction==="rtl",N=S({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:v,multiSelect:x}),V=qoe(N),j=Pn(g),L=u.useRef(null),D=St(L,n),[B,W]=u.useState(null),A=u.useRef({}),z=u.useRef({}),[G,q]=Ui({controlled:b,default:c,name:"TreeView",state:"expanded"}),[X,ie]=Ui({controlled:k,default:h,name:"TreeView",state:"selected"}),ee=u.useCallback(ce=>Array.isArray(G)?G.indexOf(ce)!==-1:!1,[G]),se=u.useCallback(ce=>A.current[ce]&&A.current[ce].expandable,[]),ae=u.useCallback(ce=>Array.isArray(X)?X.indexOf(ce)!==-1:X===ce,[X]),we=u.useCallback(ce=>{let me=A.current[ce];if(!me)return!1;if(me.disabled)return!0;for(;me.parentId!=null;)if(me=A.current[me.parentId],me.disabled)return!0;return!1},[]),de=ce=>B===ce,le=ce=>Object.keys(A.current).map(me=>A.current[me]).filter(me=>me.parentId===ce).sort((me,ze)=>me.index-ze.index).map(me=>me.id),te=ce=>{let me=le(ce);return m||(me=me.filter(ze=>!we(ze))),me},be=ce=>{if(ee(ce)&&te(ce).length>0)return te(ce)[0];let me=A.current[ce];for(;me!=null;){const ze=te(me.parentId),gt=ze[ze.indexOf(me.id)+1];if(gt)return gt;me=A.current[me.parentId]}return null},_e=ce=>{const me=A.current[ce],ze=te(me.parentId),gt=ze.indexOf(ce);if(gt===0)return me.parentId;let bt=ze[gt-1];for(;ee(bt)&&te(bt).length>0;)bt=te(bt).pop();return bt},Se=()=>{let ce=te(null).pop();for(;ee(ce);)ce=te(ce).pop();return ce},Fe=()=>te(null)[0],Re=ce=>A.current[ce].parentId,Ae=(ce,me)=>{if(ce===me)return[ce,me];const ze=A.current[ce],gt=A.current[me];if(ze.parentId===gt.id||gt.parentId===ze.id)return gt.parentId===ze.id?[ze.id,gt.id]:[gt.id,ze.id];const bt=[ze.id],Be=[gt.id];let ct=ze.parentId,ve=gt.parentId,ge=Be.indexOf(ct)!==-1,nt=bt.indexOf(ve)!==-1,ft=!0,Vt=!0;for(;!nt&&!ge;)ft&&(bt.push(ct),ge=Be.indexOf(ct)!==-1,ft=ct!==null,!ge&&ft&&(ct=A.current[ct].parentId)),Vt&&!ge&&(Be.push(ve),nt=bt.indexOf(ve)!==-1,Vt=ve!==null,!nt&&Vt&&(ve=A.current[ve].parentId));const un=ge?ct:ve,wn=le(un),Fr=bt[bt.indexOf(un)-1],Ga=Be[Be.indexOf(un)-1];return wn.indexOf(Fr)<wn.indexOf(Ga)?[ce,me]:[me,ce]},Oe=(ce,me)=>{const[ze,gt]=Ae(ce,me),bt=[ze];let Be=ze;for(;Be!==gt;)Be=be(Be),bt.push(Be);return bt},Ze=(ce,me)=>{me&&(W(me),E&&E(ce,me))},yt=(ce,me)=>Ze(ce,be(me)),tt=(ce,me)=>Ze(ce,_e(me)),et=ce=>Ze(ce,Fe()),Pt=ce=>Ze(ce,Se()),mt=(ce,me,ze)=>{let gt,bt;const Be=ze.toLowerCase(),ct=[],ve=[];Object.keys(z.current).forEach(ge=>{const nt=z.current[ge],ft=A.current[ge],Vt=ft.parentId?ee(ft.parentId):!0,un=m?!1:we(ge);Vt&&!un&&(ct.push(ge),ve.push(nt))}),gt=ct.indexOf(me)+1,gt>=ct.length&&(gt=0),bt=L_(ve,gt,Be),bt===-1&&(bt=L_(ve,0,Be)),bt>-1&&Ze(ce,ct[bt])},lt=(ce,me=B)=>{let ze;G.indexOf(me)!==-1?ze=G.filter(gt=>gt!==me):ze=[me].concat(G),_&&_(ce,ze),q(ze)},It=(ce,me)=>{const ze=A.current[me],bt=le(ze.parentId).filter(ct=>se(ct)&&!ee(ct)),Be=G.concat(bt);bt.length>0&&(q(Be),_&&_(ce,Be))},Xe=u.useRef(null),Te=u.useRef(!1),ne=u.useRef([]),ke=(ce,me)=>{let ze=X.slice();const{start:gt,next:bt,current:Be}=me;!bt||!Be||(ne.current.indexOf(Be)===-1&&(ne.current=[]),Te.current?ne.current.indexOf(bt)!==-1?(ze=ze.filter(ct=>ct===gt||ct!==Be),ne.current=ne.current.filter(ct=>ct===gt||ct!==Be)):(ze.push(bt),ne.current.push(bt)):(ze.push(bt),ne.current.push(Be,bt)),I&&I(ce,ze),ie(ze))},Ee=(ce,me)=>{let ze=X.slice();const{start:gt,end:bt}=me;Te.current&&(ze=ze.filter(ve=>ne.current.indexOf(ve)===-1));let Be=Oe(gt,bt);Be=Be.filter(ve=>!we(ve)),ne.current=Be;let ct=ze.concat(Be);ct=ct.filter((ve,ge)=>ct.indexOf(ve)===ge),I&&I(ce,ct),ie(ct)},$e=(ce,me)=>{let ze;X.indexOf(me)!==-1?ze=X.filter(gt=>gt!==me):ze=[me].concat(X),I&&I(ce,ze),ie(ze)},Ge=(ce,me)=>{const ze=x?[me]:me;I&&I(ce,ze),ie(ze)},Ct=(ce,me,ze=!1)=>me?(ze?$e(ce,me):Ge(ce,me),Xe.current=me,Te.current=!1,ne.current=[],!0):!1,jt=(ce,me,ze=!1)=>{const{start:gt=Xe.current,end:bt,current:Be}=me;ze?ke(ce,{start:gt,next:bt,current:Be}):gt!=null&&bt!=null&&Ee(ce,{start:gt,end:bt}),Te.current=!0},Ht=(ce,me)=>{Xe.current||(Xe.current=me);const ze=Te.current?Xe.current:me;jt(ce,{start:ze,end:Fe()})},Jn=(ce,me)=>{Xe.current||(Xe.current=me);const ze=Te.current?Xe.current:me;jt(ce,{start:ze,end:Se()})},hn=(ce,me)=>{we(be(me))||jt(ce,{end:be(me),current:me},!0)},Kn=(ce,me)=>{we(_e(me))||jt(ce,{end:_e(me),current:me},!0)},Pr=ce=>{jt(ce,{start:Fe(),end:Se()})},mn=u.useCallback(ce=>{const{id:me,index:ze,parentId:gt,expandable:bt,idAttribute:Be,disabled:ct}=ce;A.current[me]={id:me,index:ze,parentId:gt,expandable:bt,idAttribute:Be,disabled:ct}},[]),sn=u.useCallback(ce=>{const me=S({},A.current);delete me[ce],A.current=me,W(ze=>ze===ce&&L.current===bn(L.current).activeElement?le(null)[0]:ze)},[]),en=u.useCallback((ce,me)=>{z.current[ce]=me},[]),So=u.useCallback(ce=>{const me=S({},z.current);delete me[ce],z.current=me},[]),Ei=ce=>(se(B)&&(ee(B)?yt(ce,B):we(B)||lt(ce)),!0),Ar=ce=>{if(ee(B)&&!we(B))return lt(ce,B),!0;const me=Re(B);return me?(Ze(ce,me),!0):!1},ei=ce=>{let me=!1;const ze=ce.key;if(ce.altKey||ce.currentTarget!==ce.target||!B)return;const gt=ce.ctrlKey||ce.metaKey;switch(ze){case" ":!v&&!we(B)&&(x&&ce.shiftKey?(jt(ce,{end:B}),me=!0):x?me=Ct(ce,B,!0):me=Ct(ce,B)),ce.stopPropagation();break;case"Enter":we(B)||(se(B)?(lt(ce),me=!0):x?me=Ct(ce,B,!0):me=Ct(ce,B)),ce.stopPropagation();break;case"ArrowDown":x&&ce.shiftKey&&!v&&hn(ce,B),yt(ce,B),me=!0;break;case"ArrowUp":x&&ce.shiftKey&&!v&&Kn(ce,B),tt(ce,B),me=!0;break;case"ArrowRight":O?me=Ar(ce):me=Ei(ce);break;case"ArrowLeft":O?me=Ei(ce):me=Ar(ce);break;case"Home":x&>&&ce.shiftKey&&!v&&!we(B)&&Ht(ce,B),et(ce),me=!0;break;case"End":x&>&&ce.shiftKey&&!v&&!we(B)&&Jn(ce,B),Pt(ce),me=!0;break;default:ze==="*"?(It(ce,B),me=!0):x&>&&ze.toLowerCase()==="a"&&!v?(Pr(ce),me=!0):!gt&&!ce.shiftKey&&Xoe(ze)&&(mt(ce,B,ze),me=!0)}me&&(ce.preventDefault(),ce.stopPropagation()),w&&w(ce)},Eo=ce=>{if(ce.target===ce.currentTarget){const me=Array.isArray(X)?X[0]:X;Ze(ce,me||te(null)[0])}P&&P(ce)},Lt=ce=>{W(null),C&&C(ce)},Nn=A.current[B]?A.current[B].idAttribute:null;return R.jsx(tx.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:f,defaultParentIcon:p,defaultEndIcon:a},focus:Ze,toggleExpansion:lt,isExpanded:ee,isExpandable:se,isFocused:de,isSelected:ae,isDisabled:we,selectNode:v?A_:Ct,selectRange:v?A_:jt,multiSelect:x,disabledItemsFocusable:m,mapFirstChar:en,unMapFirstChar:So,registerNode:mn,unregisterNode:sn,treeId:j},children:R.jsx(pL,{children:R.jsx(Yoe,S({role:"tree",id:j,"aria-activedescendant":Nn,"aria-multiselectable":x,className:he(V.root,i),ref:D,tabIndex:0,onKeyDown:ei,onFocus:Eo,onBlur:Lt,ownerState:N},$,{children:o}))})})}),mL=Zoe;function zo(h){var m=h,{value:e,onChange:t,min:n,max:r,required:o,getApi:i,typing:s,start:a,end:c,onTyping:f}=m,p=cn(m,["value","onChange","min","max","required","getApi","typing","start","end","onTyping"]);const v=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[b,g]=u.useState(v),x=u.useRef(v);return u.useEffect(()=>{g(v),x.current=v},[v]),u.createElement(tp,Ut(Le({fullWidth:!0,InputLabelProps:b||p.placeholder?{shrink:!0}:void 0},p),{sx:p.label?p.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},p.sx),value:b,onChange(P){const w=P.target.value;(f==null?void 0:f(w))!==!1&&(g(w),(s||document.activeElement!==P.target)&&C(P,w))},onKeyDown(P){var w;(w=p.onKeyDown)==null||w.call(p,P),P.key==="Enter"&&C(P)},onBlur(P){var w;(w=p.onBlur)==null||w.call(p,P),C(P)},InputProps:Le({startAdornment:a&&u.createElement(zm,{position:"start"},a),endAdornment:c&&u.createElement(zm,{position:"end"},c)},p.InputProps)}));function C(P,w=b){const E=w.trim();E!==x.current&&(x.current=E,t(E,{was:e,event:P,cancel(){g(v)}}))}}function Mu(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=cn(a,["value","onChange","getApi","options","sx"]);return u.createElement(tp,Ut(Le(Le({},gL(e)),s),{onChange(c){try{let f=c.target.value;f=JSON.parse(f),n(f,{was:t,event:c})}catch(f){}}}))}function nx(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=cn(a,["value","onChange","getApi","options","sx"]);return u.createElement(tp,Ut(Le(Le({},gL(Ut(Le({},e),{value:void 0}))),s),{SelectProps:{multiple:!0},value:Array.isArray(t)?t.map(c=>JSON.stringify(c)):[],onChange(c){try{let f=c.target.value;f=Array.isArray(f)?f.map(p=>JSON.parse(p)):[],n(f,{was:t,event:c})}catch(f){}}}))}function gL(e){const{options:t,disabled:n}=e,r=Array.isArray(t)?t.map(s=>typeof s=="string"||typeof s=="number"?{value:s,label:String(s)}:s):Object.entries(t).map(([s,a])=>({value:a,label:s})),o=JSON.stringify(e.value),i=r.find(s=>JSON.stringify(s.value)===o);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:i?o:"",disabled:!(r!=null&&r.length)||n,children:r.map((s,a)=>u.createElement(ur,{key:a,value:JSON.stringify(s==null?void 0:s.value),children:s==null?void 0:s.label}))}}function j0(r){var o=r,{value:e,empty:t="-"}=o,n=cn(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(zo,Ut(Le({},n),{value:e,disabled:!0}))}function Js(f){var p=f,{value:e,onChange:t,getApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=cn(p,["value","onChange","getApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>i?"too high":!1}}),u.createElement(zo,Le({type:"number",value:e==null?"":String(e),onChange(h,b){var g=b,{was:m}=g,v=cn(g,["was"]);t(h?Number(h):null,Ut(Le({},v),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:Qt.merge({sx:{"& input":{appearance:"textfield"}}},a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(zm,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},a)})},c))}function gu(c){var f=c,{label:e="",value:t,onChange:n,getApi:r,helperText:o,error:i,type:s}=f,a=cn(f,["label","value","onChange","getApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const v=u.createElement(HO,Ut(Le({checked:h},a),{onChange(b){n(b.target.checked,{event:b,was:t})}}));return u.createElement(it,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(SO,{label:e,control:v,labelPlacement:"end"}),o&&u.createElement(lv,{error:i},o))}var rx={},eie=st;Object.defineProperty(rx,"__esModule",{value:!0});var bv=rx.default=void 0,tie=eie(dt()),nie=at(),rie=(0,tie.default)((0,nie.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");bv=rx.default=rie;var ox={},oie=st;Object.defineProperty(ox,"__esModule",{value:!0});var Ci=ox.default=void 0,iie=oie(dt()),sie=at(),lie=(0,iie.default)((0,sie.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");Ci=ox.default=lie;function aie({value:e,onChange:t,keyLabel:n="key",valueLabel:r="value",keyWidth:o=5,valueWidth:i=5,actionsWidth:s=1}){const a=u.useRef(),c=u.useRef(),f={padding:".5em 1em",fontWeight:"bold"};return u.createElement(Vn,{container:!0},u.createElement(Vn,{item:!0,xs:o,sx:f},n),u.createElement(Vn,{item:!0,xs:i,sx:f},r),u.createElement(Vn,{item:!0,xs:s},u.createElement(tr,{onClick(){a.current.focus()}},u.createElement(bv))),Object.entries(e||{}).map(([p,h])=>[u.createElement(Vn,{key:"k",item:!0,xs:o},u.createElement(zo,{value:p,onChange(m,g){var x=g,{was:v}=x,b=cn(x,["was"]);const C=Le({},e);m&&(C[m]=v!==void 0?C[v]:""),v!==void 0&&delete C[v],t(C,Le({was:e},b))}})),u.createElement(Vn,{key:"v",item:!0,xs:i},u.createElement(zo,{inputRef(m){c.current===p&&(m==null||m.focus(),c.current=null)},value:h,onChange(m,g){var x=g,{was:v}=x,b=cn(x,["was"]);const C=Le({},e);m?C[p]=m:delete C[p],t(C,Le({was:e},b))}})),u.createElement(Vn,{key:"actions",item:!0,xs:s,sx:{display:"flex"}},u.createElement(tr,{onClick(m){const v=Le({},e);delete v[p],t(v,{was:e,event:m})}},u.createElement(Ci)))]),u.createElement(Vn,{item:!0,xs:o},u.createElement(zo,{inputRef:a,value:"",onChange(p,h){if(p){if(h.cancel(),e&&p in e)return alert(n+" entry already present");c.current=p,t(Ut(Le({},e),{[p]:""}),Ut(Le({},h),{was:e}))}}})),u.createElement(Vn,{item:!0,xs:i},u.createElement(zo,{value:"",onChange(){},disabled:!0})))}function rp(b){var g=b,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:i,addToBar:s=[],barSx:a,formRef:c,onError:f,saveOnEnter:p,gridProps:h,formProps:m}=g,v=cn(g,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const x=u.useRef(!1);u.useEffect(()=>(x.current=!0,()=>{x.current=!1}),[]);const[C,P]=u.useState({}),[w,E]=u.useState({}),I=typeof o=="function"?{onClick:o}:o,[_,k]=u.useState(0),$=u.useRef(!1),T=u.useRef("");u.useEffect(()=>void j(),[_]);const O={};return u.createElement("form",Ut(Le({ref:c&&(L=>c.current=L||void 0)},m),{onSubmit(L){L.preventDefault()},onKeyDown(L){I&&!I.disabled&&(L.ctrlKey||L.metaKey)&&L.key==="Enter"&&N()}}),u.createElement(it,Le({display:"flex",flexDirection:"column",gap:3},v),u.createElement(Vn,Le({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((L,D)=>{if(!L)return null;if(u.isValidElement(L))return u.createElement(Vn,{key:D,item:!0,xs:12},L);const ie=L,{k:B,fromField:W=vs.identity,toField:A=vs.identity,getError:z,error:G}=ie,q=cn(ie,["k","fromField","toField","getError","error"]);let X=C[B]||w[B];if(X===!0&&(X="Not valid"),B){const se=L.hasOwnProperty("value")?L.value:t==null?void 0:t[B],ae=Le(Le({},L),q);Object.assign(q,{value:A(se),error:Boolean(X||G)||void 0,getApi(we){O[B]=we},onBlur(){V(B)},onKeyDown(we){p&&we.key==="Enter"&&N()},onChange(we){try{if(we=W(we),E(de=>Ut(Le({},de),{[B]:!1})),vs.isEqual(we,se))return;n(we,B),V(B)}catch(de){E(le=>Ut(Le({},le),{[B]:(de==null?void 0:de.message)||String(de)||!0}))}}}),X&&(q.helperText=q.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},X),u.createElement("br"),q.helperText):X),q.label===void 0&&(q.label=vL(B)),vs.defaults(q,r==null?void 0:r(ae))}{const ee=q,{xs:se=12,sm:ae,md:we,lg:de,xl:le,comp:te=zo,before:be,after:_e,fromField:Se,toField:Fe}=ee,Re=cn(ee,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return u.createElement(Vn,{key:B||D,item:!0,xs:se,sm:ae,md:we,lg:de,xl:le},be,u.isValidElement(te)?te:u.createElement(te,Re),_e)}})),I&&u.createElement(it,{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(_oe,Ut(Le({variant:"contained",startIcon:u.createElement(dL),children:"Save",loading:_!==0},I),{onClick:N})),...s)));function N(){$.current=!0,V()}function V(L=""){_===0&&(T.current=L,setTimeout(()=>k(D=>D===0?1:D)))}function j(){return ot(this,null,function*(){var B,W;if(_===0)return;if(_===1)return k(2);const L="Please review errors",D={};for(const A of e){if(!A||u.isValidElement(A)||!A.k)continue;const{k:z}=A,G=t==null?void 0:t[z],q=(yield(B=O[z])==null?void 0:B.getError())||(yield(W=A.getError)==null?void 0:W.call(A,G,{values:t,fields:e}))||w[z];if(D[z]=q||!1,!$.current&&z===T.current)break;if(!x.current)return}P(D);try{if(!$.current)return;if(Object.values(D).some(Boolean))return yield f==null?void 0:f(L);const A=I&&I.onClick;A&&(yield A())}catch(A){yield f==null?void 0:f(A)}finally{$.current=!1,x.current&&k(0)}})}}function vL(e){return vs.capitalize(e.replace(/_/g," "))}const cie="/~/api/";function uie(e,t,n={}){const r=n.noModal?void 0:xie(),o=fie();o&&(t=Le({csrf:o},t));const i=new AbortController;return Object.assign(fetch(cie+e,{method:"POST",headers:{"content-type":"application/json"},signal:i.signal,body:t&&JSON.stringify(t)}).then(s=>ot(this,null,function*(){if(r==null||r(),s.ok)return s.json();const a=(yield s.text())||`Failed API ${e}: ${s.statusText}`;throw console.warn(a,t?" "+JSON.stringify(t):""),new die(s.status,a)}),s=>{var a;throw r==null||r(),(a=s==null?void 0:s.message)!=null&&a.includes("fetch")?Error("Network error"):s}),{abort(){i.abort("cancel")}})}let die=class extends Error{constructor(t,n){super(n),this.code=t}};function fie(){return cL("csrf")}const pie=_u({embedded:"",langs:[]});function hie(e,t,n){const r=typeof e=="string"?e:n!=null?n:n=e[0];typeof t=="string"&&!n&&(n=t,t=null);let o,i="";const{langs:s,embedded:a}=pie;return o||(o=n||r,i=a),Array.from(F_(o)).map(([f,p])=>{if(!p)return f;const[h,m,v]=f.split(","),b=t[h];return m==="plural"?c(b,v):b||b===0?b:""}).join("");function c(f,p){const h=new Intl.PluralRules(i||a).select(Number(f));let m="",v=!1,b=!1;for(const[x,C]of F_(p)){if(v)return g(x);if(b&&(m=x,b=!1),C)continue;const P=x.trim().split(/\s+/);v=P.some(w=>w[0]==="="&&f===Number(w.slice(1))||w===h),b=!v&&P.includes("other")}return g(m);function g(x){return x.replace("#",String(f))}}}function*F_(e){let t=0;for(;;){const n=e.indexOf("{",t);if(n<0)break;yield[e.slice(t,n),!1];let r=1;for(t=n+1;r&&t<e.length;)e[t]==="{"?r++:e[t]==="}"&&r--,t++;if(r)return console.debug("tokenizer: unclosed");yield[e.slice(n+1,t-1),!0]}yield[e.slice(t),!1]}function ix(e,t,n,r){return aL(e,o=>{o.some(i=>i[1][0]===t)&&n(e[t])},r)}const Da=_u({can_delete:void 0,can_upload:void 0,iconsClass:"",username:"",list:[],filteredList:void 0,loading:!1,listReloader:0,patternFilter:"",showFilter:!1,selected:{},remoteSearch:"",sortBy:"name",invertOrder:!1,foldersFirst:!0,sortNumerics:!1,theme:""});function mie(){return fv(Da)}const yL="hfs_settings",sx=["sortBy","sortNumerics","invertOrder","foldersFirst","theme"];gie();for(const e of sx)ix(Da,e,vie);setTimeout(()=>uie("config",{},{noModal:!0}).then(e=>Da.serverConfig=e));function gie(){const e=localStorage.getItem(yL);if(!e)return;let t;try{t=JSON.parse(e)}catch(n){console.error("invalid settings stored",e);return}for(const n of sx){const r=t[n];r!==void 0&&(Da[n]=r)}}function vie(){localStorage.setItem(yL,JSON.stringify(Qt.pick(Da,sx)))}const yie={login:"user:👤",user:"user:👤",filter:":✂",search:":🔍",search_off:"cancel:❌",stop:":⏹️",settings:"cog:⚙",archive:"file-archive:📦",logout:":🚪",home:":🏠",parent:"level-up mirror:⬆",folder:":📂",file:"doc:📄",spinner:"spin6 spinner:🎲",password:"key:🗝️",download:":📥",invert:"retweet:🙃",admin:"crown:👑",check:":✔️"};document.fonts.ready.then(()=>ot(void 0,null,function*(){const e='9px "fontello"';yield document.fonts.load(e),document.fonts.check(e)&&(Da.iconsClass=" ")}));const bie=u.memo(o=>{var i=o,{name:e,alt:t,className:n=""}=i,r=cn(i,["name","alt","className"]);const[s,a]=(yie[e]||e).split(":"),{iconsClass:c}=mie();return n+=" icon "+(c?"fa-"+(s||e):"emoji"),u.createElement("span",Ut(Le({},r),{"aria-label":t,role:"img",className:n}),c?null:a||"#")});function wie(e,t){return u.createElement(bie,Le({name:e},t))}function Cie(){return window.innerWidth<800}let H0=!1;function xie(){return H0?()=>{}:(H0=!0,wi({closable:!1,noFrame:!0,Content:Eie,reserveClosing:!0,className:"working",onClose(){H0=!1}}))}const Sie=window.HFS={};Sie.onEvent=(e,t)=>{const n={h:u.createElement,React:fo,state:Da,t:hie};document.addEventListener("hfs."+e,r=>{const{params:o,output:i}=r.detail,s=t(o,n,i);s!==void 0&&Array.isArray(i)&&i.push(s)})};function Eie(){return wie("spinner",{className:"spinner"})}function lx(i){var s=i,{gap:e=".8em",vert:t=!1,children:n=null,props:r={}}=s,o=cn(s,["gap","vert","children","props"]);return u.createElement("div",Le({style:Le({display:"flex",gap:e,flexDirection:t?"column":void 0},o)},r),n)}function bL(){return _O("(prefers-color-scheme: dark)")}const Pie={};function kie(){const e=bL()?null:Pie;return u.useMemo(()=>xC({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{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])}rm.Container=function(t){const n=u.useRef(),{width:r,height:o}=Ire(),i=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const p=setTimeout(()=>{const h=n.current;if(!h||(h.focus(),i))return;const m=h.querySelector("[autofocus]")||h.querySelector("input,textarea");m&&m instanceof HTMLElement&&m.focus()});return()=>clearTimeout(p)},[n.current]),t=Le(Le({},rm),t);const f=t.dialogProps||{},{sx:s,root:a}=f,c=cn(f,["sx","root"]);return rm.dialogProps={fullScreen:i,sx:{overflow:"initial"}},u.createElement(BX,Ut(Le(Le({open:!0,maxWidth:"lg",fullScreen:i},c),a),{onClose:()=>yi()}),t.title&&u.createElement(ZX,{sx:Le({position:"sticky",top:0,py:1,pr:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},ax())},u.createElement(it,{flex:1,minWidth:40},kb(t.title)),u.createElement(Fn,{icon:np,tooltip:"close",onClick:()=>yi()})),u.createElement(qX,{ref:n,sx:Le({p:t.padding?2:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},s)},u.createElement(t.Content)))};function ax(){return bL()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const wL={error:dv,warning:XC,info:du,success:eL};function dr(e,t){return ot(this,null,function*(){return new Promise(n=>{const r=typeof t=="string"?{type:t}:t!=null?t:{};let a=r,{type:o="info"}=a,i=cn(a,["type"]);e instanceof Error&&(e=e.message||String(e),o="error");const s=wi(Ut(Le({className:"dialog-alert-"+o,icon:"!",onClose:n},i),{Content(){var c;return u.createElement(it,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(tr,{onClick(){s()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(np)),(c=r.icon)!=null?c:u.createElement(wL[o],{color:o,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(it,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}))})})}function ws(n){return ot(this,arguments,function*(e,{href:t}={}){return new Promise(o=>wi({className:"dialog-confirm",icon:"?",onClose:o,Content:r}));function r(){return u.createElement(u.Fragment,{},u.createElement(it,{mb:2},e),u.createElement(lx,{},u.createElement("a",{href:t,onClick:()=>yi(!0)},u.createElement(cr,{variant:"contained"},"Confirm")),u.createElement(cr,{onClick:()=>yi(!1)},"Don't")))}})}function $f(i){return ot(this,null,function*(){var s=i,{fullScreen:e,title:t,onChange:n,before:r}=s,o=cn(s,["fullScreen","title","onChange","before"]);return new Promise(c=>wi({className:"dialog-confirm",icon:"?",onClose:c,title:t,Content:a}));function a(){const[c,f]=u.useState(o.values||{});return u.createElement(u.Fragment,{},r,u.createElement(rp,Ut(Le({},o),{values:c,set(p,h){const m=Ut(Le({},c),{[h]:p});f(m),n==null||n(m,{setValues:f})},save:Ut(Le({},o.save),{onClick(){yi(c)}})})))}})}function Iie(n){return ot(this,arguments,function*(e,t={}){return $f(Ut(Le({},t),{fields:[Le({k:"text",label:null,autoFocus:!0,before:u.createElement(it,{mb:2},e)},t.field)],save:Le({children:"Continue",startIcon:u.createElement(tL)},t.save),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(cr,{onClick:yi},"Cancel"),...t.addToBar||[]]})).then(r=>r==null?void 0:r.text)})}function _ie(){return wi({Content:ep,closable:!1})}function gi(e,t="info"){const r=wi({Content:o,dialogProps:{PaperProps:{sx:{transition:`opacity ${3e3}ms ease-in`},ref(i){i&&(i.style.opacity="0")}}}});setTimeout(r,3e3);function o(){return u.createElement(it,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(wL[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}function CL(){return u.createElement(ep)}function xL(e){return e&&/^[a-zA-Z]:$/.test(e)}function cx(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>cx(r,t[n]))}function ux(e){return e?{outline:"2px solid"}:void 0}function Fn(f){var p=f,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=cn(p,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=co(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let v=u.createElement(tr,Ut(Le({disabled:Boolean(h||o||r)},c),{onClick(){return ot(this,arguments,function*(){if(a&&!(yield ws(a)))return;const g=n==null?void 0:n.apply(this,arguments);g&&g instanceof Promise&&(m(!0),g.catch(dr).finally(()=>m(!1)))})}}),u.createElement(t));return(o||h)&&o!==!1&&(v=u.createElement(it,{position:"relative",display:"inline-block"},u.createElement(ep,Ut(Le({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:4,left:4,width:32,height:32}})),v)),e&&(v=u.createElement(uv,Ut(Le({title:e},s),{children:u.createElement("span",{},v)}))),v}function lo(e,t,n){return u.createElement(uv,{title:t,children:u.createElement(e,{sx:n})})}function dx(e){return u.createElement(_f,Le({component:ZT},e))}function fx(e){return u.createElement(it,Le({display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e))}function $ie(e,t){return ot(this,null,function*(){const r=(yield Ot("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield Ot("set_config",{values:{[e]:o}}))})}function Mie(e){return Object.keys(e)}function Tie(e){let t=e.lastIndexOf("/");return t<0&&(t=e.lastIndexOf("\\")),t<0?e:e.slice(t)}function Rie(...e){const t=poe(e,r=>{var o;return(o=/\\|\//.exec("\\a/b"))==null?void 0:o[0]}),n=Ea(e.map(r=>r==null?"":String(r)));return n.map((r,o)=>o===n.length-1||r.endsWith("\\")||r.endsWith("/")?r:r+t).join("")}function Oie(e,t){var n;return(n=t[e])!=null?n:e}function vu(e){return _O(t=>t.breakpoints.up(e),{noSsr:!0})}function SL(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function Lie(e){return e==null?[]:Array.isArray(e)?e:[e]}const EL="admin_state",En=_u(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[EL]||null))),PL=["onlinePluginsColumns"],Aie=Qt.debounce(()=>localStorage[EL]=JSON.stringify(Qt.pick(En,PL)),500,{maxWait:1e3});for(const e of PL)ix(En,e,Aie);function Bl(){return fv(En)}var px={},Fie=st;Object.defineProperty(px,"__esModule",{value:!0});var op=px.default=void 0,Nie=Fie(dt()),Die=at(),Bie=(0,Nie.default)((0,Die.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");op=px.default=Bie;function di(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 yu(e){return!!e&&!!e[vo]}function Pa(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===Kie}(e)||Array.isArray(e)||!!e[U_]||!!e.constructor[U_]||hx(e)||mx(e))}function Mf(e,t,n){n===void 0&&(n=!1),Tu(e)===0?(n?Object.keys:wx)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Tu(e){var t=e[vo];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:hx(e)?2:mx(e)?3:0}function Mb(e,t){return Tu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zie(e,t){return Tu(e)===2?e.get(t):e[t]}function kL(e,t,n){var r=Tu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function jie(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function hx(e){return Wie&&e instanceof Map}function mx(e){return Gie&&e instanceof Set}function ea(e){return e.o||e.t}function gx(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=qie(e);delete t[vo];for(var n=wx(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 vx(e,t){return t===void 0&&(t=!1),yx(e)||yu(e)||!Pa(e)||(Tu(e)>1&&(e.set=e.add=e.clear=e.delete=Hie),Object.freeze(e),t&&Mf(e,function(n,r){return vx(r,!0)},!0)),e}function Hie(){di(2)}function yx(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Gi(e){var t=Yie[e];return t||di(18,e),t}function N_(){return Tf}function V0(e,t){t&&(Gi("Patches"),e.u=[],e.s=[],e.v=t)}function Wm(e){Tb(e),e.p.forEach(Vie),e.p=null}function Tb(e){e===Tf&&(Tf=e.l)}function D_(e){return Tf={p:[],l:Tf,h:e,m:!0,_:0}}function Vie(e){var t=e[vo];t.i===0||t.i===1?t.j():t.O=!0}function U0(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Gi("ES5").S(t,e,r),r?(n[vo].P&&(Wm(t),di(4)),Pa(e)&&(e=Gm(t,e),t.l||Km(t,e)),t.u&&Gi("Patches").M(n[vo].t,e,t.u,t.s)):e=Gm(t,n,[]),Wm(t),t.u&&t.v(t.u,t.s),e!==IL?e:void 0}function Gm(e,t,n){if(yx(t))return t;var r=t[vo];if(!r)return Mf(t,function(i,s){return B_(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Km(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=gx(r.k):r.o;Mf(r.i===3?new Set(o):o,function(i,s){return B_(e,r,o,i,s,n)}),Km(e,o,!1),n&&e.u&&Gi("Patches").R(r,n,e.u,e.s)}return r.o}function B_(e,t,n,r,o,i){if(yu(o)){var s=Gm(e,o,i&&t&&t.i!==3&&!Mb(t.D,r)?i.concat(r):void 0);if(kL(n,r,s),!yu(s))return;e.m=!1}if(Pa(o)&&!yx(o)){if(!e.h.F&&e._<1)return;Gm(e,o),t&&t.A.l||Km(e,o)}}function Km(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&vx(t,n)}function W0(e,t){var n=e[vo];return(n?ea(n):e)[t]}function z_(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 Rb(e){e.P||(e.P=!0,e.l&&Rb(e.l))}function G0(e){e.o||(e.o=gx(e.t))}function Ob(e,t,n){var r=hx(t)?Gi("MapSet").N(t,n):mx(t)?Gi("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:N_(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=a,f=Lb;s&&(c=[a],f=_d);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):Gi("ES5").J(t,n);return(n?n.A:N_()).p.push(r),r}function Uie(e){return yu(e)||di(22,e),function t(n){if(!Pa(n))return n;var r,o=n[vo],i=Tu(n);if(o){if(!o.P&&(o.i<4||!Gi("ES5").K(o)))return o.t;o.I=!0,r=j_(n,i),o.I=!1}else r=j_(n,i);return Mf(r,function(s,a){o&&zie(o.t,s)===a||kL(r,s,t(a))}),i===3?new Set(r):r}(e)}function j_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return gx(e)}var H_,Tf,bx=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Wie=typeof Map!="undefined",Gie=typeof Set!="undefined",V_=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",IL=bx?Symbol.for("immer-nothing"):((H_={})["immer-nothing"]=!0,H_),U_=bx?Symbol.for("immer-draftable"):"__$immer_draftable",vo=bx?Symbol.for("immer-state"):"__$immer_state",Kie=""+Object.prototype.constructor,wx=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,qie=Object.getOwnPropertyDescriptors||function(e){var t={};return wx(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Yie={},Lb={get:function(e,t){if(t===vo)return e;var n=ea(e);if(!Mb(n,t))return function(o,i,s){var a,c=z_(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||!Pa(r)?r:r===W0(e.t,t)?(G0(e),e.o[t]=Ob(e.A.h,r,e)):r},has:function(e,t){return t in ea(e)},ownKeys:function(e){return Reflect.ownKeys(ea(e))},set:function(e,t,n){var r=z_(ea(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=W0(ea(e),t),i=o==null?void 0:o[vo];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(jie(n,o)&&(n!==void 0||Mb(e.t,t)))return!0;G0(e),Rb(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return W0(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,G0(e),Rb(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ea(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){di(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){di(12)}},_d={};Mf(Lb,function(e,t){_d[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),_d.deleteProperty=function(e,t){return _d.set.call(this,e,t,void 0)},_d.set=function(e,t,n){return Lb.set.call(this,e[0],t,n,e[0])};var Xie=function(){function e(n){var r=this;this.g=V_,this.F=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var a=i;i=o;var c=r;return function(g){var x=this;g===void 0&&(g=a);for(var C=arguments.length,P=Array(C>1?C-1:0),w=1;w<C;w++)P[w-1]=arguments[w];return c.produce(g,function(E){var I;return(I=i).call.apply(I,[x,E].concat(P))})}}var f;if(typeof i!="function"&&di(6),s!==void 0&&typeof s!="function"&&di(7),Pa(o)){var p=D_(r),h=Ob(r,o,void 0),m=!0;try{f=i(h),m=!1}finally{m?Wm(p):Tb(p)}return typeof Promise!="undefined"&&f instanceof Promise?f.then(function(g){return V0(p,s),U0(g,p)},function(g){throw Wm(p),g}):(V0(p,s),U0(f,p))}if(!o||typeof o!="object"){if((f=i(o))===void 0&&(f=o),f===IL&&(f=void 0),r.F&&vx(f,!0),s){var v=[],b=[];Gi("Patches").M(o,f,v,b),s(v,b)}return f}di(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(f){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(f,function(v){return o.apply(void 0,[v].concat(h))})};var s,a,c=r.produce(o,i,function(f,p){s=f,a=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(f){return[f,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){Pa(n)||di(8),yu(n)&&(n=Uie(n));var r=D_(this),o=Ob(this,n,void 0);return o[vo].C=!0,Tb(r),o},t.finishDraft=function(n,r){var o=n&&n[vo],i=o.A;return V0(i,r),U0(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!V_&&di(20),this.g=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=Gi("Patches").$;return yu(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),yo=new Xie,Qie=yo.produce;yo.produceWithPatches.bind(yo);yo.setAutoFreeze.bind(yo);yo.setUseProxies.bind(yo);yo.applyPatches.bind(yo);yo.createDraft.bind(yo);yo.finishDraft.bind(yo);const Jie=Qie;function Ki(...e){const[t,n,r]=ip(...e),o=e[0],i=t===void 0,s=u.useMemo(()=>o?n?u.createElement(Yo,{severity:"error"},String(n),u.createElement(Fn,{icon:op,onClick:r,sx:{m:"-8px 0 -8px 16px"}})):i?CL():null:null,[n,o,i,r]);return{data:t,error:n,reload:r,loading:i,element:s}}const _L="/~/api/",Zie={get_status:20};function Ot(e,t,{timeout:n=void 0}={}){var i,s;const r=ML();r&&(t=Le({csrf:r},t));const o=new AbortController;return n!==!1&&setTimeout(()=>o.abort("timeout"),1e3*((s=(i=Zie[e])!=null?i:n)!=null?s:10)),Object.assign(fetch(_L+e,{method:"POST",headers:{"content-type":"application/json"},signal:o.signal,body:t&&JSON.stringify(t)}).then(a=>ot(this,null,function*(){if(a.ok)return a.json().then(f=>(console.debug("API",e,t,">>",f),f));let c=(yield a.text())||"Failed API "+e;throw console.warn(c+(t?" "+JSON.stringify(t):"")),a.status===401&&(En.loginRequired=foe(()=>{var f;return(f=JSON.parse(c))==null?void 0:f.any})!==!1||403,c="Unauthorized"),new ese(a.status,c)}),a=>{var c;throw(c=a==null?void 0:a.message)!=null&&c.includes("fetch")?Error("Network error"):a}),{abort(){o.abort("cancel")}})}class ese extends Error{constructor(t,n){super(n),this.code=t}}function ip(e,t){const[n,r]=co(void 0),[o,i]=co(void 0),[s,a]=co(0),c=u.useRef();u.useEffect(()=>{var v;if((v=c.current)==null||v.abort(),r(void 0),i(void 0),!e)return;let p=!1;const h=Ot(e,t),m=h.then(b=>p||r(b),b=>p||i(b)).finally(()=>c.current=void 0);c.current=Object.assign(m,{abort(){p=!0,h.abort()}})},[e,JSON.stringify(t),s]);const f=u.useCallback(()=>c.current||a(p=>p+1),[a]);return[n,o,f]}function $L(e,t,n){console.debug("API EVENTS",e,t);const r=ML(),o={csrf:r&&JSON.stringify(r)};for(const s in t){const a=t[s];a!==void 0&&(o[s]=JSON.stringify(a))}const i=new EventSource(_L+e+"?"+new URLSearchParams(o));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 ML(){return cL("csrf")}function tse(e,t={}){const[n,r]=co(void 0),[o,i]=co(void 0),[s,a]=co(!1);return u.useEffect(()=>{const c=$L(e,t,(p,h)=>{switch(p){case"error":return i("Connection error"),f();case"closed":return f();case"msg":return(c==null?void 0:c.readyState)===(c==null?void 0:c.CLOSED)?f():r(h)}});return()=>{c.close(),f()};function f(){a(!1)}},[e,JSON.stringify(t)]),{data:n,loading:s,error:o}}function Ba(e,t={},{addId:n=!1,map:r=o=>o}={}){const[o,i]=co([]),[s,a]=co(void 0),[c,f]=co(void 0),[p,h]=co(!0),[m,v]=co(!1),[b,g]=co(!0),[x,C]=u.useState(0),P=u.useRef(0);return u.useEffect(()=>{if(!e)return;const I=[],_=Qt.debounce(()=>{const T=I.splice(0,1/0);T.length&&i(O=>[...O,...T])},1e3,{maxWait:1e3});f(void 0),v(!0),h(!0),g(!0),i([]);const k=$L(e,t,(T,O)=>{switch(T){case"connected":return h(!1),setTimeout(()=>_.flush());case"error":return f("Connection error"),$();case"closed":return $();case"msg":Lie(O).forEach(N=>{if(N==="ready"){_.flush(),g(!1);return}if(N.error){N.error===401?En.loginRequired=N.any!==!1||403:f(SL(N.error));return}if(N.props)return a(N.props);if(N.add){const V=r(N.add);n&&(V.id=++P.current),I.push(V),_();return}if(N.remove){const V=[];for(const j of N.remove){const L=Qt.matches(j);Qt.isEmpty(Qt.remove(I,L))&&V.push(L)}if(Qt.isEmpty(V))return;i(j=>{const L=j.filter(D=>!V.some(B=>B(D)));return L.length<j.length?L:j});return}if(N.update){_.flush(),i(V=>{const j=[...V];for(const{search:L,change:D}of N.update){const B=j.findIndex(Qt.matches(L));B>=0&&(j[B]=Le(Le({},j[B]),D))}return j});return}console.debug("unknown api event",T,N)}),(k==null?void 0:k.readyState)===(k==null?void 0:k.CLOSED)&&$()}});return()=>k.close();function $(){g(!1),v(!1),_.flush()}},[x,e,JSON.stringify(t)]),{list:o,props:s,loading:m,error:c,initializing:b,connecting:p,setList:i,updateList:E,reload:w};function w(){C(I=>I+1)}function E(I){i(Jie(o,_=>{I(_)}))}}var Cx={},nse=st;Object.defineProperty(Cx,"__esModule",{value:!0});var TL=Cx.default=void 0,rse=nse(dt()),ose=at(),ise=(0,rse.default)((0,ose.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");TL=Cx.default=ise;var xx={},sse=st;Object.defineProperty(xx,"__esModule",{value:!0});var wv=xx.default=void 0,lse=sse(dt()),ase=at(),cse=(0,lse.default)((0,ase.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");wv=xx.default=cse;var Sx={},use=st;Object.defineProperty(Sx,"__esModule",{value:!0});var Ex=Sx.default=void 0,dse=use(dt()),fse=at(),pse=(0,dse.default)((0,fse.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");Ex=Sx.default=pse;var Px={},hse=st;Object.defineProperty(Px,"__esModule",{value:!0});var RL=Px.default=void 0,mse=hse(dt()),gse=at(),vse=(0,mse.default)((0,gse.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");RL=Px.default=vse;var kx={},yse=st;Object.defineProperty(kx,"__esModule",{value:!0});var OL=kx.default=void 0,bse=yse(dt()),wse=at(),Cse=(0,bse.default)((0,wse.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");OL=kx.default=Cse;const LL=u.createContext(void 0);function vt(){const e=u.useContext(LL);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(`
|
|
268
|
+
`));return e}const AL=u.createContext(void 0),Ye=()=>{const e=u.useContext(AL);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function Dt(e){return Ke("MuiDataGrid",e)}const Z=Ve("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),xse=e=>{const{classes:t}=e;return Ie({root:["main"]},Dt,t)},Sse=re("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}));function FL(e){const n={classes:Ye().classes},r=xse(n);return R.jsx(Sse,{className:r.root,children:e.children})}function Ese(e,t){var n=function(E){var I=E.__resizeTriggers__,_=I.firstElementChild,k=I.lastElementChild,$=_.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,$.style.width=_.offsetWidth+1+"px",$.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},r=function(E){return E.offsetWidth!=E.__resizeLast__.width||E.offsetHeight!=E.__resizeLast__.height},o=function(E){if(!(E.target.className.indexOf("contract-trigger")<0&&E.target.className.indexOf("expand-trigger")<0)){var I=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame(function(){r(I)&&(I.__resizeLast__.width=I.offsetWidth,I.__resizeLast__.height=I.offsetHeight,I.__resizeListeners__.forEach(function(_){_.call(I,E)}))})}},i=!1,s="",a="animationstart",c="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{var h=document.createElement("fakeelement");if(h.style.animationName!==void 0&&(i=!0),i===!1){for(var m=0;m<c.length;m++)if(h.style[c[m]+"AnimationName"]!==void 0){p=c[m],s="-"+p.toLowerCase()+"-",a=f[m],i=!0;break}}}var v="resizeanim",b="@"+s+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",g=s+"animation: 1ms "+v+"; ",x=function(E){if(!E.getElementById("muiDetectElementResize")){var I=(b||"")+".Mui-resizeTriggers { "+(g||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',_=E.head||E.getElementsByTagName("head")[0],k=E.createElement("style");k.id="muiDetectElementResize",k.type="text/css",e!=null&&k.setAttribute("nonce",e),k.styleSheet?k.styleSheet.cssText=I:k.appendChild(E.createTextNode(I)),_.appendChild(k)}},C=function(E,I){if(!E.__resizeTriggers__){var _=E.ownerDocument,k=t.getComputedStyle(E);k&&k.position=="static"&&(E.style.position="relative"),x(_),E.__resizeLast__={},E.__resizeListeners__=[],(E.__resizeTriggers__=_.createElement("div")).className="Mui-resizeTriggers",E.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',E.appendChild(E.__resizeTriggers__),n(E),E.addEventListener("scroll",o,!0),a&&(E.__resizeTriggers__.__animationListener__=function(T){T.animationName==v&&n(E)},E.__resizeTriggers__.addEventListener(a,E.__resizeTriggers__.__animationListener__))}E.__resizeListeners__.push(I)},P=function(E,I){if(E.__resizeListeners__.splice(E.__resizeListeners__.indexOf(I),1),!E.__resizeListeners__.length){E.removeEventListener("scroll",o,!0),E.__resizeTriggers__.__animationListener__&&(E.__resizeTriggers__.removeEventListener(a,E.__resizeTriggers__.__animationListener__),E.__resizeTriggers__.__animationListener__=null);try{E.__resizeTriggers__=!E.removeChild(E.__resizeTriggers__)}catch(_){}}};return{addResizeListener:C,removeResizeListener:P}}const Pse=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],kse=u.forwardRef(function(t,n){const{children:r,defaultHeight:o=null,defaultWidth:i=null,disableHeight:s=!1,disableWidth:a=!1,nonce:c,onResize:f,style:p}=t,h=oe(t,Pse),[m,v]=u.useState({height:o,width:i}),b=u.useRef(null),g=u.useRef(null),x=jn(()=>{if(g.current){const E=g.current.offsetHeight||0,I=g.current.offsetWidth||0,k=Jr(g.current).getComputedStyle(g.current),$=parseInt(k.paddingLeft,10)||0,T=parseInt(k.paddingRight,10)||0,O=parseInt(k.paddingTop,10)||0,N=parseInt(k.paddingBottom,10)||0,V=E-O-N,j=I-$-T;(!s&&m.height!==V||!a&&m.width!==j)&&(v({height:V,width:j}),f&&f({height:V,width:j}))}});Rn(()=>{var E;if(g.current=b.current.parentElement,!g)return;const I=Jr((E=g.current)!=null?E:void 0),_=Ese(c,I);return _.addResizeListener(g.current,x),x(),()=>{_.removeResizeListener(g.current,x)}},[c,x]);const C={overflow:"visible"},P={};s||(C.height=0,P.height=m.height),a||(C.width=0,P.width=m.width);const w=St(b,n);return R.jsx("div",S({ref:w,style:S({},C,p)},h,{children:m.height===null&&m.width===null?null:r(P)}))}),xi=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
269
|
+
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},za=(e,t)=>e;function Ise(e){return e.acceptsApiRef}xi(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const Ue=(e,t)=>Ise(t)?t(e):t(e.current.state);var qm="NOT_FOUND";function _se(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:qm},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function $se(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return qm}function o(a,c){r(a)===qm&&(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 Mse=function(t,n){return t===n};function Tse(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 NL(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Mse:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=Tse(o),f=s===1?_se(c):$se(s,c);function p(){var h=f.get(arguments);if(h===qm){if(h=e.apply(null,arguments),a){var m=f.getEntries(),v=m.find(function(b){return a(b.value,h)});v&&(h=v.value)}f.put(arguments,h)}return h}return p.clearCache=function(){return f.clear()},p}function Rse(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 Ose(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 f=0,p,h={memoizeOptions:void 0},m=a.pop();if(typeof m=="object"&&(h=m,m=a.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=h,b=v.memoizeOptions,g=b===void 0?n:b,x=Array.isArray(g)?g:[g],C=Rse(a),P=e.apply(void 0,[function(){return f++,m.apply(null,arguments)}].concat(x)),w=e(function(){for(var I=[],_=C.length,k=0;k<_;k++)I.push(C[k].apply(null,arguments));return p=P.apply(null,I),p});return Object.assign(w,{resultFunc:m,memoizedResultFunc:P,dependencies:C,lastResult:function(){return p},recomputations:function(){return f},resetRecomputations:function(){return f=0}}),w};return o}var Lse=Ose(NL);const yd={cache:null};xi(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]);const qe=(...e)=>{yd.cache===null&&(yd.cache={});const t=(...n)=>{const[r,o]=n,i=!!r.current,s=i?r.current.instanceId:o!=null?o:"default",a=i?r.current.state:r;yd.cache===null&&(yd.cache={});const{cache:c}=yd;if(c[s]&&c[s].get(e))return c[s].get(e)(a,s);const f=Lse(...e);return c[s]||(c[s]=new Map),c[s].set(e,f),f(a,s)};return t.acceptsApiRef=!0,t},Zi=e=>e.rows,Cv=qe(Zi,e=>e.totalRowCount),Ase=qe(Zi,e=>e.loading),Fse=qe(Zi,e=>e.totalTopLevelRowCount),Rf=qe(Zi,e=>e.idRowsLookup),DL=qe(Zi,e=>e.idToIdLookup),ga=qe(Zi,e=>e.tree),Nse=qe(Zi,e=>e.groupingName),Ix=qe(Zi,e=>e.treeDepth),Gc=qe(Zi,e=>e.ids),Dse=qe(Zi,e=>e==null?void 0:e.additionalRowGroups),sp=qe(Dse,e=>e==null?void 0:e.pinnedRows),Bse=qe(sp,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)}),_x=e=>e.sorting,$x=qe(_x,e=>e.sortedRows),Mx=qe($x,Rf,(e,t)=>e.map(n=>({id:n,model:t[n]}))),ai=qe(_x,e=>e.sortModel),zse=qe(ai,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),ka=e=>e.columns,Ia=qe(ka,e=>e.all),Ru=qe(ka,e=>e.lookup),Uo=qe(Ia,Ru,(e,t)=>e.map(n=>t[n])),ll=qe(ka,e=>e.columnVisibilityModel),pr=qe(Uo,ll,(e,t)=>e.filter(n=>t[n.field]!==!1));qe(pr,e=>e.map(t=>t.field));const _a=qe(pr,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),xv=qe(pr,_a,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),Sv=qe(Uo,e=>e.filter(t=>t.filterable)),jse=qe(Uo,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{}));za(Ia);za(Uo);za(pr);za(Sv);za(qe(Sv,e=>e.map(t=>t.field)));za(qe(pr,e=>e.length));const Hse=za(qe(_a,xv,(e,t)=>({totalWidth:t,positions:e}))),lp=e=>e.filter,jr=qe(lp,e=>e.filterModel);qe(jr,e=>e.quickFilterValues);const Vse=qe(lp,e=>e.visibleRowsLookup),BL=qe(lp,e=>e.filteredRowsLookup);qe(lp,e=>e.filteredDescendantCountLookup);const Ls=qe(Vse,Mx,(e,t)=>t.filter(n=>e[n.id]!==!1)),Xd=qe(Ls,e=>e.map(t=>t.id)),Use=qe(BL,Mx,(e,t)=>t.filter(n=>e[n.id]!==!1)),Wse=qe(Use,e=>e.map(t=>t.id)),zL=qe(Ls,ga,Ix,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),jL=qe(Ls,e=>e.length),HL=qe(zL,e=>e.length),Gse=qe(jr,Ru,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.columnField)return!1;const s=t[r.columnField];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const a=s.filterOperators.find(c=>c.value===r.operatorValue);return a?!a.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),Kse=qe(Gse,e=>e.reduce((n,r)=>(n[r.columnField]?n[r.columnField].push(r):n[r.columnField]=[r],n),{})),ja=e=>e.density,qse=qe(ja,e=>e.value),ap=qe(ja,e=>e.rowHeight),VL=qe(ja,e=>e.headerHeight),Tx=qe(ja,e=>e.headerGroupingMaxDepth),Yse=qe(ja,e=>e.factor),cp=qe(ja,e=>e.headerHeight*(1+e.headerGroupingMaxDepth));function Xse(e){var t,n;const r=vt(),o=Ye(),i=Ue(r,cp),[s,a]=u.useState(()=>{var p,h;return(p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null}),c=u.useCallback(()=>{var p,h;a((p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null)},[r]);Rn(()=>r.current.subscribeEvent("viewportInnerSizeChange",c),[r,c]);let f=(t=s==null?void 0:s.height)!=null?t:0;return o.autoHeight&&f===0&&(f="auto"),s?R.jsx("div",S({style:{height:f,width:(n=s==null?void 0:s.width)!=null?n:0,position:"absolute",top:i,bottom:f==="auto"?0:void 0}},e)):null}function Qse(){const e=vt(),t=Ye(),n=Ue(e,Cv),r=Ue(e,jL),o=Ue(e,Ase),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=R.jsx(t.components.NoRowsOverlay,S({},(c=t.componentsProps)==null?void 0:c.noRowsOverlay))}if(s){var f;a=R.jsx(t.components.NoResultsOverlay,S({},(f=t.componentsProps)==null?void 0:f.noResultsOverlay))}if(o){var p;a=R.jsx(t.components.LoadingOverlay,S({},(p=t.componentsProps)==null?void 0:p.loadingOverlay))}return a===null?null:R.jsx(Xse,{children:a})}function Jse(e){const{children:t,VirtualScrollerComponent:n,ColumnHeadersComponent:r}=e,o=vt(),i=Ye(),s=Ue(o,cp),[a,c]=u.useState(i.disableVirtualization),f=u.useCallback(()=>{c(!0)},[]),p=u.useCallback(()=>{c(!1)},[]);u.useEffect(()=>{c(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=f,o.current.unstable_enableVirtualization=p;const h=u.useRef(null),m=u.useRef(null),v=u.useRef(null),b=u.useRef(null);o.current.columnHeadersContainerElementRef=m,o.current.columnHeadersElementRef=h,o.current.windowRef=v,o.current.renderingZoneRef=b;const g=u.useCallback(x=>{o.current.publishEvent("resize",x)},[o]);return R.jsxs(FL,{children:[R.jsx(Qse,{}),R.jsx(r,{ref:m,innerRef:h}),R.jsx(kse,{nonce:i.nonce,disableHeight:i.autoHeight,onResize:g,children:x=>{const C={width:x.width,height:x.height?x.height-s:"auto",marginTop:s};return R.jsx(n,{ref:v,style:C,disableVirtualization:a})}}),t]})}function Gn(e,t){const n=u.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}class Zse extends u.Component{static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){this.props.api.current&&(this.logError(t),this.props.api.current.showError({error:t,errorInfo:n}))}logError(t,n){this.props.logger.error(`An unexpected error occurred. Error: ${t&&t.message}. `,t,n)}render(){var t;return this.props.hasError||(t=this.state)!=null&&t.hasError?this.props.render(this.props.componentProps||this.state):this.props.children}}function ele(e){const{children:t}=e,n=vt(),r=Gn(n,"GridErrorHandler"),o=Ye(),i=n.current.state.error;return R.jsx(Zse,{hasError:i!=null,componentProps:i,api:n,logger:r,render:s=>{var a;return R.jsx(FL,{children:R.jsx(o.components.ErrorOverlay,S({},s,(a=o.componentsProps)==null?void 0:a.errorOverlay))})},children:t})}function tle(){var e;const t=vt(),n=Ye(),r=u.useRef(null);return t.current.footerRef=r,n.hideFooter?null:R.jsx("div",{ref:r,children:R.jsx(n.components.Footer,S({},(e=n.componentsProps)==null?void 0:e.footer))})}function nle(){var e;const t=vt(),n=Ye(),r=u.useRef(null);return t.current.headerRef=r,R.jsx("div",{ref:r,children:R.jsx(n.components.Header,S({},(e=n.componentsProps)==null?void 0:e.header))})}var xr;(function(e){e.Cell="cell",e.Row="row"})(xr||(xr={}));var Rt;(function(e){e.Edit="edit",e.View="view"})(Rt||(Rt={}));var Xt;(function(e){e.Edit="edit",e.View="view"})(Xt||(Xt={}));const Kc={client:"client",server:"server"};var Tr;(function(e){e.And="and",e.Or="or"})(Tr||(Tr={}));var fs;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(fs||(fs={}));var Ri;(function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(Ri||(Ri={}));var ps;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(ps||(ps={}));var Oi;(function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(Oi||(Oi={}));var Of;(function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"})(Of||(Of={}));function UL(e){return e.field!==void 0}const WL=e=>e.focus,fi=qe(WL,e=>e.cell),rle=qe(WL,e=>e.columnHeader),GL=e=>e.tabIndex,Ym=qe(GL,e=>e.cell),KL=qe(GL,e=>e.columnHeader),ole=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];let K0;function ile(){return K0===void 0&&document.createElement("div").focus({get preventScroll(){return K0=!0,!1}}),K0}const sle=e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,i={root:["cell",`cell--text${fe(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return Ie(i,Dt,o)};function lle(e){const{align:t,children:n,colIndex:r,cellMode:o,field:i,formattedValue:s,hasFocus:a,height:c,isEditable:f,rowId:p,tabIndex:h,value:m,width:v,className:b,showRightBorder:g,colSpan:x,disableDragEvents:C,onClick:P,onDoubleClick:w,onMouseDown:E,onMouseUp:I,onKeyDown:_,onDragEnter:k,onDragOver:$}=e,T=oe(e,ole),O=s==null?m:s,N=u.useRef(null),V=u.useRef(null),j=vt(),L=Ye(),D={align:t,showRightBorder:g,isEditable:f,classes:L.classes},B=sle(D),W=u.useCallback(se=>ae=>{const we=j.current.getCellParams(p,i||"");j.current.publishEvent(se,we,ae),I&&I(ae)},[j,i,I,p]),A=u.useCallback((se,ae)=>we=>{if(!we.currentTarget.contains(we.target)||!j.current.getRow(p))return;const de=j.current.getCellParams(p,i||"");j.current.publishEvent(se,de,we),ae&&ae(we)},[j,i,p]),z={minWidth:v,maxWidth:v,minHeight:c,maxHeight:c==="auto"?"none":c};u.useLayoutEffect(()=>{if(!a||o===Rt.Edit)return;const se=bn(j.current.rootElementRef.current);if(N.current&&!N.current.contains(se.activeElement)){const ae=N.current.querySelector('[tabindex="0"]'),we=V.current||ae||N.current;if(ile())we.focus({preventScroll:!0});else{const de=j.current.getScrollPosition();we.focus(),j.current.scroll(de)}}},[a,o,j]);let G=T.onFocus;const X=j.current.getColumn(i).type==="actions",ie=()=>n==null?R.jsx("div",{className:B.content,children:O==null?void 0:O.toString()}):u.isValidElement(n)&&X?u.cloneElement(n,{focusElementRef:V}):n,ee=C?null:{onDragEnter:A("cellDragEnter",k),onDragOver:A("cellDragOver",$)};return R.jsx("div",S({ref:N,className:he(b,B.root),role:"cell","data-field":i,"data-colindex":r,"aria-colindex":r+1,"aria-colspan":x,style:z,tabIndex:(o==="view"||!f)&&!X?h:-1,onClick:A("cellClick",P),onDoubleClick:A("cellDoubleClick",w),onMouseDown:A("cellMouseDown",E),onMouseUp:W("cellMouseUp"),onKeyDown:A("cellKeyDown",_)},ee,T,{onFocus:G,children:ie()}))}const ale=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],cle=e=>{const{classes:t}=e;return Ie({root:["booleanCell"]},Dt,t)},ule=e=>{const{value:t}=e,n=oe(e,ale),r=vt(),o=Ye(),i={classes:o.classes},s=cle(i),a=u.useMemo(()=>t?o.components.BooleanCellTrueIcon:o.components.BooleanCellFalseIcon,[o.components.BooleanCellFalseIcon,o.components.BooleanCellTrueIcon,t]);return R.jsx(a,S({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},n))},dle=u.memo(ule),fle=e=>e.rowNode.isAutoGenerated?"":R.jsx(dle,S({},e)),ple=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"],hle=e=>{const{classes:t}=e;return Ie({root:["editBooleanCell"]},Dt,t)};function mle(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=oe(e,ple),f=vt(),p=u.useRef(null),h=Pn(),[m,v]=u.useState(r),b=Ye(),g={classes:b.classes},x=hle(g),C=u.useCallback(P=>ot(this,null,function*(){const w=P.target.checked;a&&(yield a(P,w)),v(w),yield f.current.setEditCellValue({id:n,field:o,value:w},P)}),[f,o,n,a]);return u.useEffect(()=>{v(r)},[r]),Rn(()=>{s&&p.current.focus()},[s]),R.jsx("label",S({htmlFor:h,className:he(x.root,i)},c,{children:R.jsx(b.components.BaseCheckbox,S({id:h,inputRef:p,checked:Boolean(m),onChange:C,size:"small"},(t=b.componentsProps)==null?void 0:t.baseCheckbox))}))}const gle=e=>R.jsx(mle,S({},e)),vle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],yle=re(ku)({fontSize:"inherit"}),ble=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Dt,t)};function wle(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=oe(e,vle),f=o.type==="dateTime",p=vt(),h=u.useRef(),m=u.useMemo(()=>{let w;n==null?w=null:n instanceof Date?w=n:w=new Date((n!=null?n:"").toString());let E;return w==null||Number.isNaN(w.getTime())?E="":E=new Date(w.getTime()-w.getTimezoneOffset()*60*1e3).toISOString().substr(0,f?16:10),{parsed:w,formatted:E}},[n,f]),[v,b]=u.useState(m),x={classes:Ye().classes},C=ble(x),P=u.useCallback(w=>ot(this,null,function*(){const E=w.target.value;let I;if(E==="")I=null;else{const[_,k]=E.split("T"),[$,T,O]=_.split("-");if(I=new Date,I.setFullYear(Number($),Number(T)-1,Number(O)),I.setHours(0,0,0,0),k){const[N,V]=k.split(":");I.setHours(Number(N),Number(V),0,0)}}a&&(yield a(w,I)),b({parsed:I,formatted:E}),p.current.setEditCellValue({id:t,field:r,value:I},w)}),[p,r,t,a]);return u.useEffect(()=>{b(w=>{var E,I;return m.parsed!==w.parsed&&((E=m.parsed)==null?void 0:E.getTime())!==((I=w.parsed)==null?void 0:I.getTime())?m:w})},[m]),Rn(()=>{i&&h.current.focus()},[i]),R.jsx(yle,S({inputRef:h,fullWidth:!0,className:C.root,type:f?"datetime-local":"date",inputProps:S({max:f?"9999-12-31T23:59":"9999-12-31"},s),value:v.formatted,onChange:P},c))}const qL=e=>R.jsx(wle,S({},e)),Cle=Mt(R.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),xle=Mt(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),W_=Mt(R.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),G_=Mt(R.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Sle=Mt(R.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Ele=Mt(R.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"),Ple=Mt(R.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");Mt(R.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Mt(R.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 kle=Mt(R.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"),Ile=Mt(R.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),_le=Mt(R.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),$le=Mt(R.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Mle=Mt(R.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Tle=Mt(R.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"),q0=Mt(R.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"),YL=Mt(R.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Rle=Mt(R.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Rx=Mt(R.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"),XL=Mt(R.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"),Ole=Mt(R.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"),Lle=Mt(R.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Ale=Mt(R.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");function al(e){return typeof e=="object"&&e!==null?e.value:e}function Xm(e,t){if(t===void 0)return;const n=t.find(r=>{const o=al(r);return String(o)===String(e)});return al(n)}const Fle=["item","applyValue","type","apiRef","focusElementRef"],Nle=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,f=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return R.jsx(o,{value:f,children:h},c)}),QL=500;function Di(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:f,focusElementRef:p}=e,h=oe(e,Fle),m=u.useRef(),[v,b]=u.useState((t=s.value)!=null?t:""),[g,x]=u.useState(!1),C=Pn(),P=Ye(),E=(r=(((n=P.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,I=c==="singleSelect"?{select:!0,SelectProps:S({native:E},(o=P.componentsProps)==null?void 0:o.baseSelect),children:Nle(f.current.getColumn(s.columnField),f.current,E?"option":ur)}:{},_=u.useCallback($=>{let T=$.target.value;if(c==="singleSelect"){const O=f.current.getColumn(s.columnField),N=typeof O.valueOptions=="function"?O.valueOptions({field:O.field}):O.valueOptions;T=Xm(T,N)}clearTimeout(m.current),b(String(T)),x(!0),m.current=setTimeout(()=>{a(S({},s,{value:T})),x(!1)},QL)},[f,a,s,c]);u.useEffect(()=>()=>{clearTimeout(m.current)},[]),u.useEffect(()=>{var $;const T=($=s.value)!=null?$:"";b(String(T))},[s.value]);const k=g?{endAdornment:R.jsx(Rx,{})}:h.InputProps;return R.jsx(P.components.BaseTextField,S({id:C,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:_,variant:"standard",type:c||"text",InputProps:k,InputLabelProps:{shrink:!0},inputRef:p},I,h,(i=P.componentsProps)==null?void 0:i.baseTextField))}const Dle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],Ble=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Dt,t)},zle=re(ku,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>S({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),jle=u.forwardRef((e,t)=>{var n;const r=Ye(),{id:o,value:i,field:s,colDef:a,hasFocus:c,debounceMs:f=(n=r.experimentalFeatures)!=null&&n.newEditingApi?200:QL,isProcessingProps:p,onValueChange:h}=e,m=oe(e,Dle),v=vt(),b=u.useRef(),[g,x]=u.useState(i),C={classes:r.classes},P=Ble(C),w=u.useCallback(E=>ot(void 0,null,function*(){const I=E.target.value;h&&(yield h(E,I)),x(I),v.current.setEditCellValue({id:o,field:s,value:I,debounceMs:f},E)}),[v,f,s,o,h]);return u.useEffect(()=>{x(i)},[i]),Rn(()=>{c&&b.current.focus()},[c]),R.jsx(zle,S({ref:t,inputRef:b,className:P.root,fullWidth:!0,type:a.type==="number"?a.type:"text",value:g!=null?g:"",onChange:w,endAdornment:p?R.jsx(Rx,{}):void 0},m))}),Hle=e=>R.jsx(jle,S({},e)),Ox=e=>e==="Escape",JL=e=>e==="Enter",ZL=e=>e==="Tab",eA=e=>e===" ",Vle=e=>e.indexOf("Arrow")===0,Ule=e=>e==="Home"||e==="End",Wle=e=>e.indexOf("Page")===0,Ab=e=>e==="Delete"||e==="Backspace";function Ev(e){return e.key.length===1&&e.ctrlKey===!1&&e.metaKey===!1}const Gle=["Enter","Escape","Tab"],Kle=["Enter","Tab"],qle=e=>JL(e.key)||Ab(e.key)||Ev(e),Yle=e=>Gle.indexOf(e)>-1,K_=e=>Kle.indexOf(e)>-1,up=e=>Ule(e)||Vle(e)||Wle(e)||eA(e),Fb=e=>!!e.key,Xle=e=>ZL(e)||Ox(e),Qle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],Jle=(e,t)=>{const n=typeof e=="object",r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return R.jsx(t,{value:o,children:i},r)};function Zle(e){return!!e.key}function eae(e){var t,n,r;const o=Ye(),{id:i,value:s,api:a,field:c,row:f,colDef:p,hasFocus:h,error:m,onValueChange:v,initialOpen:b=o.editMode===xr.Cell}=e,g=oe(e,Qle),x=vt(),C=u.useRef(),P=u.useRef(),[w,E]=u.useState(b),_=(n=(((t=o.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1;let k;typeof p.valueOptions=="function"?k=p.valueOptions({id:i,row:f,field:c}):k=p.valueOptions,p.valueFormatter&&(k=k.map(N=>{if(typeof N=="object")return N;const V={field:c,api:a,value:N};return{value:N,label:String(p.valueFormatter(V))}}));const $=N=>ot(this,null,function*(){var V;E(!1);const j=N.target,L=Xm(j.value,k);v&&(yield v(N,L));const D=yield x.current.setEditCellValue({id:i,field:c,value:L},N);if((V=o.experimentalFeatures)!=null&&V.newEditingApi||o.editMode===xr.Row||D===!1)return;if((yield Promise.resolve(x.current.commitCellChange({id:i,field:c},N)))&&(x.current.setCellMode(i,c,"view"),N.key)){const W=x.current.getCellParams(i,c);x.current.publishEvent("cellNavigationKeyDown",W,N)}}),T=(N,V)=>{if(o.editMode===xr.Row){E(!1);return}if(V==="backdropClick"||Ox(N.key)){var j;(j=o.experimentalFeatures)!=null&&j.newEditingApi?x.current.stopCellEditMode({id:i,field:c,ignoreModifications:!0}):x.current.setCellMode(i,c,"view")}},O=N=>{Zle(N)&&N.key==="Enter"||E(!0)};return Rn(()=>{h&&P.current.focus()},[h]),R.jsx(o.components.BaseSelect,S({ref:C,inputRef:P,value:s,onChange:$,open:w,onOpen:O,MenuProps:{onClose:T},error:m,native:_,fullWidth:!0},g,(r=o.componentsProps)==null?void 0:r.baseSelect,{children:k.map(N=>Jle(N,_?"option":ur))}))}const tae=e=>R.jsx(eae,S({},e)),nae=["open","target","onClickAway","children","position","className","onExited"],rae=e=>{const{classes:t}=e;return Ie({root:["menu"]},Dt,t)},oae=re(Aa,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${Z.menuList}`]:{outline:0}})),iae={"bottom-start":"top left","bottom-end":"top right"},tA=e=>{var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,f=oe(e,nae),p=vt(),h=u.useRef(r),m=u.useRef(n),v=Ye(),b={classes:v.classes},g=rae(b);u.useEffect(()=>{m.current&&h.current&&h.current.focus();const C=n?"menuOpen":"menuClose";p.current.publishEvent(C,{target:r}),m.current=n,h.current=r},[p,n,r]);const x=C=>P=>{C&&C(),c&&c(P)};return R.jsx(oae,S({as:v.components.BasePopper,className:he(a,g.root),open:n,anchorEl:r,transition:!0,placement:s},f,(t=v.componentsProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:P})=>R.jsx(WR,{onClickAway:o,mouseEvent:"onMouseDown",children:R.jsx(Bm,S({},C,{style:{transformOrigin:iae[P]},onExited:x(C==null?void 0:C.onExited),children:R.jsx(Zo,{children:i})}))})}))},sae=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],lae=e=>typeof e.getActions=="function",aae=e=>{const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:s}=e,a=oe(e,sae),[c,f]=u.useState(-1),[p,h]=u.useState(!1),m=vt(),v=u.useRef(null),b=u.useRef(null),g=u.useRef(!1),x=u.useRef({}),C=Pn(),P=Pn(),w=Ye();if(u.useLayoutEffect(()=>{r||Object.entries(x.current).forEach(([L,D])=>{D==null||D.stop({},()=>{delete x.current[L]})})},[r]),u.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus()},[c]),u.useEffect(()=>{r||(f(-1),g.current=!1)},[r]),u.useImperativeHandle(s,()=>({focus(){g.current||f(0)}}),[]),!lae(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(m.current.getRowParams(n)),I=E.filter(L=>!L.props.showInMenu),_=E.filter(L=>L.props.showInMenu),k=I.length+(_.length?1:0);u.useEffect(()=>{c>=k&&f(k-1)},[c,k]);const $=()=>{h(!0),f(k-1),g.current=!0},T=()=>{h(!1)},O=L=>D=>{x.current[L]=D},N=(L,D)=>B=>{f(L),g.current=!0,D&&D(B)},V=L=>{if(k<=1)return;let D=c;L.key==="ArrowRight"?D+=1:L.key==="ArrowLeft"&&(D-=1),!(D<0||D>=k)&&D!==c&&(L.preventDefault(),L.stopPropagation(),f(D))},j=L=>{L.key==="Tab"&&L.preventDefault(),["Tab","Enter","Escape"].includes(L.key)&&T()};return R.jsxs("div",S({role:"menu",ref:v,tabIndex:-1,className:Z.actionsCell,onKeyDown:V},a,{children:[I.map((L,D)=>u.cloneElement(L,{key:D,touchRippleRef:O(D),onClick:N(D,L.props.onClick),tabIndex:c===D?o:-1})),_.length>0&&P&&R.jsx(tr,{ref:b,id:P,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-controls":C,"aria-expanded":p?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:$,touchRippleRef:O(P),tabIndex:c===I.length?o:-1,children:R.jsx(w.components.MoreActionsIcon,{fontSize:"small"})}),_.length>0&&R.jsx(tA,{onClickAway:T,onClick:T,open:p,target:b.current,position:i,children:R.jsx(MC,{id:C,className:Z.menuList,onKeyDown:j,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:_.map((L,D)=>u.cloneElement(L,{key:D}))})})]}))},cae=e=>R.jsx(aae,S({},e)),uae=re("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Z.autoHeight}`]:t.autoHeight},{[`&.${Z.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${Z["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${Z["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${Z["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${Z.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`& .${Z.editBooleanCell}`]:t.editBooleanCell},{[`& .${Z["cell--editing"]}`]:t["cell--editing"]},{[`& .${Z["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${Z["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${Z["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${Z["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${Z.cell}`]:t.cell},{[`& .${Z.cellContent}`]:t.cellContent},{[`& .${Z.cellCheckbox}`]:t.cellCheckbox},{[`& .${Z.checkboxInput}`]:t.checkboxInput},{[`& .${Z["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${Z["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${Z["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${Z["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${Z["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${Z["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${Z["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${Z["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${Z.columnHeader}`]:t.columnHeader},{[`& .${Z.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${Z.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${Z.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${Z["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${Z["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${Z.columnSeparator}`]:t.columnSeparator},{[`& .${Z.filterIcon}`]:t.filterIcon},{[`& .${Z.iconSeparator}`]:t.iconSeparator},{[`& .${Z.menuIcon}`]:t.menuIcon},{[`& .${Z.menuIconButton}`]:t.menuIconButton},{[`& .${Z.menuOpen}`]:t.menuOpen},{[`& .${Z.menuList}`]:t.menuList},{[`& .${Z["row--editable"]}`]:t["row--editable"]},{[`& .${Z["row--editing"]}`]:t["row--editing"]},{[`& .${Z["row--dragging"]}`]:t["row--dragging"]},{[`& .${Z.row}`]:t.row},{[`& .${Z.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${Z.rowReorderCell}`]:t.rowReorderCell},{[`& .${Z["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${Z.sortIcon}`]:t.sortIcon},{[`& .${Z.withBorder}`]:t.withBorder},{[`& .${Z.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${Z.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${Z.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${Z["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=e.palette.mode==="light"?_s(rt(e.palette.divider,1),.88):Is(rt(e.palette.divider,1),.68);return S({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${Z.autoHeight}`]:{height:"auto",[`& .${Z["row--lastVisible"]} .${Z.cell}`]:{borderBottomColor:"transparent"}},[`& .${Z["virtualScrollerContent--overflowed"]} .${Z["row--lastVisible"]} .${Z.cell}`]:{borderBottomColor:"transparent"},[`& .${Z.columnHeader}, & .${Z.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${Z.columnHeader}:focus-within, & .${Z.cell}:focus-within`]:{outline:`solid ${rt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${Z.columnHeader}:focus, & .${Z.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${Z.columnHeaderCheckbox}, & .${Z.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Z.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Z["columnHeader--sorted"]} .${Z.iconButtonContainer}, & .${Z["columnHeader--filtered"]} .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}) .${Z.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}):hover .${Z.sortIcon}`]:{opacity:.5},[`& .${Z.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${Z.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Z["columnHeader--filledGroup"]} .${Z.columnHeaderTitleContainer}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${Z["columnHeader--filledGroup"]}.${Z["columnHeader--showColumnBorder"]} .${Z.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${Z["columnHeader--filledGroup"]}.${Z["columnHeader--showColumnBorder"]}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${Z.sortIcon}, & .${Z.filterIcon}`]:{fontSize:"inherit"},[`& .${Z["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Z["columnHeader--alignCenter"]} .${Z.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Z["columnHeader--alignRight"]} .${Z.columnHeaderDraggableContainer}, & .${Z["columnHeader--alignRight"]} .${Z.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Z["columnHeader--alignCenter"]} .${Z.menuIcon}, & .${Z["columnHeader--alignRight"]} .${Z.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${Z["columnHeader--alignRight"]} .${Z.menuIcon}, & .${Z["columnHeader--alignRight"]} .${Z.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${Z["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${Z.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${Z["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${Z["columnSeparator--sideRight"]}`]:{right:-12},[`& .${Z["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${Z["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${Z.iconSeparator}`]:{color:"inherit"},[`& .${Z.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${Z.columnHeader}:hover`]:{[`& .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Z.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${Z.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Z.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:rt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${Z.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${Z.row}:not(.${Z["row--dynamicHeight"]}) > .${Z.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${Z.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${Z.cell}.${Z["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${Z["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${Z["row--editing"]} .${Z.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${Z.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Z.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${Z.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${Z.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${Z.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${Z["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${Z.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${Z.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${Z["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${Z["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${Z["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${Z.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Z.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Z["columnHeader--dragging"]}, & .${Z["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${Z["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${Z.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${Z.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${Z.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),dae=["children","className"],fae=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${fe(n)}`]};return Ie(o,Dt,r)},pae=u.forwardRef(function(t,n){const r=Ye(),{children:o,className:i}=t,s=oe(t,dae),a=vt(),c=Ue(a,pr),f=Ue(a,Cv),p=Ue(a,qse),h=Ue(a,Tx),m=u.useRef(null),v=St(m,n),b=Ue(a,Bse),g={density:p,classes:r.classes,autoHeight:r.autoHeight},x=fae(g);a.current.rootElementRef=m;const[C,P]=u.useState(!1);return Rn(()=>{P(!0)},[]),Rn(()=>{C&&a.current.unstable_updateGridDimensionsRef()},[a,C]),C?R.jsx(uae,S({ref:v,className:he(i,x.root),role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+b+f,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},s,{children:o})):null}),hae=["className"],mae=e=>{const{classes:t}=e;return Ie({root:["footerContainer"]},Dt,t)},gae=re("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:`1px solid ${e.palette.mode==="light"?_s(rt(e.palette.divider,1),.88):Is(rt(e.palette.divider,1),.68)}`})),vae=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,hae),s={classes:Ye().classes},a=mae(s);return R.jsx(gae,S({ref:n,className:he(a.root,r)},o))}),yae=["className"],bae=e=>{const{classes:t}=e;return Ie({root:["overlay"]},Dt,t)},wae=re("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})(({theme:e})=>({position:"absolute",top:0,zIndex:4,width:"100%",height:"100%",pointerEvents:"none",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:rt(e.palette.background.default,e.palette.action.disabledOpacity)})),Pv=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,yae),s={classes:Ye().classes},a=bae(s);return R.jsx(wae,S({ref:n,className:he(a.root,r)},o))}),Cae=["className"],xae=e=>{const{classes:t}=e;return Ie({root:["iconButtonContainer"]},Dt,t)},Sae=re("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),nA=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Cae),s={classes:Ye().classes},a=xae(s);return R.jsx(Sae,S({ref:n,className:he(a.root,r)},o))}),Eae=e=>{const{classes:t}=e;return Ie({icon:["sortIcon"]},Dt,t)};function Pae(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?R.jsx(o,S({fontSize:"small",className:n},i)):null}function kae(e){const{direction:t,index:n,sortingOrder:r}=e,o=vt(),i=Ye(),s=S({},e,{classes:i.classes}),a=Eae(s),c=Pae(i.components,t,a.icon,r);if(!c)return null;const f=R.jsx(tr,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:c});return R.jsxs(nA,{children:[n!=null&&R.jsx(fO,{badgeContent:n,color:"default",children:f}),n==null&&f]})}const Iae=u.memo(kae),_ae=e=>{const{classes:t,open:n}=e;return Ie({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Dt,t)},$ae=u.memo(e=>{const{column:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,s=vt(),a=Ye(),c=S({},e,{classes:a.classes}),f=_ae(c),p=u.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]);return R.jsx("div",{className:f.root,children:R.jsx(tr,{ref:i,tabIndex:-1,className:f.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),title:s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":r,id:o,children:R.jsx(a.components.ColumnMenuIcon,{fontSize:"small"})})})});function Mae({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=vt(),f=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),c.current.hideColumnMenu()},[c]);return s?R.jsx(tA,{placement:`bottom-${f.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:R.jsx(n,S({currentColumn:f,hideMenu:p,open:i,id:e,labelledby:t},r))}):null}function Tae(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Rae(e,t){return e.closest(`.${t}`)}function Lx(e){return e.replace(/["\\]/g,"\\$&")}function Oae(e,t){return e.querySelector(`[role="columnheader"][data-field="${Lx(t)}"]`)}function rA(e,t){return e.querySelector(`.${Z.row}[data-id="${Lx(String(t))}"]`)}function Lae(e,{id:t,field:n}){const r=rA(e,t);return r?r.querySelector(`.${Z.cell}[data-field="${Lx(n)}"]`):null}const Aae=["className"],Fae=e=>{const{classes:t}=e;return Ie({root:["columnHeaderTitle"]},Dt,t)},Nae=re("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})(({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium})),Dae=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Aae),s={classes:Ye().classes},a=Fae(s);return R.jsx(Nae,S({ref:n,className:he(a.root,r)},o))});function Bae(e){var t;const{label:n,description:r,columnWidth:o}=e,i=Ye(),s=u.useRef(null),[a,c]=u.useState("");return u.useEffect(()=>{if(!r&&s&&s.current){const f=Tae(s.current);c(f?n:"")}},[s,o,r,n]),R.jsx(i.components.BaseTooltip,S({title:r||a},(t=i.componentsProps)==null?void 0:t.baseTooltip,{children:R.jsx(Dae,{ref:s,children:n})}))}const zae=["resizable","resizing","height","side"];var Nb;(function(e){e.Left="left",e.Right="right"})(Nb||(Nb={}));const jae=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${fe(o)}`],icon:["iconSeparator"]};return Ie(i,Dt,r)};function Hae(e){const{height:t,side:n=Nb.Right}=e,r=oe(e,zae),o=Ye(),i=S({},e,{side:n,classes:o.classes}),s=jae(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return R.jsx("div",S({className:s.root,style:{minHeight:t,opacity:o.showColumnRightBorder?0:1}},r,{onClick:a,children:R.jsx(o.components.ColumnResizeIcon,{className:s.icon})}))}const Vae=u.memo(Hae),Uae=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],oA=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:s,isResizing:a,sortDirection:c,hasFocus:f,tabIndex:p,separatorSide:h,isDraggable:m,headerComponent:v,description:b,width:g,columnMenuIconButton:x=null,columnMenu:C=null,columnTitleIconButtons:P=null,headerClassName:w,label:E,resizable:I,draggableContainerProps:_,columnHeaderSeparatorProps:k,disableHeaderSeparator:$}=t,T=oe(t,Uae),O=vt(),N=Ye(),V=u.useRef(null),[j,L]=u.useState(o),D=St(V,n);let B="none";return c!=null&&(B=c==="asc"?"ascending":"descending"),u.useEffect(()=>{j||L(o)},[j,o]),u.useLayoutEffect(()=>{const W=O.current.state.columnMenu;if(f&&!W.open){const z=V.current.querySelector('[tabindex="0"]')||V.current;z==null||z.focus(),O.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[O,f]),R.jsxs("div",S({ref:D,className:he(r.root,w),style:{height:s,width:g,minWidth:g,maxWidth:g},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":B,"aria-label":v==null?E:void 0},T,{children:[R.jsxs("div",S({className:r.draggableContainer,draggable:m},_,{children:[R.jsxs("div",{className:r.titleContainer,children:[R.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:R.jsx(Bae,{label:E,description:b,columnWidth:g})}),P]}),x]})),!$&&R.jsx(Vae,S({resizable:!N.disableColumnResize&&!!I,resizing:a,height:s,side:h},k)),C]}))}),Wae=e=>{const{column:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=o!=null,c=s!=null&&s>0,f=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",f&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Ie(p,Dt,n)};function Gae(e){var t,n,r,o,i;const{column:s,columnMenuOpen:a,colIndex:c,headerHeight:f,isResizing:p,isLastColumn:h,sortDirection:m,sortIndex:v,filterItemsCounter:b,hasFocus:g,tabIndex:x,extendRowFullWidth:C,disableReorder:P,separatorSide:w}=e,E=vt(),I=Ye(),_=u.useRef(null),k=Pn(),$=Pn(),T=u.useRef(null),[O,N]=u.useState(a),{hasScrollX:V,hasScrollY:j}=(t=E.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},L=u.useMemo(()=>!I.disableColumnReorder&&!P&&!s.disableReorder,[I.disableColumnReorder,P,s.disableReorder]);let D;s.renderHeader&&(D=s.renderHeader(E.current.getColumnHeaderParams(s.field)));const W=h?!(h&&V&&!j)&&!C:I.showColumnRightBorder,A=S({},e,{classes:I.classes,showRightBorder:W}),z=Wae(A),G=u.useCallback(be=>_e=>{_e.currentTarget.contains(_e.target)&&E.current.publishEvent(be,E.current.getColumnHeaderParams(s.field),_e)},[E,s.field]),q=u.useMemo(()=>({onClick:G("columnHeaderClick"),onDoubleClick:G("columnHeaderDoubleClick"),onMouseOver:G("columnHeaderOver"),onMouseOut:G("columnHeaderOut"),onMouseEnter:G("columnHeaderEnter"),onMouseLeave:G("columnHeaderLeave"),onKeyDown:G("columnHeaderKeyDown"),onFocus:G("columnHeaderFocus"),onBlur:G("columnHeaderBlur")}),[G]),X=u.useMemo(()=>L?{onDragStart:G("columnHeaderDragStart"),onDragEnter:G("columnHeaderDragEnter"),onDragOver:G("columnHeaderDragOver"),onDragEnd:G("columnHeaderDragEnd")}:{},[L,G]),ie=u.useMemo(()=>({onMouseDown:G("columnSeparatorMouseDown")}),[G]);u.useEffect(()=>{O||N(a)},[O,a]);const ee=u.useCallback(()=>{N(!1)},[]),se=!I.disableColumnMenu&&!s.disableColumnMenu&&R.jsx($ae,{column:s,columnMenuId:k,columnMenuButtonId:$,open:O,iconButtonRef:T}),ae=R.jsx(Mae,{columnMenuId:k,columnMenuButtonId:$,field:s.field,open:a,target:T.current,ContentComponent:I.components.ColumnMenu,contentComponentProps:(n=I.componentsProps)==null?void 0:n.columnMenu,onExited:ee}),we=(r=s.sortingOrder)!=null?r:I.sortingOrder,de=R.jsxs(u.Fragment,{children:[!I.disableColumnFilter&&R.jsx(I.components.ColumnHeaderFilterIconButton,S({field:s.field,counter:b},(o=I.componentsProps)==null?void 0:o.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&R.jsx(Iae,{direction:m,index:v,sortingOrder:we})]});u.useLayoutEffect(()=>{const be=E.current.state.columnMenu;if(g&&!be.open){const Se=_.current.querySelector('[tabindex="0"]')||_.current;Se==null||Se.focus(),E.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[E,g]);const le=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,te=(i=s.headerName)!=null?i:s.field;return R.jsx(oA,S({ref:_,classes:z,columnMenuOpen:a,colIndex:c,height:f,isResizing:p,sortDirection:m,hasFocus:g,tabIndex:x,separatorSide:w,isDraggable:L,headerComponent:D,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:se,columnTitleIconButtons:de,headerClassName:le,label:te,resizable:!I.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:ae,draggableContainerProps:X,columnHeaderSeparatorProps:ie},q))}const Qm=e=>e.preferencePanel;var $l;(function(e){e.filters="filters",e.columns="columns"})($l||($l={}));const Kae=e=>{const{classes:t}=e;return Ie({icon:["filterIcon"]},Dt,t)};function qae(e){var t;const{counter:n,field:r,onClick:o}=e,i=vt(),s=Ye(),a=S({},e,{classes:s.classes}),c=Kae(a),f=u.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:m,openedPanelValue:v}=Qm(i.current.state);m&&v===$l.filters?i.current.hideFilterPanel():i.current.showFilterPanel(),o&&o(i.current.getColumnHeaderParams(r),h)},[i,r,o]);if(!n)return null;const p=R.jsx(tr,{onClick:f,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:R.jsx(s.components.ColumnFilteredIcon,{className:c.icon,fontSize:"small"})});return R.jsx(s.components.BaseTooltip,S({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},(t=s.componentsProps)==null?void 0:t.baseTooltip,{children:R.jsxs(nA,{children:[n>1&&R.jsx(fO,{badgeContent:n,color:"default",children:p}),n===1&&p]})}))}const Yae=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],Xae=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Dt,t)},Qae=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:f}=t,p=oe(t,Yae),h=vt(),m=Ye(),v={classes:m.classes},b=Xae(v),g=u.useRef(null),x=u.useRef(),C=St(g,n),P=h.current.getCellElement(i,o),w=k=>{const $={value:k.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",$,k)};u.useLayoutEffect(()=>{f===0&&P&&(P.tabIndex=-1)},[P,f]),u.useLayoutEffect(()=>{if(c){var k;const $=(k=g.current)==null?void 0:k.querySelector("input");$==null||$.focus()}else x.current&&x.current.stop({})},[c]);const E=u.useCallback(k=>{eA(k.key)&&k.stopPropagation(),up(k.key)&&!k.shiftKey&&h.current.publishEvent("cellNavigationKeyDown",t,k)},[h,t]);if(a.position==="footer")return null;const I=h.current.isRowSelectable(i),_=h.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return a.isPinned?null:R.jsx(m.components.BaseCheckbox,S({ref:C,tabIndex:f,checked:s,onChange:w,className:b.root,inputProps:{"aria-label":_},onKeyDown:E,disabled:!I,touchRippleRef:x},(r=m.componentsProps)==null?void 0:r.baseCheckbox,p))}),Jae=u.memo(Qae),Lo=e=>e.selection,Zae=qe(Lo,e=>e.length),ece=qe(Lo,Rf,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Jm=qe(Lo,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Ou=e=>e.pagination,$d=qe(Ou,e=>e.page),Qd=qe(Ou,e=>e.pageSize);qe(Ou,e=>e.pageCount);const Ax=qe(Ou,ga,Ix,Ls,zL,(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],f=a-s+1,p=r.findIndex(v=>v.id===c.id);let h=p,m=0;for(;h<r.length&&m<=f;){const v=r[h],b=t[v.id].depth;(m<f||b>0)&&(h+=1),b===0&&(m+=1)}return{firstRowIndex:p,lastRowIndex:h-1}}),tce=qe(Ls,Ax,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),iA=qe(Xd,Ax,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),nce=["field","colDef"],rce=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Dt,t)},oce=u.forwardRef(function(t,n){var r;const o=oe(t,nce),[,i]=u.useState(!1),s=vt(),a=Ye(),c={classes:a.classes},f=rce(c),p=Ue(s,KL),h=Ue(s,Lo),m=Ue(s,Xd),v=Ue(s,iA),b=u.useMemo(()=>typeof a.isRowSelectable!="function"?h:h.filter($=>s.current.getRow($)?a.isRowSelectable(s.current.getRowParams($)):!1),[s,a.isRowSelectable,h]),g=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:v).reduce((T,O)=>(T[O]=!0,T),{}),[a.pagination,a.checkboxSelectionVisibleOnly,v,m]),x=u.useMemo(()=>b.filter($=>g[$]).length,[b,g]),C=x>0&&x<Object.keys(g).length,P=x>0,w=$=>{const T={value:$.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",T)},E=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const $=s.current.getColumnHeaderElement(t.field);E===0&&$&&($.tabIndex=-1)},[E,s,t.field]);const I=u.useCallback($=>{$.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!P}),up($.key)&&!$.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",t,$)},[s,t,P]),_=u.useCallback(()=>{i($=>!$)},[]);u.useEffect(()=>s.current.subscribeEvent("selectionChange",_),[s,_]);const k=s.current.getLocaleText(P?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return R.jsx(a.components.BaseCheckbox,S({ref:n,indeterminate:C,checked:P,onChange:w,className:f.root,inputProps:{"aria-label":k},tabIndex:E,onKeyDown:I},(r=a.componentsProps)==null?void 0:r.baseCheckbox,o))}),ice=e=>{const{onClick:t}=e,n=vt(),r=Ye(),o=u.useCallback(i=>{t(i),n.current.showPreferences($l.columns)},[n,t]);return r.disableColumnSelector?null:R.jsx(ur,{onClick:o,children:n.current.getLocaleText("columnMenuShowColumns")})},sce=e=>{const{column:t,onClick:n}=e,r=vt(),o=Ye(),i=u.useCallback(s=>{n(s),r.current.showFilterPanel(t==null?void 0:t.field)},[r,t==null?void 0:t.field,n]);return o.disableColumnFilter||!(t!=null&&t.filterable)?null:R.jsx(ur,{onClick:i,children:r.current.getLocaleText("columnMenuFilter")})},lce=["hideMenu","currentColumn","open","id","labelledby","className","children"],ace=u.forwardRef(function(t,n){const{hideMenu:r,open:o,id:i,labelledby:s,className:a,children:c}=t,f=oe(t,lce),p=u.useCallback(h=>{ZL(h.key)&&h.preventDefault(),Xle(h.key)&&r(h)},[r]);return R.jsx(MC,S({id:i,ref:n,className:he(Z.menuList,a),"aria-labelledby":s,onKeyDown:p,autoFocus:o},f,{children:c}))}),cce=xi(["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"),sA=(e,t)=>t&&e.length>1?(cce(),[e[0]]):e,q_=(e,t)=>n=>S({},n,{sorting:S({},n.sorting,{sortModel:sA(e,t)})}),uce=e=>e==="desc",dce=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=uce(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},fce=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const s=t.params[i],a=n.params[i];return r=o.comparator(s.value,a.value,s,a),r},0),pce=(e,t)=>{const n=e.map(r=>dce(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>fce(n,o,i)).map(o=>o.node.id)},Y_=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Fx=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,hce=new Intl.Collator,mce=(e,t)=>{const n=Fx(e,t);return n!==null?n:typeof e=="string"?hce.compare(e.toString(),t.toString()):e-t},lA=(e,t)=>{const n=Fx(e,t);return n!==null?n:Number(e)-Number(t)},aA=(e,t)=>{const n=Fx(e,t);return n!==null?n:e>t?1:e<t?-1:0};function gce(e){return typeof e=="number"}function cA(e){return typeof e=="function"}function vce(){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 om(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Lf=(e,t,n)=>Math.max(t,Math.min(n,e));function Cs(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(!Cs(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(!Cs(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(!Cs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}const yce=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function uA(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:f,variant:p}=e,h=oe(e,yce),m={color:s,error:a,helperText:c,size:f,variant:p},[v,b]=u.useState(t.value||[]),g=Pn(),x=Ye();u.useEffect(()=>{var P;const w=(P=t.value)!=null?P:[];b(w.map(String))},[t.value]);const C=u.useCallback((P,w)=>{b(w.map(String)),n(S({},t,{value:[...w]}))},[n,t]);return R.jsx(cO,S({multiple:!0,freeSolo:!0,limitTags:1,options:[],filterOptions:(P,w)=>{const{inputValue:E}=w;return E==null||E===""?[]:[E]},id:g,value:v,onChange:C,renderTags:(P,w)=>P.map((E,I)=>R.jsx(ev,S({variant:"outlined",size:"small",label:E},w({index:I})))),renderInput:P=>{var w;return R.jsx(x.components.BaseTextField,S({},P,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},P.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(w=x.componentsProps)==null?void 0:w.baseTextField))}},h))}const bce=e=>{if(!e)return null;const t=new RegExp(om(e),"i");return({value:n})=>n!=null?t.test(n.toString()):!1},wce=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(om(n),"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Di},{value:"equals",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:o})=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Di},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${om(n)}.*$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Di},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${om(n)}$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Di},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:o})=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:uA}],Ml={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:mce,type:"string",align:"left",filterOperators:wce(),renderEditCell:Hle,getApplyQuickFilterFn:bce},Nx="actions",Cce=S({},Ml,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:cae,getApplyQuickFilterFn:void 0}),xce=["item","applyValue","apiRef","focusElementRef"];function Sce(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c}=e,f=oe(e,xce),[p,h]=u.useState(i.value||""),m=Ye(),b=(n=(((t=m.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!0,g=b?"option":ur,x=u.useCallback(C=>{const P=C.target.value;h(P),s(S({},i,{value:P}))},[s,i]);return u.useEffect(()=>{h(i.value||"")},[i.value]),R.jsxs(m.components.BaseTextField,S({label:a.current.getLocaleText("filterPanelInputLabel"),value:p,onChange:x,select:!0,variant:"standard",SelectProps:S({native:b,displayEmpty:!0},(r=m.componentsProps)==null?void 0:r.baseSelect),InputLabelProps:{shrink:!0},inputRef:c},f,(o=m.componentsProps)==null?void 0:o.baseTextField,{children:[R.jsx(g,{value:"",children:a.current.getLocaleText("filterValueAny")}),R.jsx(g,{value:"true",children:a.current.getLocaleText("filterValueTrue")}),R.jsx(g,{value:"false",children:a.current.getLocaleText("filterValueFalse")})]}))}const Ece=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=e.value==="true";return({value:n})=>Boolean(n)===t},InputComponent:Sce}];function Pce({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const dA=S({},Ml,{type:"boolean",align:"center",headerAlign:"center",renderCell:fle,renderEditCell:gle,sortComparator:lA,valueFormatter:Pce,filterOperators:Ece(),getApplyQuickFilterFn:void 0,aggregable:!1}),Ys="__check__",dp=S({},dA,{field:Ys,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>Jm(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>R.jsx(oce,S({},e)),renderCell:e=>R.jsx(Jae,S({},e))}),kce=["item","applyValue","type","apiRef","focusElementRef","InputProps"],Ice=500;function mc(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c}=e,f=oe(e,kce),p=u.useRef(),[h,m]=u.useState((t=r.value)!=null?t:""),[v,b]=u.useState(!1),g=Pn(),x=Ye(),C=u.useCallback(P=>{const w=P.target.value;clearTimeout(p.current),m(String(w)),b(!0),p.current=setTimeout(()=>{o(S({},r,{value:w})),b(!1)},Ice)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(p.current)},[]),u.useEffect(()=>{var P;const w=(P=r.value)!=null?P:"";m(String(w))},[r.value]),R.jsx(x.components.BaseTextField,S({id:g,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:C,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:a,InputProps:S({},v?{endAdornment:R.jsx(Rx,{})}:{},c,{inputProps:S({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31"},c==null?void 0:c.inputProps)})},f,(n=x.componentsProps)==null?void 0:n.baseTextField))}const _ce=/(\d+)-(\d+)-(\d+)/,$ce=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function gc(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?$ce:_ce).slice(1).map(Number),f=new Date(o,i-1,s,a||0,c||0).getTime();return({value:p})=>{if(!p)return!1;const h=p instanceof Date?p:new Date(p.toString());if(r)return t(h.getTime(),f);const v=(p instanceof Date?new Date(h):h).setHours(n?h.getHours():0,n?h.getMinutes():0,0,0);return t(v,f)}}const fA=e=>[{value:"is",getApplyFilterFn:t=>gc(t,(n,r)=>n===r,e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>gc(t,(n,r)=>n!==r,e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>gc(t,(n,r)=>n>r,e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>gc(t,(n,r)=>n>=r,e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>gc(t,(n,r)=>n<r,e,!e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>gc(t,(n,r)=>n<=r,e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!=null,requiresFilterValue:!1}];function Mce({value:e}){return e instanceof Date?e.toLocaleDateString():e!=null?e:""}function Tce({value:e}){return e instanceof Date?e.toLocaleString():e!=null?e:""}const Rce=S({},Ml,{type:"date",sortComparator:aA,valueFormatter:Mce,filterOperators:fA(),renderEditCell:qL,getApplyQuickFilterFn:void 0}),Oce=S({},Ml,{type:"dateTime",sortComparator:aA,valueFormatter:Tce,filterOperators:fA(!0),renderEditCell:qL,getApplyQuickFilterFn:void 0}),Zs=e=>e==null?null:Number(e),Lce=e=>e==null||Number.isNaN(e)||e===""?null:({value:t})=>Zs(t)===Zs(e),Ace=()=>[{label:"=",value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>Zs(t)===e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>Zs(t)!==e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Zs(t)>e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Zs(t)>=e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Zs(t)<e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Zs(t)<=e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:({value:t})=>t!=null&&e.value.includes(Number(t)),InputComponent:uA,InputComponentProps:{type:"number"}}],Fce=S({},Ml,{type:"number",align:"right",headerAlign:"right",sortComparator:lA,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>gce(e)?e.toLocaleString():e||"",filterOperators:Ace(),getApplyQuickFilterFn:Lce}),Nce=["item","applyValue","type","apiRef","focusElementRef"],Dce=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,f=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return R.jsx(o,{value:f,children:h},c)});function X_(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:f,focusElementRef:p}=e,h=oe(e,Nce),[m,v]=u.useState((t=s.value)!=null?t:""),b=Pn(),g=Ye(),C=(r=(((n=g.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,P=s.columnField?f.current.getColumn(s.columnField):null,w=u.useMemo(()=>{if(P!==null)return typeof P.valueOptions=="function"?P.valueOptions({field:P.field}):P.valueOptions},[P]),E=u.useCallback(I=>{let _=I.target.value;_=Xm(_,w),v(String(_)),a(S({},s,{value:_}))},[a,s,w]);return u.useEffect(()=>{var I;let _;if(w!==void 0){if(_=Xm(s.value,w),_!==s.value){a(S({},s,{value:_}));return}}else _=s.value;_=(I=_)!=null?I:"",v(String(_))},[s,w,a]),R.jsx(g.components.BaseTextField,S({id:b,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:E,variant:"standard",type:c||"text",InputLabelProps:{shrink:!0},inputRef:p,select:!0,SelectProps:S({native:C},(o=g.componentsProps)==null?void 0:o.baseSelect)},h,(i=g.componentsProps)==null?void 0:i.baseTextField,{children:Dce(f.current.getColumn(s.columnField),f.current,C?"option":ur)}))}const Bce=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],zce=(e,t)=>al(e)===al(t),jce=UR();function Hce(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:s,helperText:a,size:c,variant:f="standard"}=e,p=oe(e,Bce),h={color:i,error:s,helperText:a,size:c,variant:f},m=Pn(),v=Ye(),b=t.columnField?r.current.getColumn(t.columnField):null,g=u.useMemo(()=>b!=null&&b.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[],[b]),x=u.useMemo(()=>g==null?void 0:g.map(al),[g]),{valueFormatter:C,field:P}=r.current.getColumn(t.columnField),w=_=>typeof _=="object"?_.label:C&&_!==""?C({value:_,field:P,api:r.current}):_,E=u.useMemo(()=>Array.isArray(t.value)?g!==void 0?t.value.map(k=>{const $=al(k);return(x==null?void 0:x.findIndex(O=>O===$))||0}).filter(k=>k>=0).map(k=>g[k]):t.value:[],[t.value,g,x]);u.useEffect(()=>{(!Array.isArray(t.value)||E.length!==t.value.length)&&n(S({},t,{value:E.map(al)}))},[t,E,n]);const I=u.useCallback((_,k)=>{n(S({},t,{value:[...k.map(al)]}))},[n,t]);return R.jsx(cO,S({multiple:!0,limitTags:1,options:g,isOptionEqualToValue:zce,filterOptions:jce,id:m,value:E,onChange:I,renderTags:(_,k)=>_.map(($,T)=>R.jsx(ev,S({variant:"outlined",size:"small",label:w($)},k({index:T})))),renderInput:_=>{var k;return R.jsx(v.components.BaseTextField,S({},_,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},_.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},h,(k=v.componentsProps)==null?void 0:k.baseTextField))}},p))}const el=e=>e==null||typeof e!="object"?e:e.value,Vce=(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:i}=t,s=[el(e).toString()],a=typeof r=="function"?r({field:i}):r||[];return a&&a.forEach(c=>{let f,p;typeof c=="object"?(f=c.value,p=c.label):(f=c,o?p=o({value:c,field:i,api:n.current}):p=c),p.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(s.includes(f)||s.push(f.toString()))}),({value:c})=>c!=null?s.includes(el(c).toString()):!1},Uce=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>el(t)===el(e.value),InputComponent:X_},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>el(t)!==el(e.value),InputComponent:X_},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(el);return({value:n})=>t.includes(el(n))},InputComponent:Hce}],Wce=S({},Ml,{type:"singleSelect",renderEditCell:tae,filterOperators:Uce(),getApplyQuickFilterFn:Vce}),Zm="__default__",Gce=()=>({string:Ml,number:Fce,date:Rce,dateTime:Oce,boolean:dA,singleSelect:Wce,[Nx]:Cce,[Zm]:Ml}),pA=["maxWidth","minWidth","width","flex"],hA=(e={})=>{const t=S({},Gce());return Object.entries(e).forEach(([n,r])=>{t[n]?t[n]=S({},t[n],r):t[n]=S({},t[r.extendType||Zm],r)}),t};function Kce({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:i=>{const s=r.all[i];s&&s.frozen!==!0&&(r.all[i].frozen=!0,r.frozenFields.push(i))}};function o(){if(r.frozenFields.length===n.length)return;const i={min:{},max:{}};let s=e,a=t,c=0;r.frozenFields.forEach(f=>{s-=r.all[f].computedWidth,a-=r.all[f].flex});for(let f=0;f<n.length;f+=1){const p=n[f];if(r.all[p.field]&&r.all[p.field].frozen===!0)continue;let m=s/a*p.flex;m<p.minWidth?(c+=p.minWidth-m,m=p.minWidth,i.min[p.field]=!0):m>p.maxWidth&&(c+=p.maxWidth-m,m=p.maxWidth,i.max[p.field]=!0),r.all[p.field]={frozen:!1,computedWidth:m,flex:p.flex}}c<0?Object.keys(i.max).forEach(f=>{r.freeze(f)}):c>0?Object.keys(i.min).forEach(f=>{r.freeze(f)}):n.forEach(({field:f})=>{r.freeze(f)}),o()}return o(),r.all}const mA=(e,t)=>{const n={};let r=0,o=0;const i=[];e.all.forEach(a=>{const c=S({},e.lookup[a]);if(e.columnVisibilityModel[a]===!1)c.computedWidth=0;else{let f;c.flex&&c.flex>0?(r+=c.flex,f=0,i.push(c)):f=Lf(c.width,c.minWidth,c.maxWidth),o+=f,c.computedWidth=f}n[a]=c});const s=Math.max(t-o,0);if(r>0&&t>0){const a=Kce({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return S({},e,{lookup:n})},qce=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},s=[];for(let p=0;p<n.length;p+=1){const h=n[p];e.lookup[h]&&(i[h]=!0,s.push(h))}const a=s.length===0?e.all:[...s,...e.all.filter(p=>!i[p])],c=S({},e.lookup);for(let p=0;p<o.length;p+=1){const h=o[p],m=S({},c[h],{hasBeenResized:!0});Object.entries(r[h]).forEach(([v,b])=>{m[v]=b===-1?1/0:b}),c[h]=m}return{all:a,lookup:c}},Yce=(e,t)=>!t||!e[t]?e[Zm]:e[t],Sc=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=ll(e),shouldRegenColumnVisibilityModelFromColumns:i,keepOnlyColumnsToUpsert:s=!1})=>{var a,c,f,p;const h=!e.current.state.columns;let m;if(h)m={all:[],lookup:{}};else{const E=ka(e.current.state);m={all:s?[]:[...E.all],lookup:S({},E.lookup)}}let v={};s&&!h&&(v=Object.keys(m.lookup).reduce((E,I)=>S({},E,{[I]:!1}),{}));const b={};t.forEach(E=>{const{field:I}=E;b[I]=!0,v[I]=!0;let _=m.lookup[I];_==null?(_=S({},Yce(r,E.type),{field:I,hasBeenResized:!1}),m.all.push(I)):s&&m.all.push(I);let k=_.hasBeenResized;pA.forEach($=>{E[$]!==void 0&&(k=!0,E[$]===-1&&(E[$]=1/0))}),m.lookup[I]=S({},_,{hide:E.hide==null?!1:E.hide},E,{hasBeenResized:k})}),s&&!h&&Object.keys(m.lookup).forEach(E=>{v[E]||delete m.lookup[E]});const g=S({},m.lookup),x=e.current.unstable_applyPipeProcessors("hydrateColumns",m);let C={};if(i){let E=!1;const I=S({},o);h?x.all.forEach(_=>{I[_]=!m.lookup[_].hide}):s&&Object.keys(I).forEach(_=>{x.lookup[_]||(delete I[_],E=!0)}),x.all.forEach(_=>{if(!b[_]&&g[_]===x.lookup[_])return;let k=o[_];k===void 0&&(h?k=!0:k=!!ka(e.current.state).lookup[_]);const $=!x.lookup[_].hide;$!==k&&(E=!0,I[_]=$)}),E||h?C=I:C=o}else C=o;const P=qce(x,n),w=S({},P,{columnVisibilityModel:C});return mA(w,(a=(c=(f=e.current).getRootDimensions)==null||(p=c.call(f))==null?void 0:p.viewportInnerSize.width)!=null?a:0)},Q_=e=>t=>S({},t,{columns:e});function Db({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,f=t.current.unstable_getCellColSpanInfo(c,e);f&&f.spannedByColSpan&&(i=f.leftVisibleCellIndex)}return i}function Xce({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return Db({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}const Qce=e=>{const{column:t,onClick:n}=e,r=vt(),o=Ye(),i=u.useRef(),c=pr(r).filter(p=>p.disableColumnMenu!==!0).length===1,f=u.useCallback(p=>{c||(n(p),i.current=setTimeout(()=>{r.current.setColumnVisibility(t==null?void 0:t.field,!1)},100))},[r,t==null?void 0:t.field,n,c]);return u.useEffect(()=>()=>clearTimeout(i.current),[]),o.disableColumnSelector||t.hideable===!1?null:R.jsx(ur,{onClick:f,disabled:c,children:r.current.getLocaleText("columnMenuHideColumn")})},Jce=e=>{const{column:t,onClick:n}=e,r=vt(),o=Ue(r,ai),i=u.useMemo(()=>{if(!t)return null;const a=o.find(c=>c.field===t.field);return a==null?void 0:a.sort},[t,o]),s=u.useCallback(a=>{n(a);const c=a.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t,c)},[r,t,n]);return!t||!t.sortable?null:R.jsxs(u.Fragment,{children:[R.jsx(ur,{onClick:s,disabled:i==null,children:r.current.getLocaleText("columnMenuUnsort")}),R.jsx(ur,{onClick:s,"data-value":"asc",disabled:i==="asc",children:r.current.getLocaleText("columnMenuSortAsc")}),R.jsx(ur,{onClick:s,"data-value":"desc",disabled:i==="desc",children:r.current.getLocaleText("columnMenuSortDesc")})]})},Zce=u.forwardRef(function(t,n){const{hideMenu:r,currentColumn:o}=t,i=vt(),s=[R.jsx(Jce,{onClick:r,column:o}),R.jsx(sce,{onClick:r,column:o}),R.jsx(Qce,{onClick:r,column:o}),R.jsx(ice,{onClick:r,column:o})],a=i.current.unstable_applyPipeProcessors("columnMenu",s,o);return R.jsx(ace,S({ref:n},t,{children:a.map((c,f)=>u.cloneElement(c,{key:f,onClick:r,column:o}))}))}),eue=["className"],tue=e=>{const{classes:t}=e;return Ie({root:["panelContent"]},Dt,t)},nue=re("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function gA(e){const{className:t}=e,n=oe(e,eue),o={classes:Ye().classes},i=tue(o);return R.jsx(nue,S({className:he(t,i.root)},n))}const rue=["className"],oue=e=>{const{classes:t}=e;return Ie({root:["panelFooter"]},Dt,t)},iue=re("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function vA(e){const{className:t}=e,n=oe(e,rue),o={classes:Ye().classes},i=oue(o);return R.jsx(iue,S({className:he(t,i.root)},n))}const sue=["className"],lue=e=>{const{classes:t}=e;return Ie({root:["panelHeader"]},Dt,t)},aue=re("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function cue(e){const{className:t}=e,n=oe(e,sue),o={classes:Ye().classes},i=lue(o);return R.jsx(aue,S({className:he(t,i.root)},n))}const uue=["className"],due=e=>{const{classes:t}=e;return Ie({root:["panelWrapper"]},Dt,t)},fue=re("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),pue=()=>!0,yA=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,uue),s={classes:Ye().classes},a=due(s);return R.jsx(nO,{open:!0,disableEnforceFocus:!0,isEnabled:pue,children:R.jsx(fue,S({ref:n,tabIndex:-1,className:he(r,a.root)},o))})}),hue=!1,mue=e=>{const{classes:t}=e;return Ie({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Dt,t)},gue=re("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})(()=>({padding:"8px 0px 8px 8px"})),vue=re("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${br.root}`]:{marginRight:e.spacing(.5)}})),yue=re(tr)({justifyContent:"flex-end"});function bue(e){var t,n,r;const o=vt(),i=u.useRef(null),s=Ue(o,Uo),a=Ue(o,ll),c=Ye(),[f,p]=u.useState(""),h={classes:c.classes},m=mue(h),v=C=>{const{name:P}=C.target;o.current.setColumnVisibility(P,a[P]===!1)},b=u.useCallback(C=>o.current.unstable_caches.columns.isUsingColumnVisibilityModel?C?o.current.setColumnVisibilityModel({}):o.current.setColumnVisibilityModel(Object.fromEntries(s.filter(P=>P.hideable!==!1).map(P=>[P.field,!1]))):o.current.updateColumns(s.map(P=>P.hideable!==!1?{field:P.field,hide:!C}:P)),[o,s]),g=u.useCallback(C=>{p(C.target.value)},[]),x=u.useMemo(()=>{if(!f)return s;const C=f.toLowerCase();return s.filter(P=>(P.headerName||P.field).toLowerCase().indexOf(C)>-1)},[s,f]);return u.useEffect(()=>{i.current.focus()},[]),R.jsxs(yA,S({},e,{children:[R.jsx(cue,{children:R.jsx(c.components.BaseTextField,S({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:f,onChange:g,variant:"standard",fullWidth:!0},(t=c.componentsProps)==null?void 0:t.baseTextField))}),R.jsx(gA,{children:R.jsx(gue,{className:m.root,children:x.map(C=>{var P;return R.jsxs(vue,{className:m.columnsPanelRow,children:[R.jsx(SO,{control:R.jsx(c.components.BaseSwitch,S({disabled:C.hideable===!1,checked:a[C.field]!==!1,onClick:v,name:C.field,size:"small"},(P=c.componentsProps)==null?void 0:P.baseSwitch)),label:C.headerName||C.field}),!c.disableColumnReorder&&hue&&R.jsx(yue,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:R.jsx(XL,{})})]},C.field)})})}),R.jsxs(vA,{children:[R.jsx(c.components.BaseButton,S({onClick:()=>b(!1)},(n=c.componentsProps)==null?void 0:n.baseButton,{children:o.current.getLocaleText("columnsPanelHideAllButton")})),R.jsx(c.components.BaseButton,S({onClick:()=>b(!0)},(r=c.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const wue=["children","className","classes"],Cue=Ve("MuiDataGrid",["panel","paper"]),xue=re(Aa,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Sue=re(Zo,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),Eue=u.forwardRef((e,t)=>{var n;const{children:r,className:o}=e,i=oe(e,wue),s=vt(),a=Cue,[c,f]=u.useState(!1),p=u.useCallback(()=>{s.current.hidePreferences()},[s]),h=u.useCallback(b=>{Ox(b.key)&&s.current.hidePreferences()},[s]),m=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{f(!0)},effect:()=>()=>{f(!1)}}],[]),v=(n=s.current.columnHeadersContainerElementRef)==null?void 0:n.current;return v?R.jsx(xue,S({ref:t,placement:"bottom-start",className:he(o,a.panel),anchorEl:v,modifiers:m},i,{children:R.jsx(WR,{mouseEvent:"onMouseUp",onClickAway:p,children:R.jsx(Sue,{className:a.paper,elevation:8,onKeyDown:h,children:c&&r})})})):null}),Pue=u.forwardRef(function(t,n){var r,o,i;const s=vt(),a=Ue(s,Uo),c=Ye(),f=Ue(s,Qm),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=f.openedPanelValue)!=null?r:$l.filters);return R.jsx(c.components.Panel,S({ref:n,as:c.components.BasePopper,open:a.length>0&&f.open},(o=c.componentsProps)==null?void 0:o.panel,t,(i=c.componentsProps)==null?void 0:i.basePopper,{children:p}))}),kue=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Iue=["InputComponentProps"],_ue=e=>{const{classes:t}=e;return Ie({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Dt,t)},$ue=re("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Mue=re(Na,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),Tue=re(Na,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Rue=re(Na,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Oue=re(Na,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Lue=re(Na,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Aue=e=>{switch(e){case Tr.And:return"filterPanelOperatorAnd";case Tr.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},bd=e=>e.headerName||e.field,J_=new Intl.Collator,Fue=u.forwardRef(function(t,n){var r,o,i,s,a,c,f;const{item:p,hasMultipleFilters:h,deleteFilter:m,applyFilterChanges:v,multiFilterOperator:b,showMultiFilterOperators:g,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:C,focusElementRef:P,linkOperators:w=[Tr.And,Tr.Or],columnsSort:E,deleteIconProps:I={},linkOperatorInputProps:_={},operatorInputProps:k={},columnInputProps:$={},valueInputProps:T={}}=t,O=oe(t,kue),N=vt(),V=Ue(N,Sv),j=Pn(),L=Pn(),D=Pn(),B=Pn(),W=Ye(),A={classes:W.classes},z=_ue(A),G=u.useRef(null),q=u.useRef(null),X=h&&w.length>0,ie=((r=W.componentsProps)==null?void 0:r.baseFormControl)||{},se=(i=(((o=W.componentsProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,ae=se?"option":ur,{InputComponentProps:we}=T,de=oe(T,Iue),le=u.useMemo(()=>{switch(E){case"asc":return V.sort((Ae,Oe)=>J_.compare(bd(Ae),bd(Oe)));case"desc":return V.sort((Ae,Oe)=>-J_.compare(bd(Ae),bd(Oe)));default:return V}},[V,E]),te=p.columnField?N.current.getColumn(p.columnField):null,be=u.useMemo(()=>{var Ae;return!p.operatorValue||!te?null:(Ae=te.filterOperators)==null?void 0:Ae.find(Oe=>Oe.value===p.operatorValue)},[p,te]),_e=u.useCallback(Ae=>{const Oe=Ae.target.value,Ze=N.current.getColumn(Oe);if(Ze.field===te.field)return;const yt=Ze.filterOperators.find(et=>et.value===p.operatorValue)||Ze.filterOperators[0],tt=!yt.InputComponent||yt.InputComponent!==(be==null?void 0:be.InputComponent);v(S({},p,{columnField:Oe,operatorValue:yt.value,value:tt?void 0:p.value}))},[N,v,p,te,be]),Se=u.useCallback(Ae=>{const Oe=Ae.target.value,Ze=te==null?void 0:te.filterOperators.find(tt=>tt.value===Oe),yt=!(Ze!=null&&Ze.InputComponent)||(Ze==null?void 0:Ze.InputComponent)!==(be==null?void 0:be.InputComponent);v(S({},p,{operatorValue:Oe,value:yt?void 0:p.value}))},[v,p,te,be]),Fe=u.useCallback(Ae=>{const Oe=Ae.target.value===Tr.And.toString()?Tr.And:Tr.Or;C(Oe)},[C]),Re=()=>{W.disableMultipleColumnsFiltering?p.value===void 0?m(p):v(S({},p,{value:void 0})):m(p)};return u.useImperativeHandle(P,()=>({focus:()=>{if(be!=null&&be.InputComponent){var Ae;G==null||(Ae=G.current)==null||Ae.focus()}else q.current.focus()}}),[be]),R.jsxs($ue,S({ref:n,className:z.root},O,{children:[R.jsx(Mue,S({variant:"standard",as:W.components.BaseFormControl},ie,I,{className:he(z.deleteIcon,ie.className,I.className),children:R.jsx(tr,{"aria-label":N.current.getLocaleText("filterPanelDeleteIconLabel"),title:N.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Re,size:"small",children:R.jsx(W.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),R.jsx(Tue,S({variant:"standard",as:W.components.BaseFormControl},ie,_,{sx:S({display:X?"flex":"none",visibility:g?"visible":"hidden"},ie.sx||{},_.sx||{}),className:he(z.linkOperatorInput,ie.className,_.className),children:R.jsx(W.components.BaseSelect,S({inputProps:{"aria-label":N.current.getLocaleText("filterPanelLinkOperator")},value:b,onChange:Fe,disabled:!!x||w.length===1,native:se},(s=W.componentsProps)==null?void 0:s.baseSelect,{children:w.map(Ae=>R.jsx(ae,{value:Ae.toString(),children:N.current.getLocaleText(Aue(Ae))},Ae.toString()))}))})),R.jsxs(Rue,S({variant:"standard",as:W.components.BaseFormControl},ie,$,{className:he(z.columnInput,ie.className,$.className),children:[R.jsx(gb,{htmlFor:j,id:L,children:N.current.getLocaleText("filterPanelColumns")}),R.jsx(W.components.BaseSelect,S({labelId:L,id:j,label:N.current.getLocaleText("filterPanelColumns"),value:p.columnField||"",onChange:_e,native:se},(a=W.componentsProps)==null?void 0:a.baseSelect,{children:le.map(Ae=>R.jsx(ae,{value:Ae.field,children:bd(Ae)},Ae.field))}))]})),R.jsxs(Oue,S({variant:"standard",as:W.components.BaseFormControl},ie,k,{className:he(z.operatorInput,ie.className,k.className),children:[R.jsx(gb,{htmlFor:D,id:B,children:N.current.getLocaleText("filterPanelOperators")}),R.jsx(W.components.BaseSelect,S({labelId:B,label:N.current.getLocaleText("filterPanelOperators"),id:D,value:p.operatorValue,onChange:Se,native:se,inputRef:q},(c=W.componentsProps)==null?void 0:c.baseSelect,{children:te==null||(f=te.filterOperators)==null?void 0:f.map(Ae=>R.jsx(ae,{value:Ae.value,children:Ae.label||N.current.getLocaleText(`filterOperator${fe(Ae.value)}`)},Ae.value))}))]})),R.jsx(Lue,S({variant:"standard",as:W.components.BaseFormControl},ie,de,{className:he(z.valueInput,ie.className,de.className),children:be!=null&&be.InputComponent?R.jsx(be.InputComponent,S({apiRef:N,item:p,applyValue:v,focusElementRef:G},be.InputComponentProps,we)):null}))]}))}),Nue=["linkOperators","columnsSort","filterFormProps","children"],Due=u.forwardRef(function(t,n){var r;const o=vt(),i=Ye(),s=Ue(o,jr),a=Ue(o,Sv),c=u.useRef(null),{linkOperators:f=[Tr.And,Tr.Or],columnsSort:p,filterFormProps:h}=t,m=oe(t,Nue),v=u.useCallback(E=>{o.current.upsertFilterItem(E)},[o]),b=u.useCallback(E=>{o.current.setFilterLinkOperator(E)},[o]),g=u.useCallback(()=>{const E=a.find(I=>{var _;return(_=I.filterOperators)==null?void 0:_.length});return E?{columnField:E.field,operatorValue:E.filterOperators[0].value,id:Math.round(Math.random()*1e5)}:null},[a]),x=u.useMemo(()=>{if(s.items.length)return s.items;const E=g();return E?[E]:[]},[s.items,g]),C=x.length>1,P=()=>{const E=g();E&&o.current.upsertFilterItems([...x,E])},w=u.useCallback(E=>{const I=x.length===1;o.current.deleteFilterItem(E),I&&o.current.hideFilterPanel()},[o,x.length]);return u.useEffect(()=>{f.length>0&&s.linkOperator&&!f.includes(s.linkOperator)&&b(f[0])},[f,b,s.linkOperator]),u.useEffect(()=>{x.length>0&&c.current.focus()},[x.length]),R.jsxs(yA,S({ref:n},m,{children:[R.jsx(gA,{children:x.map((E,I)=>R.jsx(Fue,S({item:E,applyFilterChanges:v,deleteFilter:w,hasMultipleFilters:C,showMultiFilterOperators:I>0,multiFilterOperator:s.linkOperator,disableMultiFilterOperator:I!==1,applyMultiFilterOperatorChanges:b,focusElementRef:I===x.length-1?c:null,linkOperators:f,columnsSort:p},h),E.id==null?I:E.id))}),!i.disableMultipleColumnsFiltering&&R.jsx(vA,{children:R.jsx(i.components.BaseButton,S({onClick:P,startIcon:R.jsx(YL,{})},(r=i.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}),Bue=["hideMenu","options"],zue=["hideMenu","options"],jue=e=>{const t=vt(),{hideMenu:n,options:r}=e,o=oe(e,Bue);return R.jsx(ur,S({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))},Hue=e=>{const t=vt(),{hideMenu:n,options:r}=e,o=oe(e,zue);return R.jsx(ur,S({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))},Af=()=>({items:[],linkOperator:Tr.And,quickFilterValues:[],quickFilterLogicOperator:Tr.And}),Vue=["className","rowCount","visibleRowCount"],Uue=e=>{const{classes:t}=e;return Ie({root:["rowCount"]},Dt,t)},Wue=re("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),Gue=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=oe(t,Vue),a=vt(),f={classes:Ye().classes},p=Uue(f);if(o===0)return null;const h=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return R.jsxs(Wue,S({ref:n,className:he(p.root,r)},s,{children:[a.current.getLocaleText("footerTotalRows")," ",h]}))}),Kue=["className","selectedRowCount"],que=e=>{const{classes:t}=e;return Ie({root:["selectedRowCount"]},Dt,t)},Yue=re("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"}})),Xue=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=oe(t,Kue),s=vt(),c={classes:Ye().classes},f=que(c),p=s.current.getLocaleText("footerRowSelected")(o);return R.jsx(Yue,S({ref:n,className:he(f.root,r)},i,{children:p}))}),Que=u.forwardRef(function(t,n){var r;const o=vt(),i=Ye(),s=Ue(o,Fse),a=Ue(o,Zae),c=Ue(o,HL),f=!i.hideFooterSelectedRowCount&&a>0?R.jsx(Xue,{selectedRowCount:a}):R.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?R.jsx(Gue,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.components.Pagination&&R.jsx(i.components.Pagination,S({},(r=i.componentsProps)==null?void 0:r.pagination));return R.jsxs(vae,S({ref:n},t,{children:[f,p,h]}))}),Jue=u.forwardRef(function(t,n){var r,o;const i=Ye();return R.jsxs("div",S({ref:n},t,{children:[R.jsx(i.components.PreferencesPanel,S({},(r=i.componentsProps)==null?void 0:r.preferencesPanel)),i.components.Toolbar&&R.jsx(i.components.Toolbar,S({},(o=i.componentsProps)==null?void 0:o.toolbar))]}))}),Zue=u.forwardRef(function(t,n){return R.jsx(Pv,S({ref:n},t,{children:R.jsx(ep,{})}))}),ede=u.forwardRef(function(t,n){const o=vt().current.getLocaleText("noRowsLabel");return R.jsx(Pv,S({ref:n},t,{children:o}))}),tde=re(jte)(({theme:e})=>({[`& .${pa.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${pa.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),nde=u.forwardRef(function(t,n){var r;const o=vt(),i=Ye(),s=Ue(o,Ou),a=u.useMemo(()=>Math.floor(s.rowCount/(s.pageSize||1)),[s.rowCount,s.pageSize]),c=u.useCallback(p=>{const h=Number(p.target.value);o.current.setPageSize(h)},[o]),f=u.useCallback((p,h)=>{o.current.setPage(h)},[o]);return R.jsx(tde,S({ref:n,component:"div",count:s.rowCount,page:s.page<=a?s.page:a,rowsPerPageOptions:(r=i.rowsPerPageOptions)!=null&&r.includes(s.pageSize)?i.rowsPerPageOptions:[],rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:c},o.current.getLocaleText("MuiTablePagination"),t))}),kv=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=Ax(e),n=tce(e)):(n=Ls(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Ha=(e,t)=>{const n=kv(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Dx="__detail_panel_toggle__",rde=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],ode=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:s}=e;return Ie({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Dt,s)},ide=({width:e})=>{if(!e)return null;const t={width:e};return R.jsx("div",{className:"MuiDataGrid-cell",style:t})};function sde(e){var t;const{selected:n,rowId:r,row:o,index:i,style:s,rowHeight:a,className:c,visibleColumns:f,renderedColumns:p,containerWidth:h,firstColumnToRender:m,cellFocus:v,cellTabIndex:b,editRowsState:g,isLastVisible:x=!1,onClick:C,onDoubleClick:P,onMouseEnter:w,onMouseLeave:E}=e,I=oe(e,rde),_=vt(),k=u.useRef(null),$=Ye(),T=Ha(_,$),O=Ue(_,xv),N=Ue(_,ai),V=Ue(_,Ix),j=Ue(_,Tx),L=i+j+2,{hasScrollX:D,hasScrollY:B}=(t=_.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},W={selected:n,isLastVisible:x,classes:$.classes,editing:_.current.getRowMode(r)===Xt.Edit,editable:$.editMode===xr.Row,rowHeight:a},A=ode(W);u.useLayoutEffect(()=>{a==="auto"&&k.current&&typeof ResizeObserver=="undefined"&&_.current.unstable_storeRowHeightMeasurement(r,k.current.clientHeight)},[_,a,r]),u.useLayoutEffect(()=>{if(T.range){const _e=_.current.getRowIndexRelativeToVisibleRows(r);_e!=null&&_.current.unstable_setLastMeasuredRowIndex(_e)}const le=k.current;if(!le||a!=="auto"||typeof ResizeObserver=="undefined")return;const be=new ResizeObserver(_e=>{const[Se]=_e,Fe=Se.borderBoxSize&&Se.borderBoxSize.length>0?Se.borderBoxSize[0].blockSize:Se.contentRect.height;_.current.unstable_storeRowHeightMeasurement(r,Fe)});return be.observe(le),()=>be.disconnect()},[_,T.range,i,a,r]);const z=u.useCallback((le,te)=>be=>{be.target.nodeType===1&&!be.currentTarget.contains(be.target)||_.current.getRow(r)&&(_.current.publishEvent(le,_.current.getRowParams(r),be),te&&te(be))},[_,r]),G=u.useCallback(le=>{const te=Rae(le.target,Z.cell),be=te==null?void 0:te.getAttribute("data-field");be&&(be===dp.field||be===Dx||be==="__reorder__"||_.current.getCellMode(r,be)===Rt.Edit||_.current.getColumn(be).type===Nx)||z("rowClick",C)(le)},[_,C,z,r]),q=S({},s,{maxHeight:a==="auto"?"none":a,minHeight:a}),X=_.current.unstable_getRowInternalSizes(r);if(X!=null&&X.spacingTop){const le=$.rowSpacingType==="border"?"borderTopWidth":"marginTop";q[le]=X.spacingTop}if(X!=null&&X.spacingBottom){const le=$.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";q[le]=X.spacingBottom}let ie=null;if(typeof $.getRowClassName=="function"){const le=i-T.range.firstRowIndex,te=S({},_.current.getRowParams(r),{isFirstVisible:le===0,isLastVisible:le===T.rows.length-1,indexRelativeToCurrentPage:le});ie=$.getRowClassName(te)}const ee=[];for(let le=0;le<p.length;le+=1){const te=p[le],be=m+le,_e=be===f.length-1,Fe=_e?!(_e&&D&&!B)&&$.disableExtendRowFullWidth:$.showCellRightBorder,Re=_.current.getCellParams(r,te.field),Ae=[],Oe=$.disableColumnReorder&&te.disableReorder||!$.rowReordering&&!!N.length&&V>1&&Object.keys(g).length>0;te.cellClassName&&Ae.push(he(typeof te.cellClassName=="function"?te.cellClassName(Re):te.cellClassName));const Ze=g[r]?g[r][te.field]:null;let yt=null;if(Ze==null&&te.renderCell){var se;yt=te.renderCell(S({},Re,{api:_.current})),Ae.push(he(Z["cell--withRenderer"],(se=$.classes)==null?void 0:se["cell--withRenderer"]))}if(Ze!=null&&te.renderEditCell){var ae;let mt=o;_.current.unstable_getRowWithUpdatedValues&&(mt=_.current.unstable_getRowWithUpdatedValues(r,te.field));const lt=S({},Re,{row:mt},Ze,{api:_.current});yt=te.renderEditCell(lt),Ae.push(he(Z["cell--editing"],(ae=$.classes)==null?void 0:ae["cell--editing"]))}$.getCellClassName&&Ae.push($.getCellClassName(Re));const tt=v!==null&&v.id===r&&v.field===te.field,et=b!==null&&b.id===r&&b.field===te.field&&Re.cellMode==="view"?0:-1,Pt=_.current.unstable_getCellColSpanInfo(r,be);if(Pt&&!Pt.spannedByColSpan){var we;const{colSpan:mt,width:lt}=Pt.cellProps;ee.push(R.jsx($.components.Cell,S({value:Re.value,field:te.field,width:lt,rowId:r,height:a,showRightBorder:Fe,formattedValue:Re.formattedValue,align:te.align||"left",cellMode:Re.cellMode,colIndex:be,isEditable:Re.isEditable,hasFocus:tt,tabIndex:et,className:he(Ae),colSpan:mt,disableDragEvents:Oe},(we=$.componentsProps)==null?void 0:we.cell,{children:yt}),te.field))}}const de=h-O;return R.jsxs("div",S({ref:k,"data-id":r,"data-rowindex":i,role:"row",className:he(ie,A.root,c),"aria-rowindex":L,"aria-selected":n,style:q,onClick:G,onDoubleClick:z("rowDoubleClick",P),onMouseEnter:z("rowMouseEnter",w),onMouseLeave:z("rowMouseLeave",E)},I,{children:[ee,de>0&&R.jsx(ide,{width:de})]}))}const Z_=1e3;class lde{constructor(t=Z_){this.timeouts=new Map,this.cleanupTimeout=Z_,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 ade{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 $a;(function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"})($a||($a={}));class cde{}function ude(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new ade:new lde);const[a]=u.useState(new cde),c=u.useRef(null),f=u.useRef();f.current=i;const p=u.useRef(null);if(!c.current&&f.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=f.current)==null||g.call(f,m,v,b)}};c.current=r.current.subscribeEvent(o,h,s),t+=1,p.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,p.current=null},p.current)}else!f.current&&c.current&&(c.current(),c.current=null,p.current&&(e.registry.unregister(p.current),p.current=null));u.useEffect(()=>{if(!c.current&&f.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=f.current)==null||g.call(f,m,v,b)}};c.current=r.current.subscribeEvent(o,h,s)}return p.current&&e.registry&&(e.registry.unregister(p.current),p.current=null),()=>{var h;(h=c.current)==null||h.call(c),c.current=null}},[r,o,s])}}const dde={registry:null},Ne=ude(dde),fde={isFirst:!0};function Ft(e,t,n){Ne(e,t,n,fde)}const e$=1,pde=1.5,hde=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return Ie(r,Dt,n)},mde=re("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${Z["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${Z["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${Z["scrollArea--left"]}`]:{left:0},[`&.${Z["scrollArea--right"]}`]:{right:0}}));function gde(e){const{scrollDirection:t}=e,n=u.useRef(null),r=vt(),o=u.useRef(),[i,s]=u.useState(!1),a=Ue(r,VL),c=u.useRef({left:0,top:0}),f=Ye(),p=S({},e,{classes:f.classes}),h=hde(p),m=u.useCallback(g=>{c.current=g},[]),v=u.useCallback(g=>{let x;if(t==="left")x=g.clientX-n.current.getBoundingClientRect().right;else if(t==="right")x=Math.max(1,g.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI: Wrong drag direction");x=(x-e$)*pde+e$,clearTimeout(o.current),o.current=setTimeout(()=>{r.current.scroll({left:c.current.left+x,top:c.current.top})})},[t,r]);u.useEffect(()=>()=>{clearTimeout(o.current)},[]);const b=u.useCallback(()=>{s(g=>!g)},[]);return Ne(r,"rowsScroll",m),Ne(r,"columnHeaderDragStart",b),Ne(r,"columnHeaderDragEnd",b),i?R.jsx(mde,{ref:n,className:he(h.root),onDragOver:v,style:{height:a}}):null}const t$=u.memo(gde),vde=({apiRef:e,props:t,children:n})=>R.jsx(AL.Provider,{value:t,children:R.jsx(LL.Provider,{value:e,children:n})}),yde=vce()&&window.localStorage.getItem("DEBUG")!=null,Md=()=>{},bde={debug:Md,info:Md,warn:Md,error:Md},n$=["debug","info","warn","error"];function r$(e,t,n=console){const r=n$.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return n$.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[f,...p]=c;n[s](`MUI: ${e} - ${f}`,...p)}:i[s]=Md,i),{})}const wde=(e,t)=>{e.current.getLogger=u.useCallback(n=>yde?r$(n,"debug",t.logger):t.logLevel?r$(n,t.logLevel.toString(),t.logger):bde,[t.logLevel,t.logger])};function Kt(e,t,n){const r=u.useRef(t),[o]=u.useState(Object.keys(t)),i=u.useCallback(()=>{e.current&&o.forEach(s=>{e.current.hasOwnProperty(s)||(e.current[s]=(...a)=>r.current[s](...a))})},[o,e]);u.useEffect(()=>{r.current=t},[t]),u.useEffect(()=>{i()},[i]),i()}class Cde{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const a=o[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s<i.length;s+=1){const a=i[s];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const xde=e=>e.isPropagationStopped!==void 0;let o$=0;function Sde(e,t){const n=u.useRef();n.current||(n.current={unstable_eventManager:new Cde,unstable_caches:{},state:{},instanceId:o$},o$+=1),u.useImperativeHandle(e,()=>n.current,[n]);const r=u.useCallback((...s)=>{const[a,c,f={}]=s;if(f.defaultMuiPrevented=!1,xde(f)&&f.isPropagationStopped())return;const p=t.signature===$a.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(a,c,f,p)},[n,t.signature]),o=u.useCallback((s,a,c)=>{n.current.unstable_eventManager.on(s,a,c);const f=n.current;return()=>{f.unstable_eventManager.removeListener(s,a)}},[n]),i=u.useCallback(s=>{n.current.publishEvent("componentError",s)},[n]);return Kt(n,{subscribeEvent:o,publishEvent:r,showError:i}),u.useEffect(()=>{const s=n.current;return()=>{s.publishEvent("unmount")}},[n]),n}function Ede(e,t){const n=u.useCallback(r=>{e.current.setState(o=>S({},o,{error:r}))},[e]);u.useEffect(()=>{n(t.error)},[n,t.error]),Ne(e,"componentError",n)}const Pde=(e,t)=>{const r={getLocaleText:u.useCallback(o=>{if(t.localeText[o]==null)throw new Error(`Missing translation for key ${o}.`);return t.localeText[o]},[t.localeText])};Kt(e,r)};function Ff(e){return Ff=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},Ff(e)}function kde(e,t){if(Ff(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ff(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nf(e){var t=kde(e,"string");return Ff(t)==="symbol"?t:String(t)}const Ide=e=>{const t=u.useRef({}),n=u.useCallback(c=>{c&&Object.values(c.appliers).forEach(f=>{f()})},[]),r=u.useCallback((c,f,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const h=t.current[c];return h.processors.get(f)!==p&&(h.processors.set(f,p),n(h)),()=>{t.current[c].processors.set(f,null)}},[n]),o=u.useCallback((c,f,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[f]=p,()=>{const h=t.current[c].appliers,m=oe(h,[f].map(Nf));t.current[c].appliers=m}),[]),i=u.useCallback(c=>{const f=t.current[c];n(f)},[n]),s=u.useCallback((...c)=>{const[f,p,h]=c;return t.current[f]?Array.from(t.current[f].processors.values()).reduce((v,b)=>b?b(v,h):v,p):p},[]);Kt(e,{unstable_registerPipeProcessor:r,unstable_registerPipeApplier:o,unstable_requestPipeProcessorsApplication:i,unstable_applyPipeProcessors:s})},fp=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},rr=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeProcessor(t,o.current,n)},[e,n,t]);fp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Bx=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeApplier(t,o.current,n)},[e,n,t]);fp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},zx=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.unstable_registerStrategyProcessor(t,n,r)},[e,r,n,t]);fp(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},pp="none",i$={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},_de=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,f,p)=>{const h=()=>{const b=n.current[f],g=oe(b,[c].map(Nf));n.current[f]=g};n.current[f]||(n.current[f]={});const m=n.current[f],v=m[c];return m[c]=p,!v||v===p||c===e.current.unstable_getActiveStrategy(i$[f])&&e.current.publishEvent("activeStrategyProcessorChange",f),h},[e]),o=u.useCallback((c,f)=>{const p=e.current.unstable_getActiveStrategy(i$[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(f)},[e]),i=u.useCallback(c=>{var f;const h=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(f=h==null?void 0:h[0])!=null?f:pp},[]),s=u.useCallback((c,f,p)=>{t.current.set(f,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Kt(e,{unstable_registerStrategyProcessor:r,unstable_applyStrategyProcessor:o,unstable_getActiveStrategy:i,unstable_setStrategyAvailability:s})},$de=(e,t,n,r,o)=>{const i=Gn(e,"useNativeEventListener"),[s,a]=u.useState(!1),c=u.useRef(r),f=u.useCallback(p=>c.current&&c.current(p),[]);u.useEffect(()=>{c.current=r},[r]),u.useEffect(()=>{let p;if(cA(t)?p=t():p=t&&t.current?t.current:null,p&&n&&!s){i.debug(`Binding native ${n} event`),p.addEventListener(n,f,o);const h=p;a(!0);const m=()=>{i.debug(`Clearing native ${n} event`),h.removeEventListener(n,f,o)};e.current.subscribeEvent("unmount",m)}},[t,f,n,s,i,o,e])},Mde=["stateId"],Tde=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(f=>{const{stateId:p}=f,h=oe(f,Mde);n.current[p]=S({},h,{stateId:p})},[]),i=u.useCallback((f,p)=>{let h;if(cA(f)?h=f(e.current.state):h=f,e.current.state===h)return!1;let m=!1;const v=[];if(Object.keys(n.current).forEach(b=>{const g=n.current[b],x=g.stateSelector(e.current.state,e.current.instanceId),C=g.stateSelector(h,e.current.instanceId);C!==x&&(v.push({stateId:g.stateId,hasPropChanged:C!==g.propModel}),g.propModel!==void 0&&C!==g.propModel&&(m=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(b=>b.stateId).join(", ")} in the same transaction.`);if(m||(e.current.state=h,e.current.publishEvent&&e.current.publishEvent("stateChange",h)),v.length===1){const{stateId:b,hasPropChanged:g}=v[0],x=n.current[b],C=x.stateSelector(h,e.current.instanceId);if(x.propOnChange&&g){const P=t.signature===$a.DataGridPro?{api:e.current,reason:p}:{reason:p};x.propOnChange(C,P)}m||e.current.publishEvent(x.changeEvent,C,{reason:p})}return!m},[e,t.signature]),s=u.useCallback((f,p,h)=>e.current.setState(m=>S({},m,{[f]:p(m[f])}),h),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]);Kt(e,{setState:i,forceUpdate:a,unstable_updateControlState:s,unstable_registerControlState:o})},Rde=(e,t)=>{const n=Sde(e,t);return wde(n,t),Ede(n,t),Tde(n,t),Ide(n),_de(n),Pde(n,t),n},so=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function s$(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)}}const Ode=e=>{const t=u.useCallback((o=!1)=>{if(e.current.getSelectedRows().size===0)return;const i=e.current.getDataAsCsv({includeHeaders:o,delimiter:" "});navigator.clipboard?navigator.clipboard.writeText(i).catch(()=>{s$(i)}):s$(i)},[e]),n=u.useCallback(o=>{var i;const s=o.ctrlKey||o.metaKey||o.altKey;String.fromCharCode(o.keyCode)!=="C"||!s||((i=window.getSelection())==null?void 0:i.toString())===""&&e.current.unstable_copySelectedRowsToClipboard(o.altKey)},[e]);$de(e,e.current.rootElementRef,"keydown",n),Kt(e,{unstable_copySelectedRowsToClipboard:t})},bA=e=>e.columnMenu,Lde=e=>S({},e,{columnMenu:{open:!1}}),Ade=e=>{const t=Gn(e,"useGridColumnMenu"),n=u.useCallback(a=>{e.current.setState(f=>f.columnMenu.open&&f.columnMenu.field===a?f:(t.debug("Opening Column Menu"),S({},f,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{e.current.setState(c=>!c.columnMenu.open&&c.columnMenu.field===void 0?c:(t.debug("Hiding Column Menu"),S({},c,{columnMenu:S({},c.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(a=>{t.debug("Toggle Column Menu");const c=bA(e.current.state);!c.open||c.field!==a?n(a):r()},[e,t,n,r]);Kt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o});const s=u.useCallback((a,c)=>{if(!c.target.classList.contains(Z.menuIconButton)||!c.relatedTarget)return;const f=c.relatedTarget.classList.contains(Z.menuList),p=c.relatedTarget.getAttribute("role")==="menuitem";(f||p)&&e.current.setColumnHeaderFocus(a.field)},[e]);Ne(e,"columnResizeStart",r),Ne(e,"columnHeaderFocus",s),Ne(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ne(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Fde=(e,t,n)=>{var r,o,i,s,a,c,f;const p=!!t.columnVisibilityModel||!!((r=t.initialState)!=null&&(o=r.columns)!=null&&o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:p};const h=hA(t.columnTypes),m=Sc({apiRef:n,columnTypes:h,columnsToUpsert:t.columns,initialState:(i=t.initialState)==null?void 0:i.columns,shouldRegenColumnVisibilityModelFromColumns:!p,currentColumnVisibilityModel:(s=(a=t.columnVisibilityModel)!=null?a:(c=t.initialState)==null||(f=c.columns)==null?void 0:f.columnVisibilityModel)!=null?s:{},keepOnlyColumnsToUpsert:!0});return S({},e,{columns:m})};function Nde(e,t){var n,r;const o=Gn(e,"useGridColumns"),i=u.useMemo(()=>hA(t.columnTypes),[t.columnTypes]),s=u.useRef(t.columns),a=u.useRef(i);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:ll,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(j=>{o.debug("Updating columns state."),e.current.setState(Q_(j)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",j.all)},[o,e]),f=u.useCallback(j=>Ru(e)[j],[e]),p=u.useCallback(()=>Uo(e),[e]),h=u.useCallback(()=>pr(e),[e]),m=u.useCallback(()=>Hse(e),[e]),v=u.useCallback((j,L=!0)=>(L?pr(e):Uo(e)).findIndex(B=>B.field===j),[e]),b=u.useCallback(j=>{const L=v(j);return _a(e)[L]},[e,v]),g=u.useCallback(j=>{ll(e)!==j&&(e.current.setState(D=>S({},D,{columns:Sc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:j,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),x=u.useCallback(j=>{const L=Sc({apiRef:e,columnTypes:i,columnsToUpsert:j,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});c(L)},[e,c,i]),C=u.useCallback(j=>e.current.updateColumns([j]),[e]),P=u.useCallback((j,L)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var D;const B=ll(e),W=(D=B[j])!=null?D:!0;if(L!==W){const A=S({},B,{[j]:L});e.current.setColumnVisibilityModel(A)}}else{const B=e.current.getColumn(j),W=S({},B,{hide:!L});e.current.updateColumns([W]);const A={field:j,colDef:W,isVisible:L};e.current.publishEvent("columnVisibilityChange",A)}},[e]),w=u.useCallback((j,L)=>{const D=Ia(e),B=D.findIndex(G=>G===j);if(B===L)return;o.debug(`Moving column ${j} to index ${L}`);const W=[...D],A=W.splice(B,1)[0];W.splice(L,0,A),c(S({},ka(e.current.state),{all:W}));const z={field:j,element:e.current.getColumnHeaderElement(j),colDef:e.current.getColumn(j),targetIndex:L,oldIndex:B};e.current.publishEvent("columnOrderChange",z)},[e,o,c]),E=u.useCallback((j,L)=>{o.debug(`Updating column ${j} width to ${L}`);const D=e.current.getColumn(j),B=S({},D,{width:L});e.current.updateColumns([B]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(j),colDef:B,width:L})},[e,o]);Kt(e,{getColumn:f,getAllColumns:p,getColumnIndex:v,getColumnPosition:b,getVisibleColumns:h,getColumnsMeta:m,updateColumn:C,updateColumns:x,setColumnVisibilityModel:g,setColumnVisibility:P,setColumnIndex:w,setColumnWidth:E});const _=u.useCallback((j,L)=>{const D={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var B,W,A;const q=ll(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((B=(W=t.initialState)==null||(A=W.columns)==null?void 0:A.columnVisibilityModel)!=null?B:{}).length>0||Object.keys(q).length>0)&&(D.columnVisibilityModel=q)}D.orderedFields=Ia(e);const z=Uo(e),G={};return z.forEach(q=>{if(q.hasBeenResized){const X={};pA.forEach(ie=>{let ee=q[ie];ee===1/0&&(ee=-1),X[ie]=ee}),G[q.field]=X}}),Object.keys(G).length>0&&(D.dimensions=G),S({},j,{columns:D})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),k=u.useCallback((j,L)=>{var D;const B=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?(D=L.stateToRestore.columns)==null?void 0:D.columnVisibilityModel:void 0,W=L.stateToRestore.columns;if(B==null&&W==null)return j;const A=Sc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:W,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(Q_(A)),W!=null&&e.current.publishEvent("columnsChange",A.all),j},[e,i]),$=u.useCallback((j,L)=>{if(L===$l.columns){var D;const B=t.components.ColumnsPanel;return R.jsx(B,S({},(D=t.componentsProps)==null?void 0:D.columnsPanel))}return j},[t.components.ColumnsPanel,(r=t.componentsProps)==null?void 0:r.columnsPanel]);rr(e,"exportState",_),rr(e,"restoreState",k),rr(e,"preferencePanel",$);const T=u.useRef(null);Ne(e,"viewportInnerSizeChange",j=>{T.current!==j.width&&(T.current=j.width,c(mA(ka(e.current.state),j.width)))}),Ft(e,"columnVisibilityChange",t.onColumnVisibilityChange);const N=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const j=Sc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});c(j)},[e,o,c,i]);Bx(e,"hydrateColumns",N);const V=u.useRef(!0);u.useEffect(()=>{if(V.current){V.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&a.current===i)return;const j=Sc({apiRef:e,columnTypes:i,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,a.current=i,c(j)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const Dde=e=>e.columnGrouping,wA=qe(Dde,e=>e.lookup),Bde=["groupId","children"];function zde(e){return e.groupPath!==void 0}const CA=(e,t,n)=>{if(UL(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurrs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
|
|
270
|
+
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{CA(i,[...t,r],n)})},xA=e=>{if(!e)return{};const t={};return e.forEach(n=>{CA(n,[],t)}),t},jx=e=>{let t={};return e.forEach(n=>{if(UL(n))return;const{groupId:r,children:o}=n,i=oe(n,Bde);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=S({},i,{groupId:r}),a=jx(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=S({},t,a,{[r]:s})}),S({},t)},jde=(e,t)=>{var n;const r=jx((n=t.columnGroupingModel)!=null?n:[]);return S({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},Hde=(e,t)=>{var n;const r=u.useCallback(a=>{var c,f;return(c=(f=Ru(e)[a])==null?void 0:f.groupPath)!=null?c:[]},[e]),o=u.useCallback(()=>wA(e),[e]);Kt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o});const s=u.useRef(!0);u.useEffect(()=>{var a,c;if(s.current){s.current=!1;return}if(!((a=t.experimentalFeatures)!=null&&a.columnGrouping))return;const f=jx((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>S({},p,{columnGrouping:S({},p.columnGrouping,{lookup:f})}))},[e,t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping])},Y0=.7,X0=1.3,SA=(e,t,n,r)=>{switch(e){case Of.Compact:return{value:e,headerHeight:Math.floor(t*Y0),rowHeight:Math.floor(n*Y0),headerGroupingMaxDepth:r,factor:Y0};case Of.Comfortable:return{value:e,headerHeight:Math.floor(t*X0),rowHeight:Math.floor(n*X0),headerGroupingMaxDepth:r,factor:X0};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},Vde=(e,t)=>{let n;if(t.columnGroupingModel==null||Object.keys(t.columnGroupingModel).length===0)n=0;else{const r=xA(t.columnGroupingModel),o=e.columns,i=o.all.filter(s=>o.columnVisibilityModel[s]!==!1);i.length===0?n=0:n=Math.max(...i.map(s=>{var a,c;return(a=(c=r[s])==null?void 0:c.length)!=null?a:0}))}return S({},e,{density:SA(t.density,t.headerHeight,t.rowHeight,n)})},Ude=(e,t)=>{const n=Ue(e,pr),r=n.length>0?Math.max(...n.map(a=>{var c,f;return(c=(f=a.groupPath)==null?void 0:f.length)!=null?c:0})):0,o=Gn(e,"useDensity"),i=u.useCallback((a,c=t.headerHeight,f=t.rowHeight,p=r)=>{o.debug(`Set grid density to ${a}`),e.current.setState(h=>{const m=ja(h),v=SA(a,c,f,p);return Cs(m,v)?h:S({},h,{density:v})}),e.current.forceUpdate()},[o,e,t.headerHeight,t.rowHeight,r]);u.useEffect(()=>{e.current.setDensity(t.density,t.headerHeight,t.rowHeight,r)},[e,t.density,t.rowHeight,t.headerHeight,r]),Kt(e,{setDensity:i})};function Wde(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 EA=(e,t)=>{if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
|
|
271
|
+
`,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e};xi(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);const Gde=(e,t,n,r)=>t.map(o=>{const i=n(e,o.field);return EA(i.formattedValue,r)});function Kde(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:i}=e,s=n.reduce((c,f)=>`${c}${Gde(f,t,r,o).join(o)}\r
|
|
272
|
+
`,"").trim();return i?`${`${t.filter(c=>c.field!==dp.field).map(c=>EA(c.headerName||c.field,o)).join(o)}\r
|
|
273
|
+
`}${s}`.trim():s}const PA=({apiRef:e,options:t})=>{const n=Uo(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:pr(e)).filter(o=>!o.disableExport)},qde=({apiRef:e})=>{var t,n;const r=Wse(e),o=ga(e),i=e.current.getSelectedRows(),s=r.filter(p=>{var h;return((h=o[p].position)!=null?h:"body")==="body"}),a=sp(e),c=(a==null||(t=a.top)==null?void 0:t.map(p=>p.id))||[],f=(a==null||(n=a.bottom)==null?void 0:n.map(p=>p.id))||[];return s.unshift(...c),s.push(...f),i.size>0?s.filter(p=>i.has(p)):s},Yde=e=>{const t=Gn(e,"useGridCsvExport"),n=u.useCallback((s={})=>{var a,c;t.debug("Get data as CSV");const f=PA({apiRef:e,options:s}),h=((a=s.getRowsToExport)!=null?a:qde)({apiRef:e});return Kde({columns:f,rowIds:h,getCellParams:e.current.getCellParams,delimiterCharacter:s.delimiter||",",includeHeaders:(c=s.includeHeaders)!=null?c:!0})},[t,e]),r=u.useCallback(s=>{t.debug("Export data as CSV");const a=n(s),c=new Blob([s!=null&&s.utf8WithBom?new Uint8Array([239,187,191]):"",a],{type:"text/csv"});Wde(c,"csv",s==null?void 0:s.fileName)},[t,n]);Kt(e,{getDataAsCsv:n,exportDataAsCsv:r});const i=u.useCallback((s,a)=>{var c;return(c=a.csvOptions)!=null&&c.disableToolbarButton?s:[...s,{component:R.jsx(jue,{options:a.csvOptions}),componentName:"csvExport"}]},[]);rr(e,"exportMenu",i)},Df=e=>e.rowsMeta,Xde=(e,t)=>{const n=Gn(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=bn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((v,b)=>new Promise(g=>{if(!v&&!b){g();return}const x=PA({apiRef:e,options:{fields:v,allColumns:b}}).map(w=>w.field),C=Uo(e),P={};C.forEach(w=>{P[w.field]=x.includes(w.field)}),e.current.setColumnVisibilityModel(P),g()}),[e]),a=u.useCallback(v=>{const b=document.createElement("iframe");return b.id="grid-print-window",b.src=window.location.href,b.style.position="absolute",b.style.width="0px",b.style.height="0px",b.title=v||document.title,b},[]),c=u.useCallback((v,b)=>{var g,x,C;const P=S({copyStyles:!0,hideToolbar:!1,hideFooter:!1},b);v.onload=null;const w=v.contentDocument||((g=v.contentWindow)==null?void 0:g.document);if(!w)return;const E=cp(e),I=Df(e.current.state),_=e.current.rootElementRef.current,k=_.cloneNode(!0),$=k.querySelector(`.${Z.virtualScroller}`);$.style.height="auto",$.style.width="auto",$.parentElement.style.width="auto",$.parentElement.style.height="auto";const T=k.querySelector(`.${Z.main}`);T.style.overflow="visible";const N=k.querySelector(`.${Z.columnHeaders}`).querySelector(`.${Z.columnHeadersInner}`);N.style.width="100%";let V=((x=_.querySelector(`.${Z.toolbarContainer}`))==null?void 0:x.clientHeight)||0,j=((C=_.querySelector(`.${Z.footerContainer}`))==null?void 0:C.clientHeight)||0;if(P.hideToolbar){var L;(L=k.querySelector(`.${Z.toolbarContainer}`))==null||L.remove(),V=0}if(P.hideFooter){var D;(D=k.querySelector(`.${Z.footerContainer}`))==null||D.remove(),j=0}k.style.height=`${I.currentPageTotalHeight+E+V+j}px`,w.body.innerHTML="",w.body.appendChild(k);const B=typeof P.pageStyle=="function"?P.pageStyle():P.pageStyle;if(typeof B=="string"){const W=w.createElement("style");W.appendChild(w.createTextNode(B)),w.head.appendChild(W)}if(P.bodyClassName&&w.body.classList.add(...P.bodyClassName.split(" ")),P.copyStyles){const W=r.current.querySelectorAll("style, link[rel='stylesheet']");for(let A=0;A<W.length;A+=1){const z=W[A];if(z.tagName==="STYLE"){const G=w.createElement(z.tagName),q=z.sheet;if(q){let X="";for(let ie=0;ie<q.cssRules.length;ie+=1)typeof q.cssRules[ie].cssText=="string"&&(X+=`${q.cssRules[ie].cssText}\r
|
|
274
|
+
`);G.appendChild(w.createTextNode(X)),w.head.appendChild(G)}}else if(z.getAttribute("href")){const G=w.createElement(z.tagName);for(let q=0;q<z.attributes.length;q+=1){const X=z.attributes[q];X&&G.setAttribute(X.nodeName,X.nodeValue||"")}w.head.appendChild(G)}}}v.contentWindow.print()},[e,r]),f=u.useCallback(v=>{var b,g;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(g=b.columns)!=null&&g.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_enableVirtualization(),o.current=null,i.current={}},[e]),h={exportDataAsPrint:u.useCallback(v=>ot(void 0,null,function*(){if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=ll(e),t.pagination){const g=jL(e);e.current.setPageSize(g)}yield s(v==null?void 0:v.fields,v==null?void 0:v.allColumns),e.current.unstable_disableVirtualization();const b=a(v==null?void 0:v.fileName);r.current.body.appendChild(b),b.onload=()=>c(b,v),b.contentWindow.onafterprint=()=>f(b)}),[t,n,e,a,c,f,s])};Kt(e,h);const m=u.useCallback((v,b)=>{var g;return(g=b.printOptions)!=null&&g.disableToolbarButton?v:[...v,{component:R.jsx(Hue,{options:b.printOptions}),componentName:"printExport"}]},[]);rr(e,"exportMenu",m)},Qde=["rowsBeforePartialUpdates"];function Jde(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(`
|
|
275
|
+
`))}const kA=(e,t,n)=>{const r=t?t(e):e.id;return Jde(r,e,n),r},im=({rows:e,getRowId:t,loading:n})=>{const r={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let o=0;o<e.length;o+=1){const i=e[o],s=kA(i,t);r.idRowsLookup[s]=i,r.idToIdLookup[s]=s,r.ids.push(s)}return r},IA=({apiRef:e,previousTree:t,rowCountProp:n,loadingProp:r})=>{const o=e.current.unstable_caches.rows,i=oe(o,Qde),s=n!=null?n:0,a=e.current.unstable_applyStrategyProcessor("rowTreeCreation",S({},i,{previousTree:t})),c=e.current.unstable_applyPipeProcessors("hydrateRows",a),f=c.treeDepth===1?c.ids.length:Object.values(c.tree).filter(p=>p.parent==null&&!p.isPinned).length;return S({},c,{groupingResponseBeforeRowHydration:a,loading:r,totalRowCount:Math.max(s,c.ids.length),totalTopLevelRowCount:Math.max(s,f)})},_A=(e,t,n)=>{var r;const o=(r=e[t])==null?void 0:r.children;if(o==null)return[];const i=[];for(let s=0;s<o.length;s+=1){const a=o[s],c=e[a];(!n||!c.isAutoGenerated)&&i.push(a),i.push(..._A(e,c.id,n))}return i};function $A(e){var t,n;const r=sp(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0;return{top:o,bottom:i}}const Bb=(e,t)=>{const n=S({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operatorValue==null){const r=Ru(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},Zde=xi(["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"),efe=xi("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),tfe=xi(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),MA=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Zde(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),s=o.some(a=>a.operatorValue==null);return i&&efe(),s&&tfe(),s||i?S({},e,{items:o.map(a=>Bb(a,n))}):e.items!==o?S({},e,{items:o}):e},l$=(e,t,n)=>r=>S({},r,{filterModel:MA(e,t,n)}),nfe=(e,t)=>{const{items:n}=e,r=i=>{if(!i.columnField||!i.operatorValue)return null;const s=t.current.getColumn(i.columnField);if(!s)return null;let a;if(s.valueParser){var c;const b=s.valueParser;a=Array.isArray(i.value)?(c=i.value)==null?void 0:c.map(g=>b(g)):b(i.value)}else a=i.value;const f=S({},i,{value:a}),p=s.filterOperators;if(!(p!=null&&p.length))throw new Error(`MUI: No filter operators found for column '${s.field}'.`);const h=p.find(b=>b.value===f.operatorValue);if(!h)throw new Error(`MUI: No filter operator found for column '${s.field}' and operator value '${f.operatorValue}'.`);const m=h.getApplyFilterFn(f,s);return typeof m!="function"?null:{fn:b=>{const g=t.current.getCellParams(b,f.columnField);return m(g)},item:f}},o=n.map(r).filter(i=>!!i);return o.length===0?null:(i,s)=>{const a={};return(s?o.filter(f=>s(f.item.columnField)):o).forEach(f=>{a[f.item.id]=f.fn(i)}),a}},rfe=(e,t)=>{const{quickFilterValues:n=[]}=e;if(n.length===0)return null;const r=Ia(t),o={};r.forEach(s=>{const a=t.current.getColumn(s),c=a==null?void 0:a.getApplyQuickFilterFn;c&&(o[s]=n.map(f=>c(f,a,t)))});const i=n.filter((s,a)=>Object.keys(o).some(c=>o[c][a]!=null));return i.length===0?null:(s,a)=>{const c={},f=[];Object.keys(o).forEach(h=>{(!a||a(h))&&(c[h]=t.current.getCellParams(s,h),f.push(h))});const p={};return i.forEach((h,m)=>{const v=f.some(b=>{var g,x;return o[b][m]==null?!1:(g=(x=o[b])[m])==null?void 0:g.call(x,c[b])});p[h]=v}),p}},ofe=(e,t)=>{const n=nfe(e,t),r=rfe(e,t);return(o,i)=>({passingFilterItems:n&&n(o,i),passingQuickFilterValues:r&&r(o,i)})},ife=(e,t,n)=>{var r,o;const i=e.filter(f=>f!=null),s=t.filter(f=>f!=null),a=(r=n.quickFilterLogicOperator)!=null?r:Af().quickFilterLogicOperator,c=(o=n.linkOperator)!=null?o:Af().linkOperator;if(i.length>0){const f=p=>i.some(h=>h[p.id]);if(c===Tr.And){if(!n.items.every(f))return!1}else if(!n.items.some(f))return!1}if(s.length>0&&n.quickFilterValues!=null){const f=p=>s.some(h=>h[p]);if(a===Tr.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},sfe=(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:Af();return S({},e,{filter:{filterModel:MA(a,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},lfe=(e,t)=>{var n,r,o;const i=Gn(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:jr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState($=>{const T=jr($,e.current.instanceId),O=t.filterMode===Kc.client?ofe(T,e):null,N=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:O,filterModel:T!=null?T:Af()});return S({},$,{filter:S({},$.filter,N)})}),e.current.publishEvent("filteredRowsSet")},[t.filterMode,e]),a=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),c=u.useCallback($=>{const T=jr(e),O=[...T.items],N=O.findIndex(V=>V.id===$.id);N===-1?O.push($):O[N]=$,e.current.setFilterModel(S({},T,{items:O}),"upsertFilterItem")},[e]),f=u.useCallback($=>{const T=jr(e),O=[...T.items];$.forEach(N=>{const V=$.findIndex(j=>j.id===N.id);V===-1?O.push(N):O[V]=N}),e.current.setFilterModel(S({},T,{items:$}),"upsertFilterItems")},[e]),p=u.useCallback($=>{const T=jr(e),O=T.items.filter(N=>N.id!==$.id);O.length!==T.items.length&&e.current.setFilterModel(S({},T,{items:O}),"deleteFilterItem")},[e]),h=u.useCallback($=>{if(i.debug("Displaying filter panel"),$){const T=jr(e),O=T.items.filter(j=>{var L;if(j.value!==void 0)return!0;const B=(L=e.current.getColumn(j.columnField).filterOperators)==null?void 0:L.find(A=>A.value===j.operatorValue);return!(typeof(B==null?void 0:B.requiresFilterValue)=="undefined"?!0:B==null?void 0:B.requiresFilterValue)});let N;O.find(j=>j.columnField===$)?N=O:t.disableMultipleColumnsFiltering?N=[Bb({columnField:$},e)]:N=[...O,Bb({columnField:$},e)],e.current.setFilterModel(S({},T,{items:N}))}e.current.showPreferences($l.filters)},[e,i,t.disableMultipleColumnsFiltering]),m=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),v=u.useCallback($=>{const T=jr(e);T.linkOperator!==$&&e.current.setFilterModel(S({},T,{linkOperator:$}),"changeLogicOperator")},[e]),b=u.useCallback($=>{const T=jr(e);Cs(T.quickFilterValues,$)||e.current.setFilterModel(S({},T,{quickFilterValues:[...$]}))},[e]),g=u.useCallback(($,T)=>{jr(e)!==$&&(i.debug("Setting filter model"),e.current.unstable_updateControlState("filter",l$($,t.disableMultipleColumnsFiltering,e),T),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]),x=u.useCallback(()=>{const $=Ls(e);return new Map($.map(T=>[T.id,T.model]))},[e]);Kt(e,{setFilterLinkOperator:v,unstable_applyFilters:a,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:f,setFilterModel:g,showFilterPanel:h,hideFilterPanel:m,getVisibleRowModels:x,setQuickFilterValues:b});const P=u.useCallback(($,T)=>{var O,N;const V=jr(e);return!T.exportOnlyDirtyModels||t.filterModel!=null||((O=t.initialState)==null||(N=O.filter)==null?void 0:N.filterModel)!=null||!Cs(V,Af())?S({},$,{filter:{filterModel:V}}):$},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),w=u.useCallback(($,T)=>{var O;const N=(O=T.stateToRestore.filter)==null?void 0:O.filterModel;return N==null?$:(e.current.unstable_updateControlState("filter",l$(N,t.disableMultipleColumnsFiltering,e),"restoreState"),S({},$,{callbacks:[...$.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),E=u.useCallback(($,T)=>{if(T===$l.filters){var O;const N=t.components.FilterPanel;return R.jsx(N,S({},(O=t.componentsProps)==null?void 0:O.filterPanel))}return $},[t.components.FilterPanel,(o=t.componentsProps)==null?void 0:o.filterPanel]),I=u.useCallback($=>{if(t.filterMode===Kc.client&&$.isRowMatchingFilters){const T=Gc(e),O={};for(let N=0;N<T.length;N+=1){const V=T[N];let j;if(typeof V=="string"&&V.startsWith("auto-generated-group-footer"))j=!0;else{const{passingFilterItems:L,passingQuickFilterValues:D}=$.isRowMatchingFilters(V);j=ife([L],[D],$.filterModel)}O[V]=j}return{filteredRowsLookup:O,visibleRowsLookup:O,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode]);rr(e,"exportState",P),rr(e,"restoreState",w),rr(e,"preferencePanel",E),zx(e,pp,"filtering",I);const _=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const $=jr(e),T=jse(e),O=$.items.filter(N=>N.columnField&&T[N.columnField]);O.length<$.items.length&&e.current.setFilterModel(S({},$,{items:O}))},[e,i]),k=u.useCallback($=>{$==="filtering"&&e.current.unstable_applyFilters()},[e]);Ne(e,"rowsSet",s),Ne(e,"rowExpansionChange",e.current.unstable_applyFilters),Ne(e,"columnsChange",_),Ne(e,"activeStrategyProcessorChange",k),fp(()=>{e.current.unstable_applyFilters()}),u.useEffect(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},afe=e=>S({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),cfe=(e,t)=>{const n=Gn(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((g,x)=>{const C=fi(e);(C==null?void 0:C.id)===g&&(C==null?void 0:C.field)===x||(e.current.setState(P=>(n.debug(`Focusing on cell with id=${g} and field=${x}`),S({},P,{tabIndex:{cell:{id:g,field:x},columnHeader:null},focus:{cell:{id:g,field:x},columnHeader:null}}))),e.current.forceUpdate(),e.current.getRow(g)&&(C&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(C.id,C.field)),e.current.publishEvent("cellFocusIn",e.current.getCellParams(g,x))))},[e,n]),i=u.useCallback((g,x={})=>{const C=fi(e);C&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(C.id,C.field),x),e.current.setState(P=>(n.debug(`Focusing on column header with colIndex=${g}`),S({},P,{tabIndex:{columnHeader:{field:g},cell:null},focus:{columnHeader:{field:g},cell:null}}))),e.current.forceUpdate()},[e,n]),s=u.useCallback((g,x,C)=>{let P=e.current.getColumnIndex(x),w=e.current.getRowIndexRelativeToVisibleRows(g);const E=pr(e);C==="right"?P+=1:C==="left"?P-=1:w+=1;const I=kv(e,{pagination:t.pagination,paginationMode:t.paginationMode});P>=E.length?(w+=1,w<I.rows.length&&(P=0)):P<0&&(w-=1,w>=0&&(P=E.length-1)),w=Lf(w,0,I.rows.length-1),P=Lf(P,0,E.length-1);const _=I.rows[w],k=E[P];e.current.setCellFocus(_.id,k.field)},[e,t.pagination,t.paginationMode]),a=u.useCallback(({id:g,field:x})=>{e.current.setCellFocus(g,x)},[e]),c=u.useCallback((g,x)=>{x.key==="Enter"||x.key==="Tab"||up(x.key)||e.current.setCellFocus(g.id,g.field)},[e]),f=u.useCallback(({field:g},x)=>{x.target===x.currentTarget&&e.current.setColumnHeaderFocus(g,x)},[e]),p=u.useCallback(()=>{n.debug("Clearing focus"),e.current.setState(g=>S({},g,{focus:{cell:null,columnHeader:null}}))},[n,e]),h=u.useCallback(g=>{r.current=g},[]),m=u.useCallback(g=>{const x=r.current;r.current=null;const C=fi(e);if(!C){x&&e.current.setCellFocus(x.id,x.field);return}if((x==null?void 0:x.id)===C.id&&(x==null?void 0:x.field)===C.field)return;const P=e.current.getCellElement(C.id,C.field);P!=null&&P.contains(g.target)||e.current.getRow(C.id)&&(x?e.current.setCellFocus(x.id,x.field):(e.current.setState(w=>S({},w,{focus:{cell:null,columnHeader:null}})),e.current.forceUpdate(),e.current.publishEvent("cellFocusOut",e.current.getCellParams(C.id,C.field),g)))},[e]),v=u.useCallback(g=>{if(g.cellMode==="view")return;const x=fi(e);((x==null?void 0:x.id)!==g.id||(x==null?void 0:x.field)!==g.field)&&e.current.setCellFocus(g.id,g.field)},[e]),b=u.useCallback(()=>{const g=fi(e);g&&!e.current.getRow(g.id)&&e.current.setState(x=>S({},x,{focus:{cell:null,columnHeader:null}}))},[e]);Kt(e,{setCellFocus:o,setColumnHeaderFocus:i,unstable_moveFocusToRelativeCell:s}),u.useEffect(()=>{const g=bn(e.current.rootElementRef.current);return g.addEventListener("click",m),()=>{g.removeEventListener("click",m)}},[e,m]),Ne(e,"columnHeaderBlur",p),Ne(e,"cellDoubleClick",a),Ne(e,"cellMouseUp",h),Ne(e,"cellKeyDown",c),Ne(e,"cellModeChange",v),Ne(e,"columnHeaderFocus",f),Ne(e,"rowsSet",b)};function ufe(e,t){const n=sp(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const dfe=(e,t)=>{const n=Gn(e,"useGridKeyboardNavigation"),r=Ha(e,t).rows,o=u.useMemo(()=>ufe(e,r),[e,r]),i=u.useCallback((h,m,v="left")=>{const b=Ls(e),g=e.current.unstable_getCellColSpanInfo(m,h);g&&g.spannedByColSpan&&(v==="left"?h=g.leftVisibleCellIndex:v==="right"&&(h=g.rightVisibleCellIndex));const x=b.findIndex(P=>P.id===m);n.debug(`Navigating to cell row ${x}, col ${h}`),e.current.scrollToIndexes({colIndex:h,rowIndex:x});const C=e.current.getVisibleColumns()[h].field;e.current.setCellFocus(m,C)},[e,n]),s=u.useCallback((h,m)=>{n.debug(`Navigating to header col ${h}`),e.current.scrollToIndexes({colIndex:h});const v=e.current.getVisibleColumns()[h].field;e.current.setColumnHeaderFocus(v,m)},[e,n]),a=u.useCallback(h=>o[h].id,[o]),c=u.useCallback((h,m)=>{const v=e.current.getRootDimensions();if(o.length===0||!v)return;const b=e.current.unstable_getViewportPageSize(),g=h.field?e.current.getColumnIndex(h.field):0,x=o.findIndex(_=>_.id===h.id),C=0,P=o.length-1,w=0,E=pr(e).length-1;let I=!0;switch(m.key){case"ArrowDown":case"Enter":{x<P&&i(g,a(x+1));break}case"ArrowUp":{x>C?i(g,a(x-1)):s(g,m);break}case"ArrowRight":{g<E&&i(g+1,a(x),"right");break}case"ArrowLeft":{g>w&&i(g-1,a(x));break}case"Tab":{m.shiftKey&&g>w?i(g-1,a(x),"left"):!m.shiftKey&&g<E&&i(g+1,a(x),"right");break}case" ":{if(h.field===Dx)break;const k=h.colDef;if(k&&k.type==="treeDataGroup")break;!m.shiftKey&&x<P&&i(g,a(Math.min(x+b,P)));break}case"PageDown":{x<P&&i(g,a(Math.min(x+b,P)));break}case"PageUp":{const _=Math.max(x-b,C);_!==x&&_>=C?i(g,a(_)):s(g,m);break}case"Home":{m.ctrlKey||m.metaKey||m.shiftKey?i(w,a(C)):i(w,a(x));break}case"End":{m.ctrlKey||m.metaKey||m.shiftKey?i(E,a(P)):i(E,a(x));break}default:I=!1}I&&m.preventDefault()},[e,o,i,s,a]),f=u.useCallback((h,m)=>{const v=m.currentTarget.querySelector(`.${Z.columnHeaderTitleContainerContent}`);if(!!v&&v.contains(m.target)&&h.field!==dp.field||!e.current.getRootDimensions())return;const x=e.current.unstable_getViewportPageSize(),C=h.field?e.current.getColumnIndex(h.field):0,P=0,w=o.length-1,E=0,I=pr(e).length-1;let _=!0;switch(m.key){case"ArrowDown":{i(C,a(P));break}case"ArrowRight":{C<I&&s(C+1,m);break}case"ArrowLeft":{C>E&&s(C-1,m);break}case"PageDown":{w!==null&&i(C,a(Math.min(P+x,w)));break}case"Home":{s(E,m);break}case"End":{s(I,m);break}case"Enter":{(m.ctrlKey||m.metaKey)&&e.current.toggleColumnMenu(h.field);break}case" ":break;default:_=!1}_&&m.preventDefault()},[e,o,i,s,a]),p=u.useCallback((h,m)=>{if(!m.currentTarget.contains(m.target))return;const v=e.current.getCellParams(h.id,h.field);v.cellMode!==Rt.Edit&&up(m.key)&&e.current.publishEvent("cellNavigationKeyDown",v,m)},[e]);Ne(e,"cellNavigationKeyDown",c),Ne(e,"columnHeaderKeyDown",f),Ne(e,"cellKeyDown",p)},TA=e=>e?0:100,a$=e=>t=>S({},t,{pagination:S({},t.pagination,{pageSize:e})}),ffe=(e,t)=>{var n,r;const o=Gn(e,"useGridPageSize"),i=Ue(e,ap);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:Qd,changeEvent:"pageSizeChange"});const a={setPageSize:u.useCallback(h=>{h!==Qd(e)&&(o.debug(`Setting page size to ${h}`),e.current.setState(a$(h)),e.current.forceUpdate())},[e,o])};Kt(e,a);const c=u.useCallback((h,m)=>{var v,b;const g=Qd(e);return!m.exportOnlyDirtyModels||t.pageSize!=null||((v=t.initialState)==null||(b=v.pagination)==null?void 0:b.pageSize)!=null||g!==TA(t.autoPageSize)?S({},h,{pagination:S({},h.pagination,{pageSize:g})}):h},[e,t.pageSize,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize,t.autoPageSize]),f=u.useCallback((h,m)=>{var v;const b=(v=m.stateToRestore.pagination)==null?void 0:v.pageSize;return b!=null&&e.current.setState(a$(b)),h},[e]);rr(e,"exportState",c),rr(e,"restoreState",f);const p=u.useCallback(()=>{const h=e.current.getRootDimensions();if(!t.autoPageSize||!h)return;const m=$A(e),v=Math.floor((h.viewportInnerSize.height-m.top-m.bottom)/i);e.current.setPageSize(v)},[e,t.autoPageSize,i]);Ne(e,"viewportInnerSizeChange",p),u.useEffect(()=>{t.pageSize!=null&&!t.autoPageSize&&e.current.setPageSize(t.pageSize)},[e,t.autoPageSize,t.pageSize]),u.useEffect(()=>{p()},[p])},zb=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,jb=e=>e.pageCount?S({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,c$=e=>t=>S({},t,{pagination:jb(S({},t.pagination,{page:e}))});xi(["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 pfe=(e,t)=>{var n,r;const o=Gn(e,"useGridPage"),i=Ue(e,HL);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:$d,changeEvent:"pageChange"});const a={setPage:u.useCallback(m=>{o.debug(`Setting page to ${m}`),e.current.setState(c$(m)),e.current.forceUpdate()},[e,o])};Kt(e,a);const c=u.useCallback((m,v)=>{var b,g;const x=$d(e);return!v.exportOnlyDirtyModels||t.page!=null||((b=t.initialState)==null||(g=b.pagination)==null?void 0:g.page)!=null||x!==0?S({},m,{pagination:S({},m.pagination,{page:x})}):m},[e,t.page,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.page]),f=u.useCallback((m,v)=>{var b,g;const x=(b=(g=v.stateToRestore.pagination)==null?void 0:g.page)!=null?b:$d(e);return e.current.setState(c$(x)),m},[e]);rr(e,"exportState",c),rr(e,"restoreState",f);const p=m=>{e.current.setState(v=>{const b=zb(v.pagination.rowCount,m);return S({},v,{pagination:jb(S({},v.pagination,{pageCount:b,page:v.pagination.page}))})}),e.current.forceUpdate()},h=()=>e.current.scrollToIndexes({rowIndex:$d(e)*Qd(e)});Ne(e,"pageSizeChange",p),Ne(e,"pageChange",h),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{e.current.setState(m=>{const v=t.rowCount!==void 0?t.rowCount:i,b=zb(v,m.pagination.pageSize),g=t.page==null?m.pagination.page:t.page;return S({},m,{pagination:jb(S({},m.pagination,{page:g,rowCount:v,pageCount:b}))})}),e.current.forceUpdate()},[i,t.rowCount,t.page,t.paginationMode,e])},hfe=(e,t)=>{var n,r,o,i,s,a,c,f;let p;return t.pageSize!=null?p=t.pageSize:((n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize)!=null?p=t.initialState.pagination.pageSize:p=TA(t.autoPageSize),S({},e,{pagination:{pageSize:p,page:(o=(i=t.page)!=null?i:(s=t.initialState)==null||(a=s.pagination)==null?void 0:a.page)!=null?o:0,pageCount:zb((c=t.rowCount)!=null?c:0,p),rowCount:(f=t.rowCount)!=null?f:0}})},mfe=(e,t)=>{ffe(e,t),pfe(e,t)},gfe=(e,t)=>{var n,r;return S({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},vfe=(e,t)=>{var n;const r=Gn(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=Qm(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(v=>S({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),a=u.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),c=u.useCallback(()=>{o.current=setTimeout(s,100)},[s]),f=u.useCallback(m=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>S({},v,{preferencePanel:S({},v.preferencePanel,{open:!0,openedPanelValue:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);Kt(e,{showPreferences:f,hidePreferences:c});const p=u.useCallback((m,v)=>{var b;const g=Qm(e.current.state);return!v.exportOnlyDirtyModels||((b=t.initialState)==null?void 0:b.preferencePanel)!=null||g.open?S({},m,{preferencePanel:g}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),h=u.useCallback((m,v)=>{const b=v.stateToRestore.preferencePanel;return b!=null&&e.current.setState(g=>S({},g,{preferencePanel:b})),m},[e]);rr(e,"exportState",p),rr(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},An=e=>e.editRows;function u$(e){return typeof e.then=="function"}const yfe=(e,t)=>{var n;const r=Gn(e,"useGridEditRows"),o=w=>(...E)=>{t.editMode===xr.Cell&&w(...E)},i=u.useCallback((w,E,I)=>{e.current.getCellMode(w,E)!==I&&(r.debug(`Switching cell id: ${w} field: ${E} to mode: ${I}`),e.current.setState(_=>{const k=S({},_.editRows);return k[w]=S({},k[w]),I===Rt.Edit?k[w][E]={value:e.current.getCellValue(w,E)}:(delete k[w][E],Object.keys(k[w]).length||delete k[w]),S({},_,{editRows:k})}),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(w,E)))},[e,r]),s=u.useCallback((w,E)=>{const I=An(e.current.state);return I[w]&&I[w][E]?Rt.Edit:Rt.View},[e]),a=u.useCallback((w,E={})=>{var I;const{id:_,field:k}=w;e.current.unstable_runPendingEditCellValueMutation(_,k);const $=e.current.getEditRowsModel();if(!$[_]||!$[_][k])throw new Error(`MUI: Cell at id: ${_} and field: ${k} is not in edit mode.`);const T=$[_][k],O=e.current.getColumn(k),N=e.current.getRow(_);if((I=t.experimentalFeatures)!=null&&I.preventCommitWhileValidating){const L=$[_][k];if(L.isValidating||L.error)return!1}const V=S({},w,{value:T.value});let j=!!T.error;if(!j&&typeof O.preProcessEditCellProps=="function"){const L=O.preProcessEditCellProps({id:_,row:N,props:T});if(u$(L))return L.then(D=>(e.current.unstable_setEditCellProps({id:_,field:k,props:D}),D.error?!1:(e.current.publishEvent("cellEditCommit",V,E),!0)));e.current.unstable_setEditCellProps({id:_,field:k,props:L}),j=!!L.error}return j?!1:(e.current.publishEvent("cellEditCommit",V,E),!0)},[e,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),c=u.useCallback(w=>{const E=e.current.getColumn(w.field),I=e.current.getRow(w.id);return new Promise(_=>{let k={value:w.value};const T=e.current.getEditRowsModel()[w.id][w.field];if(typeof E.preProcessEditCellProps!="function"){e.current.unstable_setEditCellProps(S({},w,{props:k})),_(!0);return}k=e.current.unstable_setEditCellProps(S({},w,{props:S({},T,{isValidating:!0})})),Promise.resolve(E.preProcessEditCellProps({id:w.id,row:I,props:S({},k,{value:e.current.unstable_parseValue(w.id,w.field,w.value)})})).then(O=>{e.current.unstable_setEditCellProps(S({},w,{props:S({},O,{isValidating:!1})})),_(!O.error)})})},[e]);Kt(e,{setCellMode:i,getCellMode:s,commitCellChange:a,unstable_setCellEditingEditCellValue:c});const p=u.useCallback((w,E)=>ot(void 0,null,function*(){if(E.which===229)return;const{id:I,field:_,cellMode:k,isEditable:$}=w;if(!$)return;const T=k===Rt.Edit,O=E.ctrlKey||E.metaKey||E.altKey;if(!T&&qle(E)&&!O&&!(E.key===" "&&E.shiftKey)&&e.current.publishEvent("cellEditStart",w,E),!T&&Ab(E.key)&&(e.current.setEditCellValue({id:I,field:_,value:""}),e.current.commitCellChange({id:I,field:_},E),e.current.publishEvent("cellEditStop",w,E)),T&&K_(E.key)){const N={id:I,field:_};if(!(yield e.current.commitCellChange(N,E)))return}T&&Yle(E.key)&&e.current.publishEvent("cellEditStop",w,E)}),[e]),h=u.useCallback((w,E)=>{w.isEditable&&e.current.publishEvent("cellEditStart",w,E)},[e]),m=(w,E)=>ot(void 0,null,function*(){w.cellMode!==Rt.View&&(yield e.current.commitCellChange(w,E),e.current.publishEvent("cellEditStop",w,E))}),v=jn((w,E)=>{m(w,E)}),b=jn(()=>{const w=fi(e);if(!w)return;const E=e.current.getCellParams(w.id,w.field);m(E,{})}),g=u.useCallback((w,E)=>{w.isEditable&&(e.current.setCellMode(w.id,w.field,Rt.Edit),Fb(E)&&Ev(E)&&e.current.unstable_setEditCellProps({id:w.id,field:w.field,props:{value:""}}))},[e]),x=u.useCallback((w,E)=>{if(e.current.setCellMode(w.id,w.field,Rt.View),!!Fb(E)){if(K_(E.key)){e.current.publishEvent("cellNavigationKeyDown",w,E);return}(E.key==="Escape"||Ab(E.key))&&e.current.setCellFocus(w.id,w.field)}},[e]),C=u.useCallback(w=>{const{id:E,field:I}=w,_=e.current.getEditRowsModel(),{value:k}=_[E][I];r.debug(`Setting cell id: ${E} field: ${I} to value: ${k==null?void 0:k.toString()}`);const $=e.current.getRow(E);if($){const T=e.current.getColumn(w.field);let O=S({},$,{[I]:k});T.valueSetter&&(O=T.valueSetter({row:$,value:k})),e.current.updateRows([O])}},[e,r]),P=u.useCallback(w=>{const E=e.current.getRow(w.id),I=e.current.getColumn(w.field),_=I.preProcessEditCellProps?I.preProcessEditCellProps({id:w.id,row:E,props:w.props}):w.props;u$(_)?_.then(k=>{e.current.unstable_setEditCellProps(S({},w,{props:k}))}):e.current.unstable_setEditCellProps(S({},w,{props:_}))},[e]);Ne(e,"cellKeyDown",o(p)),Ne(e,"cellDoubleClick",o(h)),Ne(e,"cellFocusOut",o(v)),Ne(e,"columnHeaderDragStart",o(b)),Ne(e,"cellEditStart",o(g)),Ne(e,"cellEditStop",o(x)),Ne(e,"cellEditCommit",o(C)),Ne(e,"editCellPropsChange",o(P)),Ft(e,"cellEditCommit",t.onCellEditCommit),Ft(e,"cellEditStart",t.onCellEditStart),Ft(e,"cellEditStop",t.onCellEditStop)},bfe=(e,t)=>{var n,r;const o=u.useRef(null),i=u.useRef(null),s=Ue(e,Uo),a=k=>(...$)=>{t.editMode===xr.Row&&k(...$)},c=u.useCallback((k,$)=>{$!==e.current.getRowMode(k)&&(e.current.setState(T=>{const O=S({},T.editRows);return $===Xt.Edit?(O[k]={},s.forEach(N=>{const V=e.current.getCellParams(k,N.field);V.isEditable&&(O[k][N.field]={value:V.value})})):delete O[k],S({},T,{editRows:O})}),e.current.forceUpdate())},[e,s]),f=u.useCallback(k=>t.editMode===xr.Cell?Xt.View:An(e.current.state)[k]?Xt.Edit:Xt.View,[e,t.editMode]),p=u.useCallback((k,$={})=>{var T;if(t.editMode===xr.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(k);const N=e.current.getEditRowsModel()[k];if(!N)throw new Error(`MUI: Row at id: ${k} is not being edited.`);if((T=t.experimentalFeatures)!=null&&T.preventCommitWhileValidating&&!Object.keys(N).reduce((D,B)=>D&&!N[B].isValidating&&!N[B].error,!0)||Object.values(N).some(L=>!!L.error))return!1;const j=Object.keys(N).filter(L=>typeof e.current.getColumn(L).preProcessEditCellProps=="function");if(j.length>0){const L=e.current.getRow(k),D=j.map(B=>ot(void 0,null,function*(){const W=e.current.getColumn(B),A=yield Promise.resolve(W.preProcessEditCellProps({id:k,row:L,props:N[B]}));return e.current.unstable_setEditCellProps({id:k,field:B,props:A}),A.error}));return Promise.all(D).then(B=>B.some(W=>!!W)?!1:(e.current.publishEvent("rowEditCommit",k,$),!0))}return e.current.publishEvent("rowEditCommit",k,$),!0},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),h=u.useCallback(k=>{const T=e.current.getEditRowsModel()[k.id],O=e.current.getRow(k.id);let N=!0;return new Promise(V=>{Object.keys(T).forEach(j=>ot(void 0,null,function*(){const L=e.current.getColumn(j);let D=j===k.field?{value:k.value}:T[j];D=e.current.unstable_setEditCellProps({id:k.id,field:j,props:S({},D,{isValidating:!0})}),L.preProcessEditCellProps&&(D=yield Promise.resolve(L.preProcessEditCellProps({id:k.id,row:O,props:S({},D,{value:j===k.field?e.current.unstable_parseValue(k.id,j,k.value):D.value})}))),D.error&&(N=!1),e.current.unstable_setEditCellProps({id:k.id,field:j,props:S({},D,{isValidating:!1})})})),V(N)})},[e]);Kt(e,{setRowMode:c,getRowMode:f,commitRowChange:p,unstable_setRowEditingEditCellValue:h});const v=u.useCallback((k,$)=>ot(void 0,null,function*(){if($.which===229)return;const{cellMode:T,isEditable:O}=k;if(!O)return;const N=T===Rt.Edit,V=e.current.getRowParams(k.id);if(N)if($.key==="Enter"){var j;if(!(yield e.current.commitRowChange(k.id))&&(j=t.experimentalFeatures)!=null&&j.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",V,$)}else $.key==="Escape"&&e.current.publishEvent("rowEditStop",V,$);else $.key==="Enter"&&e.current.publishEvent("rowEditStart",V,$)}),[e,(r=t.experimentalFeatures)==null?void 0:r.preventCommitWhileValidating]),b=u.useCallback((k,$)=>{if(!k.isEditable)return;const T=e.current.getRowParams(k.id);e.current.publishEvent("rowEditStart",T,$)},[e]),g=u.useCallback(k=>{const $=e.current.getRow(k.id),O=e.current.getEditRowsModel()[k.id];Object.keys(O).forEach(N=>ot(void 0,null,function*(){const V=e.current.getColumn(N);if(V.preProcessEditCellProps){const j=N===k.field?k.props:O[N],L=yield Promise.resolve(V.preProcessEditCellProps({id:k.id,row:$,props:j}));e.current.unstable_setEditCellProps({id:k.id,field:N,props:L})}else N===k.field&&e.current.unstable_setEditCellProps(k)}))},[e]),x=u.useCallback(k=>{e.current.setRowMode(k.id,Xt.Edit)},[e]),C=u.useCallback((k,$)=>{e.current.setRowMode(k.id,Xt.View),$.key==="Enter"&&e.current.publishEvent("cellNavigationKeyDown",k,$)},[e]),P=u.useCallback(k=>{const T=e.current.getEditRowsModel()[k];if(!T)throw new Error(`MUI: Row at id: ${k} is not being edited.`);const O=e.current.getRow(k);if(O){let N=S({},O);Object.keys(T).forEach(V=>{const j=e.current.getColumn(V),L=T[V].value;j.valueSetter?N=j.valueSetter({row:N,value:L}):N[V]=L}),e.current.updateRows([N])}},[e]),w=u.useCallback(k=>{i.current=k},[]),E=(k,$)=>ot(void 0,null,function*(){k.cellMode!==Rt.View&&(i.current=null,o.current=setTimeout(()=>ot(void 0,null,function*(){var T;if(((T=i.current)==null?void 0:T.id)!==k.id){yield e.current.commitRowChange(k.id,$);const O=e.current.getRowParams(k.id);e.current.publishEvent("rowEditStop",O,$)}})))}),I=jn((k,$)=>{E(k,$)}),_=jn(()=>{const k=fi(e);if(!k)return;const $=e.current.getCellParams(k.id,k.field);E($,{})});Ne(e,"cellKeyDown",a(v)),Ne(e,"cellDoubleClick",a(b)),Ne(e,"editCellPropsChange",a(g)),Ne(e,"rowEditStart",a(x)),Ne(e,"rowEditStop",a(C)),Ne(e,"rowEditCommit",a(P)),Ne(e,"cellFocusIn",a(w)),Ne(e,"cellFocusOut",a(I)),Ne(e,"columnHeaderDragStart",a(_)),Ft(e,"rowEditCommit",t.onRowEditCommit),Ft(e,"rowEditStart",t.onRowEditStart),Ft(e,"rowEditStop",t.onRowEditStop)},wfe=e=>S({},e,{editRows:{}});function Cfe(e,t){var n;const r=Gn(e,"useGridEditRows");yfe(e,t),bfe(e,t);const o=u.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:An,changeEvent:"editRowsModelChange"});const i=u.useCallback(g=>!g.rowNode.isAutoGenerated&&!g.rowNode.isPinned&&!!g.colDef.editable&&!!g.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(g)),[t.isCellEditable]),s=(g,x,C,P)=>{if(!C){P();return}if(o.current[g]||(o.current[g]={}),o.current[g][x]){const[I]=o.current[g][x];clearTimeout(I)}const w=()=>{P();const[I]=o.current[g][x];clearTimeout(I),delete o.current[g][x]},E=setTimeout(()=>{P(),delete o.current[g][x]},C);o.current[g][x]=[E,w]},a=u.useCallback((g,x)=>{if(o.current[g]){if(!x)Object.keys(o.current[g]).forEach(C=>{const[,P]=o.current[g][C];P()});else if(o.current[g][x]){const[,C]=o.current[g][x];C()}}},[]),c=u.useCallback((g,x={})=>{s(g.id,g.field,g.debounceMs,()=>{var C;if((C=t.experimentalFeatures)!=null&&C.preventCommitWhileValidating)return t.editMode==="row"?e.current.unstable_setRowEditingEditCellValue(g):e.current.unstable_setCellEditingEditCellValue(g);const P={id:g.id,field:g.field,props:{value:g.value}};return e.current.publishEvent("editCellPropsChange",P,x)})},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),f=u.useCallback((g,x,C)=>{const P=e.current.getColumn(x);return P.valueParser?P.valueParser(C,e.current.getCellParams(g,x)):C},[e]),p=u.useCallback(g=>{const{id:x,field:C,props:P}=g;return r.debug(`Setting cell props on id: ${x} field: ${C}`),e.current.setState(E=>{const I=S({},E.editRows);return I[x]=S({},E.editRows[x]),I[x][C]=S({},P,{value:f(x,C,P.value)}),S({},E,{editRows:I})}),e.current.forceUpdate(),An(e.current.state)[x][C]},[e,r,f]),h=u.useCallback(g=>{An(e.current.state)!==g&&(r.debug("Setting editRows model"),e.current.setState(C=>S({},C,{editRows:g})),e.current.forceUpdate())},[e,r]),m=u.useCallback(()=>An(e.current.state),[e]),v=u.useCallback((g,x)=>{const C=x.detail>1;g.isEditable&&g.cellMode===Rt.View&&C&&x.preventDefault()},[]);Ne(e,"cellMouseDown",v),Ft(e,"editCellPropsChange",t.onEditCellPropsChange),Kt(e,{isCellEditable:i,setEditRowsModel:h,getEditRowsModel:m,setEditCellValue:c,unstable_setEditCellProps:p,unstable_parseValue:f,unstable_runPendingEditCellValueMutation:a}),u.useEffect(()=>{t.editRowsModel!==void 0&&e.current.setEditRowsModel(t.editRowsModel)},[e,t.editRowsModel])}const xfe=["id","field"],Sfe=["id","field"],Efe=xi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),Pfe=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:f,signature:p}=t,h=L=>(...D)=>{t.editMode===xr.Cell&&L(...D)},m=u.useCallback((L,D)=>{const B=e.current.getCellParams(L,D);if(!e.current.isCellEditable(B))throw new Error(`MUI: The cell with id=${L} and field=${D} is not editable.`)},[e]),v=u.useCallback((L,D,B)=>{if(e.current.getCellMode(L,D)!==B)throw new Error(`MUI: The cell with id=${L} and field=${D} is not in ${B} mode.`)},[e]),b=u.useCallback((L,D)=>{if(!L.isEditable||L.cellMode===Rt.Edit)return;const B=S({},L,{reason:fs.cellDoubleClick});e.current.publishEvent("cellEditStart",B,D)},[e]),g=u.useCallback((L,D)=>{if(L.cellMode===Rt.View||e.current.getCellMode(L.id,L.field)===Rt.View)return;const B=S({},L,{reason:Ri.cellFocusOut});e.current.publishEvent("cellEditStop",B,D)},[e]),x=u.useCallback((L,D)=>{if(L.cellMode===Rt.Edit){if(D.which===229)return;let B;if(D.key==="Escape"?B=Ri.escapeKeyDown:D.key==="Enter"?B=Ri.enterKeyDown:D.key==="Tab"&&(B=D.shiftKey?Ri.shiftTabKeyDown:Ri.tabKeyDown,D.preventDefault()),B){const W=S({},L,{reason:B});e.current.publishEvent("cellEditStop",W,D)}}else if(L.isEditable){let B;if(Ev(D)||(D.ctrlKey||D.metaKey)&&D.key==="v"?B=fs.printableKeyDown:D.key==="Enter"?B=fs.enterKeyDown:(D.key==="Delete"||D.key==="Backspace")&&(B=fs.deleteKeyDown),B){const W=S({},L,{reason:B});e.current.publishEvent("cellEditStart",W,D)}}},[e]),C=u.useCallback(L=>{const{id:D,field:B,reason:W}=L,A={id:D,field:B};(W===fs.deleteKeyDown||W===fs.printableKeyDown)&&(A.deleteValue=!0),e.current.startCellEditMode(A)},[e]),P=u.useCallback(L=>{const{id:D,field:B,reason:W}=L;e.current.unstable_runPendingEditCellValueMutation(D,B);let A;W===Ri.enterKeyDown?A="below":W===Ri.tabKeyDown?A="right":W===Ri.shiftTabKeyDown&&(A="left");let z=W==="escapeKeyDown";An(e.current.state)[D][B].isProcessingProps&&!t.disableIgnoreModificationsIfProcessingProps&&(z=!0),e.current.stopCellEditMode({id:D,field:B,ignoreModifications:z,cellToFocusAfter:A})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",h(b)),Ne(e,"cellFocusOut",h(g)),Ne(e,"cellKeyDown",h(x)),Ne(e,"cellEditStart",h(C)),Ne(e,"cellEditStop",h(P)),Ft(e,"cellEditStart",t.onCellEditStart),Ft(e,"cellEditStop",t.onCellEditStop);const w=u.useCallback((L,D)=>{const B=An(e.current.state);return B[L]&&B[L][D]?Rt.Edit:Rt.View},[e]),E=u.useCallback(L=>{const D=L!==t.cellModesModel;if(f&&D){const B=p===$a.DataGridPro?{api:e.current}:{};f(L,B)}t.cellModesModel&&D||(r(L),o.current=L,e.current.publishEvent("cellModesModelChange",L))},[e,f,t.cellModesModel,p]),I=u.useCallback((L,D,B)=>{const W=S({},o.current);if(B!==null)W[L]=S({},W[L],{[D]:S({},B)});else{const A=W[L],z=oe(A,[D].map(Nf));W[L]=z,Object.keys(W[L]).length===0&&delete W[L]}E(W)},[E]),_=u.useCallback((L,D,B)=>{e.current.setState(W=>{const A=S({},W.editRows);return B!==null?A[L]=S({},A[L],{[D]:S({},B)}):(delete A[L][D],Object.keys(A[L]).length===0&&delete A[L]),S({},W,{editRows:A})}),e.current.forceUpdate()},[e]),k=u.useCallback(L=>{const{id:D,field:B}=L,W=oe(L,xfe);m(D,B),v(D,B,Rt.View),I(D,B,S({mode:Rt.Edit},W))},[m,v,I]),$=u.useCallback(L=>{const{id:D,field:B,deleteValue:W}=L,A={value:W?"":e.current.getCellValue(D,B),error:!1,isProcessingProps:!1};_(D,B,A),e.current.setCellFocus(D,B)},[e,_]),T=u.useCallback(L=>{const{id:D,field:B}=L,W=oe(L,Sfe);v(D,B,Rt.Edit),I(D,B,S({mode:Rt.View},W))},[v,I]),O=u.useCallback(L=>ot(void 0,null,function*(){const{id:D,field:B,ignoreModifications:W,cellToFocusAfter:A="none"}=L;v(D,B,Rt.Edit),e.current.unstable_runPendingEditCellValueMutation(D,B);const z=()=>{_(D,B,null),I(D,B,null),A!=="none"&&e.current.unstable_moveFocusToRelativeCell(D,B,A)};if(W){z();return}const G=An(e.current.state),{error:q,isProcessingProps:X}=G[D][B];if(q||X){i.current[D][B].mode=Rt.Edit;return}const ie=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(D,B);if(s){const ee=se=>{i.current[D][B].mode=Rt.Edit,a?a(se):Efe()};try{const se=e.current.getRow(D);Promise.resolve(s(ie,se)).then(ae=>{e.current.updateRows([ae]),z()}).catch(ee)}catch(se){ee(se)}}else e.current.updateRows([ie]),z()}),[e,a,s,v,I,_]),N=u.useCallback(L=>ot(void 0,null,function*(){var D,B;const{id:W,field:A,value:z}=L;m(W,A),v(W,A,Rt.Edit);const G=e.current.getColumn(A),q=e.current.getRow(W);let X=z;G.valueParser&&(X=G.valueParser(z,e.current.getCellParams(W,A)));let ie=An(e.current.state),ee=S({},ie[W][A],{value:X});if(G.preProcessEditCellProps){const se=z!==ie[W][A].value;ee=S({},ee,{isProcessingProps:!0}),_(W,A,ee),ee=yield Promise.resolve(G.preProcessEditCellProps({id:W,row:q,props:ee,hasChanged:se}))}return e.current.getCellMode(W,A)===Rt.View?!1:(ie=An(e.current.state),ee=S({},ee,{isProcessingProps:!1}),ee.value=G.preProcessEditCellProps?ie[W][A].value:X,_(W,A,ee),ie=An(e.current.state),!((D=ie[W])!=null&&(B=D[A])!=null&&B.error))}),[e,m,v,_]),V=u.useCallback((L,D)=>{const B=e.current.getColumn(D),W=An(e.current.state),{value:A}=W[L][D],z=e.current.getRow(L);return B.valueSetter?B.valueSetter({value:A,row:z}):S({},z,{[D]:A})},[e]);Kt(e,{getCellMode:w,startCellEditMode:k,stopCellEditMode:T,unstable_setCellEditingEditCellValue:N,unstable_getRowWithUpdatedValuesFromCellEditing:V}),u.useEffect(()=>{c&&E(c)},[c,E]),u.useEffect(()=>{const L=DL(e),D=i.current;i.current=n,Object.entries(n).forEach(([B,W])=>{Object.entries(W).forEach(([A,z])=>{var G,q,X;const ie=((G=D[B])==null||(q=G[A])==null?void 0:q.mode)||Rt.View,ee=(X=L[B])!=null?X:B;z.mode===Rt.Edit&&ie===Rt.View?$(S({id:ee,field:A},z)):z.mode===Rt.View&&ie===Rt.Edit&&O(S({id:ee,field:A},z))})})},[e,n,$,O])},kfe=["id"],Ife=["id"],_fe=xi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),$fe=(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:f,rowModesModel:p,onRowModesModelChange:h,signature:m}=t,v=A=>(...z)=>{t.editMode===xr.Row&&A(...z)},b=u.useCallback((A,z)=>{const G=e.current.getCellParams(A,z);if(!e.current.isCellEditable(G))throw new Error(`MUI: The cell with id=${A} and field=${z} is not editable.`)},[e]),g=u.useCallback((A,z)=>{if(e.current.getRowMode(A)!==z)throw new Error(`MUI: The row with id=${A} is not in ${z} mode.`)},[e]),x=u.useCallback((A,z)=>{if(!A.isEditable||e.current.getRowMode(A.id)===Xt.Edit)return;const G=e.current.getRowParams(A.id),q=S({},G,{field:A.field,reason:ps.cellDoubleClick});e.current.publishEvent("rowEditStart",q,z)},[e]),C=u.useCallback(A=>{a.current=A},[]),P=u.useCallback((A,z)=>{A.isEditable&&e.current.getRowMode(A.id)!==Xt.View&&(a.current=null,s.current=setTimeout(()=>{var G;if(s.current=null,((G=a.current)==null?void 0:G.id)!==A.id){if(!e.current.getRow(A.id)||e.current.getRowMode(A.id)===Xt.View)return;const q=e.current.getRowParams(A.id),X=S({},q,{field:A.field,reason:Oi.rowFocusOut});e.current.publishEvent("rowEditStop",X,z)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const w=u.useCallback((A,z)=>{if(A.cellMode===Xt.Edit){if(z.which===229)return;let G;if(z.key==="Escape")G=Oi.escapeKeyDown;else if(z.key==="Enter")G=Oi.enterKeyDown;else if(z.key==="Tab"){const q=Ia(e).filter(X=>e.current.isCellEditable(e.current.getCellParams(A.id,X)));z.shiftKey?A.field===q[0]&&(G=Oi.shiftTabKeyDown):A.field===q[q.length-1]&&(G=Oi.tabKeyDown),G&&z.preventDefault()}if(G){const q=e.current.getRowParams(A.id),X=S({},q,{reason:G,field:A.field});e.current.publishEvent("rowEditStop",X,z)}}else if(A.isEditable){let G;if(Ev(z)||(z.ctrlKey||z.metaKey)&&z.key==="v"?G=ps.printableKeyDown:z.key==="Enter"?G=ps.enterKeyDown:(z.key==="Delete"||z.key==="Backspace")&&(G=ps.deleteKeyDown),G){const q=e.current.getRowParams(A.id),X=S({},q,{field:A.field,reason:G});e.current.publishEvent("rowEditStart",X,z)}}},[e]),E=u.useCallback(A=>{const{id:z,field:G,reason:q}=A,X={id:z,fieldToFocus:G};(q===ps.deleteKeyDown||q===ps.printableKeyDown)&&(X.deleteValue=!!G),e.current.startRowEditMode(X)},[e]),I=u.useCallback(A=>{const{id:z,reason:G,field:q}=A;e.current.unstable_runPendingEditCellValueMutation(z);let X;G===Oi.enterKeyDown?X="below":G===Oi.tabKeyDown?X="right":G===Oi.shiftTabKeyDown&&(X="left");let ie=G==="escapeKeyDown";const ee=An(e.current.state);!ie&&!t.disableIgnoreModificationsIfProcessingProps&&(ie=Object.values(ee[z]).some(se=>se.isProcessingProps)),e.current.stopRowEditMode({id:z,ignoreModifications:ie,field:q,cellToFocusAfter:X})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",v(x)),Ne(e,"cellFocusIn",v(C)),Ne(e,"cellFocusOut",v(P)),Ne(e,"cellKeyDown",v(w)),Ne(e,"rowEditStart",v(E)),Ne(e,"rowEditStop",v(I)),Ft(e,"rowEditStart",t.onRowEditStart),Ft(e,"rowEditStop",t.onRowEditStop);const _=u.useCallback(A=>{if(t.editMode===xr.Cell)return Xt.View;const z=An(e.current.state);return z[A]&&Object.keys(z[A]).length>0?Xt.Edit:Xt.View},[e,t.editMode]),k=u.useCallback(A=>{const z=A!==t.rowModesModel;if(h&&z){const G=m===$a.DataGridPro?{api:e.current}:{};h(A,G)}t.rowModesModel&&z||(r(A),o.current=A,e.current.publishEvent("rowModesModelChange",A))},[e,h,t.rowModesModel,m]),$=u.useCallback((A,z)=>{const G=S({},o.current);z!==null?G[A]=S({},z):delete G[A],k(G)},[k]),T=u.useCallback((A,z)=>{e.current.setState(G=>{const q=S({},G.editRows);return z!==null?q[A]=z:delete q[A],S({},G,{editRows:q})}),e.current.forceUpdate()},[e]),O=u.useCallback((A,z,G)=>{e.current.setState(q=>{const X=S({},q.editRows);return G!==null?X[A]=S({},X[A],{[z]:S({},G)}):(delete X[A][z],Object.keys(X[A]).length===0&&delete X[A]),S({},q,{editRows:X})}),e.current.forceUpdate()},[e]),N=u.useCallback(A=>{const{id:z}=A,G=oe(A,kfe);g(z,Xt.View),$(z,S({mode:Xt.Edit},G))},[g,$]),V=u.useCallback(A=>{const{id:z,fieldToFocus:G,deleteValue:q}=A,ie=Ia(e).reduce((ee,se)=>{if(!e.current.getCellParams(z,se).isEditable)return ee;const we=q&&G===se;return ee[se]={value:we?"":e.current.getCellValue(z,se),error:!1,isProcessingProps:!1},ee},{});T(z,ie),G&&e.current.setCellFocus(z,G)},[e,T]),j=u.useCallback(A=>{const{id:z}=A,G=oe(A,Ife);g(z,Xt.Edit),$(z,S({mode:Xt.View},G))},[g,$]),L=u.useCallback(A=>{const{id:z,ignoreModifications:G,field:q,cellToFocusAfter:X="none"}=A;e.current.unstable_runPendingEditCellValueMutation(z);const ie=()=>{X!=="none"&&q&&e.current.unstable_moveFocusToRelativeCell(z,q,X),T(z,null),$(z,null)};if(G){ie();return}const ee=An(e.current.state),se=e.current.getRow(z);if(Object.values(ee[z]).some(le=>le.isProcessingProps)){i.current[z].mode=Xt.Edit;return}if(Object.values(ee[z]).some(le=>le.error)){i.current[z].mode=Xt.Edit;return}const de=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(z);if(c){const le=te=>{i.current[z].mode=Xt.Edit,f?f(te):_fe()};try{Promise.resolve(c(de,se)).then(te=>{e.current.updateRows([te]),ie()}).catch(le)}catch(te){le(te)}}else e.current.updateRows([de]),ie()},[e,f,c,T,$]),D=u.useCallback(A=>{const{id:z,field:G,value:q}=A;b(z,G);const X=e.current.getColumn(G),ie=e.current.getRow(z);let ee=q;X.valueParser&&(ee=X.valueParser(q,e.current.getCellParams(z,G)));let se=An(e.current.state),ae=S({},se[z][G],{value:ee});return X.preProcessEditCellProps||O(z,G,ae),new Promise(we=>{const de=[];if(X.preProcessEditCellProps){const le=ae.value!==se[z][G].value;ae=S({},ae,{isProcessingProps:!0}),O(z,G,ae);const te=se[z],be=oe(te,[G].map(Nf)),_e=Promise.resolve(X.preProcessEditCellProps({id:z,row:ie,props:ae,hasChanged:le,otherFieldsProps:be})).then(Se=>{if(e.current.getRowMode(z)===Xt.View){we(!1);return}se=An(e.current.state),Se=S({},Se,{isProcessingProps:!1}),Se.value=X.preProcessEditCellProps?se[z][G].value:ee,O(z,G,Se)});de.push(_e)}Object.entries(se[z]).forEach(([le,te])=>{if(le===G)return;const be=e.current.getColumn(le);if(!be.preProcessEditCellProps)return;te=S({},te,{isProcessingProps:!0}),O(z,le,te),se=An(e.current.state);const _e=se[z],Se=oe(_e,[le].map(Nf)),Fe=Promise.resolve(be.preProcessEditCellProps({id:z,row:ie,props:te,hasChanged:!1,otherFieldsProps:Se})).then(Re=>{if(e.current.getRowMode(z)===Xt.View){we(!1);return}Re=S({},Re,{isProcessingProps:!1}),O(z,le,Re)});de.push(Fe)}),Promise.all(de).then(()=>{e.current.getRowMode(z)===Xt.Edit?(se=An(e.current.state),we(!se[z][G].error)):we(!1)})})},[e,b,O]),B=u.useCallback(A=>{const z=An(e.current.state),G=e.current.getRow(A);let q=S({},G);return Object.entries(z[A]).forEach(([X,ie])=>{const ee=e.current.getColumn(X);ee.valueSetter?q=ee.valueSetter({value:ie.value,row:q}):q[X]=ie.value}),q},[e]);Kt(e,{getRowMode:_,startRowEditMode:N,stopRowEditMode:j,unstable_setRowEditingEditCellValue:D,unstable_getRowWithUpdatedValuesFromRowEditing:B}),u.useEffect(()=>{p&&k(p)},[p,k]),u.useEffect(()=>{const A=DL(e),z=i.current;i.current=n,Object.entries(n).forEach(([G,q])=>{var X,ie;const ee=((X=z[G])==null?void 0:X.mode)||Xt.View,se=(ie=A[G])!=null?ie:G;q.mode===Xt.Edit&&ee===Xt.View?V(S({id:se},q)):q.mode===Xt.View&&ee===Xt.Edit&&L(S({id:se},q))})},[e,n,V,L])},Mfe=e=>S({},e,{editRows:{}}),Tfe=(e,t)=>{Pfe(e,t),$fe(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(p=>p.rowNode.isAutoGenerated||!p.colDef.editable||!p.colDef.renderEditCell?!1:r?r(p):!p.rowNode.isPinned,[r]),i=(p,h,m,v)=>{if(!m){v();return}if(n.current[p]||(n.current[p]={}),n.current[p][h]){const[x]=n.current[p][h];clearTimeout(x)}const b=()=>{const[x]=n.current[p][h];clearTimeout(x),v(),delete n.current[p][h]},g=setTimeout(()=>{v(),delete n.current[p][h]},m);n.current[p][h]=[g,b]};u.useEffect(()=>{const p=n.current;return()=>{Object.entries(p).forEach(([h,m])=>{Object.keys(m).forEach(v=>{const[b]=p[h][v];clearTimeout(b),delete p[h][v]})})}},[]);const s=u.useCallback((p,h)=>{if(n.current[p]){if(!h)Object.keys(n.current[p]).forEach(m=>{const[,v]=n.current[p][m];v()});else if(n.current[p][h]){const[,m]=n.current[p][h];m()}}},[]),a=u.useCallback(p=>{const{id:h,field:m,debounceMs:v}=p;return new Promise(b=>{i(h,m,v,()=>ot(void 0,null,function*(){const g=t.editMode===xr.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(h,m)===Rt.Edit){const x=yield g(p);b(x)}}))})},[e,t.editMode]),c=u.useCallback((p,h)=>t.editMode===xr.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(p,h):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(p),[e,t.editMode]);Kt(e,{isCellEditable:o,setEditCellValue:a,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:c})},Rfe=(e,t,n)=>(n.current.unstable_caches.rows=im({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),S({},e,{rows:IA({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),Ofe=(e,t)=>{const n=Gn(e,"useGridRows"),r=Ha(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(T=>{var O;return(O=Rf(e)[T])!=null?O:null},[e]),a=u.useMemo(()=>r.rows.reduce((T,{id:O},N)=>(T[O]=N,T),{}),[r.rows]),c=u.useCallback((T,O)=>{const N=()=>{i.current=null,o.current=Date.now(),e.current.setState(j=>S({},j,{rows:IA({apiRef:e,previousTree:ga(e),rowCountProp:t.rowCount,loadingProp:t.loading})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.current&&(clearTimeout(i.current),i.current=null),e.current.unstable_caches.rows=T,!O){N();return}const V=t.throttleRowsMs-(Date.now()-o.current);if(V>0){i.current=setTimeout(N,V);return}N()},[t.throttleRowsMs,t.rowCount,t.loading,e]),f=u.useCallback(T=>{n.debug(`Updating all rows, new length ${T.length}`),c(im({rows:T,getRowId:t.getRowId,loading:t.loading}),!0)},[n,t.getRowId,t.loading,c]),p=u.useCallback(T=>{if(t.signature===$a.DataGrid&&T.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(`
|
|
276
|
+
`));const O=new Map;T.forEach(L=>{const D=kA(L,t.getRowId,"A row was provided without id when calling updateRows():");O.has(D)?O.set(D,S({},O.get(D),L)):O.set(D,L)});const N=[],V=e.current.unstable_caches.rows,j={rowsBeforePartialUpdates:V.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:V.loadingPropBeforePartialUpdates,idRowsLookup:S({},V.idRowsLookup),idToIdLookup:S({},V.idToIdLookup),ids:[...V.ids]};O.forEach((L,D)=>{if(L._action==="delete"){delete j.idRowsLookup[D],delete j.idToIdLookup[D],N.push(D);return}if(!e.current.getRow(D)){j.idRowsLookup[D]=L,j.idToIdLookup[D]=D,j.ids.push(D);return}j.idRowsLookup[D]=S({},e.current.getRow(D),L)}),N.length>0&&(j.ids=j.ids.filter(L=>!N.includes(L))),c(j,!0)},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const T=Gc(e),O=Rf(e);return new Map(T.map(N=>[N,O[N]]))},[e]),m=u.useCallback(()=>Cv(e),[e]),v=u.useCallback(()=>Gc(e),[e]),b=u.useCallback(T=>a[T],[a]),g=u.useCallback((T,O)=>{const N=e.current.getRowNode(T);if(!N)throw new Error(`MUI: No row with id #${T} found`);const V=S({},N,{childrenExpanded:O});e.current.setState(j=>S({},j,{rows:S({},j.rows,{tree:S({},j.rows.tree,{[T]:V})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",V)},[e]),x=u.useCallback(T=>{var O;return(O=ga(e)[T])!=null?O:null},[e]),C=u.useCallback(({skipAutoGeneratedRows:T=!0,groupId:O,applySorting:N,applyFiltering:V})=>{const j=ga(e);let L;if(N){const D=j[O];if(!D)return[];const B=$x(e);L=[];const W=B.findIndex(A=>A===O)+1;for(let A=W;A<B.length&&j[B[A]].depth>D.depth;A+=1){const z=B[A],G=j[z];(!T||!G.isAutoGenerated)&&L.push(z)}}else L=_A(j,O,T);if(V){const D=BL(e);L=L.filter(B=>D[B]!==!1)}return L},[e]),P=u.useCallback((T,O)=>{const N=Gc(e),V=N.findIndex(L=>L===T);if(V===-1||V===O)return;n.debug(`Moving row ${T} to index ${O}`);const j=[...N];j.splice(O,0,j.splice(V,1)[0]),e.current.setState(L=>S({},L,{rows:S({},L.rows,{ids:j})})),e.current.applySorting()},[e,n]),w={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:v,setRows:f,setRowIndex:P,updateRows:p,setRowChildrenExpansion:g,getRowNode:x,getRowIndexRelativeToVisibleRows:b,getRowGroupChildren:C},E=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let T;e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows?T=e.current.unstable_caches.rows:T=im({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),c(T,!1)},[n,e,t.rows,t.getRowId,t.loading,c]),I=u.useCallback(T=>{T==="rowTreeCreation"&&E()},[E]),_=u.useCallback(()=>{e.current.unstable_getActiveStrategy("rowTree")!==Nse(e)&&E()},[e,E]);Ne(e,"activeStrategyProcessorChange",I),Ne(e,"strategyAvailabilityChange",_);const k=u.useCallback(()=>{e.current.setState(T=>S({},T,{rows:S({},T.rows,e.current.unstable_applyPipeProcessors("hydrateRows",T.rows.groupingResponseBeforeRowHydration))})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e]);Bx(e,"hydrateRows",k),Kt(e,w),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const $=u.useRef(!0);u.useEffect(()=>{if($.current){$.current=!1;return}const T=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading;if(T){O||(e.current.setState(N=>S({},N,{rows:S({},N.rows,{loading:t.loading})})),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c(im({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),!1)},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},Lfe=({ids:e,idRowsLookup:t,idToIdLookup:n,previousTree:r})=>{const o={};for(let i=0;i<e.length;i+=1){const s=e[i];r&&r[s]&&r[s].depth===0&&r[s].parent==null&&!r[s].isPinned?o[s]=r[s]:o[s]={id:s,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:pp,tree:o,treeDepth:1,idRowsLookup:t,idToIdLookup:n,ids:e}},Afe=e=>{zx(e,pp,"rowTreeCreation",Lfe)};xi(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);function Ffe(e){const t=u.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),n=u.useCallback((...h)=>e.current.getCellValue(...h),[e]),r=u.useCallback(h=>{const m=e.current.getRow(h);if(!m)throw new Error(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:m,getValue:n}},[e,n]),o=u.useCallback((h,m)=>{const v=e.current.getRow(h),b=e.current.getRowNode(h);if(!v||!b)throw new Error(`No row with id #${h} found`);const g=fi(e),x=Ym(e);return{id:h,field:m,row:v,rowNode:b,value:v[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(h,m),getValue:n,api:e.current,hasFocus:g!==null&&g.field===m&&g.id===h,tabIndex:x&&x.field===m&&x.id===h?0:-1}},[e,n]),i=u.useCallback((h,m)=>{const v=e.current.getColumn(m),b=e.current.getCellValue(h,m),g=e.current.getRow(h),x=e.current.getRowNode(h);if(!g||!x)throw new Error(`No row with id #${h} found`);const C=fi(e),P=Ym(e),w={id:h,field:m,row:g,rowNode:x,colDef:v,cellMode:e.current.getCellMode(h,m),getValue:n,hasFocus:C!==null&&C.field===m&&C.id===h,tabIndex:P&&P.field===m&&P.id===h?0:-1,value:b,formattedValue:b};return v.valueFormatter&&(w.formattedValue=v.valueFormatter({id:h,field:w.field,value:w.value,api:e.current})),w.isEditable=v&&e.current.isCellEditable(w),w},[e,n]),s=u.useCallback((h,m)=>{const v=e.current.getColumn(m);if(!v||!v.valueGetter){const b=e.current.getRow(h);if(!b)throw new Error(`No row with id #${h} found`);return b[m]}return v.valueGetter(o(h,m))},[e,o]),a=u.useCallback(h=>e.current.rootElementRef.current?Oae(e.current.rootElementRef.current,h):null,[e]),c=u.useCallback(h=>e.current.rootElementRef.current?rA(e.current.rootElementRef.current,h):null,[e]),f=u.useCallback((h,m)=>e.current.rootElementRef.current?Lae(e.current.rootElementRef.current,{id:h,field:m}):null,[e]);Kt(e,{getCellValue:s,getCellParams:i,getCellElement:f,getRowParams:r,getRowElement:c,getColumnHeaderParams:t,getColumnHeaderElement:a})}const RA=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Nfe=(e,t)=>{var n;return S({},e,{selection:(n=RA(t.selectionModel))!=null?n:[]})},Dfe=(e,t)=>{const n=Gn(e,"useGridSelection"),r=u.useMemo(()=>RA(t.selectionModel,Lo(e.current.state)),[e,t.selectionModel]),o=u.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:r,propOnChange:t.onSelectionModelChange,stateSelector:Lo,changeEvent:"selectionChange"});const{checkboxSelection:i,disableMultipleSelection:s,disableSelectionOnClick:a,pagination:c,paginationMode:f,isRowSelectable:p}=t,h=!s||i,m=Ha(e,t),v=u.useCallback(L=>{var D;let B=L;const W=(D=o.current)!=null?D:L,A=e.current.isRowSelected(L);if(A){const z=Xd(e),G=z.findIndex(X=>X===W),q=z.findIndex(X=>X===B);if(G===q)return;G>q?B=z[q+1]:B=z[q-1]}o.current=L,e.current.selectRowRange({startId:W,endId:B},!A)},[e]),b=u.useCallback(L=>{Lo(e.current.state)!==L&&(n.debug("Setting selection model"),e.current.setState(B=>S({},B,{selection:L})),e.current.forceUpdate())},[e,n]),g=u.useCallback(L=>Lo(e.current.state).includes(L),[e]),x=u.useCallback(L=>{if(p&&!p(e.current.getRowParams(L)))return!1;const D=e.current.getRowNode(L);return!((D==null?void 0:D.position)==="footer"||D!=null&&D.isPinned)},[e,p]),C=u.useCallback(()=>ece(e),[e]),P=u.useCallback((L,D=!0,B=!1)=>{if(e.current.isRowSelectable(L))if(o.current=L,B)n.debug(`Setting selection for row ${L}`),e.current.setSelectionModel(D?[L]:[]);else{n.debug(`Toggling selection for row ${L}`);const A=Lo(e.current.state).filter(G=>G!==L);D&&A.push(L),(A.length<2||h)&&e.current.setSelectionModel(A)}},[e,n,h]),w=u.useCallback((L,D=!0,B=!1)=>{n.debug("Setting selection for several rows");const W=L.filter(G=>e.current.isRowSelectable(G));let A;if(B)A=D?W:[];else{const G=S({},Jm(e));W.forEach(q=>{D?G[q]=q:delete G[q]}),A=Object.values(G)}(A.length<2||h)&&e.current.setSelectionModel(A)},[e,n,h]),E=u.useCallback(({startId:L,endId:D},B=!0,W)=>{if(!e.current.getRow(L)||!e.current.getRow(D))return;n.debug(`Expanding selection from row ${L} to row ${D}`);const A=Xd(e),z=A.indexOf(L),G=A.indexOf(D),[q,X]=z>G?[G,z]:[z,G],ie=A.slice(q,X+1);e.current.selectRows(ie,B,W)},[e,n]);Kt(e,{selectRow:P,selectRows:w,selectRowRange:E,setSelectionModel:b,getSelectedRows:C,isRowSelected:g,isRowSelectable:x});const _=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const L=Lo(e.current.state),D=Rf(e),B=S({},Jm(e));let W=!1;L.forEach(A=>{D[A]||(delete B[A],W=!0)}),W&&e.current.setSelectionModel(Object.values(B))},[e,t.keepNonExistentRowsSelected]),k=u.useCallback((L,D)=>{const B=D.metaKey||D.ctrlKey,W=!i&&!B&&!Fb(D),A=!h||W,z=e.current.isRowSelected(L);A?e.current.selectRow(L,W?!0:!z,!0):e.current.selectRow(L,!z,!1)},[e,h,i]),$=u.useCallback((L,D)=>{a||L.field!==dp.field&&L.field!==Dx&&(L.field&&e.current.getColumn(L.field).type===Nx||L.rowNode.isPinned||(D.shiftKey&&(h||i)?v(L.id):k(L.id,D)))},[a,h,i,e,v,k]),T=u.useCallback((L,D)=>{if(h&&D.shiftKey){var B;(B=window.getSelection())==null||B.removeAllRanges()}},[h]),O=u.useCallback((L,D)=>{D.nativeEvent.shiftKey?v(L.id):e.current.selectRow(L.id,L.value)},[e,v]),N=u.useCallback(L=>{const B=t.checkboxSelectionVisibleOnly&&t.pagination?iA(e):Xd(e);e.current.selectRows(B,L.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),V=u.useCallback((L,D)=>{if(e.current.getCellMode(L.id,L.field)!==Rt.Edit&&D.currentTarget.contains(D.target)){if(up(D.key)&&D.shiftKey){const B=fi(e);if(B&&B.id!==L.id){D.preventDefault();const W=e.current.isRowSelected(B.id);if(!h){e.current.selectRow(B.id,!W,!0);return}const A=e.current.getRowIndexRelativeToVisibleRows(B.id),z=e.current.getRowIndexRelativeToVisibleRows(L.id);let G,q;A>z?W?(G=z,q=A-1):(G=z,q=A):W?(G=A+1,q=z):(G=A,q=z);const X=m.rows.slice(G,q+1).map(ie=>ie.id);e.current.selectRows(X,!W);return}}if(D.key===" "&&D.shiftKey){D.preventDefault(),k(L.id,D);return}D.key.toLowerCase()==="a"&&(D.ctrlKey||D.metaKey)&&(D.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,k,w,m.rows,h]);Ne(e,"sortedRowsSet",_),Ne(e,"cellClick",$),Ne(e,"rowSelectionCheckboxChange",O),Ne(e,"headerSelectionCheckboxChange",N),Ne(e,"cellMouseDown",T),Ne(e,"cellKeyDown",V),u.useEffect(()=>{r!==void 0&&e.current.setSelectionModel(r)},[e,r]);const j=r!=null;u.useEffect(()=>{if(j)return;const L=Lo(e.current.state);if(x){const D=L.filter(B=>x(B));D.length<L.length&&e.current.setSelectionModel(D)}},[e,x,j]),u.useEffect(()=>{const L=Lo(e.current.state);if(!h&&L.length>1){const{rows:D}=kv(e,{pagination:c,paginationMode:f}),B=D.reduce((A,{id:z})=>(A[z]=!0,A),{}),W=L.find(A=>{let z=!0;return x&&(z=x(A)),z&&B[A]});e.current.setSelectionModel(W!==void 0?[W]:[])}},[e,h,i,s,x,c,f])},Bfe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},zfe=["sortingOrder"],jfe=u.memo(function(t){const{sortingOrder:n}=t,r=oe(t,zfe),o=Ye(),[i]=n,s=i==="asc"?o.components.ColumnSortedAscendingIcon:o.components.ColumnSortedDescendingIcon;return s?R.jsx(s,S({},r)):null}),Hfe=["message","hasError","errorInfo"],Vfe=u.forwardRef(function(t,n){const{message:r}=t,o=oe(t,Hfe),i=vt(),s=i.current.getLocaleText("errorOverlayDefaultLabel"),a=Ue(i,ap);return R.jsx(Pv,S({ref:n,sx:{width:"100%",minHeight:2*a}},o,{children:r||s}))}),Ufe=u.forwardRef(function(t,n){const o=vt().current.getLocaleText("noResultsOverlayLabel");return R.jsx(Pv,S({ref:n},t,{children:o}))}),Wfe={BooleanCellTrueIcon:Lle,BooleanCellFalseIcon:q0,ColumnMenuIcon:Tle,OpenFilterButtonIcon:Sle,FilterPanelDeleteIcon:q0,ColumnFilteredIcon:Ele,ColumnSelectorIcon:kle,ColumnUnsortedIcon:jfe,ColumnSortedAscendingIcon:Cle,ColumnSortedDescendingIcon:xle,ColumnResizeIcon:Ile,DensityCompactIcon:_le,DensityStandardIcon:$le,DensityComfortableIcon:Mle,ExportIcon:Ole,MoreActionsIcon:Ale,TreeDataCollapseIcon:G_,TreeDataExpandIcon:W_,GroupingCriteriaCollapseIcon:G_,GroupingCriteriaExpandIcon:W_,DetailPanelExpandIcon:YL,DetailPanelCollapseIcon:Rle,RowReorderIcon:XL,QuickFilterIcon:Ple,QuickFilterClearIcon:q0},d$=S({},Wfe,{BaseCheckbox:vO,BaseTextField:tp,BaseFormControl:Na,BaseSelect:OC,BaseSwitch:HO,BaseButton:cr,BaseTooltip:uv,BasePopper:Aa,Cell:lle,ColumnHeaderFilterIconButton:qae,ColumnMenu:Zce,ErrorOverlay:Vfe,Footer:Que,Header:Jue,Toolbar:null,PreferencesPanel:Pue,LoadingOverlay:Zue,NoResultsOverlay:Ufe,NoRowsOverlay:ede,Pagination:nde,FilterPanel:Due,ColumnsPanel:bue,Panel:Eue,Row:sde}),Gfe=e=>{const{classes:t}=e;return u.useMemo(()=>Ie({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Dt,t),[t])},Kfe=(e,t)=>{const n={classes:t.classes},r=Gfe(n),o=u.useCallback(i=>{const s=S({},dp,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[Ys]!=null;return a&&!c?(i.lookup[Ys]=s,i.all=[Ys,...i.all]):!a&&c?(delete i.lookup[Ys],i.all=i.all.filter(f=>f!==Ys)):a&&c&&(i.lookup[Ys]=S({},s,i.lookup[Ys])),i},[e,r,t.checkboxSelection]);rr(e,"hydrateColumns",o)},qfe=(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 S({},e,{sorting:{sortModel:sA(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},Yfe=(e,t)=>{var n,r;const o=Gn(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ai,changeEvent:"sortModelChange"});const i=u.useCallback((k,$)=>{const T=ai(e),O=T.findIndex(V=>V.field===k);let N=[...T];return O>-1?$?N.splice(O,1,$):N.splice(O,1):N=[...T,$],N},[e]),s=u.useCallback((k,$)=>{var T;const N=ai(e).find(j=>j.field===k.field);if(N){var V;const j=$===void 0?Y_((V=k.sortingOrder)!=null?V:t.sortingOrder,N.sort):$;return j==null?void 0:S({},N,{sort:j})}return{field:k.field,sort:$===void 0?Y_((T=k.sortingOrder)!=null?T:t.sortingOrder):$}},[e,t.sortingOrder]),a=u.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode===Kc.server)return o.debug("Skipping sorting rows as sortingMode = server"),S({},k,{sorting:S({},k.sorting,{sortedRows:Gc(k,e.current.instanceId)})});const $=ai(k,e.current.instanceId),T=pce($,e),O=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:T});return S({},k,{sorting:S({},k.sorting,{sortedRows:O})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),c=u.useCallback(k=>{ai(e)!==k&&(o.debug("Setting sort model"),e.current.setState(q_(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),f=u.useCallback((k,$,T)=>{if(!k.sortable)return;const O=s(k,$);let N;!T||t.disableMultipleColumnsSorting?N=O?[O]:[]:N=i(k.field,O),e.current.setSortModel(N)},[e,i,s,t.disableMultipleColumnsSorting]),p=u.useCallback(()=>ai(e),[e]),h=u.useCallback(()=>Mx(e).map($=>$.model),[e]),m=u.useCallback(()=>$x(e),[e]),v=u.useCallback(k=>e.current.getSortedRowIds().indexOf(k),[e]),b=u.useCallback(k=>e.current.getSortedRowIds()[k],[e]);Kt(e,{getSortModel:p,getSortedRows:h,getSortedRowIds:m,getRowIndex:v,getRowIdFromRowIndex:b,setSortModel:c,sortColumn:f,applySorting:a});const x=u.useCallback((k,$)=>{var T,O;const N=ai(e);return!$.exportOnlyDirtyModels||t.sortModel!=null||((T=t.initialState)==null||(O=T.sorting)==null?void 0:O.sortModel)!=null||N.length>0?S({},k,{sorting:{sortModel:N}}):k},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),C=u.useCallback((k,$)=>{var T;const O=(T=$.stateToRestore.sorting)==null?void 0:T.sortModel;return O==null?k:(e.current.setState(q_(O,t.disableMultipleColumnsSorting)),S({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),P=u.useCallback(k=>{const $=ga(e);if(!k.sortRowList){const N=[],V=[];return Gc(e).forEach(j=>{$[j].isPinned||($[j].position==="footer"?V.push(j):N.push(j))}),[...N,...V]}const T=[],O=[];return Object.values($).forEach(N=>{N.isPinned||(N.position==="footer"?O.push(N.id):T.push(N))}),[...k.sortRowList(T),...O]},[e]);rr(e,"exportState",x),rr(e,"restoreState",C),zx(e,pp,"sorting",P);const w=u.useCallback(({colDef:k},$)=>{const T=$.shiftKey||$.metaKey||$.ctrlKey;f(k,void 0,T)},[f]),E=u.useCallback(({colDef:k},$)=>{JL($.key)&&!$.ctrlKey&&!$.metaKey&&f(k,void 0,$.shiftKey)},[f]),I=u.useCallback(()=>{const k=ai(e),$=Ru(e);if(k.length>0){const T=k.filter(O=>$[O.field]);T.length<k.length&&e.current.setSortModel(T)}},[e]),_=u.useCallback(k=>{k==="sorting"&&e.current.applySorting()},[e]);Ne(e,"columnHeaderClick",w),Ne(e,"columnHeaderKeyDown",E),Ne(e,"rowsSet",e.current.applySorting),Ne(e,"columnsChange",I),Ne(e,"activeStrategyProcessorChange",_),fp(()=>{e.current.applySorting()}),u.useEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function f$(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 Xfe=(e,t)=>{const n=Gn(e,"useGridScroll"),r=e.current.columnHeadersElementRef,o=e.current.windowRef,i=Ue(e,Ls),s=u.useCallback(p=>{const h=Cv(e),m=pr(e);if(!(p.rowIndex==null)&&h===0||m.length===0)return!1;n.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let b={};if(p.colIndex!=null){const P=_a(e);let w;if(typeof p.rowIndex!="undefined"){var g;const E=(g=i[p.rowIndex])==null?void 0:g.id,I=e.current.unstable_getCellColSpanInfo(E,p.colIndex);I&&!I.spannedByColSpan&&(w=I.cellProps.width)}typeof w=="undefined"&&(w=m[p.colIndex].computedWidth),b.left=f$({clientHeight:o.current.clientWidth,scrollTop:o.current.scrollLeft,offsetHeight:w,offsetTop:P[p.colIndex]})}if(p.rowIndex!=null){var x,C;const P=Df(e.current.state),w=$d(e),E=Qd(e),I=t.pagination?p.rowIndex-w*E:p.rowIndex,_=P.positions[I+1]?P.positions[I+1]-P.positions[I]:P.currentPageTotalHeight-P.positions[I],k=((x=o.current.querySelector(`.${Z["pinnedRows--top"]}`))==null?void 0:x.clientHeight)||0,$=((C=o.current.querySelector(`.${Z["pinnedRows--bottom"]}`))==null?void 0:C.clientHeight)||0;b.top=f$({clientHeight:o.current.clientHeight-k-$,scrollTop:o.current.scrollTop,offsetHeight:_,offsetTop:P.positions[I]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,p),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[n,e,o,t.pagination,i]),a=u.useCallback(p=>{o.current&&p.left!=null&&r.current&&(r.current.scrollLeft=p.left,o.current.scrollLeft=p.left,n.debug(`Scrolling left: ${p.left}`)),o.current&&p.top!=null&&(o.current.scrollTop=p.top,n.debug(`Scrolling top: ${p.top}`)),n.debug("Scrolling, updating container, and viewport")},[o,r,n]),c=u.useCallback(()=>o!=null&&o.current?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0},[o]);Kt(e,{scroll:a,scrollToIndexes:s,getScrollPosition:c})};function Qfe(e,t){Ft(e,"columnHeaderClick",t.onColumnHeaderClick),Ft(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Ft(e,"columnHeaderOver",t.onColumnHeaderOver),Ft(e,"columnHeaderOut",t.onColumnHeaderOut),Ft(e,"columnHeaderEnter",t.onColumnHeaderEnter),Ft(e,"columnHeaderLeave",t.onColumnHeaderLeave),Ft(e,"columnOrderChange",t.onColumnOrderChange),Ft(e,"cellClick",t.onCellClick),Ft(e,"cellDoubleClick",t.onCellDoubleClick),Ft(e,"cellKeyDown",t.onCellKeyDown),Ft(e,"cellFocusOut",t.onCellFocusOut),Ft(e,"preferencePanelClose",t.onPreferencePanelClose),Ft(e,"preferencePanelOpen",t.onPreferencePanelOpen),Ft(e,"menuOpen",t.onMenuOpen),Ft(e,"menuClose",t.onMenuClose),Ft(e,"rowDoubleClick",t.onRowDoubleClick),Ft(e,"rowClick",t.onRowClick),Ft(e,"componentError",t.onError),Ft(e,"stateChange",t.onStateChange)}const Jfe=({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 Zfe(e,t){const n=Gn(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=Ue(e,Df),a=Ue(e,cp),c=u.useCallback(()=>{var x;const C=(x=e.current.rootElementRef)==null?void 0:x.current,P=xv(e),w=$A(e);if(!o.current)return;let E;if(t.scrollbarSize!=null)E=t.scrollbarSize;else if(!P||!C)E=0;else{const V=bn(C).createElement("div");V.style.width="99px",V.style.height="99px",V.style.position="absolute",V.style.overflow="scroll",V.className="scrollDiv",C.appendChild(V),E=V.offsetWidth-V.clientWidth,C.removeChild(V)}let I,_,k;if(t.autoHeight)k=!1,_=Math.round(P)>o.current.width,I={width:o.current.width,height:s.currentPageTotalHeight+(_?E:0)};else{I={width:o.current.width,height:o.current.height-a};const N=Jfe({content:{width:Math.round(P),height:s.currentPageTotalHeight},container:{width:I.width,height:I.height-w.top-w.bottom},scrollBarSize:E});k=N.hasScrollY,_=N.hasScrollX}const $={width:I.width-(k?E:0),height:I.height-(_?E:0)},T={viewportOuterSize:I,viewportInnerSize:$,hasScrollX:_,hasScrollY:k,scrollBarSize:E},O=i.current;i.current=T,(T.viewportInnerSize.width!==(O==null?void 0:O.viewportInnerSize.width)||T.viewportInnerSize.height!==(O==null?void 0:O.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",T.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a,s.currentPageTotalHeight]),f=u.useCallback(()=>{c(),e.current.publishEvent("debouncedResize",o.current)},[e,c]),p=u.useCallback(()=>i.current,[]),h=u.useCallback(()=>{const x=e.current.getRootDimensions();if(!x)return 0;const C=kv(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const w=e.current.unstable_getRenderContext(),E=w.lastRowIndex-w.firstRowIndex;return Math.min(E-1,C.rows.length)}const P=Math.floor(x.viewportInnerSize.height/ap(e));return Math.min(P,C.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight]);Kt(e,{resize:f,getRootDimensions:p,unstable_getViewportPageSize:h,unstable_updateGridDimensionsRef:c});const v=u.useMemo(()=>ks(f,60),[f]),b=u.useRef(!0),g=u.useCallback(x=>{o.current=x;const C=/jsdom/.test(window.navigator.userAgent);if(x.height===0&&!r.current&&!t.autoHeight&&!C&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
277
|
+
`)),r.current=!0),x.width===0&&!r.current&&!C&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
278
|
+
`)),r.current=!0),b.current){f(),b.current=!1;return}v()},[t.autoHeight,v,n,f]);Rn(()=>c(),[c]),Ft(e,"sortedRowsSet",c),Ft(e,"pageChange",c),Ft(e,"pageSizeChange",c),Ft(e,"columnsChange",c),Ne(e,"resize",g),Ft(e,"debouncedResize",t.onResize)}const epe=e=>S({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),tpe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef({}),s=u.useRef(-1),a=u.useRef(!1),c=Ue(e,ap),f=Ue(e,lp),p=Ue(e,Ou),h=Ue(e,_x),m=Ha(e,t),v=Ue(e,sp),b=u.useCallback(()=>{var $,T;a.current=!1;const O=Yse(e.current.state,e.current.instanceId),N=L=>{i.current[L.id]||(i.current[L.id]={sizes:{base:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:D,needsFirstMeasurement:B,sizes:W}=i.current[L.id];let A=c;const z=W.base;if(D)A=z;else if(n){const ee=n(S({},L,{densityFactor:O}));if(ee==="auto"){if(B){const se=o?o(S({},L,{densityFactor:O})):c;A=se!=null?se:c}else A=z;a.current=!0,i.current[L.id].autoHeight=!0}else A=ee!=null?ee:c,i.current[L.id].needsFirstMeasurement=!1,i.current[L.id].autoHeight=!1}else i.current[L.id].needsFirstMeasurement=!1;const G={base:A};if(r){var q,X;const ee=e.current.getRowIndexRelativeToVisibleRows(L.id),se=r(S({},L,{isFirstVisible:ee===0,isLastVisible:ee===m.rows.length-1,indexRelativeToCurrentPage:ee}));G.spacingTop=(q=se.top)!=null?q:0,G.spacingBottom=(X=se.bottom)!=null?X:0}const ie=e.current.unstable_applyPipeProcessors("rowHeight",G,L);return i.current[L.id].sizes=ie,ie},V=[],j=m.rows.reduce((L,D)=>{V.push(L);const B=N(D),W=Object.values(B).reduce((A,z)=>A+z,0);return L+W},0);v==null||($=v.top)==null||$.forEach(L=>{N(L)}),v==null||(T=v.bottom)==null||T.forEach(L=>{N(L)}),e.current.setState(L=>S({},L,{rowsMeta:{currentPageTotalHeight:j,positions:V}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,c,n,r,o,v]),g=u.useCallback($=>{const T=i.current[$];return T?T.sizes.base:c},[c]),x=$=>{var T;return(T=i.current[$])==null?void 0:T.sizes},C=u.useCallback(($,T)=>{i.current[$].sizes.base=T,i.current[$].isResized=!0,i.current[$].needsFirstMeasurement=!1,b()},[b]),P=u.useMemo(()=>ks(b),[b]),w=u.useCallback(($,T)=>{if(!i.current[$]||!i.current[$].autoHeight)return;const O=i.current[$].sizes.base!==T;i.current[$].needsFirstMeasurement=!1,i.current[$].sizes.base=T,O&&P()},[P]),E=u.useCallback($=>{var T;return((T=i.current[$])==null?void 0:T.autoHeight)||!1},[]),I=u.useCallback(()=>s.current,[]),_=u.useCallback($=>{a.current&&$>s.current&&(s.current=$)},[]);u.useEffect(()=>{b()},[c,f,p,h,b]),Bx(e,"rowHeight",b),Kt(e,{unstable_getLastMeasuredRowIndex:I,unstable_setLastMeasuredRowIndex:_,unstable_rowHasAutoHeight:E,unstable_getRowHeight:g,unstable_getRowInternalSizes:x,unstable_setRowHeight:C,unstable_storeRowHeightMeasurement:w})},npe=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]);Kt(e,{exportState:t,restoreState:n})},rpe=e=>{const t=u.useRef({}),n=u.useCallback((c,f,p)=>{const h=t.current;h[c]||(h[c]={}),h[c][f]=p},[]),r=u.useCallback((c,f)=>{var p;return(p=t.current[c])==null?void 0:p[f]},[]),o=u.useCallback(c=>{const{columnIndex:f,rowId:p,minFirstColumnIndex:h,maxLastColumnIndex:m,columns:v}=c,b=v.length,g=v[f],x=typeof g.colSpan=="function"?g.colSpan(e.current.getCellParams(p,g.field)):g.colSpan;if(!x||x===1)return n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:1,width:g.computedWidth}}),{colSpan:1};let C=g.computedWidth;for(let P=1;P<x;P+=1){const w=f+P;if(w>=h&&w<m){const E=v[w];C+=E.computedWidth,n(p,f+P,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+x,b-1),leftVisibleCellIndex:f})}n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:x,width:C}})}return{colSpan:x}},[e,n]),i=u.useCallback(({rowId:c,minFirstColumn:f,maxLastColumn:p,columns:h})=>{for(let m=f;m<p;m+=1){const v=o({columnIndex:m,rowId:c,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:h});v.colSpan>1&&(m+=v.colSpan-1)}},[o]);Kt(e,{unstable_getCellColSpanInfo:r,unstable_calculateColSpan:i});const a=u.useCallback(()=>{t.current={}},[]);Ne(e,"columnOrderChange",a)},ope=(e,t)=>{var n;const r=u.useCallback(o=>{var i;if(!((i=t.experimentalFeatures)!=null&&i.columnGrouping))return o;const s=xA(t.columnGroupingModel);return o.all.forEach(a=>{var c,f;const p=(c=s[a])!=null?c:[],h=o.lookup[a];zde(h)&&Cs(p,h==null?void 0:h.groupPath)||(o.lookup[a]=S({},o.lookup[a],{groupPath:(f=s[a])!=null?f:[]}))}),o},[t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);rr(e,"hydrateColumns",r)},ipe=e=>{var t,n;const r=Rde(void 0,e);return ope(r,e),Kfe(r,e),Afe(r),so(Nfe,r,e),so(Fde,r,e),so(jde,r,e),so(Rfe,r,e),so((t=e.experimentalFeatures)!=null&&t.newEditingApi?Mfe:wfe,r,e),so(afe,r,e),so(qfe,r,e),so(gfe,r,e),so(sfe,r,e),so(Vde,r,e),so(hfe,r,e),so(epe,r,e),so(Lde,r,e),dfe(r,e),Dfe(r,e),Nde(r,e),Ofe(r,e),Ffe(r),rpe(r),Hde(r,e),((n=e.experimentalFeatures)!=null&&n.newEditingApi?Tfe:Cfe)(r,e),cfe(r,e),vfe(r,e),lfe(r,e),Yfe(r,e),Ude(r,e),mfe(r,e),tpe(r,e),Xfe(r,e),Ade(r),Yde(r),Xde(r,e),Ode(r),Zfe(r,e),Qfe(r,e),npe(r),r},spe={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,signature:"DataGrid"},lpe=100,ape={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:Of.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:xr.Cell,filterMode:Kc.client,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:Kc.client,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:Kc.client,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1},cpe=e=>{if(e.pageSize>lpe)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=Qe({props:e,name:"MuiDataGrid"}),n=u.useMemo(()=>S({},Bfe,t.localeText),[t.localeText]),r=u.useMemo(()=>{const o=t.components;if(!o)return S({},d$);const i={};return Object.entries(d$).forEach(([s,a])=>{i[s]=o[s]===void 0?a:o[s]}),i},[t.components]);return u.useMemo(()=>S({},ape,t,{localeText:n,components:r},spe),[t,n,r])},upe=["className"],dpe=e=>{const{classes:t}=e;return Ie({root:["virtualScroller"]},Dt,t)},fpe=re("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),ppe=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,upe),s={classes:Ye().classes},a=dpe(s);return R.jsx(fpe,S({ref:n,className:he(a.root,r)},o))}),hpe=["className","style"],mpe=e=>{const{classes:t,overflowedContent:n}=e;return Ie({root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]},Dt,t)},gpe=re("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),vpe=u.forwardRef(function(t,n){const{className:r,style:o}=t,i=oe(t,hpe),s=Ye(),a={classes:s.classes,overflowedContent:!s.autoHeight&&(o==null?void 0:o.minHeight)==="auto"},c=mpe(a);return R.jsx(gpe,S({ref:n,className:he(c.root,r),style:o},i))}),ype=["className"],bpe=e=>{const{classes:t}=e;return Ie({root:["virtualScrollerRenderZone"]},Dt,t)},wpe=re("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Cpe=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,ype),s={classes:Ye().classes},a=bpe(s);return R.jsx(wpe,S({ref:n,className:he(a.root,r)},o))}),xpe=["style"];function qc(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?qc(e,t,n,o):qc(e,t,o+1,r)}function Spe(e,t,n){let r=1;for(;n<t.length&&t[n]<e;)n+=r,r*=2;return qc(e,t,Math.floor(n/2),Math.min(n,t.length))}const ta=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Lf(e-n,r,o),Lf(t+n,r,o)],Epe=e=>{var t,n;const r=vt(),o=Ye(),i=Ue(r,pr),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=Ue(r,_a),v=Ue(r,xv),b=Ue(r,ap),g=Ue(r,fi),x=Ue(r,Ym),C=Ue(r,Df),P=Ue(r,An),w=Ue(r,Jm),E=Ha(r,o),I=u.useRef(null),_=u.useRef(null),k=St(s,_),[$,T]=u.useState(null),O=u.useRef($),N=u.useRef({top:0,left:0}),[V,j]=u.useState(null),L=u.useRef(v),D=u.useCallback(de=>{var le,te;const _e=r.current.unstable_getLastMeasuredRowIndex()-(((le=E.range)==null?void 0:le.firstRowIndex)||0),Se=Math.max(0,_e);let Fe=Se===1/0;return(te=E.range)!=null&&te.lastRowIndex&&!Fe&&(Fe=Se>=E.range.lastRowIndex),Fe||C.positions[Se]>=de?qc(de,C.positions):Spe(de,C.positions,Se)},[r,(t=E.range)==null?void 0:t.firstRowIndex,(n=E.range)==null?void 0:n.lastRowIndex,C.positions]),B=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:E.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:de,left:le}=N.current,te=Math.min(D(de),C.positions.length-1),be=o.autoHeight?te+E.rows.length:D(de+_.current.clientHeight);let _e=!1,Se=0,Fe=m.length;const[Re,Ae]=ta({firstIndex:te,lastIndex:be,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer});for(let Oe=Re;Oe<Ae&&!_e;Oe+=1){const Ze=E.rows[Oe];_e=r.current.unstable_rowHasAutoHeight(Ze.id)}return _e||(Se=qc(le,m),Fe=qc(le+V,m)),{firstRowIndex:te,lastRowIndex:be,firstColumnIndex:Se,lastColumnIndex:Fe}},[a,D,C.positions.length,o.autoHeight,o.rowBuffer,E.rows,m,i.length,r,V]);u.useEffect(()=>{a?I.current.style.transform="translate3d(0px, 0px, 0px)":(_.current.scrollLeft=0,_.current.scrollTop=0)},[a]),u.useEffect(()=>{j(_.current.clientWidth)},[C.currentPageTotalHeight]);const W=u.useCallback(de=>{j(de.width)},[]);Ne(r,"resize",W);const A=u.useCallback(de=>{const[le,te]=ta({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer}),[be]=ta({firstIndex:de.firstColumnIndex,lastIndex:de.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),_e=Db({firstColumnToRender:be,apiRef:r,firstRowToRender:le,lastRowToRender:te,visibleRows:E.rows}),Se=Df(r.current.state).positions[le],Fe=_a(r)[_e];I.current.style.transform=`translate3d(${Fe}px, ${Se}px, 0px)`,typeof c=="function"&&c({top:Se,left:Fe})},[r,E.rows,c,f,p,o.columnBuffer,o.rowBuffer]);u.useLayoutEffect(()=>{$&&A($)},[$,A]);const z=u.useCallback(de=>{T(de),O.current=de},[T,O]);u.useEffect(()=>{if(V==null)return;const de=B();z(de);const{top:le,left:te}=N.current,be={top:le,left:te,renderContext:de};r.current.publishEvent("rowsScroll",be)},[r,B,V,z]);const G=de=>{const{scrollTop:le,scrollLeft:te}=de.currentTarget;if(N.current.top=le,N.current.left=te,te<0||le<0||!O.current)return;const be=a?O.current:B(),_e=Math.abs(be.firstRowIndex-O.current.firstRowIndex),Se=Math.abs(be.lastRowIndex-O.current.lastRowIndex),Fe=Math.abs(be.firstColumnIndex-O.current.firstColumnIndex),Re=Math.abs(be.lastColumnIndex-O.current.lastColumnIndex),Ae=_e>=o.rowThreshold||Se>=o.rowThreshold||Fe>=o.columnThreshold||Re>=o.columnThreshold||L.current!==v;r.current.publishEvent("rowsScroll",{top:le,left:te,renderContext:Ae?be:O.current},de),Ae&&(xl.flushSync(()=>{z(be)}),L.current=v)},q=de=>{r.current.publishEvent("virtualScrollerWheel",{},de)},X=de=>{r.current.publishEvent("virtualScrollerTouchMove",{},de)},ie=(de={renderContext:$})=>{const{renderContext:le,minFirstColumn:te=f,maxLastColumn:be=p,availableSpace:_e=V,ignoreAutoHeight:Se,rowIndexOffset:Fe=0}=de;if(!le||_e==null)return null;const Re=a?0:o.rowBuffer,Ae=a?0:o.columnBuffer,[Oe,Ze]=ta({firstIndex:le.firstRowIndex,lastIndex:le.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:Re}),yt=[];if(de.rows)de.rows.forEach(Te=>{yt.push(Te),r.current.unstable_calculateColSpan({rowId:Te.id,minFirstColumn:te,maxLastColumn:be,columns:i})});else{if(!E.range)return null;for(let Te=Oe;Te<Ze;Te+=1){const ne=E.rows[Te];yt.push(ne),r.current.unstable_calculateColSpan({rowId:ne.id,minFirstColumn:te,maxLastColumn:be,columns:i})}}const[tt,et]=ta({firstIndex:le.firstColumnIndex,lastIndex:le.lastColumnIndex,minFirstIndex:te,maxLastIndex:be,buffer:Ae}),Pt=Db({firstColumnToRender:tt,apiRef:r,firstRowToRender:Oe,lastRowToRender:Ze,visibleRows:E.rows}),mt=i.slice(Pt,et),lt=[];for(let Te=0;Te<yt.length;Te+=1){var It,Xe;const{id:ne,model:ke}=yt[Te],Ee=Oe+Te===E.rows.length-1,$e=!r.current.unstable_rowHasAutoHeight(ne)||Se?r.current.unstable_getRowHeight(ne):"auto";let Ge;w[ne]==null?Ge=!1:Ge=r.current.isRowSelectable(ne),lt.push(R.jsx(o.components.Row,S({row:ke,rowId:ne,rowHeight:$e,cellFocus:g,cellTabIndex:x,editRowsState:P,renderedColumns:mt,visibleColumns:i,firstColumnToRender:Pt,lastColumnToRender:et,selected:Ge,index:Fe+((E==null||(It=E.range)==null?void 0:It.firstRowIndex)||0)+Oe+Te,containerWidth:_e,isLastVisible:Ee},typeof h=="function"?h(ne,ke):{},(Xe=o.componentsProps)==null?void 0:Xe.row),ne))}return lt},ee=V&&v>V,se=u.useMemo(()=>{const de=Math.max(C.currentPageTotalHeight,1);let le=!1;_!=null&&_.current&&de<=(_==null?void 0:_.current.clientHeight)&&(le=!0);const te={width:ee?v:"auto",height:de,minHeight:le?"100%":"auto"};return o.autoHeight&&E.rows.length===0&&(te.height=2*b),te},[_,v,C.currentPageTotalHeight,E.rows.length,ee,o.autoHeight,b]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,se]),o.autoHeight&&E.rows.length===0&&(se.height=2*b);const ae={};ee||(ae.overflowX="hidden"),o.autoHeight&&(ae.overflowY="hidden");const we=u.useCallback(()=>O.current,[]);return r.current.unstable_getRenderContext=we,{renderContext:$,updateRenderZonePosition:A,getRows:ie,getRootProps:(de={})=>{let{style:le={}}=de,te=oe(de,xpe);return S({ref:k,onScroll:G,onWheel:q,onTouchMove:X,style:S({},le,ae)},te)},getContentProps:({style:de={}}={})=>({style:S({},de,se)}),getRenderZoneProps:()=>({ref:I})}},Ppe=["className","disableVirtualization"],kpe=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=oe(t,Ppe),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:f}=Epe({ref:n,disableVirtualization:o});return R.jsx(ppe,S({className:r},s(i),{children:R.jsx(vpe,S({},a(),{children:R.jsx(Cpe,S({},c(),{children:f()}))}))}))}),Ipe=e=>{const{classes:t,headerAlign:n,isDragging:r,showRightBorder:o,showColumnBorder:i,groupId:s}=e;return Ie({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"withBorder",i&&"columnHeader--showColumnBorder",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},Dt,t)};function _pe(e){var t,n;const{groupId:r,width:o,depth:i,maxDepth:s,fields:a,height:c,colIndex:f,isLastColumn:p,extendRowFullWidth:h}=e,m=Ye(),v=vt(),b=Ue(v,wA),{hasScrollX:g,hasScrollY:x}=(t=v.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},C=r?b[r]:{},{headerName:P=r!=null?r:"",description:w="",headerAlign:E=void 0}=C;let I;const _=r&&((n=b[r])==null?void 0:n.renderHeaderGroup),k={groupId:r,headerName:P,description:w,depth:i,maxDepth:s,fields:a,colIndex:f,isLastColumn:p};r&&_&&(I=_(k));const T=p?!(p&&g&&!x)&&!h:m.showColumnRightBorder,O=m.showColumnRightBorder,N=S({},e,{classes:m.classes,showRightBorder:T,showColumnBorder:O,headerAlign:E,depth:i,isDragging:!1}),V=P!=null?P:r,j=Pn(),L=r===null?`empty-group-cell-${j}`:r,D=Ipe(N),B=typeof C.headerClassName=="function"?C.headerClassName(k):C.headerClassName;return R.jsx(oA,{classes:D,columnMenuOpen:!1,colIndex:f,height:c,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:I,headerClassName:B,description:w,elementId:L,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:V,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,disableHeaderSeparator:!0})}const p$=re("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function $pe(e){return!!e.target}const Mpe=e=>{const{innerRef:t,minColumnIndex:n=0}=e,[r,o]=u.useState(""),[i,s]=u.useState(""),a=vt(),c=Ue(a,pr),f=Ue(a,_a),p=Ue(a,KL),h=Ue(a,Ym),m=Ue(a,rle),v=Ue(a,VL),b=Ue(a,Tx),g=Ue(a,cp),x=Ue(a,Kse),C=Ue(a,zse),P=Ue(a,bA),w=Ye(),E=u.useRef(null),I=St(t,E),[_,k]=u.useState(null),$=u.useRef(_),T=u.useRef(0),O=Ha(a,w);u.useEffect(()=>{a.current.columnHeadersContainerElementRef.current.scrollLeft=0},[a]);const N=u.useRef(NL(Xce,{equalityCheck:(ie,ee)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(se=>ie[se]===ee[se])})),V=u.useCallback(ie=>{const[ee,se]=ta({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:O.rows.length,buffer:w.rowBuffer}),ae=N.current({firstColumnIndex:ie.firstColumnIndex,minColumnIndex:n,columnBuffer:w.columnBuffer,firstRowToRender:ee,lastRowToRender:se,apiRef:a,visibleRows:O.rows}),we=ae>0?T.current-f[ae]:T.current;E.current.style.transform=`translate3d(${-we}px, 0px, 0px)`},[f,n,w.columnBuffer,a,O.rows,w.rowBuffer]);u.useLayoutEffect(()=>{_&&V(_)},[_,V]);const j=u.useCallback(({left:ie,renderContext:ee=null},se)=>{var ae,we;if(!E.current||T.current===ie&&((ae=$.current)==null?void 0:ae.firstColumnIndex)===(ee==null?void 0:ee.firstColumnIndex)&&((we=$.current)==null?void 0:we.lastColumnIndex)===(ee==null?void 0:ee.lastColumnIndex))return;T.current=ie;let de=!1;ee!==$.current||!$.current?($pe(se)?(xl.flushSync(()=>{k(ee)}),de=!0):k(ee),$.current=ee):de=!0,ee&&de&&V(ee)},[V]),L=u.useCallback(ie=>s(ie.field),[]),D=u.useCallback(()=>s(""),[]),B=u.useCallback(ie=>o(ie.field),[]),W=u.useCallback(()=>o(""),[]);Ne(a,"columnResizeStart",L),Ne(a,"columnResizeStop",D),Ne(a,"columnHeaderDragStart",B),Ne(a,"columnHeaderDragEnd",W),Ne(a,"rowsScroll",j);const A=ie=>{const{renderContext:ee=_,minFirstColumn:se=n,maxLastColumn:ae=c.length}=ie||{};if(!ee)return null;const[we,de]=ta({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:O.rows.length,buffer:w.rowBuffer}),le=N.current({firstColumnIndex:ee.firstColumnIndex,minColumnIndex:se,columnBuffer:w.columnBuffer,apiRef:a,firstRowToRender:we,lastRowToRender:de,visibleRows:O.rows}),te=Math.min(ee.lastColumnIndex+w.columnBuffer,ae);return{renderedColumns:c.slice(le,te),firstColumnToRender:le,lastColumnToRender:te,minFirstColumn:se,maxLastColumn:ae}},z=(ie,ee={})=>{const se=A(ie);if(se==null)return null;const{renderedColumns:ae,firstColumnToRender:we}=se,de=[];for(let le=0;le<ae.length;le+=1){const te=ae[le],be=we+le,_e=be===0,Se=!(p===null&&h===null),Fe=p!==null&&p.field===te.field||_e&&!Se?0:-1,Re=m!==null&&m.field===te.field,Ae=P.open&&P.field===te.field;de.push(R.jsx(Gae,S({},C[te.field],{columnMenuOpen:Ae,filterItemsCounter:x[te.field]&&x[te.field].length,headerHeight:v,isDragging:te.field===r,column:te,colIndex:be,isResizing:i===te.field,isLastColumn:be===c.length-1,extendRowFullWidth:!w.disableExtendRowFullWidth,hasFocus:Re,tabIndex:Fe},ee),te.field))}return R.jsx(p$,{role:"row","aria-rowindex":b+1,children:de})},G=(ie=[],ee)=>ie.slice(0,ee+1),q=ie=>{if(b===0)return null;const ee=A(ie);if(ee==null)return null;const{renderedColumns:se,firstColumnToRender:ae,lastColumnToRender:we,maxLastColumn:de}=ee,le=[],te=[];for(let mt=0;mt<b;mt+=1){var be,_e,Se;const lt=[];let It=0,Xe=ae-1;const Te=(be=c[ae])==null||(_e=be.groupPath)==null?void 0:_e[mt],ne=G((Se=c[ae])==null?void 0:Se.groupPath,mt);for(;Te!==null&&Xe>=n&&(Fe=c[Xe])!=null&&Fe.groupPath&&Cs(G((Re=c[Xe])==null?void 0:Re.groupPath,mt),ne);){var Fe,Re,Ae;const $e=c[Xe];if(It+=(Ae=$e.computedWidth)!=null?Ae:0,lt.length===0){var Oe;lt.push({width:(Oe=$e.computedWidth)!=null?Oe:0,fields:[$e.field],groupId:Te,groupParents:ne,colIndex:Xe})}else{var Ze;lt[0].width+=(Ze=$e.computedWidth)!=null?Ze:0,lt[0].fields.push($e.field),lt[0].colIndex=Xe}Xe-=1}const ke=se.reduce(($e,Ge,Ct)=>{var jt;const Ht=$e[$e.length-1];if(Ge.groupPath&&Ge.groupPath.length>mt){var Jn;if(Ht&&Ht.groupId===Ge.groupPath[mt]){var hn;return[...$e.slice(0,$e.length-1),S({},Ht,{width:Ht.width+((hn=Ge.computedWidth)!=null?hn:0),fields:[...Ht.fields,Ge.field]})]}return[...$e,{groupId:Ge.groupPath[mt],groupParents:G(Ge.groupPath,mt),width:(Jn=Ge.computedWidth)!=null?Jn:0,fields:[Ge.field],colIndex:ae+Ct}]}if(Ht&&Ht.groupId===null&&Cs(G(Ge.groupPath,mt),Ht.groupParents)){var Kn;return[...$e.slice(0,$e.length-1),S({},Ht,{width:Ht.width+((Kn=Ge.computedWidth)!=null?Kn:0),fields:[...Ht.fields,Ge.field]})]}return[...$e,{groupId:null,groupParents:G(Ge.groupPath,mt),width:(jt=Ge.computedWidth)!=null?jt:0,fields:[Ge.field],colIndex:ae+Ct}]},lt);Xe=we;const Ee=ke[ke.length-1].groupId;for(;Ee!==null&&Xe<de&&(yt=c[Xe])!=null&&yt.groupPath&&((tt=c[Xe])==null||(et=tt.groupPath)==null?void 0:et[mt])===Ee;){var yt,tt,et,Pt;const $e=c[Xe];ke[ke.length-1].width+=(Pt=$e.computedWidth)!=null?Pt:0,ke[ke.length-1].fields.push($e.field),Xe+=1}te.push({leftOverflow:It,elements:[...ke]})}return te.forEach((mt,lt)=>{le.push(R.jsx(p$,{style:{height:`${v}px`,transform:`translateX(-${mt.leftOverflow}px)`},role:"row","aria-rowindex":lt+1,children:mt.elements.map(({groupId:It,width:Xe,fields:Te,colIndex:ne},ke)=>R.jsx(_pe,{groupId:It,width:Xe,fields:Te,colIndex:ne,depth:lt,isLastColumn:ne===c.length-Te.length,extendRowFullWidth:!w.disableExtendRowFullWidth,maxDepth:te.length,height:v},ke))},lt))}),le},X={minHeight:g,maxHeight:g,lineHeight:`${v}px`};return{renderContext:_,getColumnHeaders:z,getColumnGroupHeaders:q,isDragging:!!r,getRootProps:(ie={})=>S({style:X},ie),getInnerProps:()=>({ref:I,role:"rowgroup"})}},Tpe=["className"],Rpe=e=>{const{classes:t}=e;return Ie({root:["columnHeaders"]},Dt,t)},Ope=re("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})(({theme:e})=>({position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",borderBottom:`1px solid ${e.palette.mode==="light"?_s(rt(e.palette.divider,1),.88):Is(rt(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius})),Lpe=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Tpe),s={classes:Ye().classes},a=Rpe(s);return R.jsx(Ope,S({ref:n,className:he(r,a.root)},o))}),Ape=["isDragging","className"],Fpe=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Ie({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Dt,r)},Npe=re("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${Z.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${Z.columnHeaderDropZone} .${Z.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${Z["columnHeadersInner--scrollable"]} .${Z.columnHeader}:last-child`]:{borderRight:"none"}})),Dpe=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=oe(t,Ape),c=vt(),f=Ye(),p={isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1,classes:f.classes},h=Fpe(p);return R.jsx(Npe,S({ref:n,className:he(s,h.root)},a))}),Bpe=["innerRef","className"],zpe=u.forwardRef(function(t,n){const{innerRef:r}=t,o=oe(t,Bpe),{isDragging:i,getRootProps:s,getInnerProps:a,getColumnHeaders:c,getColumnGroupHeaders:f}=Mpe({innerRef:r});return R.jsxs(Lpe,S({ref:n},s(o),{children:[R.jsx(t$,{scrollDirection:"left"}),R.jsxs(Dpe,S({isDragging:i},a(),{children:[f(),c()]})),R.jsx(t$,{scrollDirection:"right"})]}))}),OA=u.forwardRef(function(t,n){const r=cpe(t),o=ipe(r);return R.jsx(vde,{apiRef:o,props:r,children:R.jsx(pae,{className:r.className,style:r.style,sx:r.sx,ref:n,children:R.jsxs(ele,{children:[R.jsx(nle,{}),R.jsx(Jse,{ColumnHeadersComponent:zpe,VirtualScrollerComponent:kpe}),R.jsx(tle,{})]})})})}),Lu=u.memo(OA);OA.propTypes={"aria-label":ue.string,"aria-labelledby":ue.string,autoHeight:ue.bool,autoPageSize:ue.bool,cellModesModel:ue.object,checkboxSelection:ue.bool,classes:ue.object,columnBuffer:ue.number,columnGroupingModel:ue.arrayOf(ue.object),columns:P0(ue.array.isRequired),columnThreshold:ue.number,columnTypes:ue.object,columnVisibilityModel:ue.object,components:ue.object,componentsProps:ue.object,density:ue.oneOf(["comfortable","compact","standard"]),disableColumnFilter:ue.bool,disableColumnMenu:ue.bool,disableColumnSelector:ue.bool,disableDensitySelector:ue.bool,disableExtendRowFullWidth:ue.bool,disableIgnoreModificationsIfProcessingProps:ue.bool,disableSelectionOnClick:ue.bool,disableVirtualization:ue.bool,editMode:ue.oneOf(["cell","row"]),editRowsModel:ue.object,error:ue.any,experimentalFeatures:ue.shape({columnGrouping:ue.bool,newEditingApi:ue.bool,preventCommitWhileValidating:ue.bool,warnIfFocusStateIsNotSynced:ue.bool}),filterMode:ue.oneOf(["client","server"]),filterModel:ue.shape({items:ue.arrayOf(ue.shape({columnField:ue.string.isRequired,id:ue.oneOfType([ue.number,ue.string]),operatorValue:ue.string,value:ue.any})).isRequired,linkOperator:ue.oneOf(["and","or"]),quickFilterLogicOperator:ue.oneOf(["and","or"]),quickFilterValues:ue.array}),getCellClassName:ue.func,getDetailPanelContent:ue.func,getEstimatedRowHeight:ue.func,getRowClassName:ue.func,getRowHeight:ue.func,getRowId:ue.func,getRowSpacing:ue.func,headerHeight:ue.number,hideFooter:ue.bool,hideFooterPagination:ue.bool,hideFooterSelectedRowCount:ue.bool,initialState:ue.object,isCellEditable:ue.func,isRowSelectable:ue.func,keepNonExistentRowsSelected:ue.bool,loading:ue.bool,localeText:ue.object,logger:ue.shape({debug:ue.func.isRequired,error:ue.func.isRequired,info:ue.func.isRequired,warn:ue.func.isRequired}),logLevel:ue.oneOf(["debug","error","info","warn",!1]),nonce:ue.string,onCellClick:ue.func,onCellDoubleClick:ue.func,onCellEditCommit:ue.func,onCellEditStart:ue.func,onCellEditStop:ue.func,onCellFocusOut:ue.func,onCellKeyDown:ue.func,onCellModesModelChange:ue.func,onColumnHeaderClick:ue.func,onColumnHeaderDoubleClick:ue.func,onColumnHeaderEnter:ue.func,onColumnHeaderLeave:ue.func,onColumnHeaderOut:ue.func,onColumnHeaderOver:ue.func,onColumnOrderChange:ue.func,onColumnVisibilityChange:ue.func,onColumnVisibilityModelChange:ue.func,onEditCellPropsChange:ue.func,onEditRowsModelChange:ue.func,onError:ue.func,onFilterModelChange:ue.func,onMenuClose:ue.func,onMenuOpen:ue.func,onPageChange:ue.func,onPageSizeChange:ue.func,onPreferencePanelClose:ue.func,onPreferencePanelOpen:ue.func,onProcessRowUpdateError:ue.func,onResize:ue.func,onRowClick:ue.func,onRowDoubleClick:ue.func,onRowEditCommit:ue.func,onRowEditStart:ue.func,onRowEditStop:ue.func,onRowModesModelChange:ue.func,onSelectionModelChange:ue.func,onSortModelChange:ue.func,onStateChange:ue.func,page:ue.number,pageSize:P0(ue.number),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
|
|
279
|
+
`)):null,paginationMode:ue.oneOf(["client","server"]),processRowUpdate:ue.func,rowBuffer:ue.number,rowCount:ue.number,rowHeight:ue.number,rowModesModel:ue.object,rows:ue.array.isRequired,rowSpacingType:ue.oneOf(["border","margin"]),rowsPerPageOptions:ue.arrayOf(ue.number),rowThreshold:ue.number,scrollbarSize:ue.number,selectionModel:P0(ue.oneOfType([ue.number,ue.string,ue.array])),showCellRightBorder:ue.bool,showColumnRightBorder:ue.bool,sortingMode:ue.oneOf(["client","server"]),sortingOrder:ue.arrayOf(ue.oneOf(["asc","desc"])),sortModel:ue.arrayOf(ue.shape({field:ue.string.isRequired,sort:ue.oneOf(["asc","desc"])})),sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object])};function jpe(){return u.createElement(u.Fragment,{},u.createElement(Vpe),u.createElement(Upe))}const Hpe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Vpe(){const{data:e,element:t}=Ki("get_status"),{data:n}=tse("get_connection_stats");e&&n&&Object.assign(e,n);const r=vu("md"),o=vu("sm");return t||u.createElement(it,{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:$u,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:LA}));function i(a,{label:c,minWidth:f,render:p}={}){let h=Qt.get(e,a);if(h===void 0)return null;typeof h=="string"&&Hpe.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=Qt.capitalize(a.replaceAll("_"," "))),u.createElement(ev,{variant:"filled",color:m,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:f}},h))})}function s(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function Upe(){const{list:e,error:t,props:n}=Ba("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(f=>!r||f.path).map((f,p)=>Le({id:p},f)),[!i&&e,r]),c=u.useMemo(()=>[{field:"ip",headerName:"Address",flex:1,maxWidth:400,valueGetter:({row:f,value:p})=>(f.v===6?`[${p}]`:p)+" :"+f.port},{field:"user",headerName:"User"},{field:"started",headerName:"Started",type:"dateTime",width:130,valueFormatter:({value:f})=>new Date(f).toLocaleTimeString()},{field:"path",headerName:"File",flex:1,renderCell({value:f,row:p}){if(!f)return;if(p.archive)return u.createElement(u.Fragment,{},u.createElement(OL,{sx:{mr:1}}),p.archive,u.createElement(it,{ml:2,color:"text.secondary"},f));const h=f==null?void 0:f.lastIndexOf("/");return u.createElement(u.Fragment,{},f.slice(h+1),h>0&&u.createElement(it,{ml:2,color:"text.secondary"},f.slice(0,h)))}},{field:"v",headerName:"Protocol",align:"center",hide:!0,renderCell:({value:f,row:p})=>u.createElement(u.Fragment,{},"IPv"+f,p.secure&&lo(Ex,"HTTPS",{opacity:.5}))},{field:"outSpeed",headerName:"Speed",type:"number",valueFormatter:({value:f})=>LA(f)},{field:"sent",headerName:"Total",type:"number",valueFormatter:({value:f})=>$u(f)},{field:"Actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:f}){return u.createElement("div",{},u.createElement(Fn,{icon:Ci,title:"Disconnect",onClick:()=>Ot("disconnect",Qt.pick(f,["ip","port"]))}),u.createElement(Fn,{icon:RL,title:"Block IP",disabled:f.ip===(n==null?void 0:n.you),onClick:()=>Wpe(f.ip)}))}}],[n]);return u.createElement(u.Fragment,{},u.createElement(it,{display:"flex",alignItems:"center"},u.createElement(Mu,{fullWidth:!1,value:r,onChange:o,options:{"Show only downloads":!0,"Show all connections":!1}}),u.createElement(it,{flex:1}),u.createElement(Fn,{title:i?"Resume":"Pause",icon:i?wv:TL,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(Yo,{severity:"error"},t):u.createElement(Lu,{rows:a,columns:c,localeText:r?{noRowsLabel:"No downloads at the moment"}:void 0}))}function Wpe(e){return $ie("block",t=>[...t,{ip:e}])}function LA(e){return e?$u(e*1e3,{post:"B/s",k:1e3,digits:1}):""}var Hx={},Gpe=st;Object.defineProperty(Hx,"__esModule",{value:!0});var AA=Hx.default=void 0,Kpe=Gpe(dt()),qpe=at(),Ype=(0,Kpe.default)((0,qpe.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");AA=Hx.default=Ype;var Vx={},Xpe=st;Object.defineProperty(Vx,"__esModule",{value:!0});var FA=Vx.default=void 0,Qpe=Xpe(dt()),Jpe=at(),Zpe=(0,Qpe.default)((0,Jpe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");FA=Vx.default=Zpe;var Ux={},ehe=st;Object.defineProperty(Ux,"__esModule",{value:!0});var NA=Ux.default=void 0,the=ehe(dt()),nhe=at(),rhe=(0,the.default)((0,nhe.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");NA=Ux.default=rhe;var Wx={},ohe=st;Object.defineProperty(Wx,"__esModule",{value:!0});var DA=Wx.default=void 0,ihe=ohe(dt()),she=at(),lhe=(0,ihe.default)((0,she.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");DA=Wx.default=lhe;var Gx={},ahe=st;Object.defineProperty(Gx,"__esModule",{value:!0});var BA=Gx.default=void 0,che=ahe(dt()),uhe=at(),dhe=(0,che.default)((0,uhe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");BA=Gx.default=dhe;var Kx={},fhe=st;Object.defineProperty(Kx,"__esModule",{value:!0});var zA=Kx.default=void 0,phe=fhe(dt()),h$=at(),hhe=(0,phe.default)([(0,h$.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,h$.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");zA=Kx.default=hhe;var qx={},mhe=st;Object.defineProperty(qx,"__esModule",{value:!0});var jA=qx.default=void 0,ghe=mhe(dt()),vhe=at(),yhe=(0,ghe.default)((0,vhe.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");jA=qx.default=yhe;var Yx={},bhe=st;Object.defineProperty(Yx,"__esModule",{value:!0});var HA=Yx.default=void 0,whe=bhe(dt()),Che=at(),xhe=(0,whe.default)((0,Che.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");HA=Yx.default=xhe;var Xx={},She=st;Object.defineProperty(Xx,"__esModule",{value:!0});var VA=Xx.default=void 0,Ehe=She(dt()),Phe=at(),khe=(0,Ehe.default)((0,Phe.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");VA=Xx.default=khe;var Qx={},Ihe=st;Object.defineProperty(Qx,"__esModule",{value:!0});var UA=Qx.default=void 0,_he=Ihe(dt()),$he=at(),Mhe=(0,_he.default)((0,$he.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");UA=Qx.default=Mhe;var Jx={},The=st;Object.defineProperty(Jx,"__esModule",{value:!0});var WA=Jx.default=void 0,Rhe=The(dt()),Ohe=at(),Lhe=(0,Rhe.default)((0,Ohe.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");WA=Jx.default=Lhe;var Zx={},Ahe=st;Object.defineProperty(Zx,"__esModule",{value:!0});var eS=Zx.default=void 0,Fhe=Ahe(dt()),Nhe=at(),Dhe=(0,Fhe.default)((0,Nhe.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");eS=Zx.default=Dhe;var tS={},Bhe=st;Object.defineProperty(tS,"__esModule",{value:!0});var GA=tS.default=void 0,zhe=Bhe(dt()),jhe=at(),Hhe=(0,zhe.default)((0,jhe.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");GA=tS.default=Hhe;var nS={},Vhe=st;Object.defineProperty(nS,"__esModule",{value:!0});var KA=nS.default=void 0,Uhe=Vhe(dt()),Whe=at(),Ghe=(0,Uhe.default)((0,Whe.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");KA=nS.default=Ghe;function Khe(){const e=wi({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=qA();return u.createElement(u.Fragment,{},u.createElement(it,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under "+(t||"(home)")),u.createElement(VF,{onSelect(r){return ot(this,null,function*(){const o=Ea(yield Promise.all(r.map(i=>Ot("add_vfs",{under:t,source:i}).then(()=>null,s=>[i,s.message]))));o.length&&(yield dr(u.createElement(it,{},"Some elements have been rejected",u.createElement("ul",{},o.map(([i,s])=>u.createElement("li",{key:i},i,": ",s)))),"error")),Ra(),e()})}}))}})}function qhe(){return ot(this,null,function*(){try{const e=yield Iie("Enter folder name");if(!e)return;const t=qA();yield Ot("add_vfs",{under:t,name:e}),Ra([(t||"")+"/"+e]),yield dr(`Folder "${e}" created`,"success")}catch(e){yield dr(e)}})}function qA(){let e=En.selectedFiles[0];if(!e)return"";e.type!=="folder"&&(e=e.parent);const{id:t}=e;return t==="/"?"":t}function YA(n){var r=n,{items:e}=r,t=cn(r,["items"]);const[o,i]=fo.useState(),s=Boolean(o),a=u.useCallback(()=>i(void 0),[]);return u.createElement(fo.Fragment,{},u.createElement(cr,Le({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(FO,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,f)=>u.createElement(ur,Ut(Le({key:f},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function Yhe(){return u.createElement(it,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(YA,{variant:"contained",startIcon:u.createElement(bv),items:[{children:"from disk",onClick:Khe},{children:"virtual folder",onClick:qhe}]},"Add"),u.createElement(Fn,{icon:op,title:"Reload",onClick(){Ra()}}))}function rl(e){typeof e!="string"&&(e=e[0]);const t=/([`*/_])(.+)\1|(\n)/g,n=[];let r=0,o;for(;o=t.exec(e);){if(n.push(e.slice(r,o.index)),o[3])n.push(u.createElement("br"));else{const i={"`":"code","*":"b","/":"i",_:"u"}[o[1]];if(!i)throw Error("should never happen");n.push(u.createElement(i,{},o[2]))}r=o.index+o[0].length}return u.createElement(u.Fragment,{},...n,e.slice(r,1/0))}const rS=Symbol.for("yaml.alias"),Hb=Symbol.for("yaml.document"),wl=Symbol.for("yaml.map"),XA=Symbol.for("yaml.pair"),Ms=Symbol.for("yaml.scalar"),Au=Symbol.for("yaml.seq"),Xo=Symbol.for("yaml.node.type"),Va=e=>!!e&&typeof e=="object"&&e[Xo]===rS,hp=e=>!!e&&typeof e=="object"&&e[Xo]===Hb,Ua=e=>!!e&&typeof e=="object"&&e[Xo]===wl,kn=e=>!!e&&typeof e=="object"&&e[Xo]===XA,pn=e=>!!e&&typeof e=="object"&&e[Xo]===Ms,Fu=e=>!!e&&typeof e=="object"&&e[Xo]===Au;function $n(e){if(e&&typeof e=="object")switch(e[Xo]){case wl:case Au:return!0}return!1}function Hn(e){if(e&&typeof e=="object")switch(e[Xo]){case rS:case wl:case Ms:case Au:return!0}return!1}const Xhe=e=>(pn(e)||$n(e))&&!!e.anchor;class oS{constructor(t){Object.defineProperty(this,Xo,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}}const Ur=Symbol("break visit"),QA=Symbol("skip children"),qi=Symbol("remove node");function Tl(e,t){const n=JA(t);hp(e)?Fc(null,e.contents,n,Object.freeze([e]))===qi&&(e.contents=null):Fc(null,e,n,Object.freeze([]))}Tl.BREAK=Ur;Tl.SKIP=QA;Tl.REMOVE=qi;function Fc(e,t,n,r){const o=ZA(e,t,n,r);if(Hn(o)||kn(o))return eF(e,r,o),Fc(e,o,n,r);if(typeof o!="symbol"){if($n(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=Fc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Ur)return Ur;s===qi&&(t.items.splice(i,1),i-=1)}}}else if(kn(t)){r=Object.freeze(r.concat(t));const i=Fc("key",t.key,n,r);if(i===Ur)return Ur;i===qi&&(t.key=null);const s=Fc("value",t.value,n,r);if(s===Ur)return Ur;s===qi&&(t.value=null)}}return o}function Iv(e,t){return ot(this,null,function*(){const n=JA(t);hp(e)?(yield Nc(null,e.contents,n,Object.freeze([e])))===qi&&(e.contents=null):yield Nc(null,e,n,Object.freeze([]))})}Iv.BREAK=Ur;Iv.SKIP=QA;Iv.REMOVE=qi;function Nc(e,t,n,r){return ot(this,null,function*(){const o=yield ZA(e,t,n,r);if(Hn(o)||kn(o))return eF(e,r,o),Nc(e,o,n,r);if(typeof o!="symbol"){if($n(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield Nc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Ur)return Ur;s===qi&&(t.items.splice(i,1),i-=1)}}}else if(kn(t)){r=Object.freeze(r.concat(t));const i=yield Nc("key",t.key,n,r);if(i===Ur)return Ur;i===qi&&(t.key=null);const s=yield Nc("value",t.value,n,r);if(s===Ur)return Ur;s===qi&&(t.value=null)}}return o})}function JA(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 ZA(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(Ua(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(Fu(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(kn(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(pn(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(Va(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function eF(e,t,n){const r=t[t.length-1];if($n(r))r.items[e]=n;else if(kn(r))e==="key"?r.key=n:r.value=n;else if(hp(r))r.contents=n;else{const o=Va(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Qhe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Jhe=e=>e.replace(/[!,[\]{}]/g,t=>Qhe[t]);class Mr{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Mr.defaultYaml,t),this.tags=Object.assign({},Mr.defaultTags,n)}clone(){const t=new Mr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Mr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Mr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Mr.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Mr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Mr.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+Jhe(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&&Hn(t.contents)){const i={};Tl(t.contents,(s,a)=>{Hn(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(`
|
|
280
|
+
`)}}Mr.defaultYaml={explicit:!1,version:"1.2"};Mr.defaultTags={"!!":"tag:yaml.org,2002:"};function tF(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 nF(e){const t=new Set;return Tl(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function rF(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Zhe(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=nF(e));const s=rF(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(pn(s.node)||$n(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:r}}class _v extends oS{constructor(t){super(rS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Tl(t,{Node:(r,o)=>{if(o===this)return Tl.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:i}=n,s=this.resolve(o);if(!s){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}const a=r.get(s);if(!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=sm(o,s,r)),a.count*a.aliasCount>i)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(tF(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function sm(e,t,n){if(Va(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if($n(t)){let r=0;for(const o of t.items){const i=sm(e,o,n);i>r&&(r=i)}return r}else if(kn(t)){const r=sm(e,t.key,n),o=sm(e,t.value,n);return Math.max(r,o)}return 1}function Yi(e,t,n){if(Array.isArray(e))return e.map((r,o)=>Yi(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Xhe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}const oF=e=>!e||typeof e!="function"&&typeof e!="object";class Et extends oS{constructor(t){super(Ms),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Yi(this.value,t,n)}toString(){return String(this.value)}}Et.BLOCK_FOLDED="BLOCK_FOLDED";Et.BLOCK_LITERAL="BLOCK_LITERAL";Et.PLAIN="PLAIN";Et.QUOTE_DOUBLE="QUOTE_DOUBLE";Et.QUOTE_SINGLE="QUOTE_SINGLE";const eme="tag:yaml.org,2002:";function tme(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 Bf(e,t,n){var h,m;if(hp(e)&&(e=e.contents),Hn(e))return e;if(kn(e)){const v=(m=(h=n.schema[wl]).createNode)==null?void 0:m.call(h,n.schema,null,n);return v.items.push(e),v}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt=="function"&&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 _v(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=eme+t.slice(2));let f=tme(e,t,s.tags);if(!f){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new Et(e);return c&&(c.node=v),v}f=e instanceof Map?s[wl]:Symbol.iterator in Object(e)?s[Au]:s[wl]}i&&(i(f),delete n.onTagObj);const p=f!=null&&f.createNode?f.createNode(n.schema,e,n):new Et(e);return t&&(p.tag=t),c&&(c.node=p),p}function eg(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 Bf(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 Td=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class $v extends oS{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=>Hn(r)||kn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Td(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if($n(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,eg(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($n(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&&pn(i)?i.value:i:$n(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!kn(n))return!1;const r=n.value;return r==null||t&&pn(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 $n(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($n(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,eg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}$v.maxFlowStringSingleLineLength=60;const nme=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ys(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const cl=(e,t,n)=>e.endsWith(`
|
|
281
|
+
`)?ys(n,t):n.includes(`
|
|
282
|
+
`)?`
|
|
283
|
+
`+ys(n,t):(e.endsWith(" ")?"":" ")+n,iF="flow",Vb="block",lm="quoted";function Mv(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 f=[],p={};let h=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?f.push(0):h=o-r);let m,v,b=!1,g=-1,x=-1,C=-1;n===Vb&&(g=m$(e,g),g!==-1&&(h=g+c));for(let w;w=e[g+=1];){if(n===lm&&w==="\\"){switch(x=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(w===`
|
|
284
|
+
`)n===Vb&&(g=m$(e,g)),h=g+c,m=void 0;else{if(w===" "&&v&&v!==" "&&v!==`
|
|
285
|
+
`&&v!==" "){const E=e[g+1];E&&E!==" "&&E!==`
|
|
286
|
+
`&&E!==" "&&(m=g)}if(g>=h)if(m)f.push(m),h=m+c,m=void 0;else if(n===lm){for(;v===" "||v===" ";)v=w,w=e[g+=1],b=!0;const E=g>C+1?g-2:x-1;if(p[E])return e;f.push(E),p[E]=!0,h=E+c,m=void 0}else b=!0}v=w}if(b&&a&&a(),f.length===0)return e;s&&s();let P=e.slice(0,f[0]);for(let w=0;w<f.length;++w){const E=f[w],I=f[w+1]||e.length;E===0?P=`
|
|
287
|
+
${t}${e.slice(0,I)}`:(n===lm&&p[E]&&(P+=`${e[E]}\\`),P+=`
|
|
288
|
+
${t}${e.slice(E+1,I)}`)}return P}function m$(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
|
|
289
|
+
`);n=e[t+1]}return t}const Tv=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Rv=e=>/^(%|---|\.\.\.)/m.test(e);function rme(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]===`
|
|
290
|
+
`){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function Jd(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Rv(e)?" ":"");let s="",a=0;for(let c=0,f=n[c];f;f=n[++c])if(f===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(s+=n.slice(a,c)+"\\ ",c+=1,a=c,f="\\"),f==="\\")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)+`
|
|
291
|
+
|
|
292
|
+
`;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
|
|
293
|
+
`,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:Mv(s,i,lm,Tv(t))}function Ub(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
294
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return Jd(e,t);const n=t.indent||(Rv(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
295
|
+
${n}`)+"'";return t.implicitKey?r:Mv(r,n,iF,Tv(t))}function Zd(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Jd;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=Ub:i&&!o?r=Jd:r=n?Ub:Jd}return r(e,t)}function am({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 Zd(n,r);const f=r.indent||(r.forceBlockIndent||Rv(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===Et.BLOCK_FOLDED?!1:t===Et.BLOCK_LITERAL?!0:!rme(n,c,f.length);if(!n)return p?`|
|
|
296
|
+
`:`>
|
|
297
|
+
`;let h,m;for(m=n.length;m>0;--m){const _=n[m-1];if(_!==`
|
|
298
|
+
`&&_!==" "&&_!==" ")break}let v=n.substring(m);const b=v.indexOf(`
|
|
299
|
+
`);b===-1?h="-":n===v||b!==v.length-1?(h="+",i&&i()):h="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
|
|
300
|
+
`&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${f}`));let g=!1,x,C=-1;for(x=0;x<n.length;++x){const _=n[x];if(_===" ")g=!0;else if(_===`
|
|
301
|
+
`)C=x;else break}let P=n.substring(0,C<x?C+1:x);P&&(n=n.substring(P.length),P=P.replace(/\n+/g,`$&${f}`));let E=(p?"|":">")+(g?f?"2":"1":"")+h;if(e&&(E+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${f}`),`${E}
|
|
302
|
+
${f}${P}${n}${v}`;n=n.replace(/\n+/g,`
|
|
303
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`);const I=Mv(`${P}${n}${v}`,f,Vb,Tv(r));return`${E}
|
|
304
|
+
${f}${I}`}function ome(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:c,inFlow:f}=t;if(a&&/[\n[\]{},]/.test(i)||f&&/[[\]{},]/.test(i))return Zd(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||f||!i.includes(`
|
|
305
|
+
`)?Zd(i,t):am(e,t,n,r);if(!a&&!f&&o!==Et.PLAIN&&i.includes(`
|
|
306
|
+
`))return am(e,t,n,r);if(c===""&&Rv(i))return t.forceBlockIndent=!0,am(e,t,n,r);const p=i.replace(/\n+/g,`$&
|
|
307
|
+
${c}`);if(s){const h=b=>{var g;return b.default&&b.tag!=="tag:yaml.org,2002:str"&&((g=b.test)==null?void 0:g.test(p))},{compat:m,tags:v}=t.doc.schema;if(v.some(h)||m!=null&&m.some(h))return Zd(i,t)}return a?p:Mv(p,c,iF,Tv(t))}function mp(e,t,n,r){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Et.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Et.QUOTE_DOUBLE);const c=p=>{switch(p){case Et.BLOCK_FOLDED:case Et.BLOCK_LITERAL:return o||i?Zd(s.value,t):am(s,t,n,r);case Et.QUOTE_DOUBLE:return Jd(s.value,t);case Et.QUOTE_SINGLE:return Ub(s.value,t);case Et.PLAIN:return ome(s,t,n,r);default:return null}};let f=c(a);if(f===null){const{defaultKeyType:p,defaultStringType:h}=t.options,m=o&&p||h;if(f=c(m),f===null)throw new Error(`Unsupported default string type ${m}`)}return f}function sF(e,t){const n=Object.assign({blockQuote:!0,commentString:nme,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",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,indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function ime(e,t){var o,i,s,a;if(t.tag){const c=e.filter(f=>f.tag===t.tag);if(c.length>0)return(o=c.find(f=>f.format===t.format))!=null?o:c[0]}let n,r;if(pn(t)){r=t.value;const c=e.filter(f=>{var p;return(p=f.identify)==null?void 0:p.call(f,r)});n=(i=c.find(f=>f.format===t.format))!=null?i:c.find(f=>!f.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 sme(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(pn(e)||$n(e))&&e.anchor;i&&tF(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 Ma(e,t,n,r){var c,f;if(kn(e))return e.toString(t,n,r);if(Va(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=Hn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=ime(t.doc.schema.tags,i));const s=sme(i,o,t);s.length>0&&(t.indentAtStart=((f=t.indentAtStart)!=null?f:0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,n,r):pn(i)?mp(i,t,n,r):i.toString(t,n,r);return s?pn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
|
|
308
|
+
${t.indent}${a}`:a}function lme({key:e,value:t},n,r,o){const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:f,indentSeq:p,simpleKeys:h}}=n;let m=Hn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if($n(e)){const _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let v=!h&&(!e||m&&t==null&&!n.inFlow||$n(e)||(pn(e)?e.type===Et.BLOCK_FOLDED||e.type===Et.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(h||!i),indent:a+c});let b=!1,g=!1,x=Ma(e,n,()=>b=!0,()=>g=!0);if(!v&&!n.inFlow&&x.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(i||t==null)return b&&r&&r(),x===""?"?":v?`? ${x}`:x}else if(i&&!h||t==null&&v)return x=`? ${x}`,m&&!b?x+=cl(x,n.indent,f(m)):g&&o&&o(),x;b&&(m=null),v?(m&&(x+=cl(x,n.indent,f(m))),x=`? ${x}
|
|
309
|
+
${a}:`):(x=`${x}:`,m&&(x+=cl(x,n.indent,f(m))));let C="",P=null;if(Hn(t)){if(t.spaceBefore&&(C=`
|
|
310
|
+
`),t.commentBefore){const _=f(t.commentBefore);C+=`
|
|
311
|
+
${ys(_,n.indent)}`}P=t.comment}else t&&typeof t=="object"&&(t=s.createNode(t));n.implicitKey=!1,!v&&!m&&pn(t)&&(n.indentAtStart=x.length+1),g=!1,!p&&c.length>=2&&!n.inFlow&&!v&&Fu(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substr(2));let w=!1;const E=Ma(t,n,()=>w=!0,()=>g=!0);let I=" ";return C||m?E===""&&!n.inFlow?I=C===`
|
|
312
|
+
`?`
|
|
313
|
+
|
|
314
|
+
`:C:I=`${C}
|
|
315
|
+
${n.indent}`:!v&&$n(t)?(!(E[0]==="["||E[0]==="{")||E.includes(`
|
|
316
|
+
`))&&(I=`
|
|
317
|
+
${n.indent}`):(E===""||E[0]===`
|
|
318
|
+
`)&&(I=""),x+=I+E,n.inFlow?w&&r&&r():P&&!w?x+=cl(x,n.indent,f(P)):g&&o&&o(),x}function lF(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const g$="<<";function aF(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&ame(n))if(r=Va(r)?r.resolve(e.doc):r,Fu(r))for(const o of r.items)Q0(e,t,o);else if(Array.isArray(r))for(const o of r)Q0(e,t,o);else Q0(e,t,r);else{const o=Yi(n,"",e);if(t instanceof Map)t.set(o,Yi(r,o,e));else if(t instanceof Set)t.add(o);else{const i=cme(n,o,e),s=Yi(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const ame=e=>e===g$||pn(e)&&e.value===g$&&(!e.type||e.type===Et.PLAIN);function Q0(e,t,n){const r=e&&Va(n)?n.resolve(e.doc):n;if(!Ua(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 cme(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Hn(e)&&n&&n.doc){const r=sF(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)+'..."'),lF(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 iS(e,t,n){const r=Bf(e,void 0,n),o=Bf(t,void 0,n);return new Sr(r,o)}class Sr{constructor(t,n=null){Object.defineProperty(this,Xo,{value:XA}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Hn(n)&&(n=n.clone(t)),Hn(r)&&(r=r.clone(t)),new Sr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return aF(n,r,this)}toString(t,n,r){return t!=null&&t.doc?lme(this,t,n,r):JSON.stringify(this)}}function cF(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?dme:ume)(e,t,n)}function ume({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:f}}=n,p=Object.assign({},n,{indent:i,type:null});let h=!1;const m=[];for(let b=0;b<t.length;++b){const g=t[b];let x=null;if(Hn(g))!h&&g.spaceBefore&&m.push(""),tg(n,m,g.commentBefore,h),g.comment&&(x=g.comment);else if(kn(g)){const P=Hn(g.key)?g.key:null;P&&(!h&&P.spaceBefore&&m.push(""),tg(n,m,P.commentBefore,h))}h=!1;let C=Ma(g,p,()=>x=null,()=>h=!0);x&&(C+=cl(C,i,f(x))),h&&x&&(h=!1),m.push(r+C)}let v;if(m.length===0)v=o.start+o.end;else{v=m[0];for(let b=1;b<m.length;++b){const g=m[b];v+=g?`
|
|
319
|
+
${c}${g}`:`
|
|
320
|
+
`}}return e?(v+=`
|
|
321
|
+
`+ys(f(e),c),a&&a()):h&&s&&s(),v}function dme({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,options:{commentString:c}}=n;o+=a;const f=Object.assign({},n,{indent:o,inFlow:!0,type:null});let p=!1,h=0;const m=[];for(let x=0;x<t.length;++x){const C=t[x];let P=null;if(Hn(C))C.spaceBefore&&m.push(""),tg(n,m,C.commentBefore,!1),C.comment&&(P=C.comment);else if(kn(C)){const E=Hn(C.key)?C.key:null;E&&(E.spaceBefore&&m.push(""),tg(n,m,E.commentBefore,!1),E.comment&&(p=!0));const I=Hn(C.value)?C.value:null;I?(I.comment&&(P=I.comment),I.commentBefore&&(p=!0)):C.value==null&&E&&E.comment&&(P=E.comment)}P&&(p=!0);let w=Ma(C,f,()=>P=null);x<t.length-1&&(w+=","),P&&(w+=cl(w,o,c(P))),!p&&(m.length>h||w.includes(`
|
|
322
|
+
`))&&(p=!0),m.push(w),h=m.length}let v;const{start:b,end:g}=r;if(m.length===0)v=b+g;else if(p||(p=m.reduce((C,P)=>C+P.length+2,2)>$v.maxFlowStringSingleLineLength),p){v=b;for(const x of m)v+=x?`
|
|
323
|
+
${a}${s}${x}`:`
|
|
324
|
+
`;v+=`
|
|
325
|
+
${s}${g}`}else v=`${b} ${m.join(" ")} ${g}`;return e&&(v+=cl(v,c(e),s),i&&i()),v}function tg({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=ys(t(r),e);n.push(i.trimStart())}}function aa(e,t){const n=pn(t)?t.value:t;for(const r of e)if(kn(r)&&(r.key===t||r.key===n||pn(r.key)&&r.key.value===n))return r}class Do extends $v{constructor(t){super(wl,t),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(t,n){var s;let r;kn(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Sr(t,t==null?void 0:t.value):r=new Sr(t.key,t.value);const o=aa(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`);pn(o.value)&&oF(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=aa(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=aa(this.items,t),o=r==null?void 0:r.value;return(i=!n&&pn(o)?o.value:o)!=null?i:void 0}has(t){return!!aa(this.items,t)}set(t,n){this.add(new Sr(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)aF(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!kn(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})),cF(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}function fme(e,t,n){const{keepUndefined:r,replacer:o}=n,i=new Do(e),s=(a,c)=>{if(typeof o=="function")c=o.call(t,a,c);else if(Array.isArray(o)&&!o.includes(a))return;(c!==void 0||r)&&i.items.push(iS(a,c,n))};if(t instanceof Map)for(const[a,c]of t)s(a,c);else if(t&&typeof t=="object")for(const a of Object.keys(t))s(a,t[a]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}const Nu={collection:"map",createNode:fme,default:!0,nodeClass:Do,tag:"tag:yaml.org,2002:map",resolve(e,t){return Ua(e)||t("Expected a mapping for this tag"),e}};class Wa extends $v{constructor(t){super(Au,t),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(t){this.items.push(t)}delete(t){const n=Nh(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Nh(t);if(typeof r!="number")return;const o=this.items[r];return!n&&pn(o)?o.value:o}has(t){const n=Nh(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Nh(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];pn(o)&&oF(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(Yi(i,String(o++),n));return r}toString(t,n,r){return t?cF(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}}function Nh(e){let t=pn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function pme(e,t,n){const{replacer:r}=n,o=new Wa(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let s of t){if(typeof r=="function"){const a=t instanceof Set?s:String(i++);s=r.call(t,a,s)}o.items.push(Bf(s,void 0,n))}}return o}const Du={collection:"seq",createNode:pme,default:!0,nodeClass:Wa,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Fu(e)||t("Expected a sequence for this tag"),e}},Ov={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),mp(e,t,n,r)}},Lv={identify:e=>e==null,createNode:()=>new Et(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Et(null),stringify:({source:e},t)=>typeof e=="string"&&Lv.test.test(e)?e:t.options.nullStr},sS={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Et(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&sS.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 Si({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 uF={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:Si},dF={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():Si(e)}},fF={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 Et(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Si},Av=e=>typeof e=="bigint"||Number.isInteger(e),lS=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function pF(e,t,n){const{value:r}=e;return Av(r)&&r>=0?n+r.toString(t):Si(e)}const hF={identify:e=>Av(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>lS(e,2,8,n),stringify:e=>pF(e,8,"0o")},mF={identify:Av,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>lS(e,0,10,n),stringify:Si},gF={identify:e=>Av(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>lS(e,2,16,n),stringify:e=>pF(e,16,"0x")},hme=[Nu,Du,Ov,Lv,sS,hF,mF,gF,uF,dF,fF];function v$(e){return typeof e=="bigint"||Number.isInteger(e)}const Dh=({value:e})=>JSON.stringify(e),mme=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Dh},{identify:e=>e==null,createNode:()=>new Et(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Dh},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Dh},{identify:v$,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})=>v$(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:Dh}],gme={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},vme=[Nu,Du].concat(mme,gme),aS={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 f=0;f<s.length;++f)c+=String.fromCharCode(s[f]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Et.BLOCK_LITERAL),t!==Et.QUOTE_DOUBLE){const c=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),f=Math.ceil(a.length/c),p=new Array(f);for(let h=0,m=0;h<f;++h,m+=c)p[h]=a.substr(m,c);a=p.join(t===Et.BLOCK_LITERAL?`
|
|
326
|
+
`:" ")}return mp({comment:e,type:t,value:a},r,o,i)}};function vF(e,t){var n;if(Fu(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!kn(o)){if(Ua(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new Sr(new Et(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
|
|
327
|
+
${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
|
|
328
|
+
${s.comment}`:o.comment}o=i}e.items[r]=kn(o)?o:new Sr(o)}}else t("Expected a sequence for this tag");return e}function yF(e,t,n){const{replacer:r}=n,o=new Wa(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 f=Object.keys(s);if(f.length===1)a=f[0],c=s[a];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else a=s;o.items.push(iS(a,c,n))}return o}const cS={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:vF,createNode:yF};class Yc extends Wa{constructor(){super(),this.add=Do.prototype.add.bind(this),this.delete=Do.prototype.delete.bind(this),this.get=Do.prototype.get.bind(this),this.has=Do.prototype.has.bind(this),this.set=Do.prototype.set.bind(this),this.tag=Yc.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(kn(o)?(i=Yi(o.key,"",n),s=Yi(o.value,i,n)):i=Yi(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}}Yc.tag="tag:yaml.org,2002:omap";const uS={collection:"seq",identify:e=>e instanceof Map,nodeClass:Yc,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=vF(e,t),r=[];for(const{key:o}of n.items)pn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new Yc,n)},createNode(e,t,n){const r=yF(e,t,n),o=new Yc;return o.items=r.items,o}};function bF({value:e,source:t},n){return t&&(e?wF:CF).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const wF={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 Et(!0),stringify:bF},CF={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 Et(!1),stringify:bF},yme={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:Si},bme={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():Si(e)}},wme={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 Et(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:Si},gp=e=>typeof e=="bigint"||Number.isInteger(e);function Fv(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 dS(e,t,n){const{value:r}=e;if(gp(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return Si(e)}const Cme={identify:gp,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Fv(e,2,2,n),stringify:e=>dS(e,2,"0b")},xme={identify:gp,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Fv(e,1,8,n),stringify:e=>dS(e,8,"0")},Sme={identify:gp,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Fv(e,0,10,n),stringify:Si},Eme={identify:gp,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Fv(e,2,16,n),stringify:e=>dS(e,16,"0x")};class Xc extends Do{constructor(t){super(t),this.tag=Xc.tag}add(t){let n;kn(t)?n=t:typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Sr(t.key,null):n=new Sr(t,null),aa(this.items,n.key)||this.items.push(n)}get(t,n){const r=aa(this.items,t);return!n&&kn(r)?pn(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=aa(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Sr(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")}}Xc.tag="tag:yaml.org,2002:set";const fS={collection:"map",identify:e=>e instanceof Set,nodeClass:Xc,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(Ua(e)){if(e.hasAllNullValues(!0))return Object.assign(new Xc,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new Xc(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof r=="function"&&(i=r.call(t,i,i)),o.items.push(iS(i,null,n));return o}};function pS(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 xF(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return Si(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(s=>s<10?"0"+String(s):String(s)).join(":").replace(/000000\d*$/,"")}const SF={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})=>pS(e,n),stringify:xF},EF={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=>pS(e,!1),stringify:xF},Nv={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(Nv.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 f=Date.UTC(n,r-1,o,i||0,s||0,a||0,c);const p=t[8];if(p&&p!=="Z"){let h=pS(p,!1);Math.abs(h)<30&&(h*=60),f-=6e4*h}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},y$=[Nu,Du,Ov,Lv,wF,CF,Cme,xme,Sme,Eme,yme,bme,wme,aS,uS,cS,fS,SF,EF,Nv],b$=new Map([["core",hme],["failsafe",[Nu,Du,Ov]],["json",vme],["yaml11",y$],["yaml-1.1",y$]]),w$={binary:aS,bool:sS,float:fF,floatExp:dF,floatNaN:uF,floatTime:EF,int:mF,intHex:gF,intOct:hF,intTime:SF,map:Nu,null:Lv,omap:uS,pairs:cS,seq:Du,set:fS,timestamp:Nv},Pme={"tag:yaml.org,2002:binary":aS,"tag:yaml.org,2002:omap":uS,"tag:yaml.org,2002:pairs":cS,"tag:yaml.org,2002:set":fS,"tag:yaml.org,2002:timestamp":Nv};function J0(e,t){let n=b$.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(b$.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=w$[r];if(o)return o;const i=Object.keys(w$).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const kme=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Dv{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?J0(t,"compat"):t?J0(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?Pme:{},this.tags=J0(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,wl,{value:Nu}),Object.defineProperty(this,Ms,{value:Ov}),Object.defineProperty(this,Au,{value:Du}),this.sortMapEntries=typeof s=="function"?s:s===!0?kme:null}clone(){const t=Object.create(Dv.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Ime(e,t){var c;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=sF(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=i(e.commentBefore);n.unshift(ys(f,""))}let s=!1,a=null;if(e.contents){if(Hn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(ys(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const f=a?void 0:()=>s=!0;let p=Ma(e.contents,o,()=>a=null,f);a&&(p+=cl(p,"",i(a))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(Ma(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const f=i(e.comment);f.includes(`
|
|
329
|
+
`)?(n.push("..."),n.push(ys(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&s&&(f=f.replace(/^\n+/,"")),f&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(ys(i(f),"")))}return n.join(`
|
|
330
|
+
`)+`
|
|
331
|
+
`}function Rd(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=Rd(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=Rd(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=Rd(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=Rd(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}class Bu{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Xo,{value:Hb});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 Mr({version:s}),this.setSchema(s,r),t===void 0?this.contents=null:this.contents=this.createNode(t,o,r)}clone(){const t=Object.create(Bu.prototype,{[Xo]:{value:Hb}});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=Hn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){vc(this.contents)&&this.contents.add(t)}addIn(t,n){vc(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=nF(this);t.anchor=!n||r.has(n)?rF(n||"a",r):n}return new _v(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 x=P=>typeof P=="number"||P instanceof String||P instanceof Number,C=n.filter(x).map(String);C.length>0&&(n=n.concat(C)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:f,tag:p}=r!=null?r:{},{onAnchor:h,setAnchors:m,sourceObjects:v}=Zhe(this,s||"a"),b={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:f,replacer:o,schema:this.schema,sourceObjects:v},g=Bf(t,p,b);return a&&$n(g)&&(g.flow=!0),m(),g}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new Sr(o,i)}delete(t){return vc(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Td(t)?this.contents==null?!1:(this.contents=null,!0):vc(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return $n(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Td(t)?!n&&pn(this.contents)?this.contents.value:this.contents:$n(this.contents)?this.contents.getIn(t,n):void 0}has(t){return $n(this.contents)?this.contents.has(t):!1}hasIn(t){return Td(t)?this.contents!==void 0:$n(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=eg(this.schema,[t],n):vc(this.contents)&&this.contents.set(t,n)}setIn(t,n){Td(t)?this.contents=n:this.contents==null?this.contents=eg(this.schema,Array.from(t),n):vc(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 Mr({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 Mr({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 Dv(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100,stringify:Ma},c=Yi(this.contents,n!=null?n:"",a);if(typeof i=="function")for(const{count:f,res:p}of a.anchors.values())i(p,f);return typeof s=="function"?Rd(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 Ime(this,t)}}function vc(e){if($n(e))return!0;throw new Error("Expected a YAML collection as document contents")}class hS extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class ca extends hS{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class PF extends hS{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const ng=(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)+`…
|
|
332
|
+
`),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.min(c.col-o,80-i));const f=" ".repeat(i)+"^".repeat(a);n.message+=`:
|
|
333
|
+
|
|
334
|
+
${s}
|
|
335
|
+
${f}
|
|
336
|
+
`}};function bu(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,f=s,p="",h="",m=!1,v=!1,b=!1,g=null,x=null,C=null,P=null,w=null;for(const _ of e)switch(b&&(_.type!=="space"&&_.type!=="newline"&&_.type!=="comma"&&i(_.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),_.type){case"space":!t&&c&&n!=="doc-start"&&_.source[0]===" "&&i(_,"TAB_AS_INDENT","Tabs are not allowed as indentation"),f=!0;break;case"comment":{f||i(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const k=_.source.substring(1)||" ";p?p+=h+k:p=k,h="",c=!1;break}case"newline":c?p?p+=_.source:a=!0:h+=_.source,c=!0,m=!0,(g||x)&&(v=!0),f=!0;break;case"anchor":g&&i(_,"MULTIPLE_ANCHORS","A node can have at most one anchor"),_.source.endsWith(":")&&i(_.offset+_.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=_,w===null&&(w=_.offset),c=!1,f=!1,b=!0;break;case"tag":{x&&i(_,"MULTIPLE_TAGS","A node can have at most one tag"),x=_,w===null&&(w=_.offset),c=!1,f=!1,b=!0;break}case n:(g||x)&&i(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),P&&i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${t!=null?t:"collection"}`),P=_,c=!1,f=!1;break;case"comma":if(t){C&&i(_,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),C=_,c=!1,f=!1;break}default:i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),c=!1,f=!1}const E=e[e.length-1],I=E?E.offset+E.source.length:o;return b&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:C,found:P,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:v,anchor:g,tag:x,end:I,start:w!=null?w:I}}function zf(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
337
|
+
`))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(zf(t.key)||zf(t.value))return!0}return!1;default:return!0}}function Wb(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&zf(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function kF(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||pn(i)&&pn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const C$="All mapping items must start at the same column";function _me({composeNode:e,composeEmptyNode:t},n,r,o){var a;const i=new Do(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const c of r.items){const{start:f,key:p,sep:h,value:m}=c,v=bu(f,{indicator:"explicit-key-ind",next:p!=null?p:h==null?void 0:h[0],offset:s,onError:o,startOnNewline:!0}),b=!v.found;if(b){if(p&&(p.type==="block-seq"?o(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==r.indent&&o(s,"BAD_INDENT",C$)),!v.anchor&&!v.tag&&!h){v.comment&&(i.comment?i.comment+=`
|
|
338
|
+
`+v.comment:i.comment=v.comment);continue}(v.hasNewlineAfterProp||zf(p))&&o(p!=null?p:f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((a=v.found)==null?void 0:a.indent)!==r.indent&&o(s,"BAD_INDENT",C$);const g=v.end,x=p?e(n,p,v,o):t(n,g,f,null,v,o);n.schema.compat&&Wb(r.indent,p,o),kF(n,i.items,x)&&o(g,"DUPLICATE_KEY","Map keys must be unique");const C=bu(h!=null?h:[],{indicator:"map-value-ind",next:m,offset:x.range[2],onError:o,startOnNewline:!p||p.type==="block-scalar"});if(s=C.end,C.found){b&&((m==null?void 0:m.type)==="block-map"&&!C.hasNewline&&o(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&v.start<C.found.offset-1024&&o(x.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const P=m?e(n,m,C,o):t(n,s,h,null,C,o);n.schema.compat&&Wb(r.indent,m,o),s=P.range[2];const w=new Sr(x,P);n.options.keepSourceTokens&&(w.srcToken=c),i.items.push(w)}else{b&&o(x.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),C.comment&&(x.comment?x.comment+=`
|
|
339
|
+
`+C.comment:x.comment=C.comment);const P=new Sr(x);n.options.keepSourceTokens&&(P.srcToken=c),i.items.push(P)}}return i.range=[r.offset,s,s],i}function $me({composeNode:e,composeEmptyNode:t},n,r,o){const i=new Wa(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const{start:a,value:c}of r.items){const f=bu(a,{indicator:"seq-item-ind",next:c,offset:s,onError:o,startOnNewline:!0});if(s=f.end,!f.found)if(f.anchor||f.tag||c)c&&c.type==="block-seq"?o(s,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator");else{f.comment&&(i.comment=f.comment);continue}const p=c?e(n,c,f,o):t(n,s,a,null,f,o);n.schema.compat&&Wb(r.indent,c,o),s=p.range[2],i.items.push(p)}return i.range=[r.offset,s,s],i}function vp(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:c,type:f}=a;switch(f){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 ${f} at node end`)}t+=c.length}}return{comment:o,offset:t}}const Z0="Block collections are not allowed within flow collections",e1=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Mme({composeNode:e,composeEmptyNode:t},n,r,o){var b;const i=r.start.source==="{",s=i?"flow map":"flow sequence",a=i?new Do(n.schema):new Wa(n.schema);a.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let f=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const x=r.items[g],{start:C,key:P,sep:w,value:E}=x,I=bu(C,{flow:s,indicator:"explicit-key-ind",next:P!=null?P:w==null?void 0:w[0],offset:f,onError:o,startOnNewline:!1});if(!I.found){if(!I.anchor&&!I.tag&&!w&&!E){g===0&&I.comma?o(I.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):g<r.items.length-1&&o(I.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),I.comment&&(a.comment?a.comment+=`
|
|
340
|
+
`+I.comment:a.comment=I.comment),f=I.end;continue}!i&&n.options.strict&&zf(P)&&o(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)I.comma&&o(I.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(I.comma||o(I.start,"MISSING_CHAR",`Missing , between ${s} items`),I.comment){let _="";e:for(const k of C)switch(k.type){case"comma":case"space":break;case"comment":_=k.source.substring(1);break e;default:break e}if(_){let k=a.items[a.items.length-1];kn(k)&&(k=(b=k.value)!=null?b:k.key),k.comment?k.comment+=`
|
|
341
|
+
`+_:k.comment=_,I.comment=I.comment.substring(_.length+1)}}if(!i&&!w&&!I.found){const _=E?e(n,E,I,o):t(n,I.end,w,null,I,o);a.items.push(_),f=_.range[2],e1(E)&&o(_.range,"BLOCK_IN_FLOW",Z0)}else{const _=I.end,k=P?e(n,P,I,o):t(n,_,C,null,I,o);e1(P)&&o(k.range,"BLOCK_IN_FLOW",Z0);const $=bu(w!=null?w:[],{flow:s,indicator:"map-value-ind",next:E,offset:k.range[2],onError:o,startOnNewline:!1});if($.found){if(!i&&!I.found&&n.options.strict){if(w)for(const N of w){if(N===$.found)break;if(N.type==="newline"){o(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}I.start<$.found.offset-1024&&o($.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source&&E.source[0]===":"?o(E,"MISSING_CHAR",`Missing space after : in ${s}`):o($.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const T=E?e(n,E,$,o):$.found?t(n,$.end,w,null,$,o):null;T?e1(E)&&o(T.range,"BLOCK_IN_FLOW",Z0):$.comment&&(k.comment?k.comment+=`
|
|
342
|
+
`+$.comment:k.comment=$.comment);const O=new Sr(k,T);if(n.options.keepSourceTokens&&(O.srcToken=x),i){const N=a;kF(n,N.items,k)&&o(_,"DUPLICATE_KEY","Map keys must be unique"),N.items.push(O)}else{const N=new Do(n.schema);N.flow=!0,N.items.push(O),a.items.push(N)}f=T?T.range[2]:$.end}}const p=i?"}":"]",[h,...m]=r.end;let v=f;if(h&&h.source===p)v=h.offset+h.source.length;else{const g=s[0].toUpperCase()+s.substring(1),x=c?`${g} must end with a ${p}`:`${g} in block collection must be sufficiently indented and end with a ${p}`;o(f,c?"MISSING_CHAR":"BAD_INDENT",x),h&&h.source.length!==1&&m.unshift(h)}if(m.length>0){const g=vp(m,v,n.options.strict,o);g.comment&&(a.comment?a.comment+=`
|
|
343
|
+
`+g.comment:a.comment=g.comment),a.range=[r.offset,v,g.offset]}else a.range=[r.offset,v,v];return a}function Tme(e,t,n,r,o){let i;switch(n.type){case"block-map":{i=_me(e,t,n,o);break}case"block-seq":{i=$me(e,t,n,o);break}case"flow-collection":{i=Mme(e,t,n,o);break}}if(!r)return i;const s=t.directives.tagName(r.source,m=>o(r,"TAG_RESOLVE_FAILED",m));if(!s)return i;const a=i.constructor;if(s==="!"||s===a.tagName)return i.tag=a.tagName,i;const c=Ua(i)?"map":"seq";let f=t.schema.tags.find(m=>m.collection===c&&m.tag===s);if(!f){const m=t.schema.knownTags[s];if(m&&m.collection===c)t.schema.tags.push(Object.assign({},m,{default:!1})),f=m;else return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),i.tag=s,i}const p=f.resolve(i,m=>o(r,"TAG_RESOLVE_FAILED",m),t.options),h=Hn(p)?p:new Et(p);return h.range=i.range,h.tag=s,f!=null&&f.format&&(h.format=f.format),h}function IF(e,t,n){const r=e.offset,o=Rme(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?Et.BLOCK_FOLDED:Et.BLOCK_LITERAL,s=e.source?Ome(e.source):[];let a=s.length;for(let g=s.length-1;g>=0;--g){const x=s[g][1];if(x===""||x==="\r")a=g;else break}if(a===0){const g=o.chomp==="+"&&s.length>0?`
|
|
344
|
+
`.repeat(Math.max(1,s.length-1)):"";let x=r+o.length;return e.source&&(x+=e.source.length),{value:g,type:i,comment:o.comment,range:[r,x,x]}}let c=e.indent+o.indent,f=e.offset+o.length,p=0;for(let g=0;g<a;++g){const[x,C]=s[g];if(C===""||C==="\r")o.indent===0&&x.length>c&&(c=x.length);else{if(x.length<c){const P="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(f+x.length,"MISSING_CHAR",P)}o.indent===0&&(c=x.length),p=g;break}f+=x.length+C.length+1}for(let g=s.length-1;g>=a;--g)s[g][0].length>c&&(a=g+1);let h="",m="",v=!1;for(let g=0;g<p;++g)h+=s[g][0].slice(c)+`
|
|
345
|
+
`;for(let g=p;g<a;++g){let[x,C]=s[g];f+=x.length+C.length+1;const P=C[C.length-1]==="\r";if(P&&(C=C.slice(0,-1)),C&&x.length<c){const E=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(f-C.length-(P?2:1),"BAD_INDENT",E),x=""}i===Et.BLOCK_LITERAL?(h+=m+x.slice(c)+C,m=`
|
|
346
|
+
`):x.length>c||C[0]===" "?(m===" "?m=`
|
|
347
|
+
`:!v&&m===`
|
|
348
|
+
`&&(m=`
|
|
349
|
+
|
|
350
|
+
`),h+=m+x.slice(c)+C,m=`
|
|
351
|
+
`,v=!0):C===""?m===`
|
|
352
|
+
`?h+=`
|
|
353
|
+
`:m=`
|
|
354
|
+
`:(h+=m+C,m=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let g=a;g<s.length;++g)h+=`
|
|
355
|
+
`+s[g][0].slice(c);h[h.length-1]!==`
|
|
356
|
+
`&&(h+=`
|
|
357
|
+
`);break;default:h+=`
|
|
358
|
+
`}const b=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,b,b]}}function Rme({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",c=-1;for(let m=1;m<o.length;++m){const v=o[m];if(!a&&(v==="-"||v==="+"))a=v;else{const b=Number(v);!s&&b?s=b:c===-1&&(c=e+m)}}c!==-1&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let f=!1,p="",h=o.length;for(let m=1;m<t.length;++m){const v=t[m];switch(v.type){case"space":f=!0;case"newline":h+=v.source.length;break;case"comment":n&&!f&&r(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=v.source.length,p=v.source.substring(1);break;case"error":r(v,"UNEXPECTED_TOKEN",v.message),h+=v.source.length;break;default:{const b=`Unexpected token in block scalar header: ${v.type}`;r(v,"UNEXPECTED_TOKEN",b);const g=v.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:i,indent:s,chomp:a,comment:p,length:h}}function Ome(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 _F(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const f=(m,v,b)=>n(r+m,v,b);switch(o){case"scalar":a=Et.PLAIN,c=Lme(i,f);break;case"single-quoted-scalar":a=Et.QUOTE_SINGLE,c=Ame(i,f);break;case"double-quoted-scalar":a=Et.QUOTE_DOUBLE,c=Fme(i,f);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=vp(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function Lme(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}`),$F(e)}function Ame(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),$F(e.slice(1,-1)).replace(/''/g,"'")}function $F(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
359
|
+
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
360
|
+
`,"sy")}catch(f){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===`
|
|
361
|
+
`?o+=i:i=`
|
|
362
|
+
`:(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 Fme(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
|
|
363
|
+
`))if(o===`
|
|
364
|
+
`){const{fold:i,offset:s}=Nme(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=Dme[i];if(s)n+=s;else if(i===`
|
|
365
|
+
`)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
|
|
366
|
+
`)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+=Bme(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!==`
|
|
367
|
+
`&&!(s==="\r"&&e[r+2]===`
|
|
368
|
+
`)&&(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 Nme(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
369
|
+
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
370
|
+
`);)r===`
|
|
371
|
+
`&&(n+=`
|
|
372
|
+
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Dme={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
373
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Bme(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 MF(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?IF(t,e.options.strict,r):_F(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,f=n&&c?zme(e.schema,o,c,n,r):t.type==="scalar"?jme(e,o,t,r):e.schema[Ms];let p;try{const h=f.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=pn(h)?h:new Et(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new Et(o)}return p.range=a,p.source=o,i&&(p.type=i),c&&(p.tag=c),f.format&&(p.format=f.format),s&&(p.comment=s),p}function zme(e,t,n,r,o){var a;if(n==="!")return e[Ms];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[Ms])}function jme({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[Ms];if(t.compat){const a=(s=t.compat.find(c=>{var f;return c.default&&((f=c.test)==null?void 0:f.test(n))}))!=null?s:t[Ms];if(i.tag!==a.tag){const c=e.tagString(i.tag),f=e.tagString(a.tag),p=`Value may be parsed as either ${c} or ${f}`;o(r,"TAG_RESOLVE_FAILED",p,!0)}}return i}function Hme(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 Vme={composeNode:TF,composeEmptyNode:mS};function TF(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,f=!0;switch(t.type){case"alias":c=Ume(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=MF(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=Tme(Vme,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=mS(e,t.offset,void 0,null,n,r),f=!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&&f&&(c.srcToken=t),c}function mS(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a},c){const f={type:"scalar",offset:Hme(t,n,r),indent:-1,source:""},p=MF(e,f,a,c);return s&&(p.anchor=s.source.substring(1),p.anchor===""&&c(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),i&&(p.comment=i),p}function Ume({options:e},{offset:t,source:n,end:r},o){const i=new _v(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=vp(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function Wme(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new Bu(void 0,a),f={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=bu(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?TF(f,o,p,s):mS(f,p.end,r,null,p,s);const h=c.contents.range[2],m=vp(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function wd(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 x$(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?`
|
|
374
|
+
|
|
375
|
+
`:`
|
|
376
|
+
`)+(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 gS{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=wd(n);i?this.warnings.push(new PF(s,r,o)):this.errors.push(new ca(s,r,o))},this.directives=new Mr({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=x$(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
377
|
+
${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if($n(i)&&!i.flow&&i.items.length>0){let s=i.items[0];kn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
|
|
378
|
+
${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
|
|
379
|
+
${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:x$(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=wd(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Wme(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 ca(wd(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 ca(wd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=vp(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}
|
|
380
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new ca(wd(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 Bu(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 Gme(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 ca([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return _F(e,t,r);case"block-scalar":return IF(e,t,r)}}return null}function Kme(e,t){var f;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=mp({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=(f=t.end)!=null?f:[{type:"newline",offset:-1,indent:r,source:`
|
|
381
|
+
`}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
|
|
382
|
+
`),h=a.substring(0,p),m=a.substring(p+1)+`
|
|
383
|
+
`,v=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return RF(v,c)||v.push({type:"newline",offset:-1,indent:r,source:`
|
|
384
|
+
`}),{type:"block-scalar",offset:i,indent:r,props:v,source:m}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:a,end:c};default:return{type:"scalar",offset:i,indent:r,source:a,end:c}}}function qme(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 f=e.props[0];if(f.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=f.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const c=mp({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":Yme(e,c);break;case'"':t1(e,c,"double-quoted-scalar");break;case"'":t1(e,c,"single-quoted-scalar");break;default:t1(e,c,"scalar")}}function Yme(e,t){const n=t.indexOf(`
|
|
385
|
+
`),r=t.substring(0,n),o=t.substring(n+1)+`
|
|
386
|
+
`;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}];RF(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
|
|
387
|
+
`});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 RF(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 t1(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:`
|
|
388
|
+
`};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 Xme=e=>"type"in e?rg(e):cm(e);function rg(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=rg(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=cm(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=cm(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=cm(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 cm({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=rg(t)),n)for(const i of n)o+=i.source;return r&&(o+=rg(r)),o}const Gb=Symbol("break visit"),Qme=Symbol("skip children"),OF=Symbol("remove item");function Ta(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),LF(Object.freeze([]),e,t)}Ta.BREAK=Gb;Ta.SKIP=Qme;Ta.REMOVE=OF;Ta.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};Ta.parentCollection=(e,t)=>{const n=Ta.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 LF(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=LF(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===Gb)return Gb;a===OF&&(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 Bv="\uFEFF",zv="",jv="",jf="",Jme=e=>!!e&&"items"in e,Zme=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function ege(e){switch(e){case Bv:return"<BOM>";case zv:return"<DOC>";case jv:return"<FLOW_END>";case jf:return"<SCALAR>";default:return JSON.stringify(e)}}function AF(e){switch(e){case Bv:return"byte-order-mark";case zv:return"doc-mode";case jv:return"flow-error-end";case jf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
389
|
+
`:case`\r
|
|
390
|
+
`: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 tge=Object.freeze(Object.defineProperty({__proto__:null,BOM:Bv,DOCUMENT:zv,FLOW_END:jv,SCALAR:jf,createScalarToken:Kme,isCollection:Jme,isScalar:Zme,prettyToken:ege,resolveAsScalar:Gme,setScalarValue:qme,stringify:Xme,tokenType:AF,visit:Ta},Symbol.toStringTag,{value:"Module"}));function Oo(e){switch(e){case void 0:case" ":case`
|
|
391
|
+
`:case"\r":case" ":return!0;default:return!1}}const S$="0123456789ABCDEFabcdef".split(""),nge="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),n1=",[]{}".split(""),rge=` ,[]{}
|
|
392
|
+
\r `.split(""),r1=e=>!e||rge.includes(e);class FF{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===`
|
|
393
|
+
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
394
|
+
`:!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===`
|
|
395
|
+
`||!o&&!this.atEnd)return t+r+1}return n===`
|
|
396
|
+
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Oo(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(`
|
|
397
|
+
`,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]===Bv&&(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 zv,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==="---"&&Oo(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Oo(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Oo(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===":")&&Oo(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(r1),"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("..."))&&Oo(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield jv,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(r1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||Oo(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(`
|
|
398
|
+
`,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
|
|
399
|
+
`,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=>Oo(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`
|
|
400
|
+
`:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
|
|
401
|
+
`)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(`
|
|
402
|
+
`,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===`
|
|
403
|
+
`&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield jf,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(Oo(i)||t&&i===",")break;n=r}else if(Oo(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
|
|
404
|
+
`?(r+=1,o=`
|
|
405
|
+
`,i=this.buffer[r+1]):n=r),i==="#"||t&&n1.includes(i))break;if(o===`
|
|
406
|
+
`){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&n1.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield jf,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(r1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Oo(n)||t&&n1.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(;!Oo(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(nge.includes(n))n=this.buffer[++t];else if(n==="%"&&S$.includes(this.buffer[t+1])&&S$.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===`
|
|
407
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
408
|
+
`?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 NF{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 si(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function E$(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 DF(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 Bh(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 yc(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 P$(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!si(t.start,"explicit-key-ind")&&!si(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,DF(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)}class vS{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 FF,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=AF(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"&&P$(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=!si(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&&E$(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":{E$(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=Bh(this.peek(2)),r=yc(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(`
|
|
409
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
410
|
+
`,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&&!si(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(si(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(si(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(DF(n.key)&&!si(n.sep,"newline")){const s=yc(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(si(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=yc(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]}):si(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"&&si(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||si(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=Bh(r),i=yc(o);P$(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(`
|
|
411
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
412
|
+
`,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=Bh(t),r=yc(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=Bh(t),r=yc(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 BF(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new NF||null,prettyErrors:t}}function oge(e,t={}){const{lineCounter:n,prettyErrors:r}=BF(t),o=new vS(n==null?void 0:n.addNewLine),i=new gS(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(ng(e,n)),a.warnings.forEach(ng(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function zF(e,t={}){const{lineCounter:n,prettyErrors:r}=BF(t),o=new vS(n==null?void 0:n.addNewLine),i=new gS(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 ca(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(ng(e,n)),s.warnings.forEach(ng(e,n))),s}function ige(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=zF(e,n);if(!o)return null;if(o.warnings.forEach(i=>lF(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 sge(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 Bu(e,r,n).toString(n)}const k$=Object.freeze(Object.defineProperty({__proto__:null,Alias:_v,CST:tge,Composer:gS,Document:Bu,Lexer:FF,LineCounter:NF,Pair:Sr,Parser:vS,Scalar:Et,Schema:Dv,YAMLError:hS,YAMLMap:Do,YAMLParseError:ca,YAMLSeq:Wa,YAMLWarning:PF,isAlias:Va,isCollection:$n,isDocument:hp,isMap:Ua,isNode:Hn,isPair:kn,isScalar:pn,isSeq:Fu,parse:ige,parseAllDocuments:oge,parseDocument:zF,stringify:sge,visit:Tl,visitAsync:Iv},Symbol.toStringTag,{value:"Module"}));function lge({file:e,defaultPerms:t,addToBar:n}){var _;const I=e,{parent:r,children:o,isRoot:i}=I,s=cn(I,["parent","children","isRoot"]),[a,c]=u.useState(s);u.useEffect(()=>{c(Object.assign({can_see:null,can_read:null,can_upload:null,can_delete:null},s))},[e]);const{source:f}=e,p=e.type==="folder",h=f!==void 0,m=h&&p,v=u.useMemo(()=>{const $={};let T=r;for(;T;)Qt.defaults($,T),T=T.parent;return Qt.defaults($,t)},[r]),b=h&&Boolean(a.ctime),g=ax(),{data:x,element:C}=Ki("get_accounts");if(C||!x)return C;const P=x.list,w=(_=a.can_read)!=null?_:v.can_read;return u.createElement(rp,{values:a,set($,T){c(Ut(Le({},a),{[T]:$}))},barSx:Le({gap:2,width:"100%"},g),stickyBar:!0,addToBar:[!i&&u.createElement(Fn,{icon:Ci,title:"Delete",confirm:"Delete?",onClick:()=>Ot("del_vfs",{uris:[e.id]}).then(()=>Ra())}),n],onError:dr,save:{sx:ux(!cx(a,e)),onClick(){return ot(this,null,function*(){const $=Le({},a);$.masks||($.masks=null),yield Ot("set_vfs",{uri:a.id,props:$}),$.name!==e.name&&(En.selectedFiles[0].id=e.id.slice(0,-e.name.length)+$.name),Ra()})}},fields:[i?u.createElement(Yo,{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:f&&"You can decide a name that's different from the one on your disk"},{k:"source",label:"Source on disk",comp:ef,files:!p,folders:p,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},E("can_read","Who can download","Note: who can't download won't see it in the list"),w&&E("can_see","Who can see","You can hide and keep it downloadable if you have a direct link",{accounts:Array.isArray(w)?P.filter($=>w.includes($.username)):void 0}),p&&E("can_upload","Who can upload",h?"":"Works only on folders with source"),p&&E("can_delete","Who can delete",h?"":"Works only on folders with source"),h&&!m&&{k:"size",comp:j0,lg:4,toField:$u},b&&{k:"ctime",comp:j0,md:6,lg:4,label:"Created",toField:I$},b&&{k:"mtime",comp:j0,md:6,lg:4,label:"Modified",toField:I$},e.website&&{k:"default",comp:gu,label:"Serve index.html",toField:Boolean,fromField:$=>$?"index.html":null,helperText:rl("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},p&&{k:"masks",multiline:!0,xl:!0,lg:6,toField:k$.stringify,fromField:$=>$?k$.parse($):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Special field, leave empty unless you know what you are doing. YAML syntax."}]});function E($,T,O="",j={}){var L=j,{accounts:N=P}=L,V=cn(L,["accounts"]);return Le({k:$,lg:6,comp:age,parent:r,accounts:N,label:T,inherit:v[$],helperText:O},V)}}function I$(e){return e?new Date(e).toLocaleString():"-"}function age(a){var c=a,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i}=c,s=cn(c,["value","onChange","parent","inherit","accounts","helperText"]);const f=u.useMemo(()=>Ea([{value:null,label:(n?"Same as parent: ":"Default: ")+_$(r)},{value:!0},{value:!1},{value:"*"},{value:[],label:"Select accounts"}].map(h=>(h.value===e||h.value!==r)&&Le({label:Qt.capitalize(_$(h.value))},h))),[r,n,e]),p=Array.isArray(e);return u.createElement("div",{},u.createElement(Mu,Ut(Le({},s),{helperText:!p&&i,value:p?[]:e,onChange(h,{was:m,event:v}){t(h,{was:m,event:v})},options:f})),p&&u.createElement(nx,{label:o!=null&&o.length?"Choose accounts for "+s.label:"You didn't create any account yet",value:e,onChange:t,helperText:i,options:(o==null?void 0:o.map(h=>({value:h.username,label:h.username})))||[]}))}function _$(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):"*UNKNOWN*"+JSON.stringify(e)}let Kb;function cge(){var b,g,x;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=Bl(),{data:r,reload:o,element:i}=Ki("get_vfs");u.useMemo(()=>t||o(),[t,o]);const s="md",a=vu(s);function c(){En.selectedFiles=[]}const f=n.length?n.length===1?u.createElement(lge,{addToBar:a&&u.createElement(Fn,{icon:np,title:"Close",onClick:c}),defaultPerms:r==null?void 0:r.defaultPerms,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(lx,{alignItems:"center"},u.createElement(Cr,{variant:"h6"},n.length+" selected"),u.createElement(cr,{onClick:uge,startIcon:u.createElement(Ci)},"Remove")),u.createElement(av,{dense:!0,disablePadding:!0},n.map(C=>u.createElement(OO,{key:C.id},u.createElement(cv,{primary:C.name,secondary:C.source}))))):null;u.useEffect(()=>{if(!(a||!f))return wi({title:n.length>1?"Multiple selection":n[0].name,Content:()=>f,onClose:c})},[a,n]),u.useEffect(()=>{if(En.vfs=void 0,!r)return;e.clear();const{root:C}=r;if(!C)return;w(C),C.isRoot=!0,En.vfs=C;const P=Kb||En.selectedFiles.map(E=>E.id);Kb=void 0,En.selectedFiles=Ea(P.map(E=>e.get(E)));function w(E,I="",_=void 0){if(E.parent=_,E.id=aoe(I,E.name)||"/",e.set(E.id,E),!!E.children)for(const k of E.children)w(k,(I&&E.id)+"/",E)}},[r,e]);const[p]=ip(window.location.host==="localhost"&&"get_status"),h=u.useMemo(()=>{var C,P;return typeof p=="object"&&Qt.sortBy(Ea(Object.values(((C=p.urls)==null?void 0:C.https)||((P=p.urls)==null?void 0:P.http)||{}).map(w=>typeof w=="string"&&w)),w=>w.includes("["))},[p]);if(i)return e.clear(),i;const v=!((g=(b=r==null?void 0:r.root)==null?void 0:b.children)!=null&&g.length)&&!((x=r==null?void 0:r.root)!=null&&x.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:h&&{severity:"info",children:["Your shared files can be browsed from ",$re(" or ",h.slice(0,3).map(C=>u.createElement(_f,{href:C},C)))]};return u.createElement(Vn,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},v&&u.createElement(Vn,{item:!0,mb:2,xs:12},u.createElement(Yo,v)),u.createElement(Vn,{item:!0,[s]:6,lg:5},u.createElement(Cr,{variant:"h6",mb:1},"Virtual File System"),u.createElement(Yhe),t&&u.createElement(dge,{id2node:e})),a&&f&&u.createElement(Vn,{item:!0,[s]:6,lg:7,maxWidth:"100%"},u.createElement(hO,{},u.createElement(mO,{},f))))}function Ra(e){Kb=e,En.vfs=void 0}function uge(){return ot(this,null,function*(){const e=En.selectedFiles;if(e.length&&(yield ws(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);Qt.pull(t,"/");const{errors:n}=yield Ot("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return dr("Following elements couldn't be deleted: "+r.join(", "),"error");Ra()}catch(t){yield dr(t)}})}const jF=jA,HF=VA;function dge({id2node:e}){const{vfs:t,selectedFiles:n}=Bl(),[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 f="vfs";return u.createElement(mL,{ref:c,expanded:i,selected:r,multiSelect:!0,id:f,sx:{overflowX:"auto",maxWidth:c.current&&`calc(100vw - ${16+c.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px"}},onNodeSelect(m,v){o(v),En.selectedFiles=Ea(v.map(b=>e.get(b)))}},h(t));function p(m){return m!==void 0&&m!==!0}function h(m){var w,E;let{id:v,name:b,source:g,isRoot:x}=m;if(!v)debugger;const C=m.type==="folder";return C&&!xL(g)&&g===b&&(g="./"+g),u.createElement($b,{ref(I){I==null||I.addEventListener("focusin",_=>_.stopImmediatePropagation())},label:u.createElement(it,{draggable:!x,onDragStart(){a.current=v},onDragOver(I){if(!C)return;const _=a.current;_!=null&&_.startsWith(v)&&!_.slice(v.length+1).includes("/")||I.preventDefault()},onDrop(){return ot(this,null,function*(){const I=a.current;I&&(yield ws(`Moving ${I} under ${v}`))&&Ot("move_vfs",{from:I,parent:v}).then(()=>{Ra([Rie(v,Tie(I))])},dr)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(it,{display:"flex",flex:0},x?lo(HA,"home, or root if you like"):C?lo(jF,"Folder"):lo(HF,"File"),u.createElement(it,{sx:{flex:0,ml:"2px","&>*":{fontSize:"87%"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},m.can_delete!==void 0&&lo(Ci,"Delete permission"),m.can_upload!==void 0?lo(eS,"Upload permission"):!x&&!m.source&&lo(GA,"Virtual (no source)"),p(m.can_see)&&lo(UA,"Restrictions on who can see"),p(m.can_read)&&lo(Ex,"Restrictions on who can download"),m.default&&lo(WA,"Act as website"),m.masks&&lo(zA,"Masks"),m.size===-1&&lo(KA,"Source missing"))),x?"Home":(g==null?void 0:g.length)<45&&(g!=null&&g.endsWith(b))?u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},g.slice(0,-b.length)),u.createElement("span",{},g.slice(-b.length))):u.createElement(it,{lineHeight:"1.2em"},b)),key:b,collapseIcon:u.createElement(BA,{onClick(I){s(i.filter(_=>_!==v)),I.preventDefault(),I.stopPropagation()}}),expandIcon:u.createElement(DA,{onClick(I){s([...i,v]),I.preventDefault(),I.stopPropagation()}}),nodeId:v},x&&!((w=m.children)!=null&&w.length)?u.createElement($b,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(E=m.children)==null?void 0:E.map(h))}}var $$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function fge(e,t){return!!(e===t||$$(e)&&$$(t))}function pge(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!fge(e[n],t[n]))return!1;return!0}function o1(e,t){t===void 0&&(t=pge);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 hge=typeof performance=="object"&&typeof performance.now=="function",M$=hge?function(){return performance.now()}:function(){return Date.now()};function T$(e){cancelAnimationFrame(e.id)}function mge(e,t){var n=M$();function r(){M$()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var bc=null;function R$(e){if(e===void 0&&(e=!1),bc===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?bc="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?bc="negative":bc="positive-ascending"),document.body.removeChild(t),bc}return bc}var gge=150,vge=function(t,n){return t};function yge(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,c=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(h){SC(m,h);function m(b){var g;return g=h.call(this,b)||this,g._instanceProps=c(g.props,pb(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:pb(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=o1(function(x,C,P,w){return g.props.onItemsRendered({overscanStartIndex:x,overscanStopIndex:C,visibleStartIndex:P,visibleStopIndex:w})}),g._callOnScroll=void 0,g._callOnScroll=o1(function(x,C,P){return g.props.onScroll({scrollDirection:x,scrollOffset:C,scrollUpdateWasRequested:P})}),g._getItemStyle=void 0,g._getItemStyle=function(x){var C=g.props,P=C.direction,w=C.itemSize,E=C.layout,I=g._getItemStyleCache(f&&w,f&&E,f&&P),_;if(I.hasOwnProperty(x))_=I[x];else{var k=n(g.props,x,g._instanceProps),$=o(g.props,x,g._instanceProps),T=P==="horizontal"||E==="horizontal",O=P==="rtl",N=T?k:0;I[x]=_={position:"absolute",left:O?void 0:N,right:O?N:void 0,top:T?0:k,height:T?"100%":$,width:T?$:"100%"}}return _},g._getItemStyleCache=void 0,g._getItemStyleCache=o1(function(x,C,P){return{}}),g._onScrollHorizontal=function(x){var C=x.currentTarget,P=C.clientWidth,w=C.scrollLeft,E=C.scrollWidth;g.setState(function(I){if(I.scrollOffset===w)return null;var _=g.props.direction,k=w;if(_==="rtl")switch(R$()){case"negative":k=-w;break;case"positive-descending":k=E-P-w;break}return k=Math.max(0,Math.min(k,E-P)),{isScrolling:!0,scrollDirection:I.scrollOffset<w?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(x){var C=x.currentTarget,P=C.clientHeight,w=C.scrollHeight,E=C.scrollTop;g.setState(function(I){if(I.scrollOffset===E)return null;var _=Math.max(0,Math.min(E,w-P));return{isScrolling:!0,scrollDirection:I.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(x){var C=g.props.outerRef;g._outerRef=x,typeof C=="function"?C(x):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=x)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&T$(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=mge(g._resetIsScrolling,gge)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}m.getDerivedStateFromProps=function(g,x){return bge(g,x),p(g),null};var v=m.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(x){return x.scrollOffset===g?null:{scrollDirection:x.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,x){x===void 0&&(x="auto");var C=this.props.itemCount,P=this.state.scrollOffset;g=Math.max(0,Math.min(g,C-1)),this.scrollTo(i(this.props,g,x,P,this._instanceProps))},v.componentDidMount=function(){var g=this.props,x=g.direction,C=g.initialScrollOffset,P=g.layout;if(typeof C=="number"&&this._outerRef!=null){var w=this._outerRef;x==="horizontal"||P==="horizontal"?w.scrollLeft=C:w.scrollTop=C}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,x=g.direction,C=g.layout,P=this.state,w=P.scrollOffset,E=P.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var I=this._outerRef;if(x==="horizontal"||C==="horizontal")if(x==="rtl")switch(R$()){case"negative":I.scrollLeft=-w;break;case"positive-ascending":I.scrollLeft=w;break;default:var _=I.clientWidth,k=I.scrollWidth;I.scrollLeft=k-_-w;break}else I.scrollLeft=w;else I.scrollTop=w}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&T$(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,x=g.children,C=g.className,P=g.direction,w=g.height,E=g.innerRef,I=g.innerElementType,_=g.innerTagName,k=g.itemCount,$=g.itemData,T=g.itemKey,O=T===void 0?vge:T,N=g.layout,V=g.outerElementType,j=g.outerTagName,L=g.style,D=g.useIsScrolling,B=g.width,W=this.state.isScrolling,A=P==="horizontal"||N==="horizontal",z=A?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),q=G[0],X=G[1],ie=[];if(k>0)for(var ee=q;ee<=X;ee++)ie.push(u.createElement(x,{data:$,key:O(ee,$),index:ee,isScrolling:D?W:void 0,style:this._getItemStyle(ee)}));var se=r(this.props,this._instanceProps);return u.createElement(V||j||"div",{className:C,onScroll:z,ref:this._outerRefSetter,style:S({position:"relative",height:w,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:P},L)},u.createElement(I||_||"div",{children:ie,ref:E,style:{height:A?"100%":se,pointerEvents:W?"none":void 0,width:A?se:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var x=this._getRangeToRender(),C=x[0],P=x[1],w=x[2],E=x[3];this._callOnItemsRendered(C,P,w,E)}}if(typeof this.props.onScroll=="function"){var I=this.state,_=I.scrollDirection,k=I.scrollOffset,$=I.scrollUpdateWasRequested;this._callOnScroll(_,k,$)}},v._getRangeToRender=function(){var g=this.props,x=g.itemCount,C=g.overscanCount,P=this.state,w=P.isScrolling,E=P.scrollDirection,I=P.scrollOffset;if(x===0)return[0,0,0,0];var _=s(this.props,I,this._instanceProps),k=a(this.props,_,I,this._instanceProps),$=!w||E==="backward"?Math.max(1,C):1,T=!w||E==="forward"?Math.max(1,C):1;return[Math.max(0,_-$),Math.max(0,Math.min(x-1,k+T)),_,k]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bge=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},wge=yge({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){var i=t.direction,s=t.height,a=t.itemCount,c=t.itemSize,f=t.layout,p=t.width,h=i==="horizontal"||f==="horizontal",m=h?p:s,v=Math.max(0,a*c-m),b=Math.min(v,n*c),g=Math.max(0,n*c-m+c);switch(r==="smart"&&(o>=g-m&&o<=b+m?r="auto":r="center"),r){case"start":return b;case"end":return g;case"center":{var x=Math.round(g+(b-g)/2);return x<Math.ceil(m/2)?0:x>v+Math.floor(m/2)?v:x}case"auto":default:return o>=g&&o<=b?o:o<g?g:b}},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,f=t.width,p=o==="horizontal"||c==="horizontal",h=n*a,m=p?f:i,v=Math.ceil((m+r-h)/a);return Math.max(0,Math.min(s-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function VF({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:i=""}){const[s,a]=u.useState(i),[c,f]=u.useState(!1),p=u.useRef(!1);u.useEffect(()=>{Ot("resolve_path",{path:i,closestFolder:!0}).then(V=>{typeof V.path=="string"&&(a(V.path),p.current=V.path[1]===":")}).finally(()=>f(!0))},[i]);const{list:h,error:m,loading:v}=Ba(c&&"ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{g([]),C("")},[s]);const[b,g]=u.useState([]),[x,C]=u.useState(""),P=u.useMemo(()=>Qt.debounce(V=>C(V)),[]),w=u.useMemo(()=>{const V=new RegExp(Qt.escapeRegExp(x),"i");return j=>V.test(j)},[x]),[E,I]=u.useState(0),_=u.useMemo(()=>h.filter(V=>w(V.n)),[h,w]);if(v)return CL();const k=p.current?"":"/",$=p.current?"\\":"/",T=coe($,s),O=s.length<2;return u.createElement(u.Fragment,{},u.createElement(it,{display:"flex",gap:1},u.createElement(cr,{title:"root",disabled:O,onClick(){a(k)}},u.createElement(NA)),u.createElement(cr,{disabled:O,title:"parent folder",onClick(){const V=/[\\/]$/.test(s)?s.slice(0,-1):s,j=xL(V)?k:V.slice(0,V.lastIndexOf($)||1);a(j)}},u.createElement(FA)),u.createElement(zo,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(V){return ot(this,null,function*(){if(!V)return a(k);const j=yield Ot("resolve_path",{path:V});a(j.path)})}})),m?u.createElement(Yo,{severity:"error"},SL(m)):u.createElement(u.Fragment,{},u.createElement(it,{ref(V){if(!V)return;const j=(V==null?void 0:V.clientHeight)-1;j-E>1&&I(j)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(wge,{width:"100%",height:E,itemSize:46,itemCount:_.length,overscanCount:5,children({index:V,style:j}){const L=_[V],D=L.k==="d";return u.createElement(ur,{style:Ut(Le({},j),{padding:0}),key:L.n,onClick(){D?a(T+L.n):e([T+L.n])}},t&&u.createElement(vO,{checked:b.includes(L.n),disabled:!r&&D,onClick(B){const W=L.n,A=b.filter(z=>z!==W);g(A.length<b.length?A:[...b,W]),B.stopPropagation()}}),u.createElement(LO,{},u.createElement(L.k?jF:HF)),u.createElement(cv,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},L.n),!D&&L.s!==void 0&&u.createElement(Cr,{variant:"body2",color:"text.secondary",ml:4,mr:1},$u(L.s)))}}):u.createElement(fx,{flex:1,mt:"4em"},"No elements in this folder")),u.createElement(it,{display:"flex",gap:1},(t||r||!n)&&u.createElement(cr,{variant:"contained",disabled:!s||!r&&!b.length&&n,sx:{minWidth:"max-content"},onClick(){e(b.length?b.map(V=>T+V):[s])}},n&&(b.length||!r)?`Select (${b.length})`:"Select this folder"),u.createElement(tp,{value:x,label:`Filter results (${_.length}${_.length<h.length?"/"+h.length:""})`,onChange(V){P(V.target.value)},sx:{flex:1}}))))}function ef(c){var f=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=f,a=cn(f,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=vu("md");return u.createElement(zo,Ut(Le({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(zm,{position:"end"},u.createElement(Fn,{icon:AA,title:"Browse files...",edge:"end",onClick(){const h=wi({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(VF,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(v){return ot(this,null,function*(){var x;let b=v==null?void 0:v[0];if(!b)return;const g=(x=yield Ot("get_cwd"))==null?void 0:x.path;b.startsWith(g)&&(b=b.slice(g.length+1)||"."),t(b,{was:e,event:"picker"}),h()})}})}})}}))}}))}var yS={},Cge=st;Object.defineProperty(yS,"__esModule",{value:!0});var UF=yS.default=void 0,xge=Cge(dt()),Sge=at(),Ege=(0,xge.default)((0,Sge.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");UF=yS.default=Ege;var bS={},Pge=st;Object.defineProperty(bS,"__esModule",{value:!0});var WF=bS.default=void 0,kge=Pge(dt()),Ige=at(),_ge=(0,kge.default)((0,Ige.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");WF=bS.default=_ge;function $ge(){var C,P,w;const e=" — ",{username:t}=Bl(),{data:n,reload:r,element:o}=Ki("get_status"),{data:i}=Ki("get_vfs"),[s]=ip(t&&"get_account"),{data:a,reload:c}=Ki("get_config",{only:["https_port","cert","private_key","proxies","ignore_proxies"]}),{list:f}=Ba("get_plugins");if(o||!n)return o;const{http:p,https:h}=n,m=!(p!=null&&p.listening)&&(h!=null&&h.listening)?"s":"",v=m?h:(p==null?void 0:p.listening)&&p,b=v&&`http${m}://`+window.location.hostname+(v.port===(m?443:80)?"":":"+v.port),g=uL(n,I=>I.busy?[`port ${I.port} already used by ${I.busy}${e}choose a `,zh("different port"),` or stop ${I.busy}`]:I.error),x=g&&Ea(Object.entries(g).map(([I,_])=>_&&[rl(`Protocol _${I}_ cannot work: `),_,(wS(_)||CS(_))&&[e,u.createElement(_f,{sx:{cursor:"pointer"},onClick(){xS().then(c).then(r)}},"make one")," or ",e,zh("provide adequate files")]]));return u.createElement(it,{display:"flex",gap:2,flexDirection:"column"},t&&$i("","Welcome "+t),x.length?Hm(x.map(I=>$i("error",Hm(I)))):$i("success","Server is working"),i?!((P=(C=i.root)==null?void 0:C.children)!=null&&P.length)&&!((w=i.root)!=null&&w.source)?$i("warning","You have no files shared",e,Mge("add some")):$i("",rl("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(_f,{target:"frontend",href:"/"},"Frontend",u.createElement(WF,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(FJ),!b&&$i("warning","Frontend unreachable: ",["http","https"].map(I=>I+" "+(g[I]?"is in error":"is off")).join(", "),!x.length&&[e,zh("switch http or https on")]),f.find(I=>I.badApi)&&$i("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&$i("",rl("On _localhost_ you don't need to login"),e,u.createElement(dx,{to:"accounts"},rl("to access from another computer create an account with /admin/ permission"))),GF(a,n)&&$i("warning","A proxy was detected but none is configured",e,zh("set the number of proxies"),e,"unless you are sure you can ",u.createElement(cr,{onClick(){return ot(this,null,function*(){(yield ws("Go on only if you know what you are doing"))&&(yield Ot("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning")),n.frpDetected&&$i("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",{},rl("configure FRP to connect to HFS _not_ with 127.0.0.1 (safe, but you won't see users' IPs)")),u.createElement("li",{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))))}function $i(e,...t){return u.createElement(it,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:UF,info:du,"":du,warning:XC,error:dv}[e],{sx:{mb:"-3px",mr:1}}),...t)}function Mge(e="File System page"){return u.createElement(dx,{to:"fs"},e)}function zh(e="Configuration page"){return u.createElement(dx,{to:"configuration"},e)}function GF(e,t){return e&&!e.proxies&&!e.ignore_proxies&&(t==null?void 0:t.proxyDetected)}let Cl,qb;const KF=_u({changes:{}});ix(En,"config",qF);const og={log:"Access log file",error_log:"Access error log file"};function Tge(){var m;const{data:e,reload:t,element:n}=Ki("get_config",{omit:["vfs"]});let r=Bl();const{changes:o}=fv(KF),i=Ki(e&&"get_status"),s=i.data,a=qb=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>qb=void 0,[]);const c=(m=ip("get_admins")[0])==null?void 0:m.list;if(n)return n;if(i.error)return i.element;const f=Cl!==e?En.config=Cl=e:r.config,p={comp:Js,min:1,placeholder:"no limit"};return u.createElement(rp,{sx:{maxWidth:"60em"},values:f,set(v,b){En.config[b]=v},stickyBar:!0,onError:dr,save:{onClick:h,sx:ux(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(cr,{onClick(){t(),a()},startIcon:u.createElement(op)},"Reload")],defaults({comp:v}){return v===i1?{sm:6,md:3}:v===Js?{sm:3}:{sm:6}},fields:[{k:"port",comp:i1,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:i1,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(v){return v>=0&&f.https_port<0&&!f.cert&&Oge(),v}},Ut(Le({k:"max_kbps"},p),{label:"Limit output KB/s",helperText:"Doesn't apply to localhost"}),Ut(Le({k:"max_kbps_per_ip"},p),{label:"Limit output KB/s per-ip"}),f.https_port>=0&&Le({k:"cert",comp:ef,label:"HTTPS certificate file"},R_(s==null?void 0:s.https.error,v=>wS(v)?{error:!0,helperText:[v," - ",u.createElement(_f,{key:"fix",sx:{cursor:"pointer"},onClick:xS},"make one")]}:null)),f.https_port>=0&&Le({k:"private_key",comp:ef,label:"HTTPS private key file"},R_(s==null?void 0:s.https.error,v=>CS(v)?{error:!0,helperText:v}:null)),{k:"open_browser_at_start",comp:gu},{k:"localhost_admin",comp:gu,label:"Admin access for localhost connections",getError:v=>!v&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"To access Admin without entering credentials"},{k:"log",label:og.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:og.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:Mu,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To avoid an endlessly-growing single log file, you can opt for rotation"},{k:"proxies",comp:Js,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:GF(f,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:Rge},{k:"delete_unfinished_uploads_after",comp:Js,sm:6,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Js,sm:6,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"zip_calculate_size_for_seconds",comp:Js,sm:6,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"favicon",comp:ef,sm:6,md:6,fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"custom_header",multiline:!0,sm:12,md:6,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Any HTML code here will be displayed on top of the Frontend"},{k:"mime",comp:aie,keyLabel:"Files",keyWidth:7,valueLabel:"Mime type",valueWidth:4},{k:"block",label:"Blocked IPs",multiline:!0,minRows:3,helperText:"Enter an IP address for each line. CIDR and * are supported.",fromField:v=>v.split(`
|
|
413
|
+
`).map(b=>b.trim()).filter(Boolean).map(b=>({ip:b})),toField:v=>Array.isArray(v)?v.map(b=>b==null?void 0:b.ip).filter(Boolean).join(`
|
|
414
|
+
`):""}]});function h(){return ot(this,null,function*(){if(Qt.isEmpty(o))return gi("Nothing to save");const v=window.location,b=v.protocol==="http:"?o.port:o.https_port;if(!(b<=0&&!(yield ws("You are switching off the server port and you will be disconnected")))&&!(b>0&&!(yield ws("You are changing the port and you may be disconnected")))&&!(v.protocol==="https:"&&("cert"in o||"private_key"in o)&&!(yield ws("You may disrupt https service, kicking you out")))){if(yield Ot("set_config",{values:o}),b>0)return yield dr("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=v.protocol+"//"+v.hostname+":"+b+v.pathname;setTimeout(a,"port"in o||"https_port"in o?1e3:0),Object.assign(Cl,o),qF(),gi("Changes applied","success")}})}}function qF(){const e={};if(En.config)for(const[t,n]of Object.entries(En.config))JSON.stringify(n)!==JSON.stringify(Cl==null?void 0:Cl[t])&&(e[t]=n);KF.changes=e}function wS(e){return/certificate/.test(e)}function CS(e){return/private key/.test(e)}function i1({label:e,value:t,onChange:n,getApi:r,status:o,suggestedPort:i=1,error:s,helperText:a}){const c=u.useRef(i);t>0&&(c.current=t);const f=Number(t>0?c.current:t)||0;let p=o==null?void 0:o.error;return p&&(wS(p)||CS(p)?p=void 0:s=!0),u.createElement(it,{},u.createElement(it,{display:"flex"},u.createElement(Mu,{sx:{flexGrow:1},label:e,error:s,value:f,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:c.current}],onChange:n}),t>0&&u.createElement(Js,{label:"Number",fullWidth:!1,value:t,onChange:n,getApi:r,error:s,min:1,max:65535,helperText:a,sx:{minWidth:"5.5em"}})),o&&u.createElement(lv,{error:s},o===!0?"...":p!=null?p:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function Rge({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(it,{display:"flex"},u.createElement(Mu,{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(zo,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:"Masks supported"}))}function Oge(){wi({Content:()=>u.createElement(it,{},u.createElement(it,{display:"flex",gap:1},u.createElement(du),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(it,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(cr,{variant:"contained",onClick(){yi(),xS().then()}},"Help me!"),u.createElement(cr,{onClick:yi},"I will handle the matter myself")))})}function xS(){return ot(this,null,function*(){if(!window.crypto.subtle)return dr("Retry this procedure on localhost","warning");const e=yield $f({fields:[u.createElement(it,{display:"flex",gap:1},u.createElement(du),"We'll generate a basic certificate for you"),{k:"commonName",label:"Enter a domain, or leave empty"}],save:{children:"Continue"}});if(!e)return;const t=_ie();try{const n=yield Ot("save_pem",yield Lge(e));yield Ot("set_config",{values:n}),Cl&&Object.assign(Cl,n),setTimeout(qb,1e3),Object.assign(En.config,n),yield dr("Certificate saved","success")}finally{t()}})}function Lge(e){return ot(this,null,function*(){const{pki:t}=window.forge,n=t.rsa.generateKeyPair(2048),r=t.createCertificate();r.publicKey=n.publicKey,r.serialNumber="01",r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.validity.notAfter.setFullYear(r.validity.notBefore.getFullYear()+1);const o=Object.entries(e).map(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 SS={},Age=st;Object.defineProperty(SS,"__esModule",{value:!0});var YF=SS.default=void 0,Fge=Age(dt()),Nge=at(),Dge=(0,Fge.default)((0,Nge.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");YF=SS.default=Dge;var ES={},Bge=st;Object.defineProperty(ES,"__esModule",{value:!0});var XF=ES.default=void 0,zge=Bge(dt()),jge=at(),Hge=(0,zge.default)((0,jge.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");XF=ES.default=Hge;var PS={},Vge=st;Object.defineProperty(PS,"__esModule",{value:!0});var QF=PS.default=void 0,Uge=Vge(dt()),Wge=at(),Gge=(0,Uge.default)((0,Wge.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");QF=PS.default=Gge;var kS={},Kge=st;Object.defineProperty(kS,"__esModule",{value:!0});var JF=kS.default=void 0,qge=Kge(dt()),Yge=at(),Xge=(0,qge.default)((0,Yge.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");JF=kS.default=Xge;function Qge({account:e,done:t,groups:n,addToBar:r,reload:o}){const[i,s]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var v,b;s(e),c(n.filter(g=>g!==e.username)),Cie()||(b=(v=h.current)==null?void 0:v.querySelector("input"))==null||b.focus()},[JSON.stringify(e)]);const f=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(rp,{formRef:h,values:i,set(v,b){s(Ut(Le({},i),{[b]:v}))},barSx:Le({gap:2,width:"100%"},ax()),stickyBar:!0,addToBar:[!f&&u.createElement(Fn,{icon:Ci,title:"Delete",confirm:"Delete?",onClick:()=>Ot("del_account",{username:e.username}).then(()=>o())}),r,u.createElement(it,{flex:1}),ZF(i,{fontSize:"large",sx:{p:1}})],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:v=>v!==e.username&&Ot("get_account",{username:v}).then(b=>b.username===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:f,label:f?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:b})=>(v||"")!==(b.password||"")&&"Enter same password"},{k:"ignore_limits",comp:gu,xl:6,helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},Le({k:"admin",comp:gu,xl:6,fromField:v=>v||null,label:"Permission to access Admin-panel",helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),{k:"belongs",comp:nx,label:"Inherits from",options:a,helperText:"Specify groups to inherit permissions from."+(a.length?"":" There are no groups available, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:dr,save:{sx:ux(!cx(i,e)),onClick(){return ot(this,null,function*(){const w=i,{password:v="",password2:b,adminActualAccess:g}=w,x=cn(w,["password","password2","adminActualAccess"]),{username:C}=i;if(f){const E=yield Ot("add_account",x);if(v)try{yield O$(C,v)}catch(I){throw Ot("del_account",{username:C}).then(),I}t(E.username),gi("Account created","success");return}const P=yield Ot("set_account",{username:e.username,changes:x});v&&(yield O$(C,v)),setTimeout(()=>gi("Account modified","success"),1),t(P.username)})}}})}function O$(e,t){return ot(this,null,function*(){const n=new ma.SRPRoutines(new ma.SRPParameters),r=yield ma.createVerifierAndSalt(n,e,t);return Ot("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return Ot("change_password_others",{username:e,newPassword:t})})})}function Jge(){const{username:e}=Bl(),{data:t,reload:n,element:r}=Ki("get_accounts"),[o,i]=u.useState([]),s=Array.isArray(o);u.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&s&&i(o.filter(b=>t.list.find(g=>(g==null?void 0:g.username)===b)))},[t]);const a=t==null?void 0:t.list,c=s&&Qt.find(a,{username:o[0]});function f(){i([])}const h=vu("md"),m=!(o.length>0)||!a?null:s&&o.length>1?u.createElement(u.Fragment,{},u.createElement(lx,{alignItems:"center"},u.createElement(Cr,{variant:"h6"},o.length+" selected"),u.createElement(cr,{onClick:v,startIcon:u.createElement(Ci)},"Remove")),u.createElement(av,{},o.map(b=>u.createElement(OO,{key:b},u.createElement(cv,{},b))))):u.createElement(Qge,{account:c||{username:"",hasPassword:o==="new-user"},groups:a.filter(b=>!b.hasPassword).map(b=>b.username),addToBar:h&&u.createElement(Fn,{icon:np,title:"Close",onClick:f}),reload:n,done(b){i([b]),n()}});return u.useEffect(()=>{if(!(h||!m||!o.length))return wi({title:Qt.isString(o)?Qt.startCase(o):o.length>1?"Multiple selection":c?(c.hasPassword?"User: ":"Group: ")+c.username:"?",Content:()=>m,onClose:f})},[h,o,c]),r||u.createElement(Vn,{container:!0,maxWidth:"80em"},u.createElement(Vn,{item:!0,xs:12},u.createElement(it,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(YA,{variant:"contained",startIcon:u.createElement(JF),items:[{children:"user",onClick:()=>i("new-user")},{children:"group",onClick:()=>i("new-group")}]},"Add"),u.createElement(Fn,{icon:op,title:"Reload",onClick:n}),(a==null?void 0:a.length)>0&&u.createElement(Cr,{p:1},`${a.length} account(s)`))),u.createElement(Vn,{item:!0,md:5},!(a!=null&&a.length)&&u.createElement(Yo,{severity:"info"},rl`To access administration _remotely_ you will need to create a user account with admin permission`),u.createElement(mL,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:s?o:[],onNodeSelect(b,g){i(g)}},a==null?void 0:a.map(b=>{var g,x;return u.createElement($b,{key:b.username,nodeId:b.username,label:u.createElement(it,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},ZF(b),b.adminActualAccess&&lo(XF,"Can login into Admin"),b.username,Boolean((g=b.belongs)==null?void 0:g.length)&&u.createElement(it,{sx:{color:"text.secondary",fontSize:"small"}},"(",(x=b.belongs)==null?void 0:x.join(", "),")"))})}))),h&&m&&u.createElement(Vn,{item:!0,md:7},u.createElement(hO,{},u.createElement(mO,{},m))));function v(){return ot(this,null,function*(){if(o.length>Qt.pull(o,e).length&&(yield dr("Won't delete current account","warning")),!!o.length&&(yield ws(`Delete ${o.length} item(s)?`)))try{const b=[];for(const g of o)(yield Ot("del_account",{username:g}).then(()=>1,()=>0))||b.push(g);if(n(),b.length)return dr("Following elements couldn't be deleted: "+b.join(", "),"error")}catch(b){yield dr(b)}})}}function ZF(e,t={}){return u.createElement(e.hasPassword?QF:YF,t)}function Zge(){const{element:e}=Ki("get_config",{only:[]}),{username:t}=Bl();return e||(t?u.createElement(it,{display:"flex",flexDirection:"column",gap:2},"You are logged in as "+t,u.createElement(it,{},u.createElement(cr,{size:"large",variant:"contained",onClick(){Ot("logout").catch(n=>n.code!==401&&dr(n))}},"Yes, I want to logout"))):u.createElement(Yo,{severity:"info"},"You are not logged in, because authentication is not required on localhost"))}function eve(){const{list:e,error:t,connecting:n,reload:r}=Ba("get_langs",void 0,{addId:!0});if(t)return t;return u.createElement(u.Fragment,{},u.createElement(Yo,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(Yo,{severity:"info"},"The front-end will automatically apply translation based on the language of the browser. You can force loading of a specific language by appending ?lang=CODE to the URL."),u.createElement(it,{mb:1},u.createElement(cr,{variant:"contained",startIcon:u.createElement(eS),onClick:o},"Add")),u.createElement(Lu,{loading:n,rows:e,hideFooter:!0,sx:{maxWidth:"40em"},columns:[{field:"code",width:80},{field:"version",width:80},{field:"author",flex:1},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:i}){return u.createElement("div",{},u.createElement(Fn,{icon:Ci,title:"Delete",confirm:"Delete?",onClick(){return ot(this,null,function*(){yield Ot("del_lang",Qt.pick(i,"code")),r(),gi("Deleted")})}}))}}]}));function o(){hoe(i=>ot(this,null,function*(){if(!i)return;const s={};for(const a of i)s[a.name]=yield moe(a);yield Ot("add_langs",{langs:s}),r(),gi("Loaded")}))}}function tve(){const[e,t]=u.useState(0),n=Mie(og);return u.createElement(u.Fragment,{},u.createElement(WO,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(VO,{label:og[r],key:r}))),u.createElement(nve,{key:e,file:n[e]}))}function nve({file:e}){const{list:t,error:n,connecting:r}=Ba("get_log",{file:e},{addId:!0});return n||u.createElement(Lu,{loading:r,rows:t,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230},{field:"user",headerName:"Username",flex:.4,maxWidth:200},{field:"ts",headerName:"Timestamp",type:"dateTime",width:170,valueFormatter:({value:o})=>new Date(o).toLocaleString()},{field:"method",headerName:"Method",width:80},{field:"status",headerName:"Code",type:"number",width:70},{field:"length",headerName:"Size",type:"number",valueFormatter:({value:o})=>$u(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100}]})}var IS={},rve=st;Object.defineProperty(IS,"__esModule",{value:!0});var eN=IS.default=void 0;sve(u);var ove=rve(dt()),ive=at();function tN(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(tN=function(r){return r?n:t})(e)}function sve(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=tN(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var lve=(0,ove.default)((0,ive.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");eN=IS.default=lve;var _S={},ave=st;Object.defineProperty(_S,"__esModule",{value:!0});var Yb=_S.default=void 0,cve=ave(dt()),uve=at(),dve=(0,cve.default)((0,uve.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");Yb=_S.default=dve;var $S={},fve=st;Object.defineProperty($S,"__esModule",{value:!0});var nN=$S.default=void 0,pve=fve(dt()),hve=at(),mve=(0,pve.default)((0,hve.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");nN=$S.default=mve;var MS={},gve=st;Object.defineProperty(MS,"__esModule",{value:!0});var rN=MS.default=void 0,vve=gve(dt()),yve=at(),bve=(0,vve.default)((0,yve.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");rN=MS.default=bve;function oN(c){var f=c,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,getApi:s}=f,a=cn(f,["label","helperText","fields","value","onChange","onError","getApi"]);const p=u.useMemo(()=>(r||[]).map((m,v)=>doe(Le({},m),"id"in m?{$idx:v}:{id:v})),[JSON.stringify(r)]),h=u.useMemo(()=>[...n.map(m=>{var v;return Le(Le({field:m.k,headerName:(v=m.headerName)!=null?v:typeof m.label=="string"?m.label:vL(m.k),disableColumnMenu:!0},m.$width>=8?{width:m.$width}:{flex:m.$width||1}),m.$column)}),{field:"",width:80,disableColumnMenu:!0,sortable:!1,align:"center",headerAlign:"center",renderHeader(){return u.createElement(Fn,{icon:bv,title:"Add",onClick:m=>$f({fields:n}).then(v=>v&&o([...r||[],v],{was:r,event:m}))})},renderCell({row:m}){const{$idx:v=m.id}=m;return u.createElement("div",{},u.createElement(Fn,{icon:rN,title:"Modify",onClick:b=>$f({fields:n,values:m}).then(g=>{if(!g)return;const x=r.map((C,P)=>P===v?g:C);o(x,{was:r,event:b})})}),u.createElement(Fn,{icon:Ci,title:"Delete",confirm:"Delete?",onClick(b){const g=r.filter((x,C)=>C!==v);o(g,{was:r,event:b})}}))}}],[n,r,o]);return u.createElement(u.Fragment,{},e&&u.createElement(EO,{sx:{ml:1}},e),t&&u.createElement(lv,{},t),u.createElement(it,Le({height:"20em"},a),u.createElement(Lu,{columns:h,rows:p,hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}}})))}function L$({updates:e}){const{list:t,setList:n,error:r,initializing:o}=Ba(e?"get_plugin_updates":"get_plugins");return r?lN(r):u.createElement(Lu,{rows:t.length?t:[],loading:o,disableColumnSelector:!0,disableColumnMenu:!0,columnVisibilityModel:{started:!e},localeText:e&&{noRowsLabel:"No updates available. Only online plugins are checked."},columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell({row:i,value:s}){return u.createElement(u.Fragment,{},s,typeof i.badApi=="string"&&u.createElement(uv,{title:i.badApi,children:u.createElement(dv,{color:"warning",sx:{ml:1}})}),sN(i.repo))}},{field:"version",width:70},{field:"description",flex:1},{field:"actions",width:120,align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:i}){const{config:s,id:a}=i;return e?u.createElement(aN,{id:a,then:()=>n(t.filter(p=>p.id!==a))}):u.createElement("div",{},u.createElement(Fn,i.started?{icon:Yb,title:u.createElement(it,{},`Stop ${a}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),color:"success",onClick:()=>Ot("set_plugin",{id:a,enabled:!1}).then(()=>gi("Plugin is stopping",u.createElement(Yb,{color:"warning"})))}:{icon:wv,title:`Start ${a}`,onClick:()=>cN(a)}),u.createElement(Fn,{icon:HC,title:"Configuration",disabled:!s&&"No configuration available for this plugin",onClick(){return ot(this,null,function*(){const p=yield Ot("get_plugin",{id:a}),h=yield $f(Le({title:`${a} configuration`,fields:[u.createElement(it,{},i.description),...iN(s)],values:p.config},i.configDialog));!h||Qt.isEqual(p.config,h)||(yield Ot("set_plugin",{id:a,config:h}),gi("Configuration saved"))})}}),u.createElement(Fn,{icon:Ci,title:"Uninstall",confirm:"Remove?",onClick(){return ot(this,null,function*(){yield Ot("uninstall_plugin",{id:a}),gi("Plugin uninstalled")})}}))}}]})}function iN(e){return Object.entries(e).map(([t,n])=>{if(!Qt.isPlainObject(n))return n;let c=n,{type:r,defaultValue:o,fields:i}=c,s=cn(c,["type","defaultValue","fields"]);const a=wve[r];return a===oN&&(i=iN(i)),o!==void 0&&r==="boolean"&&(s.placeholder=`Default value is ${JSON.stringify(o)}`),Le({k:t,comp:a,fields:i},s)})}const wve={string:zo,number:Js,boolean:gu,select:Mu,multiselect:nx,array:oN,real_path:ef};function sN(e){return e&&u.createElement(Fn,{icon:eN,title:"Open web page",link:"https://github.com/"+e})}function lN(e){return u.createElement(Yo,{severity:"error"},Oie(e,{ENOTFOUND:"Couldn't reach github.com"}))}function aN({id:e,then:t}){return u.createElement(Fn,{icon:nN,title:"Update",onClick(){return ot(this,null,function*(){yield Ot("update_plugin",{id:e}),t==null||t(e),gi("Plugin updated")})}})}function cN(e){return Ot("set_plugin",{id:e,enabled:!0}).then(()=>gi("Plugin is starting",u.createElement(wv,{color:"success"})))}var TS={},Cve=st;Object.defineProperty(TS,"__esModule",{value:!0});var uN=TS.default=void 0,xve=Cve(dt()),Sve=at(),Eve=(0,xve.default)((0,Sve.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");uN=TS.default=Eve;var RS={},Pve=st;Object.defineProperty(RS,"__esModule",{value:!0});var dN=RS.default=void 0,kve=Pve(dt()),Ive=at(),_ve=(0,kve.default)((0,Ive.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");dN=RS.default=_ve;function $ve(e,t,n){var r=this,o=u.useRef(null),i=u.useRef(0),s=u.useRef(null),a=u.useRef([]),c=u.useRef(),f=u.useRef(),p=u.useRef(e),h=u.useRef(!0);p.current=e;var m=!t&&t!==0&&typeof window!="undefined";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,n=n||{};var v=!!n.leading,b="trailing"in n?!!n.trailing:!0,g="maxWait"in n,x=g?Math.max(+n.maxWait||0,t):null;u.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var C=u.useMemo(function(){var P=function($){var T=a.current,O=c.current;return a.current=c.current=null,i.current=$,f.current=p.current.apply(O,T)},w=function($,T){m&&cancelAnimationFrame(s.current),s.current=m?requestAnimationFrame($):setTimeout($,T)},E=function($){if(!h.current)return!1;var T=$-o.current,O=$-i.current;return!o.current||T>=t||T<0||g&&O>=x},I=function($){return s.current=null,b&&a.current?P($):(a.current=c.current=null,f.current)},_=function(){var $=Date.now();if(E($))return I($);if(h.current){var T=$-o.current,O=$-i.current,N=t-T,V=g?Math.min(N,x-O):N;w(_,V)}},k=function(){for(var $=[],T=0;T<arguments.length;T++)$[T]=arguments[T];var O=Date.now(),N=E(O);if(a.current=$,c.current=r,o.current=O,N){if(!s.current&&h.current)return i.current=o.current,w(_,t),v?P(o.current):f.current;if(g)return w(_,t),P(o.current)}return s.current||w(_,t),f.current};return k.cancel=function(){s.current&&(m?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=c.current=s.current=null},k.isPending=function(){return!!s.current},k.flush=function(){return s.current?I(Date.now()):f.current},k},[v,g,t,x,b,m]);return C}function Mve(e,t){return e===t}function A$(e){return typeof e=="function"?function(){return e}:e}function Tve(e){var t=u.useState(A$(e)),n=t[0],r=t[1],o=u.useCallback(function(i){return r(A$(i))},[]);return[n,o]}function Rve(e,t,n){var r=n&&n.equalityFn||Mve,o=Tve(e),i=o[0],s=o[1],a=$ve(u.useCallback(function(f){return s(f)},[s]),t,n),c=u.useRef(e);return r(c.current,e)||(a(e),c.current=e),[i,a]}function Ove(){const[e,t]=u.useState(""),[n]=Rve(e,1e3),{list:r,error:o,initializing:i,updateList:s}=Ba("search_online_plugins",{text:n}),a=Bl();return o?lN(o):u.createElement(u.Fragment,{},u.createElement(zo,{value:e,onChange:t,start:u.createElement(dN),typing:!0,label:"Search text"}),u.createElement(Lu,{rows:r.length?r:[],localeText:{noRowsLabel:"No compatible plugins have been found"},loading:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign(En.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:c})=>new Date(c).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3},{field:"stargazers_count",width:50,headerName:"stars",align:"center"},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,hideable:!1,renderCell({row:c}){const{id:f,branch:p}=c;return u.createElement("div",{},sN(f),c.update?u.createElement(aN,{id:f,then(){s(m=>Qt.find(m,{id:f}).update=!1)}}):u.createElement(Fn,{icon:uN,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 ot(this,null,function*(){const{id:m}=yield Ot("download_plugin",{id:f,branch:p});(yield ws(rl(`Plugin /${f}/ installed.
|
|
415
|
+
Do you want to start it now?`)))&&(yield cN(m))})}}))}}]}))}const fN={Installed:L$,"Search online":Ove,"Check updates":()=>u.createElement(L$,{updates:!0})},Lve=Object.keys(fN),Ave=Object.values(fN);function Fve(){const[e,t]=u.useState(0);return u.createElement(u.Fragment,{},u.createElement(WO,{value:e,onChange(n,r){t(r)}},Lve.map(n=>u.createElement(VO,{label:n,key:n}))),u.createElement(Ave[e]))}const Xb=[{path:"",icon:JO,label:"Home",title:"Admin panel",comp:$ge},{path:"fs",icon:GO,label:"Shared files",comp:cge},{path:"accounts",icon:XO,comp:Jge},{path:"configuration",icon:HC,comp:Tge},{path:"monitoring",icon:QO,comp:jpe},{path:"logs",icon:qO,comp:tve},{path:"language",icon:ZO,comp:eve},{path:"plugins",icon:KO,comp:Fve},{path:"logout",icon:YO,comp:Zge}];let s1;function F$({onSelect:e}){var n;const[t]=ip(!s1&&"get_status");return s1||(s1=(n=t==null?void 0:t.version)==null?void 0:n.replace("-"," ")),u.createElement(it,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(av,{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(it,{display:"flex",px:2,py:1,gap:2,alignItems:"flex-end"},u.createElement(Cr,{variant:"h3"},"HFS"),u.createElement(it,{pb:1,fontSize:"small"},s1)),Xb.map(r=>u.createElement(aZ,{key:r.path,to:r.path,component:RH,onClick:e,style:({isActive:o})=>o?{textDecoration:"underline"}:{},children:void 0},r.icon&&u.createElement(LO,{sx:{color:"primary.contrastText"}},u.createElement(r.icon)),u.createElement(cv,{primary:pN(r)}))),u.createElement(it,{sx:{flex:1,opacity:.7,background:"url(hfs-logo.svg) no-repeat bottom",backgroundSize:"contain",margin:2}})))}function pN(e){var t;return e&&((t=e.label)!=null?t:Qt.capitalize(e.path))}function Nve({children:e}){const{loginRequired:t}=Bl();return t===403?u.createElement(fx,{},u.createElement(Yo,{severity:"error"},"Admin-panel only for localhost"),u.createElement(it,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(Dve):u.createElement(u.Fragment,{},e)}function Dve(){const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState("");return u.createElement(fx,{},u.createElement(rp,{values:e,set(i,s){t(Ut(Le({},e),{[s]:i}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(Yo,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return ot(this,null,function*(){try{r(""),yield Bve(e.username,e.password)}catch(i){r(String(i))}})}}}))}function Bve(e,t){return ot(this,null,function*(){const n=yield loe(e,t,Ot).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";En.loginRequired=!1,OS(n)})}OS(window.SESSION);function OS(e){if(!e)return;const{exp:t,username:n}=e;if(En.username=n,!n||!t)return;const r=new Date(t).getTime()-Date.now(),o=Math.min(r-3e4,6e5);console.debug("session refresh in",Math.round(o/1e3)),setTimeout(()=>Ot("refresh_session").then(OS),o)}var LS={},zve=st;Object.defineProperty(LS,"__esModule",{value:!0});var hN=LS.default=void 0,jve=zve(dt()),Hve=at(),Vve=(0,jve.default)((0,Hve.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");hN=LS.default=Vve;function Uve(){return u.createElement(IU,{theme:kie()},u.createElement(Wve,{},u.createElement(Nve,{},u.createElement(MH,{},u.createElement(Gve)))))}function Wve(e){return u.createElement(it,Le({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function Gve(){const e=Su().pathname.slice(1),t=Xb.find(s=>s.path===e),n=t&&(t.title||pN(t)),[r,o]=u.useState(!1),i=vu("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(Kve,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(mQ,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(F$,{onSelect:()=>o(!1)})),u.createElement(it,{display:"flex",flex:1},i&&u.createElement(F$),u.createElement(it,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:2,md:3},pb:"1em",position:"relative",display:"flex",flexDirection:"column",width:"100%"}},n&&i&&u.createElement(Cr,{variant:"h2",mb:2},n),u.createElement(IH,{},Xb.map((s,a)=>u.createElement(QT,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement(Qre)))}function Kve({title:e,openMenu:t}){return u.createElement(yq,{position:"sticky",sx:{mb:2}},u.createElement(UO,{},u.createElement(tr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(hN)),e))}GT(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(Uve)));export{uo as c};
|