diff --git a/.gitignore b/.gitignore index 6ded2333be4359e368cd95b5ce88749a14cc0761..24967db4d18458e99964e7ca913b79cc467e7252 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +dist \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..8d38cd1fe3fc76fa820a3a98480fcc26f4c7a9ae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +From node:23-alpine + +# Create app directory +RUN mkdir -p /app +WORKDIR /app + +COPY package.json /app +COPY yarn.lock /app + +RUN yarn install + +COPY . /app + +EXPOSE 3000 +ENTRYPOINT ["yarn", "vite", "preview"] diff --git a/dist/assets/favicon-B5-eEwAz.ico b/dist/assets/favicon-B5-eEwAz.ico new file mode 100644 index 0000000000000000000000000000000000000000..f8366cd63ac71c7e39a686d6773312550bff1977 Binary files /dev/null and b/dist/assets/favicon-B5-eEwAz.ico differ diff --git a/dist/assets/index-D3JcOubP.js b/dist/assets/index-D3JcOubP.js new file mode 100644 index 0000000000000000000000000000000000000000..9270e011d0734661ec7d487173e26797eeb8d410 --- /dev/null +++ b/dist/assets/index-D3JcOubP.js @@ -0,0 +1,263 @@ +var s6=Object.defineProperty;var l6=(e,t,r)=>t in e?s6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ru=(e,t,r)=>l6(e,typeof t!="symbol"?t+"":t,r);function R_(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(n,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>n[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"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var k_={exports:{}},Wg={},I_={exports:{}},Pr={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var eh=Symbol.for("react.element"),c6=Symbol.for("react.portal"),u6=Symbol.for("react.fragment"),d6=Symbol.for("react.strict_mode"),f6=Symbol.for("react.profiler"),p6=Symbol.for("react.provider"),h6=Symbol.for("react.context"),m6=Symbol.for("react.forward_ref"),v6=Symbol.for("react.suspense"),g6=Symbol.for("react.memo"),y6=Symbol.for("react.lazy"),t$=Symbol.iterator;function b6(e){return e===null||typeof e!="object"?null:(e=t$&&e[t$]||e["@@iterator"],typeof e=="function"?e:null)}var E_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O_=Object.assign,__={};function kd(e,t,r){this.props=e,this.context=t,this.refs=__,this.updater=r||E_}kd.prototype.isReactComponent={};kd.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")};kd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function D_(){}D_.prototype=kd.prototype;function PS(e,t,r){this.props=e,this.context=t,this.refs=__,this.updater=r||E_}var $S=PS.prototype=new D_;$S.constructor=PS;O_($S,kd.prototype);$S.isPureReactComponent=!0;var r$=Array.isArray,M_=Object.prototype.hasOwnProperty,RS={current:null},A_={key:!0,ref:!0,__self:!0,__source:!0};function j_(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)M_.call(t,n)&&!A_.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:eh,type:e,key:a,ref:i,props:o,_owner:RS.current}}function w6(e,t){return{$$typeof:eh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function kS(e){return typeof e=="object"&&e!==null&&e.$$typeof===eh}function x6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var n$=/\/+/g;function w0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?x6(""+e.key):t.toString(36)}function rv(e,t,r,n,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case eh:case c6:i=!0}}if(i)return i=e,o=o(i),e=n===""?"."+w0(i,0):n,r$(o)?(r="",e!=null&&(r=e.replace(n$,"$&/")+"/"),rv(o,t,r,"",function(c){return c})):o!=null&&(kS(o)&&(o=w6(o,r+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(n$,"$&/")+"/")+e)),t.push(o)),1;if(i=0,n=n===""?".":n+":",r$(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+w0(a,s);i+=rv(a,t,r,l,o)}else if(l=b6(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+w0(a,s++),i+=rv(a,t,r,l,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function im(e,t,r){if(e==null)return e;var n=[],o=0;return rv(e,n,"","",function(a){return t.call(r,a,o++)}),n}function S6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ta={current:null},nv={transition:null},C6={ReactCurrentDispatcher:ta,ReactCurrentBatchConfig:nv,ReactCurrentOwner:RS};function L_(){throw Error("act(...) is not supported in production builds of React.")}Pr.Children={map:im,forEach:function(e,t,r){im(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return im(e,function(){t++}),t},toArray:function(e){return im(e,function(t){return t})||[]},only:function(e){if(!kS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Pr.Component=kd;Pr.Fragment=u6;Pr.Profiler=f6;Pr.PureComponent=PS;Pr.StrictMode=d6;Pr.Suspense=v6;Pr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C6;Pr.act=L_;Pr.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=O_({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=RS.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)M_.call(t,l)&&!A_.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:eh,type:e.type,key:o,ref:a,props:n,_owner:i}};Pr.createContext=function(e){return e={$$typeof:h6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:p6,_context:e},e.Consumer=e};Pr.createElement=j_;Pr.createFactory=function(e){var t=j_.bind(null,e);return t.type=e,t};Pr.createRef=function(){return{current:null}};Pr.forwardRef=function(e){return{$$typeof:m6,render:e}};Pr.isValidElement=kS;Pr.lazy=function(e){return{$$typeof:y6,_payload:{_status:-1,_result:e},_init:S6}};Pr.memo=function(e,t){return{$$typeof:g6,type:e,compare:t===void 0?null:t}};Pr.startTransition=function(e){var t=nv.transition;nv.transition={};try{e()}finally{nv.transition=t}};Pr.unstable_act=L_;Pr.useCallback=function(e,t){return ta.current.useCallback(e,t)};Pr.useContext=function(e){return ta.current.useContext(e)};Pr.useDebugValue=function(){};Pr.useDeferredValue=function(e){return ta.current.useDeferredValue(e)};Pr.useEffect=function(e,t){return ta.current.useEffect(e,t)};Pr.useId=function(){return ta.current.useId()};Pr.useImperativeHandle=function(e,t,r){return ta.current.useImperativeHandle(e,t,r)};Pr.useInsertionEffect=function(e,t){return ta.current.useInsertionEffect(e,t)};Pr.useLayoutEffect=function(e,t){return ta.current.useLayoutEffect(e,t)};Pr.useMemo=function(e,t){return ta.current.useMemo(e,t)};Pr.useReducer=function(e,t,r){return ta.current.useReducer(e,t,r)};Pr.useRef=function(e){return ta.current.useRef(e)};Pr.useState=function(e){return ta.current.useState(e)};Pr.useSyncExternalStore=function(e,t,r){return ta.current.useSyncExternalStore(e,t,r)};Pr.useTransition=function(){return ta.current.useTransition()};Pr.version="18.3.1";I_.exports=Pr;var y=I_.exports;const No=Rd(y),gp=R_({__proto__:null,default:No},[y]);/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var T6=y,P6=Symbol.for("react.element"),$6=Symbol.for("react.fragment"),R6=Object.prototype.hasOwnProperty,k6=T6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,I6={key:!0,ref:!0,__self:!0,__source:!0};function N_(e,t,r){var n,o={},a=null,i=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)R6.call(t,n)&&!I6.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:P6,type:e,key:a,ref:i,props:o,_owner:k6.current}}Wg.Fragment=$6;Wg.jsx=N_;Wg.jsxs=N_;k_.exports=Wg;var v=k_.exports,_w={},F_={exports:{}},Ua={},B_={exports:{}},z_={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function t(M,K){var te=M.length;M.push(K);e:for(;0<te;){var oe=te-1>>>1,Ie=M[oe];if(0<o(Ie,K))M[oe]=K,M[te]=Ie,te=oe;else break e}}function r(M){return M.length===0?null:M[0]}function n(M){if(M.length===0)return null;var K=M[0],te=M.pop();if(te!==K){M[0]=te;e:for(var oe=0,Ie=M.length,Te=Ie>>>1;oe<Te;){var ke=2*(oe+1)-1,pe=M[ke],Pe=ke+1,Ae=M[Pe];if(0>o(pe,te))Pe<Ie&&0>o(Ae,pe)?(M[oe]=Ae,M[Pe]=te,oe=Pe):(M[oe]=pe,M[ke]=te,oe=ke);else if(Pe<Ie&&0>o(Ae,te))M[oe]=Ae,M[Pe]=te,oe=Pe;else break e}}return K}function o(M,K){var te=M.sortIndex-K.sortIndex;return te!==0?te:M.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(M){for(var K=r(c);K!==null;){if(K.callback===null)n(c);else if(K.startTime<=M)n(c),K.sortIndex=K.expirationTime,t(l,K);else break;K=r(c)}}function S(M){if(m=!1,g(M),!p)if(r(l)!==null)p=!0,V(R);else{var K=r(c);K!==null&&ee(S,K.startTime-M)}}function R(M,K){p=!1,m&&(m=!1,b(O),O=-1),h=!0;var te=f;try{for(g(K),d=r(l);d!==null&&(!(d.expirationTime>K)||M&&!D());){var oe=d.callback;if(typeof oe=="function"){d.callback=null,f=d.priorityLevel;var Ie=oe(d.expirationTime<=K);K=e.unstable_now(),typeof Ie=="function"?d.callback=Ie:d===r(l)&&n(l),g(K)}else n(l);d=r(l)}if(d!==null)var Te=!0;else{var ke=r(c);ke!==null&&ee(S,ke.startTime-K),Te=!1}return Te}finally{d=null,f=te,h=!1}}var T=!1,k=null,O=-1,E=5,C=-1;function D(){return!(e.unstable_now()-C<E)}function B(){if(k!==null){var M=e.unstable_now();C=M;var K=!0;try{K=k(!0,M)}finally{K?U():(T=!1,k=null)}}else T=!1}var U;if(typeof w=="function")U=function(){w(B)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,N=j.port2;j.port1.onmessage=B,U=function(){N.postMessage(null)}}else U=function(){x(B,0)};function V(M){k=M,T||(T=!0,U())}function ee(M,K){O=x(function(){M(e.unstable_now())},K)}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(M){M.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,V(R))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(M){switch(f){case 1:case 2:case 3:var K=3;break;default:K=f}var te=f;f=K;try{return M()}finally{f=te}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,K){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var te=f;f=M;try{return K()}finally{f=te}},e.unstable_scheduleCallback=function(M,K,te){var oe=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?oe+te:oe):te=oe,M){case 1:var Ie=-1;break;case 2:Ie=250;break;case 5:Ie=1073741823;break;case 4:Ie=1e4;break;default:Ie=5e3}return Ie=te+Ie,M={id:u++,callback:K,priorityLevel:M,startTime:te,expirationTime:Ie,sortIndex:-1},te>oe?(M.sortIndex=te,t(c,M),r(l)===null&&M===r(c)&&(m?(b(O),O=-1):m=!0,ee(S,te-oe))):(M.sortIndex=Ie,t(l,M),p||h||(p=!0,V(R))),M},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(M){var K=f;return function(){var te=f;f=K;try{return M.apply(this,arguments)}finally{f=te}}}})(z_);B_.exports=z_;var E6=B_.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var O6=y,Ba=E6;function et(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 V_=new Set,yp={};function Uc(e,t){ed(e,t),ed(e+"Capture",t)}function ed(e,t){for(yp[e]=t,e=0;e<t.length;e++)V_.add(t[e])}var Ks=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dw=Object.prototype.hasOwnProperty,_6=/^[: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]*$/,o$={},a$={};function D6(e){return Dw.call(a$,e)?!0:Dw.call(o$,e)?!1:_6.test(e)?a$[e]=!0:(o$[e]=!0,!1)}function M6(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function A6(e,t,r,n){if(t===null||typeof t>"u"||M6(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 ra(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var _o={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_o[e]=new ra(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_o[t]=new ra(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_o[e]=new ra(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_o[e]=new ra(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){_o[e]=new ra(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_o[e]=new ra(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_o[e]=new ra(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_o[e]=new ra(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_o[e]=new ra(e,5,!1,e.toLowerCase(),null,!1,!1)});var IS=/[\-:]([a-z])/g;function ES(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(IS,ES);_o[t]=new ra(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(IS,ES);_o[t]=new ra(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(IS,ES);_o[t]=new ra(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_o[e]=new ra(e,1,!1,e.toLowerCase(),null,!1,!1)});_o.xlinkHref=new ra("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_o[e]=new ra(e,1,!1,e.toLowerCase(),null,!0,!0)});function OS(e,t,r,n){var o=_o.hasOwnProperty(t)?_o[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(A6(t,r,o,n)&&(r=null),n||o===null?D6(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Js=O6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sm=Symbol.for("react.element"),$u=Symbol.for("react.portal"),Ru=Symbol.for("react.fragment"),_S=Symbol.for("react.strict_mode"),Mw=Symbol.for("react.profiler"),U_=Symbol.for("react.provider"),H_=Symbol.for("react.context"),DS=Symbol.for("react.forward_ref"),Aw=Symbol.for("react.suspense"),jw=Symbol.for("react.suspense_list"),MS=Symbol.for("react.memo"),vl=Symbol.for("react.lazy"),W_=Symbol.for("react.offscreen"),i$=Symbol.iterator;function tf(e){return e===null||typeof e!="object"?null:(e=i$&&e[i$]||e["@@iterator"],typeof e=="function"?e:null)}var Pn=Object.assign,x0;function _f(e){if(x0===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);x0=t&&t[1]||""}return` +`+x0+e}var S0=!1;function C0(e,t){if(!e||S0)return"";S0=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var o=c.stack.split(` +`),a=n.stack.split(` +`),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==a[s]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{S0=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?_f(e):""}function j6(e){switch(e.tag){case 5:return _f(e.type);case 16:return _f("Lazy");case 13:return _f("Suspense");case 19:return _f("SuspenseList");case 0:case 2:case 15:return e=C0(e.type,!1),e;case 11:return e=C0(e.type.render,!1),e;case 1:return e=C0(e.type,!0),e;default:return""}}function Lw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ru:return"Fragment";case $u:return"Portal";case Mw:return"Profiler";case _S:return"StrictMode";case Aw:return"Suspense";case jw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case H_:return(e.displayName||"Context")+".Consumer";case U_:return(e._context.displayName||"Context")+".Provider";case DS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case MS:return t=e.displayName||null,t!==null?t:Lw(e.type)||"Memo";case vl:t=e._payload,e=e._init;try{return Lw(e(t))}catch{}}return null}function L6(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 Lw(t);case 8:return t===_S?"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 Ll(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function G_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function N6(e){var t=G_(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lm(e){e._valueTracker||(e._valueTracker=N6(e))}function K_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=G_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function jv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nw(e,t){var r=t.checked;return Pn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function s$(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ll(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function q_(e,t){t=t.checked,t!=null&&OS(e,"checked",t,!1)}function Fw(e,t){q_(e,t);var r=Ll(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Bw(e,t.type,Ll(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function l$(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Bw(e,t,r){(t!=="number"||jv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Df=Array.isArray;function Uu(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ll(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function zw(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(et(91));return Pn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function c$(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(et(92));if(Df(r)){if(1<r.length)throw Error(et(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ll(r)}}function Y_(e,t){var r=Ll(t.value),n=Ll(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function u$(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function X_(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 Vw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?X_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cm,Q_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(cm=cm||document.createElement("div"),cm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=cm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Gf={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},F6=["Webkit","ms","Moz","O"];Object.keys(Gf).forEach(function(e){F6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gf[t]=Gf[e]})});function Z_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Gf.hasOwnProperty(e)&&Gf[e]?(""+t).trim():t+"px"}function J_(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Z_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var B6=Pn({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 Uw(e,t){if(t){if(B6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(et(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(et(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(et(61))}if(t.style!=null&&typeof t.style!="object")throw Error(et(62))}}function Hw(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 Ww=null;function AS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gw=null,Hu=null,Wu=null;function d$(e){if(e=nh(e)){if(typeof Gw!="function")throw Error(et(280));var t=e.stateNode;t&&(t=Xg(t),Gw(e.stateNode,e.type,t))}}function eD(e){Hu?Wu?Wu.push(e):Wu=[e]:Hu=e}function tD(){if(Hu){var e=Hu,t=Wu;if(Wu=Hu=null,d$(e),t)for(e=0;e<t.length;e++)d$(t[e])}}function rD(e,t){return e(t)}function nD(){}var T0=!1;function oD(e,t,r){if(T0)return e(t,r);T0=!0;try{return rD(e,t,r)}finally{T0=!1,(Hu!==null||Wu!==null)&&(nD(),tD())}}function wp(e,t){var r=e.stateNode;if(r===null)return null;var n=Xg(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(et(231,t,typeof r));return r}var Kw=!1;if(Ks)try{var rf={};Object.defineProperty(rf,"passive",{get:function(){Kw=!0}}),window.addEventListener("test",rf,rf),window.removeEventListener("test",rf,rf)}catch{Kw=!1}function z6(e,t,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Kf=!1,Lv=null,Nv=!1,qw=null,V6={onError:function(e){Kf=!0,Lv=e}};function U6(e,t,r,n,o,a,i,s,l){Kf=!1,Lv=null,z6.apply(V6,arguments)}function H6(e,t,r,n,o,a,i,s,l){if(U6.apply(this,arguments),Kf){if(Kf){var c=Lv;Kf=!1,Lv=null}else throw Error(et(198));Nv||(Nv=!0,qw=c)}}function Hc(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function aD(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 f$(e){if(Hc(e)!==e)throw Error(et(188))}function W6(e){var t=e.alternate;if(!t){if(t=Hc(e),t===null)throw Error(et(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var a=o.alternate;if(a===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return f$(o),e;if(a===n)return f$(o),t;a=a.sibling}throw Error(et(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(et(189))}}if(r.alternate!==n)throw Error(et(190))}if(r.tag!==3)throw Error(et(188));return r.stateNode.current===r?e:t}function iD(e){return e=W6(e),e!==null?sD(e):null}function sD(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=sD(e);if(t!==null)return t;e=e.sibling}return null}var lD=Ba.unstable_scheduleCallback,p$=Ba.unstable_cancelCallback,G6=Ba.unstable_shouldYield,K6=Ba.unstable_requestPaint,zn=Ba.unstable_now,q6=Ba.unstable_getCurrentPriorityLevel,jS=Ba.unstable_ImmediatePriority,cD=Ba.unstable_UserBlockingPriority,Fv=Ba.unstable_NormalPriority,Y6=Ba.unstable_LowPriority,uD=Ba.unstable_IdlePriority,Gg=null,ws=null;function X6(e){if(ws&&typeof ws.onCommitFiberRoot=="function")try{ws.onCommitFiberRoot(Gg,e,void 0,(e.current.flags&128)===128)}catch{}}var Ki=Math.clz32?Math.clz32:J6,Q6=Math.log,Z6=Math.LN2;function J6(e){return e>>>=0,e===0?32:31-(Q6(e)/Z6|0)|0}var um=64,dm=4194304;function Mf(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 Bv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=Mf(s):(a&=i,a!==0&&(n=Mf(a)))}else i=r&~o,i!==0?n=Mf(i):a!==0&&(n=Mf(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Ki(t),o=1<<r,n|=e[r],t&=~o;return n}function ez(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 tz(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Ki(a),s=1<<i,l=o[i];l===-1?(!(s&r)||s&n)&&(o[i]=ez(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function Yw(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function dD(){var e=um;return um<<=1,!(um&4194240)&&(um=64),e}function P0(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function th(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ki(t),e[t]=r}function rz(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Ki(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}function LS(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ki(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var Gr=0;function fD(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var pD,NS,hD,mD,vD,Xw=!1,fm=[],Rl=null,kl=null,Il=null,xp=new Map,Sp=new Map,bl=[],nz="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 h$(e,t){switch(e){case"focusin":case"focusout":Rl=null;break;case"dragenter":case"dragleave":kl=null;break;case"mouseover":case"mouseout":Il=null;break;case"pointerover":case"pointerout":xp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sp.delete(t.pointerId)}}function nf(e,t,r,n,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},t!==null&&(t=nh(t),t!==null&&NS(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function oz(e,t,r,n,o){switch(t){case"focusin":return Rl=nf(Rl,e,t,r,n,o),!0;case"dragenter":return kl=nf(kl,e,t,r,n,o),!0;case"mouseover":return Il=nf(Il,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return xp.set(a,nf(xp.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,Sp.set(a,nf(Sp.get(a)||null,e,t,r,n,o)),!0}return!1}function gD(e){var t=pc(e.target);if(t!==null){var r=Hc(t);if(r!==null){if(t=r.tag,t===13){if(t=aD(r),t!==null){e.blockedOn=t,vD(e.priority,function(){hD(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ov(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Qw(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Ww=n,r.target.dispatchEvent(n),Ww=null}else return t=nh(r),t!==null&&NS(t),e.blockedOn=r,!1;t.shift()}return!0}function m$(e,t,r){ov(e)&&r.delete(t)}function az(){Xw=!1,Rl!==null&&ov(Rl)&&(Rl=null),kl!==null&&ov(kl)&&(kl=null),Il!==null&&ov(Il)&&(Il=null),xp.forEach(m$),Sp.forEach(m$)}function of(e,t){e.blockedOn===t&&(e.blockedOn=null,Xw||(Xw=!0,Ba.unstable_scheduleCallback(Ba.unstable_NormalPriority,az)))}function Cp(e){function t(o){return of(o,e)}if(0<fm.length){of(fm[0],e);for(var r=1;r<fm.length;r++){var n=fm[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Rl!==null&&of(Rl,e),kl!==null&&of(kl,e),Il!==null&&of(Il,e),xp.forEach(t),Sp.forEach(t),r=0;r<bl.length;r++)n=bl[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<bl.length&&(r=bl[0],r.blockedOn===null);)gD(r),r.blockedOn===null&&bl.shift()}var Gu=Js.ReactCurrentBatchConfig,zv=!0;function iz(e,t,r,n){var o=Gr,a=Gu.transition;Gu.transition=null;try{Gr=1,FS(e,t,r,n)}finally{Gr=o,Gu.transition=a}}function sz(e,t,r,n){var o=Gr,a=Gu.transition;Gu.transition=null;try{Gr=4,FS(e,t,r,n)}finally{Gr=o,Gu.transition=a}}function FS(e,t,r,n){if(zv){var o=Qw(e,t,r,n);if(o===null)A0(e,t,n,Vv,r),h$(e,n);else if(oz(o,e,t,r,n))n.stopPropagation();else if(h$(e,n),t&4&&-1<nz.indexOf(e)){for(;o!==null;){var a=nh(o);if(a!==null&&pD(a),a=Qw(e,t,r,n),a===null&&A0(e,t,n,Vv,r),a===o)break;o=a}o!==null&&n.stopPropagation()}else A0(e,t,n,null,r)}}var Vv=null;function Qw(e,t,r,n){if(Vv=null,e=AS(n),e=pc(e),e!==null)if(t=Hc(e),t===null)e=null;else if(r=t.tag,r===13){if(e=aD(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vv=e,null}function yD(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(q6()){case jS:return 1;case cD:return 4;case Fv:case Y6:return 16;case uD:return 536870912;default:return 16}default:return 16}}var xl=null,BS=null,av=null;function bD(){if(av)return av;var e,t=BS,r=t.length,n,o="value"in xl?xl.value:xl.textContent,a=o.length;for(e=0;e<r&&t[e]===o[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===o[a-n];n++);return av=o.slice(e,1<n?1-n:void 0)}function iv(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 pm(){return!0}function v$(){return!1}function Ha(e){function t(r,n,o,a,i){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?pm:v$,this.isPropagationStopped=v$,this}return Pn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=pm)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=pm)},persist:function(){},isPersistent:pm}),t}var Id={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zS=Ha(Id),rh=Pn({},Id,{view:0,detail:0}),lz=Ha(rh),$0,R0,af,Kg=Pn({},rh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:VS,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!==af&&(af&&e.type==="mousemove"?($0=e.screenX-af.screenX,R0=e.screenY-af.screenY):R0=$0=0,af=e),$0)},movementY:function(e){return"movementY"in e?e.movementY:R0}}),g$=Ha(Kg),cz=Pn({},Kg,{dataTransfer:0}),uz=Ha(cz),dz=Pn({},rh,{relatedTarget:0}),k0=Ha(dz),fz=Pn({},Id,{animationName:0,elapsedTime:0,pseudoElement:0}),pz=Ha(fz),hz=Pn({},Id,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mz=Ha(hz),vz=Pn({},Id,{data:0}),y$=Ha(vz),gz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yz={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"},bz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bz[e])?!!t[e]:!1}function VS(){return wz}var xz=Pn({},rh,{key:function(e){if(e.key){var t=gz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=iv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:VS,charCode:function(e){return e.type==="keypress"?iv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?iv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sz=Ha(xz),Cz=Pn({},Kg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),b$=Ha(Cz),Tz=Pn({},rh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:VS}),Pz=Ha(Tz),$z=Pn({},Id,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rz=Ha($z),kz=Pn({},Kg,{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}),Iz=Ha(kz),Ez=[9,13,27,32],US=Ks&&"CompositionEvent"in window,qf=null;Ks&&"documentMode"in document&&(qf=document.documentMode);var Oz=Ks&&"TextEvent"in window&&!qf,wD=Ks&&(!US||qf&&8<qf&&11>=qf),w$=" ",x$=!1;function xD(e,t){switch(e){case"keyup":return Ez.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ku=!1;function _z(e,t){switch(e){case"compositionend":return SD(t);case"keypress":return t.which!==32?null:(x$=!0,w$);case"textInput":return e=t.data,e===w$&&x$?null:e;default:return null}}function Dz(e,t){if(ku)return e==="compositionend"||!US&&xD(e,t)?(e=bD(),av=BS=xl=null,ku=!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 wD&&t.locale!=="ko"?null:t.data;default:return null}}var Mz={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 S$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mz[e.type]:t==="textarea"}function CD(e,t,r,n){eD(n),t=Uv(t,"onChange"),0<t.length&&(r=new zS("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Yf=null,Tp=null;function Az(e){MD(e,0)}function qg(e){var t=Ou(e);if(K_(t))return e}function jz(e,t){if(e==="change")return t}var TD=!1;if(Ks){var I0;if(Ks){var E0="oninput"in document;if(!E0){var C$=document.createElement("div");C$.setAttribute("oninput","return;"),E0=typeof C$.oninput=="function"}I0=E0}else I0=!1;TD=I0&&(!document.documentMode||9<document.documentMode)}function T$(){Yf&&(Yf.detachEvent("onpropertychange",PD),Tp=Yf=null)}function PD(e){if(e.propertyName==="value"&&qg(Tp)){var t=[];CD(t,Tp,e,AS(e)),oD(Az,t)}}function Lz(e,t,r){e==="focusin"?(T$(),Yf=t,Tp=r,Yf.attachEvent("onpropertychange",PD)):e==="focusout"&&T$()}function Nz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qg(Tp)}function Fz(e,t){if(e==="click")return qg(t)}function Bz(e,t){if(e==="input"||e==="change")return qg(t)}function zz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xi=typeof Object.is=="function"?Object.is:zz;function Pp(e,t){if(Xi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!Dw.call(t,o)||!Xi(e[o],t[o]))return!1}return!0}function P$(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $$(e,t){var r=P$(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=P$(r)}}function $D(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$D(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function RD(){for(var e=window,t=jv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=jv(e.document)}return t}function HS(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 Vz(e){var t=RD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&$D(r.ownerDocument.documentElement,r)){if(n!==null&&HS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=$$(r,a);var i=$$(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Uz=Ks&&"documentMode"in document&&11>=document.documentMode,Iu=null,Zw=null,Xf=null,Jw=!1;function R$(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Jw||Iu==null||Iu!==jv(n)||(n=Iu,"selectionStart"in n&&HS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Xf&&Pp(Xf,n)||(Xf=n,n=Uv(Zw,"onSelect"),0<n.length&&(t=new zS("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Iu)))}function hm(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Eu={animationend:hm("Animation","AnimationEnd"),animationiteration:hm("Animation","AnimationIteration"),animationstart:hm("Animation","AnimationStart"),transitionend:hm("Transition","TransitionEnd")},O0={},kD={};Ks&&(kD=document.createElement("div").style,"AnimationEvent"in window||(delete Eu.animationend.animation,delete Eu.animationiteration.animation,delete Eu.animationstart.animation),"TransitionEvent"in window||delete Eu.transitionend.transition);function Yg(e){if(O0[e])return O0[e];if(!Eu[e])return e;var t=Eu[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in kD)return O0[e]=t[r];return e}var ID=Yg("animationend"),ED=Yg("animationiteration"),OD=Yg("animationstart"),_D=Yg("transitionend"),DD=new Map,k$="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 Vl(e,t){DD.set(e,t),Uc(t,[e])}for(var _0=0;_0<k$.length;_0++){var D0=k$[_0],Hz=D0.toLowerCase(),Wz=D0[0].toUpperCase()+D0.slice(1);Vl(Hz,"on"+Wz)}Vl(ID,"onAnimationEnd");Vl(ED,"onAnimationIteration");Vl(OD,"onAnimationStart");Vl("dblclick","onDoubleClick");Vl("focusin","onFocus");Vl("focusout","onBlur");Vl(_D,"onTransitionEnd");ed("onMouseEnter",["mouseout","mouseover"]);ed("onMouseLeave",["mouseout","mouseover"]);ed("onPointerEnter",["pointerout","pointerover"]);ed("onPointerLeave",["pointerout","pointerover"]);Uc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Uc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Uc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Uc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Uc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Uc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Af="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(" "),Gz=new Set("cancel close invalid load scroll toggle".split(" ").concat(Af));function I$(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,H6(n,t,void 0,e),e.currentTarget=null}function MD(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;I$(o,s,c),a=l}else for(i=0;i<n.length;i++){if(s=n[i],l=s.instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;I$(o,s,c),a=l}}}if(Nv)throw e=qw,Nv=!1,qw=null,e}function fn(e,t){var r=t[ox];r===void 0&&(r=t[ox]=new Set);var n=e+"__bubble";r.has(n)||(AD(t,e,2,!1),r.add(n))}function M0(e,t,r){var n=0;t&&(n|=4),AD(r,e,n,t)}var mm="_reactListening"+Math.random().toString(36).slice(2);function $p(e){if(!e[mm]){e[mm]=!0,V_.forEach(function(r){r!=="selectionchange"&&(Gz.has(r)||M0(r,!1,e),M0(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mm]||(t[mm]=!0,M0("selectionchange",!1,t))}}function AD(e,t,r,n){switch(yD(t)){case 1:var o=iz;break;case 4:o=sz;break;default:o=FS}r=o.bind(null,t,r,e),o=void 0,!Kw||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function A0(e,t,r,n,o){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var s=n.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=n.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;s!==null;){if(i=pc(s),i===null)return;if(l=i.tag,l===5||l===6){n=a=i;continue e}s=s.parentNode}}n=n.return}oD(function(){var c=a,u=AS(r),d=[];e:{var f=DD.get(e);if(f!==void 0){var h=zS,p=e;switch(e){case"keypress":if(iv(r)===0)break e;case"keydown":case"keyup":h=Sz;break;case"focusin":p="focus",h=k0;break;case"focusout":p="blur",h=k0;break;case"beforeblur":case"afterblur":h=k0;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=g$;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=uz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Pz;break;case ID:case ED:case OD:h=pz;break;case _D:h=Rz;break;case"scroll":h=lz;break;case"wheel":h=Iz;break;case"copy":case"cut":case"paste":h=mz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=b$}var m=(t&4)!==0,x=!m&&e==="scroll",b=m?f!==null?f+"Capture":null:f;m=[];for(var w=c,g;w!==null;){g=w;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,b!==null&&(S=wp(w,b),S!=null&&m.push(Rp(w,S,g)))),x)break;w=w.return}0<m.length&&(f=new h(f,p,null,r,u),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&r!==Ww&&(p=r.relatedTarget||r.fromElement)&&(pc(p)||p[qs]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=r.relatedTarget||r.toElement,h=c,p=p?pc(p):null,p!==null&&(x=Hc(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=c),h!==p)){if(m=g$,S="onMouseLeave",b="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(m=b$,S="onPointerLeave",b="onPointerEnter",w="pointer"),x=h==null?f:Ou(h),g=p==null?f:Ou(p),f=new m(S,w+"leave",h,r,u),f.target=x,f.relatedTarget=g,S=null,pc(u)===c&&(m=new m(b,w+"enter",p,r,u),m.target=g,m.relatedTarget=x,S=m),x=S,h&&p)t:{for(m=h,b=p,w=0,g=m;g;g=nu(g))w++;for(g=0,S=b;S;S=nu(S))g++;for(;0<w-g;)m=nu(m),w--;for(;0<g-w;)b=nu(b),g--;for(;w--;){if(m===b||b!==null&&m===b.alternate)break t;m=nu(m),b=nu(b)}m=null}else m=null;h!==null&&E$(d,f,h,m,!1),p!==null&&x!==null&&E$(d,x,p,m,!0)}}e:{if(f=c?Ou(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var R=jz;else if(S$(f))if(TD)R=Bz;else{R=Nz;var T=Lz}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(R=Fz);if(R&&(R=R(e,c))){CD(d,R,r,u);break e}T&&T(e,f,c),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&Bw(f,"number",f.value)}switch(T=c?Ou(c):window,e){case"focusin":(S$(T)||T.contentEditable==="true")&&(Iu=T,Zw=c,Xf=null);break;case"focusout":Xf=Zw=Iu=null;break;case"mousedown":Jw=!0;break;case"contextmenu":case"mouseup":case"dragend":Jw=!1,R$(d,r,u);break;case"selectionchange":if(Uz)break;case"keydown":case"keyup":R$(d,r,u)}var k;if(US)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else ku?xD(e,r)&&(O="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(O="onCompositionStart");O&&(wD&&r.locale!=="ko"&&(ku||O!=="onCompositionStart"?O==="onCompositionEnd"&&ku&&(k=bD()):(xl=u,BS="value"in xl?xl.value:xl.textContent,ku=!0)),T=Uv(c,O),0<T.length&&(O=new y$(O,e,null,r,u),d.push({event:O,listeners:T}),k?O.data=k:(k=SD(r),k!==null&&(O.data=k)))),(k=Oz?_z(e,r):Dz(e,r))&&(c=Uv(c,"onBeforeInput"),0<c.length&&(u=new y$("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:c}),u.data=k))}MD(d,t)})}function Rp(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Uv(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=wp(e,r),a!=null&&n.unshift(Rp(e,a,o)),a=wp(e,t),a!=null&&n.push(Rp(e,a,o))),e=e.return}return n}function nu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function E$(e,t,r,n,o){for(var a=t._reactName,i=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,o?(l=wp(r,a),l!=null&&i.unshift(Rp(r,l,s))):o||(l=wp(r,a),l!=null&&i.push(Rp(r,l,s)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var Kz=/\r\n?/g,qz=/\u0000|\uFFFD/g;function O$(e){return(typeof e=="string"?e:""+e).replace(Kz,` +`).replace(qz,"")}function vm(e,t,r){if(t=O$(t),O$(e)!==t&&r)throw Error(et(425))}function Hv(){}var ex=null,tx=null;function rx(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 nx=typeof setTimeout=="function"?setTimeout:void 0,Yz=typeof clearTimeout=="function"?clearTimeout:void 0,_$=typeof Promise=="function"?Promise:void 0,Xz=typeof queueMicrotask=="function"?queueMicrotask:typeof _$<"u"?function(e){return _$.resolve(null).then(e).catch(Qz)}:nx;function Qz(e){setTimeout(function(){throw e})}function j0(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),Cp(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Cp(t)}function El(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 D$(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ed=Math.random().toString(36).slice(2),vs="__reactFiber$"+Ed,kp="__reactProps$"+Ed,qs="__reactContainer$"+Ed,ox="__reactEvents$"+Ed,Zz="__reactListeners$"+Ed,Jz="__reactHandles$"+Ed;function pc(e){var t=e[vs];if(t)return t;for(var r=e.parentNode;r;){if(t=r[qs]||r[vs]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=D$(e);e!==null;){if(r=e[vs])return r;e=D$(e)}return t}e=r,r=e.parentNode}return null}function nh(e){return e=e[vs]||e[qs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ou(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(et(33))}function Xg(e){return e[kp]||null}var ax=[],_u=-1;function Ul(e){return{current:e}}function pn(e){0>_u||(e.current=ax[_u],ax[_u]=null,_u--)}function ln(e,t){_u++,ax[_u]=e.current,e.current=t}var Nl={},Fo=Ul(Nl),va=Ul(!1),$c=Nl;function td(e,t){var r=e.type.contextTypes;if(!r)return Nl;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ga(e){return e=e.childContextTypes,e!=null}function Wv(){pn(va),pn(Fo)}function M$(e,t,r){if(Fo.current!==Nl)throw Error(et(168));ln(Fo,t),ln(va,r)}function jD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(et(108,L6(e)||"Unknown",o));return Pn({},r,n)}function Gv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nl,$c=Fo.current,ln(Fo,e),ln(va,va.current),!0}function A$(e,t,r){var n=e.stateNode;if(!n)throw Error(et(169));r?(e=jD(e,t,$c),n.__reactInternalMemoizedMergedChildContext=e,pn(va),pn(Fo),ln(Fo,e)):pn(va),ln(va,r)}var Ls=null,Qg=!1,L0=!1;function LD(e){Ls===null?Ls=[e]:Ls.push(e)}function e8(e){Qg=!0,LD(e)}function Hl(){if(!L0&&Ls!==null){L0=!0;var e=0,t=Gr;try{var r=Ls;for(Gr=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ls=null,Qg=!1}catch(o){throw Ls!==null&&(Ls=Ls.slice(e+1)),lD(jS,Hl),o}finally{Gr=t,L0=!1}}return null}var Du=[],Mu=0,Kv=null,qv=0,li=[],ci=0,Rc=null,Ns=1,Fs="";function ic(e,t){Du[Mu++]=qv,Du[Mu++]=Kv,Kv=e,qv=t}function ND(e,t,r){li[ci++]=Ns,li[ci++]=Fs,li[ci++]=Rc,Rc=e;var n=Ns;e=Fs;var o=32-Ki(n)-1;n&=~(1<<o),r+=1;var a=32-Ki(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Ns=1<<32-Ki(t)+o|r<<o|n,Fs=a+e}else Ns=1<<a|r<<o|n,Fs=e}function WS(e){e.return!==null&&(ic(e,1),ND(e,1,0))}function GS(e){for(;e===Kv;)Kv=Du[--Mu],Du[Mu]=null,qv=Du[--Mu],Du[Mu]=null;for(;e===Rc;)Rc=li[--ci],li[ci]=null,Fs=li[--ci],li[ci]=null,Ns=li[--ci],li[ci]=null}var Na=null,La=null,gn=!1,Vi=null;function FD(e,t){var r=hi(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function j$(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Na=e,La=El(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Na=e,La=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Rc!==null?{id:Ns,overflow:Fs}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=hi(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Na=e,La=null,!0):!1;default:return!1}}function ix(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sx(e){if(gn){var t=La;if(t){var r=t;if(!j$(e,t)){if(ix(e))throw Error(et(418));t=El(r.nextSibling);var n=Na;t&&j$(e,t)?FD(n,r):(e.flags=e.flags&-4097|2,gn=!1,Na=e)}}else{if(ix(e))throw Error(et(418));e.flags=e.flags&-4097|2,gn=!1,Na=e}}}function L$(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Na=e}function gm(e){if(e!==Na)return!1;if(!gn)return L$(e),gn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!rx(e.type,e.memoizedProps)),t&&(t=La)){if(ix(e))throw BD(),Error(et(418));for(;t;)FD(e,t),t=El(t.nextSibling)}if(L$(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(et(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){La=El(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}La=null}}else La=Na?El(e.stateNode.nextSibling):null;return!0}function BD(){for(var e=La;e;)e=El(e.nextSibling)}function rd(){La=Na=null,gn=!1}function KS(e){Vi===null?Vi=[e]:Vi.push(e)}var t8=Js.ReactCurrentBatchConfig;function sf(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(et(309));var n=r.stateNode}if(!n)throw Error(et(147,e));var o=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var s=o.refs;i===null?delete s[a]:s[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(et(284));if(!r._owner)throw Error(et(290,e))}return e}function ym(e,t){throw e=Object.prototype.toString.call(t),Error(et(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function N$(e){var t=e._init;return t(e._payload)}function zD(e){function t(b,w){if(e){var g=b.deletions;g===null?(b.deletions=[w],b.flags|=16):g.push(w)}}function r(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function n(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function o(b,w){return b=Ml(b,w),b.index=0,b.sibling=null,b}function a(b,w,g){return b.index=g,e?(g=b.alternate,g!==null?(g=g.index,g<w?(b.flags|=2,w):g):(b.flags|=2,w)):(b.flags|=1048576,w)}function i(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,w,g,S){return w===null||w.tag!==6?(w=H0(g,b.mode,S),w.return=b,w):(w=o(w,g),w.return=b,w)}function l(b,w,g,S){var R=g.type;return R===Ru?u(b,w,g.props.children,S,g.key):w!==null&&(w.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===vl&&N$(R)===w.type)?(S=o(w,g.props),S.ref=sf(b,w,g),S.return=b,S):(S=pv(g.type,g.key,g.props,null,b.mode,S),S.ref=sf(b,w,g),S.return=b,S)}function c(b,w,g,S){return w===null||w.tag!==4||w.stateNode.containerInfo!==g.containerInfo||w.stateNode.implementation!==g.implementation?(w=W0(g,b.mode,S),w.return=b,w):(w=o(w,g.children||[]),w.return=b,w)}function u(b,w,g,S,R){return w===null||w.tag!==7?(w=xc(g,b.mode,S,R),w.return=b,w):(w=o(w,g),w.return=b,w)}function d(b,w,g){if(typeof w=="string"&&w!==""||typeof w=="number")return w=H0(""+w,b.mode,g),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case sm:return g=pv(w.type,w.key,w.props,null,b.mode,g),g.ref=sf(b,null,w),g.return=b,g;case $u:return w=W0(w,b.mode,g),w.return=b,w;case vl:var S=w._init;return d(b,S(w._payload),g)}if(Df(w)||tf(w))return w=xc(w,b.mode,g,null),w.return=b,w;ym(b,w)}return null}function f(b,w,g,S){var R=w!==null?w.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return R!==null?null:s(b,w,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case sm:return g.key===R?l(b,w,g,S):null;case $u:return g.key===R?c(b,w,g,S):null;case vl:return R=g._init,f(b,w,R(g._payload),S)}if(Df(g)||tf(g))return R!==null?null:u(b,w,g,S,null);ym(b,g)}return null}function h(b,w,g,S,R){if(typeof S=="string"&&S!==""||typeof S=="number")return b=b.get(g)||null,s(w,b,""+S,R);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case sm:return b=b.get(S.key===null?g:S.key)||null,l(w,b,S,R);case $u:return b=b.get(S.key===null?g:S.key)||null,c(w,b,S,R);case vl:var T=S._init;return h(b,w,g,T(S._payload),R)}if(Df(S)||tf(S))return b=b.get(g)||null,u(w,b,S,R,null);ym(w,S)}return null}function p(b,w,g,S){for(var R=null,T=null,k=w,O=w=0,E=null;k!==null&&O<g.length;O++){k.index>O?(E=k,k=null):E=k.sibling;var C=f(b,k,g[O],S);if(C===null){k===null&&(k=E);break}e&&k&&C.alternate===null&&t(b,k),w=a(C,w,O),T===null?R=C:T.sibling=C,T=C,k=E}if(O===g.length)return r(b,k),gn&&ic(b,O),R;if(k===null){for(;O<g.length;O++)k=d(b,g[O],S),k!==null&&(w=a(k,w,O),T===null?R=k:T.sibling=k,T=k);return gn&&ic(b,O),R}for(k=n(b,k);O<g.length;O++)E=h(k,b,O,g[O],S),E!==null&&(e&&E.alternate!==null&&k.delete(E.key===null?O:E.key),w=a(E,w,O),T===null?R=E:T.sibling=E,T=E);return e&&k.forEach(function(D){return t(b,D)}),gn&&ic(b,O),R}function m(b,w,g,S){var R=tf(g);if(typeof R!="function")throw Error(et(150));if(g=R.call(g),g==null)throw Error(et(151));for(var T=R=null,k=w,O=w=0,E=null,C=g.next();k!==null&&!C.done;O++,C=g.next()){k.index>O?(E=k,k=null):E=k.sibling;var D=f(b,k,C.value,S);if(D===null){k===null&&(k=E);break}e&&k&&D.alternate===null&&t(b,k),w=a(D,w,O),T===null?R=D:T.sibling=D,T=D,k=E}if(C.done)return r(b,k),gn&&ic(b,O),R;if(k===null){for(;!C.done;O++,C=g.next())C=d(b,C.value,S),C!==null&&(w=a(C,w,O),T===null?R=C:T.sibling=C,T=C);return gn&&ic(b,O),R}for(k=n(b,k);!C.done;O++,C=g.next())C=h(k,b,O,C.value,S),C!==null&&(e&&C.alternate!==null&&k.delete(C.key===null?O:C.key),w=a(C,w,O),T===null?R=C:T.sibling=C,T=C);return e&&k.forEach(function(B){return t(b,B)}),gn&&ic(b,O),R}function x(b,w,g,S){if(typeof g=="object"&&g!==null&&g.type===Ru&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case sm:e:{for(var R=g.key,T=w;T!==null;){if(T.key===R){if(R=g.type,R===Ru){if(T.tag===7){r(b,T.sibling),w=o(T,g.props.children),w.return=b,b=w;break e}}else if(T.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===vl&&N$(R)===T.type){r(b,T.sibling),w=o(T,g.props),w.ref=sf(b,T,g),w.return=b,b=w;break e}r(b,T);break}else t(b,T);T=T.sibling}g.type===Ru?(w=xc(g.props.children,b.mode,S,g.key),w.return=b,b=w):(S=pv(g.type,g.key,g.props,null,b.mode,S),S.ref=sf(b,w,g),S.return=b,b=S)}return i(b);case $u:e:{for(T=g.key;w!==null;){if(w.key===T)if(w.tag===4&&w.stateNode.containerInfo===g.containerInfo&&w.stateNode.implementation===g.implementation){r(b,w.sibling),w=o(w,g.children||[]),w.return=b,b=w;break e}else{r(b,w);break}else t(b,w);w=w.sibling}w=W0(g,b.mode,S),w.return=b,b=w}return i(b);case vl:return T=g._init,x(b,w,T(g._payload),S)}if(Df(g))return p(b,w,g,S);if(tf(g))return m(b,w,g,S);ym(b,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,w!==null&&w.tag===6?(r(b,w.sibling),w=o(w,g),w.return=b,b=w):(r(b,w),w=H0(g,b.mode,S),w.return=b,b=w),i(b)):r(b,w)}return x}var nd=zD(!0),VD=zD(!1),Yv=Ul(null),Xv=null,Au=null,qS=null;function YS(){qS=Au=Xv=null}function XS(e){var t=Yv.current;pn(Yv),e._currentValue=t}function lx(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ku(e,t){Xv=e,qS=Au=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ma=!0),e.firstContext=null)}function bi(e){var t=e._currentValue;if(qS!==e)if(e={context:e,memoizedValue:t,next:null},Au===null){if(Xv===null)throw Error(et(308));Au=e,Xv.dependencies={lanes:0,firstContext:e}}else Au=Au.next=e;return t}var hc=null;function QS(e){hc===null?hc=[e]:hc.push(e)}function UD(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,QS(t)):(r.next=o.next,o.next=r),t.interleaved=r,Ys(e,n)}function Ys(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var gl=!1;function ZS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function HD(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 Vs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ol(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ar&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Ys(e,r)}return o=n.interleaved,o===null?(t.next=t,QS(n)):(t.next=o.next,o.next=t),n.interleaved=t,Ys(e,r)}function sv(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,LS(e,r)}}function F$(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?o=a=i:a=a.next=i,r=r.next}while(r!==null);a===null?o=a=t:a=a.next=t}else o=a=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Qv(e,t,r,n){var o=e.updateQueue;gl=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,i===null?a=c:i.next=c,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==i&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var d=o.baseState;i=0,u=c=l=null,s=a;do{var f=s.lane,h=s.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=r,m.tag){case 1:if(p=m.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=Pn({},d,f);break e;case 2:gl=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,i|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Ic|=i,e.lanes=i,e.memoizedState=d}}function B$(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(et(191,o));o.call(n)}}}var oh={},xs=Ul(oh),Ip=Ul(oh),Ep=Ul(oh);function mc(e){if(e===oh)throw Error(et(174));return e}function JS(e,t){switch(ln(Ep,t),ln(Ip,e),ln(xs,oh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vw(t,e)}pn(xs),ln(xs,t)}function od(){pn(xs),pn(Ip),pn(Ep)}function WD(e){mc(Ep.current);var t=mc(xs.current),r=Vw(t,e.type);t!==r&&(ln(Ip,e),ln(xs,r))}function eC(e){Ip.current===e&&(pn(xs),pn(Ip))}var Cn=Ul(0);function Zv(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 N0=[];function tC(){for(var e=0;e<N0.length;e++)N0[e]._workInProgressVersionPrimary=null;N0.length=0}var lv=Js.ReactCurrentDispatcher,F0=Js.ReactCurrentBatchConfig,kc=0,Tn=null,ao=null,xo=null,Jv=!1,Qf=!1,Op=0,r8=0;function Ao(){throw Error(et(321))}function rC(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Xi(e[r],t[r]))return!1;return!0}function nC(e,t,r,n,o,a){if(kc=a,Tn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lv.current=e===null||e.memoizedState===null?i8:s8,e=r(n,o),Qf){a=0;do{if(Qf=!1,Op=0,25<=a)throw Error(et(301));a+=1,xo=ao=null,t.updateQueue=null,lv.current=l8,e=r(n,o)}while(Qf)}if(lv.current=eg,t=ao!==null&&ao.next!==null,kc=0,xo=ao=Tn=null,Jv=!1,t)throw Error(et(300));return e}function oC(){var e=Op!==0;return Op=0,e}function ps(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xo===null?Tn.memoizedState=xo=e:xo=xo.next=e,xo}function wi(){if(ao===null){var e=Tn.alternate;e=e!==null?e.memoizedState:null}else e=ao.next;var t=xo===null?Tn.memoizedState:xo.next;if(t!==null)xo=t,ao=e;else{if(e===null)throw Error(et(310));ao=e,e={memoizedState:ao.memoizedState,baseState:ao.baseState,baseQueue:ao.baseQueue,queue:ao.queue,next:null},xo===null?Tn.memoizedState=xo=e:xo=xo.next=e}return xo}function _p(e,t){return typeof t=="function"?t(e):t}function B0(e){var t=wi(),r=t.queue;if(r===null)throw Error(et(311));r.lastRenderedReducer=e;var n=ao,o=n.baseQueue,a=r.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(o!==null){a=o.next,n=n.baseState;var s=i=null,l=null,c=a;do{var u=c.lane;if((kc&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,i=n):l=l.next=d,Tn.lanes|=u,Ic|=u}c=c.next}while(c!==null&&c!==a);l===null?i=n:l.next=s,Xi(n,t.memoizedState)||(ma=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do a=o.lane,Tn.lanes|=a,Ic|=a,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function z0(e){var t=wi(),r=t.queue;if(r===null)throw Error(et(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(o!==null){r.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);Xi(a,t.memoizedState)||(ma=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function GD(){}function KD(e,t){var r=Tn,n=wi(),o=t(),a=!Xi(n.memoizedState,o);if(a&&(n.memoizedState=o,ma=!0),n=n.queue,aC(XD.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||xo!==null&&xo.memoizedState.tag&1){if(r.flags|=2048,Dp(9,YD.bind(null,r,n,o,t),void 0,null),Co===null)throw Error(et(349));kc&30||qD(r,t,o)}return o}function qD(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Tn.updateQueue,t===null?(t={lastEffect:null,stores:null},Tn.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function YD(e,t,r,n){t.value=r,t.getSnapshot=n,QD(t)&&ZD(e)}function XD(e,t,r){return r(function(){QD(t)&&ZD(e)})}function QD(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Xi(e,r)}catch{return!0}}function ZD(e){var t=Ys(e,1);t!==null&&qi(t,e,1,-1)}function z$(e){var t=ps();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_p,lastRenderedState:e},t.queue=e,e=e.dispatch=a8.bind(null,Tn,e),[t.memoizedState,e]}function Dp(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Tn.updateQueue,t===null?(t={lastEffect:null,stores:null},Tn.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function JD(){return wi().memoizedState}function cv(e,t,r,n){var o=ps();Tn.flags|=e,o.memoizedState=Dp(1|t,r,void 0,n===void 0?null:n)}function Zg(e,t,r,n){var o=wi();n=n===void 0?null:n;var a=void 0;if(ao!==null){var i=ao.memoizedState;if(a=i.destroy,n!==null&&rC(n,i.deps)){o.memoizedState=Dp(t,r,a,n);return}}Tn.flags|=e,o.memoizedState=Dp(1|t,r,a,n)}function V$(e,t){return cv(8390656,8,e,t)}function aC(e,t){return Zg(2048,8,e,t)}function eM(e,t){return Zg(4,2,e,t)}function tM(e,t){return Zg(4,4,e,t)}function rM(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 nM(e,t,r){return r=r!=null?r.concat([e]):null,Zg(4,4,rM.bind(null,t,e),r)}function iC(){}function oM(e,t){var r=wi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&rC(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function aM(e,t){var r=wi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&rC(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function iM(e,t,r){return kc&21?(Xi(r,t)||(r=dD(),Tn.lanes|=r,Ic|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ma=!0),e.memoizedState=r)}function n8(e,t){var r=Gr;Gr=r!==0&&4>r?r:4,e(!0);var n=F0.transition;F0.transition={};try{e(!1),t()}finally{Gr=r,F0.transition=n}}function sM(){return wi().memoizedState}function o8(e,t,r){var n=Dl(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},lM(e))cM(t,r);else if(r=UD(e,t,r,n),r!==null){var o=Jo();qi(r,e,n,o),uM(r,t,n)}}function a8(e,t,r){var n=Dl(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(lM(e))cM(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Xi(s,i)){var l=t.interleaved;l===null?(o.next=o,QS(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=UD(e,t,o,n),r!==null&&(o=Jo(),qi(r,e,n,o),uM(r,t,n))}}function lM(e){var t=e.alternate;return e===Tn||t!==null&&t===Tn}function cM(e,t){Qf=Jv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function uM(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,LS(e,r)}}var eg={readContext:bi,useCallback:Ao,useContext:Ao,useEffect:Ao,useImperativeHandle:Ao,useInsertionEffect:Ao,useLayoutEffect:Ao,useMemo:Ao,useReducer:Ao,useRef:Ao,useState:Ao,useDebugValue:Ao,useDeferredValue:Ao,useTransition:Ao,useMutableSource:Ao,useSyncExternalStore:Ao,useId:Ao,unstable_isNewReconciler:!1},i8={readContext:bi,useCallback:function(e,t){return ps().memoizedState=[e,t===void 0?null:t],e},useContext:bi,useEffect:V$,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,cv(4194308,4,rM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return cv(4194308,4,e,t)},useInsertionEffect:function(e,t){return cv(4,2,e,t)},useMemo:function(e,t){var r=ps();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ps();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=o8.bind(null,Tn,e),[n.memoizedState,e]},useRef:function(e){var t=ps();return e={current:e},t.memoizedState=e},useState:z$,useDebugValue:iC,useDeferredValue:function(e){return ps().memoizedState=e},useTransition:function(){var e=z$(!1),t=e[0];return e=n8.bind(null,e[1]),ps().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Tn,o=ps();if(gn){if(r===void 0)throw Error(et(407));r=r()}else{if(r=t(),Co===null)throw Error(et(349));kc&30||qD(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,V$(XD.bind(null,n,a,e),[e]),n.flags|=2048,Dp(9,YD.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ps(),t=Co.identifierPrefix;if(gn){var r=Fs,n=Ns;r=(n&~(1<<32-Ki(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Op++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=r8++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},s8={readContext:bi,useCallback:oM,useContext:bi,useEffect:aC,useImperativeHandle:nM,useInsertionEffect:eM,useLayoutEffect:tM,useMemo:aM,useReducer:B0,useRef:JD,useState:function(){return B0(_p)},useDebugValue:iC,useDeferredValue:function(e){var t=wi();return iM(t,ao.memoizedState,e)},useTransition:function(){var e=B0(_p)[0],t=wi().memoizedState;return[e,t]},useMutableSource:GD,useSyncExternalStore:KD,useId:sM,unstable_isNewReconciler:!1},l8={readContext:bi,useCallback:oM,useContext:bi,useEffect:aC,useImperativeHandle:nM,useInsertionEffect:eM,useLayoutEffect:tM,useMemo:aM,useReducer:z0,useRef:JD,useState:function(){return z0(_p)},useDebugValue:iC,useDeferredValue:function(e){var t=wi();return ao===null?t.memoizedState=e:iM(t,ao.memoizedState,e)},useTransition:function(){var e=z0(_p)[0],t=wi().memoizedState;return[e,t]},useMutableSource:GD,useSyncExternalStore:KD,useId:sM,unstable_isNewReconciler:!1};function Ni(e,t){if(e&&e.defaultProps){t=Pn({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function cx(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Pn({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Jg={isMounted:function(e){return(e=e._reactInternals)?Hc(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Jo(),o=Dl(e),a=Vs(n,o);a.payload=t,r!=null&&(a.callback=r),t=Ol(e,a,o),t!==null&&(qi(t,e,o,n),sv(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Jo(),o=Dl(e),a=Vs(n,o);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Ol(e,a,o),t!==null&&(qi(t,e,o,n),sv(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Jo(),n=Dl(e),o=Vs(r,n);o.tag=2,t!=null&&(o.callback=t),t=Ol(e,o,n),t!==null&&(qi(t,e,n,r),sv(t,e,n))}};function U$(e,t,r,n,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,i):t.prototype&&t.prototype.isPureReactComponent?!Pp(r,n)||!Pp(o,a):!0}function dM(e,t,r){var n=!1,o=Nl,a=t.contextType;return typeof a=="object"&&a!==null?a=bi(a):(o=ga(t)?$c:Fo.current,n=t.contextTypes,a=(n=n!=null)?td(e,o):Nl),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jg,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function H$(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Jg.enqueueReplaceState(t,t.state,null)}function ux(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},ZS(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=bi(a):(a=ga(t)?$c:Fo.current,o.context=td(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(cx(e,t,a,r),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&&Jg.enqueueReplaceState(o,o.state,null),Qv(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ad(e,t){try{var r="",n=t;do r+=j6(n),n=n.return;while(n);var o=r}catch(a){o=` +Error generating stack: `+a.message+` +`+a.stack}return{value:e,source:t,stack:o,digest:null}}function V0(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function dx(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var c8=typeof WeakMap=="function"?WeakMap:Map;function fM(e,t,r){r=Vs(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){rg||(rg=!0,xx=n),dx(e,t)},r}function pM(e,t,r){r=Vs(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){dx(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){dx(e,t),typeof n!="function"&&(_l===null?_l=new Set([this]):_l.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function W$(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new c8;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=C8.bind(null,e,t,r),t.then(e,e))}function G$(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 K$(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Vs(-1,1),t.tag=2,Ol(r,t,1))),r.lanes|=1),e)}var u8=Js.ReactCurrentOwner,ma=!1;function Qo(e,t,r,n){t.child=e===null?VD(t,null,r,n):nd(t,e.child,r,n)}function q$(e,t,r,n,o){r=r.render;var a=t.ref;return Ku(t,o),n=nC(e,t,r,n,a,o),r=oC(),e!==null&&!ma?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xs(e,t,o)):(gn&&r&&WS(t),t.flags|=1,Qo(e,t,n,o),t.child)}function Y$(e,t,r,n,o){if(e===null){var a=r.type;return typeof a=="function"&&!hC(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,hM(e,t,a,n,o)):(e=pv(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(r=r.compare,r=r!==null?r:Pp,r(i,n)&&e.ref===t.ref)return Xs(e,t,o)}return t.flags|=1,e=Ml(a,n),e.ref=t.ref,e.return=t,t.child=e}function hM(e,t,r,n,o){if(e!==null){var a=e.memoizedProps;if(Pp(a,n)&&e.ref===t.ref)if(ma=!1,t.pendingProps=n=a,(e.lanes&o)!==0)e.flags&131072&&(ma=!0);else return t.lanes=e.lanes,Xs(e,t,o)}return fx(e,t,r,n,o)}function mM(e,t,r){var n=t.pendingProps,o=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ln(Lu,Ma),Ma|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ln(Lu,Ma),Ma|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,ln(Lu,Ma),Ma|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,ln(Lu,Ma),Ma|=n;return Qo(e,t,o,r),t.child}function vM(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function fx(e,t,r,n,o){var a=ga(r)?$c:Fo.current;return a=td(t,a),Ku(t,o),r=nC(e,t,r,n,a,o),n=oC(),e!==null&&!ma?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xs(e,t,o)):(gn&&n&&WS(t),t.flags|=1,Qo(e,t,r,o),t.child)}function X$(e,t,r,n,o){if(ga(r)){var a=!0;Gv(t)}else a=!1;if(Ku(t,o),t.stateNode===null)uv(e,t),dM(t,r,n),ux(t,r,n,o),n=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;typeof c=="object"&&c!==null?c=bi(c):(c=ga(r)?$c:Fo.current,c=td(t,c));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==n||l!==c)&&H$(t,i,n,c),gl=!1;var f=t.memoizedState;i.state=f,Qv(t,n,i,o),l=t.memoizedState,s!==n||f!==l||va.current||gl?(typeof u=="function"&&(cx(t,r,u,n),l=t.memoizedState),(s=gl||U$(t,r,s,n,f,l,c))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,HD(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ni(t.type,s),i.props=c,d=t.pendingProps,f=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=bi(l):(l=ga(r)?$c:Fo.current,l=td(t,l));var h=r.getDerivedStateFromProps;(u=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||f!==l)&&H$(t,i,n,l),gl=!1,f=t.memoizedState,i.state=f,Qv(t,n,i,o);var p=t.memoizedState;s!==d||f!==p||va.current||gl?(typeof h=="function"&&(cx(t,r,h,n),p=t.memoizedState),(c=gl||U$(t,r,c,n,f,p,l)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,p,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,p,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),i.props=n,i.state=p,i.context=l,n=c):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return px(e,t,r,n,a,o)}function px(e,t,r,n,o,a){vM(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return o&&A$(t,r,!1),Xs(e,t,a);n=t.stateNode,u8.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=nd(t,e.child,null,a),t.child=nd(t,null,s,a)):Qo(e,t,s,a),t.memoizedState=n.state,o&&A$(t,r,!0),t.child}function gM(e){var t=e.stateNode;t.pendingContext?M$(e,t.pendingContext,t.pendingContext!==t.context):t.context&&M$(e,t.context,!1),JS(e,t.containerInfo)}function Q$(e,t,r,n,o){return rd(),KS(o),t.flags|=256,Qo(e,t,r,n),t.child}var hx={dehydrated:null,treeContext:null,retryLane:0};function mx(e){return{baseLanes:e,cachePool:null,transitions:null}}function yM(e,t,r){var n=t.pendingProps,o=Cn.current,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ln(Cn,o&1),e===null)return sx(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=n.children,e=n.fallback,a?(n=t.mode,a=t.child,i={mode:"hidden",children:i},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=ry(i,n,0,null),e=xc(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=mx(r),t.memoizedState=hx,e):sC(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return d8(e,t,i,n,s,o,r);if(a){a=n.fallback,i=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:n.children};return!(i&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Ml(o,l),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?a=Ml(s,a):(a=xc(a,i,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,i=e.child.memoizedState,i=i===null?mx(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~r,t.memoizedState=hx,n}return a=e.child,e=a.sibling,n=Ml(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function sC(e,t){return t=ry({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bm(e,t,r,n){return n!==null&&KS(n),nd(t,e.child,null,r),e=sC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function d8(e,t,r,n,o,a,i){if(r)return t.flags&256?(t.flags&=-257,n=V0(Error(et(422))),bm(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=ry({mode:"visible",children:n.children},o,0,null),a=xc(a,o,i,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&nd(t,e.child,null,i),t.child.memoizedState=mx(i),t.memoizedState=hx,a);if(!(t.mode&1))return bm(e,t,i,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(et(419)),n=V0(a,n,void 0),bm(e,t,i,n)}if(s=(i&e.childLanes)!==0,ma||s){if(n=Co,n!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,Ys(e,o),qi(n,e,o,-1))}return pC(),n=V0(Error(et(421))),bm(e,t,i,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=T8.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,La=El(o.nextSibling),Na=t,gn=!0,Vi=null,e!==null&&(li[ci++]=Ns,li[ci++]=Fs,li[ci++]=Rc,Ns=e.id,Fs=e.overflow,Rc=t),t=sC(t,n.children),t.flags|=4096,t)}function Z$(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),lx(e.return,t,r)}function U0(e,t,r,n,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function bM(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(Qo(e,t,n.children,r),n=Cn.current,n&2)n=n&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&&Z$(e,r,t);else if(e.tag===19)Z$(e,r,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}n&=1}if(ln(Cn,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Zv(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),U0(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Zv(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}U0(t,!0,r,null,a);break;case"together":U0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function uv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ic|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(et(153));if(t.child!==null){for(e=t.child,r=Ml(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ml(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function f8(e,t,r){switch(t.tag){case 3:gM(t),rd();break;case 5:WD(t);break;case 1:ga(t.type)&&Gv(t);break;case 4:JS(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;ln(Yv,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ln(Cn,Cn.current&1),t.flags|=128,null):r&t.child.childLanes?yM(e,t,r):(ln(Cn,Cn.current&1),e=Xs(e,t,r),e!==null?e.sibling:null);ln(Cn,Cn.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return bM(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ln(Cn,Cn.current),n)break;return null;case 22:case 23:return t.lanes=0,mM(e,t,r)}return Xs(e,t,r)}var wM,vx,xM,SM;wM=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};vx=function(){};xM=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,mc(xs.current);var a=null;switch(r){case"input":o=Nw(e,o),n=Nw(e,n),a=[];break;case"select":o=Pn({},o,{value:void 0}),n=Pn({},n,{value:void 0}),a=[];break;case"textarea":o=zw(e,o),n=zw(e,n),a=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Hv)}Uw(r,n);var i;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(yp.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var l=n[c];if(s=o!=null?o[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(a||(a=[]),a.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(yp.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&fn("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};SM=function(e,t,r,n){r!==n&&(t.flags|=4)};function lf(e,t){if(!gn)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function jo(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function p8(e,t,r){var n=t.pendingProps;switch(GS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jo(t),null;case 1:return ga(t.type)&&Wv(),jo(t),null;case 3:return n=t.stateNode,od(),pn(va),pn(Fo),tC(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(gm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vi!==null&&(Tx(Vi),Vi=null))),vx(e,t),jo(t),null;case 5:eC(t);var o=mc(Ep.current);if(r=t.type,e!==null&&t.stateNode!=null)xM(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(et(166));return jo(t),null}if(e=mc(xs.current),gm(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[vs]=t,n[kp]=a,e=(t.mode&1)!==0,r){case"dialog":fn("cancel",n),fn("close",n);break;case"iframe":case"object":case"embed":fn("load",n);break;case"video":case"audio":for(o=0;o<Af.length;o++)fn(Af[o],n);break;case"source":fn("error",n);break;case"img":case"image":case"link":fn("error",n),fn("load",n);break;case"details":fn("toggle",n);break;case"input":s$(n,a),fn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},fn("invalid",n);break;case"textarea":c$(n,a),fn("invalid",n)}Uw(r,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&vm(n.textContent,s,e),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&vm(n.textContent,s,e),o=["children",""+s]):yp.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&fn("scroll",n)}switch(r){case"input":lm(n),l$(n,a,!0);break;case"textarea":lm(n),u$(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=Hv)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=X_(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[vs]=t,e[kp]=n,wM(e,t,!1,!1),t.stateNode=e;e:{switch(i=Hw(r,n),r){case"dialog":fn("cancel",e),fn("close",e),o=n;break;case"iframe":case"object":case"embed":fn("load",e),o=n;break;case"video":case"audio":for(o=0;o<Af.length;o++)fn(Af[o],e);o=n;break;case"source":fn("error",e),o=n;break;case"img":case"image":case"link":fn("error",e),fn("load",e),o=n;break;case"details":fn("toggle",e),o=n;break;case"input":s$(e,n),o=Nw(e,n),fn("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Pn({},n,{value:void 0}),fn("invalid",e);break;case"textarea":c$(e,n),o=zw(e,n),fn("invalid",e);break;default:o=n}Uw(r,o),s=o;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?J_(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Q_(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&bp(e,l):typeof l=="number"&&bp(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(yp.hasOwnProperty(a)?l!=null&&a==="onScroll"&&fn("scroll",e):l!=null&&OS(e,a,l,i))}switch(r){case"input":lm(e),l$(e,n,!1);break;case"textarea":lm(e),u$(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ll(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Uu(e,!!n.multiple,a,!1):n.defaultValue!=null&&Uu(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Hv)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return jo(t),null;case 6:if(e&&t.stateNode!=null)SM(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(et(166));if(r=mc(Ep.current),mc(xs.current),gm(t)){if(n=t.stateNode,r=t.memoizedProps,n[vs]=t,(a=n.nodeValue!==r)&&(e=Na,e!==null))switch(e.tag){case 3:vm(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vm(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[vs]=t,t.stateNode=n}return jo(t),null;case 13:if(pn(Cn),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(gn&&La!==null&&t.mode&1&&!(t.flags&128))BD(),rd(),t.flags|=98560,a=!1;else if(a=gm(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(et(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(et(317));a[vs]=t}else rd(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jo(t),a=!1}else Vi!==null&&(Tx(Vi),Vi=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Cn.current&1?io===0&&(io=3):pC())),t.updateQueue!==null&&(t.flags|=4),jo(t),null);case 4:return od(),vx(e,t),e===null&&$p(t.stateNode.containerInfo),jo(t),null;case 10:return XS(t.type._context),jo(t),null;case 17:return ga(t.type)&&Wv(),jo(t),null;case 19:if(pn(Cn),a=t.memoizedState,a===null)return jo(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)lf(a,!1);else{if(io!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Zv(e),i!==null){for(t.flags|=128,lf(a,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ln(Cn,Cn.current&1|2),t.child}e=e.sibling}a.tail!==null&&zn()>id&&(t.flags|=128,n=!0,lf(a,!1),t.lanes=4194304)}else{if(!n)if(e=Zv(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),lf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!gn)return jo(t),null}else 2*zn()-a.renderingStartTime>id&&r!==1073741824&&(t.flags|=128,n=!0,lf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=zn(),t.sibling=null,r=Cn.current,ln(Cn,n?r&1|2:r&1),t):(jo(t),null);case 22:case 23:return fC(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ma&1073741824&&(jo(t),t.subtreeFlags&6&&(t.flags|=8192)):jo(t),null;case 24:return null;case 25:return null}throw Error(et(156,t.tag))}function h8(e,t){switch(GS(t),t.tag){case 1:return ga(t.type)&&Wv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return od(),pn(va),pn(Fo),tC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return eC(t),null;case 13:if(pn(Cn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(et(340));rd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pn(Cn),null;case 4:return od(),null;case 10:return XS(t.type._context),null;case 22:case 23:return fC(),null;case 24:return null;default:return null}}var wm=!1,Lo=!1,m8=typeof WeakSet=="function"?WeakSet:Set,Et=null;function ju(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){jn(e,t,n)}else r.current=null}function gx(e,t,r){try{r()}catch(n){jn(e,t,n)}}var J$=!1;function v8(e,t){if(ex=zv,e=RD(),HS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==r||o!==0&&d.nodeType!==3||(s=i+o),d!==a||n!==0&&d.nodeType!==3||(l=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===r&&++c===o&&(s=i),f===a&&++u===n&&(l=i),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(tx={focusedElem:e,selectionRange:r},zv=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){t=Et;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,x=p.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ni(t.type,m),x);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(et(163))}}catch(S){jn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Et=e;break}Et=t.return}return p=J$,J$=!1,p}function Zf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&gx(t,r,a)}o=o.next}while(o!==n)}}function ey(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function yx(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function CM(e){var t=e.alternate;t!==null&&(e.alternate=null,CM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vs],delete t[kp],delete t[ox],delete t[Zz],delete t[Jz])),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 TM(e){return e.tag===5||e.tag===3||e.tag===4}function eR(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TM(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 bx(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Hv));else if(n!==4&&(e=e.child,e!==null))for(bx(e,t,r),e=e.sibling;e!==null;)bx(e,t,r),e=e.sibling}function wx(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(wx(e,t,r),e=e.sibling;e!==null;)wx(e,t,r),e=e.sibling}var Eo=null,Fi=!1;function ll(e,t,r){for(r=r.child;r!==null;)PM(e,t,r),r=r.sibling}function PM(e,t,r){if(ws&&typeof ws.onCommitFiberUnmount=="function")try{ws.onCommitFiberUnmount(Gg,r)}catch{}switch(r.tag){case 5:Lo||ju(r,t);case 6:var n=Eo,o=Fi;Eo=null,ll(e,t,r),Eo=n,Fi=o,Eo!==null&&(Fi?(e=Eo,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Eo.removeChild(r.stateNode));break;case 18:Eo!==null&&(Fi?(e=Eo,r=r.stateNode,e.nodeType===8?j0(e.parentNode,r):e.nodeType===1&&j0(e,r),Cp(e)):j0(Eo,r.stateNode));break;case 4:n=Eo,o=Fi,Eo=r.stateNode.containerInfo,Fi=!0,ll(e,t,r),Eo=n,Fi=o;break;case 0:case 11:case 14:case 15:if(!Lo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&gx(r,t,i),o=o.next}while(o!==n)}ll(e,t,r);break;case 1:if(!Lo&&(ju(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){jn(r,t,s)}ll(e,t,r);break;case 21:ll(e,t,r);break;case 22:r.mode&1?(Lo=(n=Lo)||r.memoizedState!==null,ll(e,t,r),Lo=n):ll(e,t,r);break;default:ll(e,t,r)}}function tR(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new m8),t.forEach(function(n){var o=P8.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Ai(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:Eo=s.stateNode,Fi=!1;break e;case 3:Eo=s.stateNode.containerInfo,Fi=!0;break e;case 4:Eo=s.stateNode.containerInfo,Fi=!0;break e}s=s.return}if(Eo===null)throw Error(et(160));PM(a,i,o),Eo=null,Fi=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){jn(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$M(t,e),t=t.sibling}function $M(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ai(t,e),ls(e),n&4){try{Zf(3,e,e.return),ey(3,e)}catch(m){jn(e,e.return,m)}try{Zf(5,e,e.return)}catch(m){jn(e,e.return,m)}}break;case 1:Ai(t,e),ls(e),n&512&&r!==null&&ju(r,r.return);break;case 5:if(Ai(t,e),ls(e),n&512&&r!==null&&ju(r,r.return),e.flags&32){var o=e.stateNode;try{bp(o,"")}catch(m){jn(e,e.return,m)}}if(n&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&q_(o,a),Hw(s,i);var c=Hw(s,a);for(i=0;i<l.length;i+=2){var u=l[i],d=l[i+1];u==="style"?J_(o,d):u==="dangerouslySetInnerHTML"?Q_(o,d):u==="children"?bp(o,d):OS(o,u,d,c)}switch(s){case"input":Fw(o,a);break;case"textarea":Y_(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?Uu(o,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?Uu(o,!!a.multiple,a.defaultValue,!0):Uu(o,!!a.multiple,a.multiple?[]:"",!1))}o[kp]=a}catch(m){jn(e,e.return,m)}}break;case 6:if(Ai(t,e),ls(e),n&4){if(e.stateNode===null)throw Error(et(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){jn(e,e.return,m)}}break;case 3:if(Ai(t,e),ls(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Cp(t.containerInfo)}catch(m){jn(e,e.return,m)}break;case 4:Ai(t,e),ls(e);break;case 13:Ai(t,e),ls(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(uC=zn())),n&4&&tR(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(Lo=(c=Lo)||u,Ai(t,e),Lo=c):Ai(t,e),ls(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Et=e,u=e.child;u!==null;){for(d=Et=u;Et!==null;){switch(f=Et,h=f.child,f.tag){case 0:case 11:case 14:case 15:Zf(4,f,f.return);break;case 1:ju(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){jn(n,r,m)}}break;case 5:ju(f,f.return);break;case 22:if(f.memoizedState!==null){nR(d);continue}}h!==null?(h.return=f,Et=h):nR(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,l=d.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Z_("display",i))}catch(m){jn(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){jn(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ai(t,e),ls(e),n&4&&tR(e);break;case 21:break;default:Ai(t,e),ls(e)}}function ls(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(TM(r)){var n=r;break e}r=r.return}throw Error(et(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(bp(o,""),n.flags&=-33);var a=eR(e);wx(e,a,o);break;case 3:case 4:var i=n.stateNode.containerInfo,s=eR(e);bx(e,s,i);break;default:throw Error(et(161))}}catch(l){jn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function g8(e,t,r){Et=e,RM(e)}function RM(e,t,r){for(var n=(e.mode&1)!==0;Et!==null;){var o=Et,a=o.child;if(o.tag===22&&n){var i=o.memoizedState!==null||wm;if(!i){var s=o.alternate,l=s!==null&&s.memoizedState!==null||Lo;s=wm;var c=Lo;if(wm=i,(Lo=l)&&!c)for(Et=o;Et!==null;)i=Et,l=i.child,i.tag===22&&i.memoizedState!==null?oR(o):l!==null?(l.return=i,Et=l):oR(o);for(;a!==null;)Et=a,RM(a),a=a.sibling;Et=o,wm=s,Lo=c}rR(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,Et=a):rR(e)}}function rR(e){for(;Et!==null;){var t=Et;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Lo||ey(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Lo)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Ni(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&B$(t,a,n);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}B$(t,i,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Cp(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(et(163))}Lo||t.flags&512&&yx(t)}catch(f){jn(t,t.return,f)}}if(t===e){Et=null;break}if(r=t.sibling,r!==null){r.return=t.return,Et=r;break}Et=t.return}}function nR(e){for(;Et!==null;){var t=Et;if(t===e){Et=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Et=r;break}Et=t.return}}function oR(e){for(;Et!==null;){var t=Et;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ey(4,t)}catch(l){jn(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(l){jn(t,o,l)}}var a=t.return;try{yx(t)}catch(l){jn(t,a,l)}break;case 5:var i=t.return;try{yx(t)}catch(l){jn(t,i,l)}}}catch(l){jn(t,t.return,l)}if(t===e){Et=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Et=s;break}Et=t.return}}var y8=Math.ceil,tg=Js.ReactCurrentDispatcher,lC=Js.ReactCurrentOwner,vi=Js.ReactCurrentBatchConfig,Ar=0,Co=null,Zn=null,Oo=0,Ma=0,Lu=Ul(0),io=0,Mp=null,Ic=0,ty=0,cC=0,Jf=null,da=null,uC=0,id=1/0,js=null,rg=!1,xx=null,_l=null,xm=!1,Sl=null,ng=0,ep=0,Sx=null,dv=-1,fv=0;function Jo(){return Ar&6?zn():dv!==-1?dv:dv=zn()}function Dl(e){return e.mode&1?Ar&2&&Oo!==0?Oo&-Oo:t8.transition!==null?(fv===0&&(fv=dD()),fv):(e=Gr,e!==0||(e=window.event,e=e===void 0?16:yD(e.type)),e):1}function qi(e,t,r,n){if(50<ep)throw ep=0,Sx=null,Error(et(185));th(e,r,n),(!(Ar&2)||e!==Co)&&(e===Co&&(!(Ar&2)&&(ty|=r),io===4&&wl(e,Oo)),ya(e,n),r===1&&Ar===0&&!(t.mode&1)&&(id=zn()+500,Qg&&Hl()))}function ya(e,t){var r=e.callbackNode;tz(e,t);var n=Bv(e,e===Co?Oo:0);if(n===0)r!==null&&p$(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&p$(r),t===1)e.tag===0?e8(aR.bind(null,e)):LD(aR.bind(null,e)),Xz(function(){!(Ar&6)&&Hl()}),r=null;else{switch(fD(n)){case 1:r=jS;break;case 4:r=cD;break;case 16:r=Fv;break;case 536870912:r=uD;break;default:r=Fv}r=AM(r,kM.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function kM(e,t){if(dv=-1,fv=0,Ar&6)throw Error(et(327));var r=e.callbackNode;if(qu()&&e.callbackNode!==r)return null;var n=Bv(e,e===Co?Oo:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=og(e,n);else{t=n;var o=Ar;Ar|=2;var a=EM();(Co!==e||Oo!==t)&&(js=null,id=zn()+500,wc(e,t));do try{x8();break}catch(s){IM(e,s)}while(!0);YS(),tg.current=a,Ar=o,Zn!==null?t=0:(Co=null,Oo=0,t=io)}if(t!==0){if(t===2&&(o=Yw(e),o!==0&&(n=o,t=Cx(e,o))),t===1)throw r=Mp,wc(e,0),wl(e,n),ya(e,zn()),r;if(t===6)wl(e,n);else{if(o=e.current.alternate,!(n&30)&&!b8(o)&&(t=og(e,n),t===2&&(a=Yw(e),a!==0&&(n=a,t=Cx(e,a))),t===1))throw r=Mp,wc(e,0),wl(e,n),ya(e,zn()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(et(345));case 2:sc(e,da,js);break;case 3:if(wl(e,n),(n&130023424)===n&&(t=uC+500-zn(),10<t)){if(Bv(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){Jo(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=nx(sc.bind(null,e,da,js),t);break}sc(e,da,js);break;case 4:if(wl(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Ki(n);a=1<<i,i=t[i],i>o&&(o=i),n&=~a}if(n=o,n=zn()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*y8(n/1960))-n,10<n){e.timeoutHandle=nx(sc.bind(null,e,da,js),n);break}sc(e,da,js);break;case 5:sc(e,da,js);break;default:throw Error(et(329))}}}return ya(e,zn()),e.callbackNode===r?kM.bind(null,e):null}function Cx(e,t){var r=Jf;return e.current.memoizedState.isDehydrated&&(wc(e,t).flags|=256),e=og(e,t),e!==2&&(t=da,da=r,t!==null&&Tx(t)),e}function Tx(e){da===null?da=e:da.push.apply(da,e)}function b8(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!Xi(a(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 wl(e,t){for(t&=~cC,t&=~ty,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ki(t),n=1<<r;e[r]=-1,t&=~n}}function aR(e){if(Ar&6)throw Error(et(327));qu();var t=Bv(e,0);if(!(t&1))return ya(e,zn()),null;var r=og(e,t);if(e.tag!==0&&r===2){var n=Yw(e);n!==0&&(t=n,r=Cx(e,n))}if(r===1)throw r=Mp,wc(e,0),wl(e,t),ya(e,zn()),r;if(r===6)throw Error(et(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sc(e,da,js),ya(e,zn()),null}function dC(e,t){var r=Ar;Ar|=1;try{return e(t)}finally{Ar=r,Ar===0&&(id=zn()+500,Qg&&Hl())}}function Ec(e){Sl!==null&&Sl.tag===0&&!(Ar&6)&&qu();var t=Ar;Ar|=1;var r=vi.transition,n=Gr;try{if(vi.transition=null,Gr=1,e)return e()}finally{Gr=n,vi.transition=r,Ar=t,!(Ar&6)&&Hl()}}function fC(){Ma=Lu.current,pn(Lu)}function wc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Yz(r)),Zn!==null)for(r=Zn.return;r!==null;){var n=r;switch(GS(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Wv();break;case 3:od(),pn(va),pn(Fo),tC();break;case 5:eC(n);break;case 4:od();break;case 13:pn(Cn);break;case 19:pn(Cn);break;case 10:XS(n.type._context);break;case 22:case 23:fC()}r=r.return}if(Co=e,Zn=e=Ml(e.current,null),Oo=Ma=t,io=0,Mp=null,cC=ty=Ic=0,da=Jf=null,hc!==null){for(t=0;t<hc.length;t++)if(r=hc[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,a=r.pending;if(a!==null){var i=a.next;a.next=o,n.next=i}r.pending=n}hc=null}return e}function IM(e,t){do{var r=Zn;try{if(YS(),lv.current=eg,Jv){for(var n=Tn.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Jv=!1}if(kc=0,xo=ao=Tn=null,Qf=!1,Op=0,lC.current=null,r===null||r.return===null){io=1,Mp=t,Zn=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=Oo,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=G$(i);if(h!==null){h.flags&=-257,K$(h,i,s,a,t),h.mode&1&&W$(a,c,t),t=h,l=c;var p=t.updateQueue;if(p===null){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}else{if(!(t&1)){W$(a,c,t),pC();break e}l=Error(et(426))}}else if(gn&&s.mode&1){var x=G$(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),K$(x,i,s,a,t),KS(ad(l,s));break e}}a=l=ad(l,s),io!==4&&(io=2),Jf===null?Jf=[a]:Jf.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var b=fM(a,l,t);F$(a,b);break e;case 1:s=l;var w=a.type,g=a.stateNode;if(!(a.flags&128)&&(typeof w.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(_l===null||!_l.has(g)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=pM(a,s,t);F$(a,S);break e}}a=a.return}while(a!==null)}_M(r)}catch(R){t=R,Zn===r&&r!==null&&(Zn=r=r.return);continue}break}while(!0)}function EM(){var e=tg.current;return tg.current=eg,e===null?eg:e}function pC(){(io===0||io===3||io===2)&&(io=4),Co===null||!(Ic&268435455)&&!(ty&268435455)||wl(Co,Oo)}function og(e,t){var r=Ar;Ar|=2;var n=EM();(Co!==e||Oo!==t)&&(js=null,wc(e,t));do try{w8();break}catch(o){IM(e,o)}while(!0);if(YS(),Ar=r,tg.current=n,Zn!==null)throw Error(et(261));return Co=null,Oo=0,io}function w8(){for(;Zn!==null;)OM(Zn)}function x8(){for(;Zn!==null&&!G6();)OM(Zn)}function OM(e){var t=MM(e.alternate,e,Ma);e.memoizedProps=e.pendingProps,t===null?_M(e):Zn=t,lC.current=null}function _M(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=h8(r,t),r!==null){r.flags&=32767,Zn=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{io=6,Zn=null;return}}else if(r=p8(r,t,Ma),r!==null){Zn=r;return}if(t=t.sibling,t!==null){Zn=t;return}Zn=t=e}while(t!==null);io===0&&(io=5)}function sc(e,t,r){var n=Gr,o=vi.transition;try{vi.transition=null,Gr=1,S8(e,t,r,n)}finally{vi.transition=o,Gr=n}return null}function S8(e,t,r,n){do qu();while(Sl!==null);if(Ar&6)throw Error(et(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(et(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(rz(e,a),e===Co&&(Zn=Co=null,Oo=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||xm||(xm=!0,AM(Fv,function(){return qu(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=vi.transition,vi.transition=null;var i=Gr;Gr=1;var s=Ar;Ar|=4,lC.current=null,v8(e,r),$M(r,e),Vz(tx),zv=!!ex,tx=ex=null,e.current=r,g8(r),K6(),Ar=s,Gr=i,vi.transition=a}else e.current=r;if(xm&&(xm=!1,Sl=e,ng=o),a=e.pendingLanes,a===0&&(_l=null),X6(r.stateNode),ya(e,zn()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(rg)throw rg=!1,e=xx,xx=null,e;return ng&1&&e.tag!==0&&qu(),a=e.pendingLanes,a&1?e===Sx?ep++:(ep=0,Sx=e):ep=0,Hl(),null}function qu(){if(Sl!==null){var e=fD(ng),t=vi.transition,r=Gr;try{if(vi.transition=null,Gr=16>e?16:e,Sl===null)var n=!1;else{if(e=Sl,Sl=null,ng=0,Ar&6)throw Error(et(331));var o=Ar;for(Ar|=4,Et=e.current;Et!==null;){var a=Et,i=a.child;if(Et.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Et=c;Et!==null;){var u=Et;switch(u.tag){case 0:case 11:case 15:Zf(8,u,a)}var d=u.child;if(d!==null)d.return=u,Et=d;else for(;Et!==null;){u=Et;var f=u.sibling,h=u.return;if(CM(u),u===c){Et=null;break}if(f!==null){f.return=h,Et=f;break}Et=h}}}var p=a.alternate;if(p!==null){var m=p.child;if(m!==null){p.child=null;do{var x=m.sibling;m.sibling=null,m=x}while(m!==null)}}Et=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,Et=i;else e:for(;Et!==null;){if(a=Et,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Zf(9,a,a.return)}var b=a.sibling;if(b!==null){b.return=a.return,Et=b;break e}Et=a.return}}var w=e.current;for(Et=w;Et!==null;){i=Et;var g=i.child;if(i.subtreeFlags&2064&&g!==null)g.return=i,Et=g;else e:for(i=w;Et!==null;){if(s=Et,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:ey(9,s)}}catch(R){jn(s,s.return,R)}if(s===i){Et=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Et=S;break e}Et=s.return}}if(Ar=o,Hl(),ws&&typeof ws.onPostCommitFiberRoot=="function")try{ws.onPostCommitFiberRoot(Gg,e)}catch{}n=!0}return n}finally{Gr=r,vi.transition=t}}return!1}function iR(e,t,r){t=ad(r,t),t=fM(e,t,1),e=Ol(e,t,1),t=Jo(),e!==null&&(th(e,1,t),ya(e,t))}function jn(e,t,r){if(e.tag===3)iR(e,e,r);else for(;t!==null;){if(t.tag===3){iR(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(_l===null||!_l.has(n))){e=ad(r,e),e=pM(t,e,1),t=Ol(t,e,1),e=Jo(),t!==null&&(th(t,1,e),ya(t,e));break}}t=t.return}}function C8(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Jo(),e.pingedLanes|=e.suspendedLanes&r,Co===e&&(Oo&r)===r&&(io===4||io===3&&(Oo&130023424)===Oo&&500>zn()-uC?wc(e,0):cC|=r),ya(e,t)}function DM(e,t){t===0&&(e.mode&1?(t=dm,dm<<=1,!(dm&130023424)&&(dm=4194304)):t=1);var r=Jo();e=Ys(e,t),e!==null&&(th(e,t,r),ya(e,r))}function T8(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),DM(e,r)}function P8(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(et(314))}n!==null&&n.delete(t),DM(e,r)}var MM;MM=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||va.current)ma=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return ma=!1,f8(e,t,r);ma=!!(e.flags&131072)}else ma=!1,gn&&t.flags&1048576&&ND(t,qv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;uv(e,t),e=t.pendingProps;var o=td(t,Fo.current);Ku(t,r),o=nC(null,t,n,e,o,r);var a=oC();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,ga(n)?(a=!0,Gv(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ZS(t),o.updater=Jg,t.stateNode=o,o._reactInternals=t,ux(t,n,e,r),t=px(null,t,n,!0,a,r)):(t.tag=0,gn&&a&&WS(t),Qo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(uv(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=R8(n),e=Ni(n,e),o){case 0:t=fx(null,t,n,e,r);break e;case 1:t=X$(null,t,n,e,r);break e;case 11:t=q$(null,t,n,e,r);break e;case 14:t=Y$(null,t,n,Ni(n.type,e),r);break e}throw Error(et(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ni(n,o),fx(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ni(n,o),X$(e,t,n,o,r);case 3:e:{if(gM(t),e===null)throw Error(et(387));n=t.pendingProps,a=t.memoizedState,o=a.element,HD(e,t),Qv(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=ad(Error(et(423)),t),t=Q$(e,t,n,r,o);break e}else if(n!==o){o=ad(Error(et(424)),t),t=Q$(e,t,n,r,o);break e}else for(La=El(t.stateNode.containerInfo.firstChild),Na=t,gn=!0,Vi=null,r=VD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(rd(),n===o){t=Xs(e,t,r);break e}Qo(e,t,n,r)}t=t.child}return t;case 5:return WD(t),e===null&&sx(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,rx(n,o)?i=null:a!==null&&rx(n,a)&&(t.flags|=32),vM(e,t),Qo(e,t,i,r),t.child;case 6:return e===null&&sx(t),null;case 13:return yM(e,t,r);case 4:return JS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=nd(t,null,n,r):Qo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ni(n,o),q$(e,t,n,o,r);case 7:return Qo(e,t,t.pendingProps,r),t.child;case 8:return Qo(e,t,t.pendingProps.children,r),t.child;case 12:return Qo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,ln(Yv,n._currentValue),n._currentValue=i,a!==null)if(Xi(a.value,i)){if(a.children===o.children&&!va.current){t=Xs(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Vs(-1,r&-r),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),lx(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(et(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),lx(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Qo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Ku(t,r),o=bi(o),n=n(o),t.flags|=1,Qo(e,t,n,r),t.child;case 14:return n=t.type,o=Ni(n,t.pendingProps),o=Ni(n.type,o),Y$(e,t,n,o,r);case 15:return hM(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ni(n,o),uv(e,t),t.tag=1,ga(n)?(e=!0,Gv(t)):e=!1,Ku(t,r),dM(t,n,o),ux(t,n,o,r),px(null,t,n,!0,e,r);case 19:return bM(e,t,r);case 22:return mM(e,t,r)}throw Error(et(156,t.tag))};function AM(e,t){return lD(e,t)}function $8(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hi(e,t,r,n){return new $8(e,t,r,n)}function hC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R8(e){if(typeof e=="function")return hC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===DS)return 11;if(e===MS)return 14}return 2}function Ml(e,t){var r=e.alternate;return r===null?(r=hi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function pv(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")hC(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ru:return xc(r.children,o,a,t);case _S:i=8,o|=8;break;case Mw:return e=hi(12,r,t,o|2),e.elementType=Mw,e.lanes=a,e;case Aw:return e=hi(13,r,t,o),e.elementType=Aw,e.lanes=a,e;case jw:return e=hi(19,r,t,o),e.elementType=jw,e.lanes=a,e;case W_:return ry(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U_:i=10;break e;case H_:i=9;break e;case DS:i=11;break e;case MS:i=14;break e;case vl:i=16,n=null;break e}throw Error(et(130,e==null?e:typeof e,""))}return t=hi(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function xc(e,t,r,n){return e=hi(7,e,n,t),e.lanes=r,e}function ry(e,t,r,n){return e=hi(22,e,n,t),e.elementType=W_,e.lanes=r,e.stateNode={isHidden:!1},e}function H0(e,t,r){return e=hi(6,e,null,t),e.lanes=r,e}function W0(e,t,r){return t=hi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function k8(e,t,r,n,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=P0(0),this.expirationTimes=P0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=P0(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function mC(e,t,r,n,o,a,i,s,l){return e=new k8(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=hi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ZS(a),e}function I8(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$u,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function jM(e){if(!e)return Nl;e=e._reactInternals;e:{if(Hc(e)!==e||e.tag!==1)throw Error(et(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ga(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(et(171))}if(e.tag===1){var r=e.type;if(ga(r))return jD(e,r,t)}return t}function LM(e,t,r,n,o,a,i,s,l){return e=mC(r,n,!0,e,o,a,i,s,l),e.context=jM(null),r=e.current,n=Jo(),o=Dl(r),a=Vs(n,o),a.callback=t??null,Ol(r,a,o),e.current.lanes=o,th(e,o,n),ya(e,n),e}function ny(e,t,r,n){var o=t.current,a=Jo(),i=Dl(o);return r=jM(r),t.context===null?t.context=r:t.pendingContext=r,t=Vs(a,i),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Ol(o,t,i),e!==null&&(qi(e,o,i,a),sv(e,o,i)),i}function ag(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 sR(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function vC(e,t){sR(e,t),(e=e.alternate)&&sR(e,t)}function E8(){return null}var NM=typeof reportError=="function"?reportError:function(e){console.error(e)};function gC(e){this._internalRoot=e}oy.prototype.render=gC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(et(409));ny(e,t,null,null)};oy.prototype.unmount=gC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ec(function(){ny(null,e,null,null)}),t[qs]=null}};function oy(e){this._internalRoot=e}oy.prototype.unstable_scheduleHydration=function(e){if(e){var t=mD();e={blockedOn:null,target:e,priority:t};for(var r=0;r<bl.length&&t!==0&&t<bl[r].priority;r++);bl.splice(r,0,e),r===0&&gD(e)}};function yC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ay(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function lR(){}function O8(e,t,r,n,o){if(o){if(typeof n=="function"){var a=n;n=function(){var c=ag(i);a.call(c)}}var i=LM(t,n,e,0,null,!1,!1,"",lR);return e._reactRootContainer=i,e[qs]=i.current,$p(e.nodeType===8?e.parentNode:e),Ec(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var c=ag(l);s.call(c)}}var l=mC(e,0,!1,null,null,!1,!1,"",lR);return e._reactRootContainer=l,e[qs]=l.current,$p(e.nodeType===8?e.parentNode:e),Ec(function(){ny(t,l,r,n)}),l}function iy(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var s=o;o=function(){var l=ag(i);s.call(l)}}ny(t,i,e,o)}else i=O8(r,t,e,o,n);return ag(i)}pD=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Mf(t.pendingLanes);r!==0&&(LS(t,r|1),ya(t,zn()),!(Ar&6)&&(id=zn()+500,Hl()))}break;case 13:Ec(function(){var n=Ys(e,1);if(n!==null){var o=Jo();qi(n,e,1,o)}}),vC(e,1)}};NS=function(e){if(e.tag===13){var t=Ys(e,134217728);if(t!==null){var r=Jo();qi(t,e,134217728,r)}vC(e,134217728)}};hD=function(e){if(e.tag===13){var t=Dl(e),r=Ys(e,t);if(r!==null){var n=Jo();qi(r,e,t,n)}vC(e,t)}};mD=function(){return Gr};vD=function(e,t){var r=Gr;try{return Gr=e,t()}finally{Gr=r}};Gw=function(e,t,r){switch(t){case"input":if(Fw(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Xg(n);if(!o)throw Error(et(90));K_(n),Fw(n,o)}}}break;case"textarea":Y_(e,r);break;case"select":t=r.value,t!=null&&Uu(e,!!r.multiple,t,!1)}};rD=dC;nD=Ec;var _8={usingClientEntryPoint:!1,Events:[nh,Ou,Xg,eD,tD,dC]},cf={findFiberByHostInstance:pc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},D8={bundleType:cf.bundleType,version:cf.version,rendererPackageName:cf.rendererPackageName,rendererConfig:cf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Js.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=iD(e),e===null?null:e.stateNode},findFiberByHostInstance:cf.findFiberByHostInstance||E8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sm.isDisabled&&Sm.supportsFiber)try{Gg=Sm.inject(D8),ws=Sm}catch{}}Ua.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_8;Ua.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yC(t))throw Error(et(200));return I8(e,t,null,r)};Ua.createRoot=function(e,t){if(!yC(e))throw Error(et(299));var r=!1,n="",o=NM;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=mC(e,1,!1,null,null,r,!1,n,o),e[qs]=t.current,$p(e.nodeType===8?e.parentNode:e),new gC(t)};Ua.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(et(188)):(e=Object.keys(e).join(","),Error(et(268,e)));return e=iD(t),e=e===null?null:e.stateNode,e};Ua.flushSync=function(e){return Ec(e)};Ua.hydrate=function(e,t,r){if(!ay(t))throw Error(et(200));return iy(null,e,t,!0,r)};Ua.hydrateRoot=function(e,t,r){if(!yC(e))throw Error(et(405));var n=r!=null&&r.hydratedSources||null,o=!1,a="",i=NM;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=LM(t,null,e,1,r??null,o,!1,a,i),e[qs]=t.current,$p(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new oy(t)};Ua.render=function(e,t,r){if(!ay(t))throw Error(et(200));return iy(null,e,t,!1,r)};Ua.unmountComponentAtNode=function(e){if(!ay(e))throw Error(et(40));return e._reactRootContainer?(Ec(function(){iy(null,null,e,!1,function(){e._reactRootContainer=null,e[qs]=null})}),!0):!1};Ua.unstable_batchedUpdates=dC;Ua.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ay(r))throw Error(et(200));if(e==null||e._reactInternals===void 0)throw Error(et(38));return iy(e,t,r,!1,n)};Ua.version="18.3.1-next-f1338f8080-20240426";function FM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(FM)}catch(e){console.error(e)}}FM(),F_.exports=Ua;var ah=F_.exports;const jf=Rd(ah),M8=R_({__proto__:null,default:jf},[ah]);var cR=ah;_w.createRoot=cR.createRoot,_w.hydrateRoot=cR.hydrateRoot;/** + * @remix-run/router v1.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mn.apply(this,arguments)}var Yn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Yn||(Yn={}));const uR="popstate";function A8(e){e===void 0&&(e={});function t(n,o){let{pathname:a,search:i,hash:s}=n.location;return Ap("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:Oc(o)}return L8(t,r,null,e)}function $r(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function j8(){return Math.random().toString(36).substr(2,8)}function dR(e,t){return{usr:e.state,key:e.key,idx:t}}function Ap(e,t,r,n){return r===void 0&&(r=null),mn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wl(t):t,{state:r,key:t&&t.key||n||j8()})}function Oc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Wl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function L8(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Yn.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(mn({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function d(){s=Yn.Pop;let x=u(),b=x==null?null:x-c;c=x,l&&l({action:s,location:m.location,delta:b})}function f(x,b){s=Yn.Push;let w=Ap(m.location,x,b);c=u()+1;let g=dR(w,c),S=m.createHref(w);try{i.pushState(g,"",S)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(S)}a&&l&&l({action:s,location:m.location,delta:1})}function h(x,b){s=Yn.Replace;let w=Ap(m.location,x,b);c=u();let g=dR(w,c),S=m.createHref(w);i.replaceState(g,"",S),a&&l&&l({action:s,location:m.location,delta:0})}function p(x){let b=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof x=="string"?x:Oc(x);return w=w.replace(/ $/,"%20"),$r(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let m={get action(){return s},get location(){return e(o,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(uR,d),l=x,()=>{o.removeEventListener(uR,d),l=null}},createHref(x){return t(o,x)},createURL:p,encodeLocation(x){let b=p(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:h,go(x){return i.go(x)}};return m}var Qr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qr||(Qr={}));const N8=new Set(["lazy","caseSensitive","path","id","index","children"]);function F8(e){return e.index===!0}function ig(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,a)=>{let i=[...r,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if($r(o.index!==!0||!o.children,"Cannot specify children on an index route"),$r(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),F8(o)){let l=mn({},o,t(o),{id:s});return n[s]=l,l}else{let l=mn({},o,t(o),{id:s,children:void 0});return n[s]=l,o.children&&(l.children=ig(o.children,t,i,n)),l}})}function dc(e,t,r){return r===void 0&&(r="/"),hv(e,t,r,!1)}function hv(e,t,r,n){let o=typeof t=="string"?Wl(t):t,a=Od(o.pathname||"/",r);if(a==null)return null;let i=BM(e);z8(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let c=Z8(a);s=X8(i[l],c,n)}return s}function B8(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}function BM(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&($r(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Us([n,l.relativePath]),u=r.concat(l);a.children&&a.children.length>0&&($r(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),BM(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:q8(c,a.index),routesMeta:u})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of zM(a.path))o(a,i,l)}),t}function zM(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=zM(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function z8(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Y8(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const V8=/^:[\w-]+$/,U8=3,H8=2,W8=1,G8=10,K8=-2,fR=e=>e==="*";function q8(e,t){let r=e.split("/"),n=r.length;return r.some(fR)&&(n+=K8),t&&(n+=H8),r.filter(o=>!fR(o)).reduce((o,a)=>o+(V8.test(a)?U8:a===""?W8:G8),n)}function Y8(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function X8(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},a="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],c=s===n.length-1,u=a==="/"?t:t.slice(a.length)||"/",d=pR({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&r&&!n[n.length-1].route.index&&(d=pR({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(o,d.params),i.push({params:o,pathname:Us([a,d.pathname]),pathnameBase:tV(Us([a,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(a=Us([a,d.pathnameBase]))}return i}function pR(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Q8(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((c,u,d)=>{let{paramName:f,isOptional:h}=u;if(f==="*"){let m=s[d]||"";i=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?c[f]=void 0:c[f]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function Q8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),sd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Z8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Od(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function J8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Wl(e):e;return{pathname:r?r.startsWith("/")?r:eV(r,t):t,search:rV(n),hash:nV(o)}}function eV(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function G0(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function VM(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function bC(e,t){let r=VM(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function wC(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Wl(e):(o=mn({},e),$r(!o.pathname||!o.pathname.includes("?"),G0("?","pathname","search",o)),$r(!o.pathname||!o.pathname.includes("#"),G0("#","pathname","hash",o)),$r(!o.search||!o.search.includes("#"),G0("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=J8(o,s),c=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Us=e=>e.join("/").replace(/\/\/+/g,"/"),tV=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nV=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class sg{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function ih(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const UM=["post","put","patch","delete"],oV=new Set(UM),aV=["get",...UM],iV=new Set(aV),sV=new Set([301,302,303,307,308]),lV=new Set([307,308]),K0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},cV={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},xC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uV=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),HM="remix-router-transitions";function dV(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;$r(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ie=e.detectErrorBoundary;o=ve=>({hasErrorBoundary:ie(ve)})}else o=uV;let a={},i=ig(e.routes,o,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||mV,u=e.patchRoutesOnNavigation,d=mn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,p=null,m=null,x=null,b=e.hydrationData!=null,w=dc(i,e.history.location,l),g=null;if(w==null&&!u){let ie=ua(404,{pathname:e.history.location.pathname}),{matches:ve,route:_e}=TR(i);w=ve,g={[_e.id]:ie}}w&&!e.hydrationData&&Nn(w,i,e.history.location.pathname).active&&(w=null);let S;if(w)if(w.some(ie=>ie.route.lazy))S=!1;else if(!w.some(ie=>ie.route.loader))S=!0;else if(d.v7_partialHydration){let ie=e.hydrationData?e.hydrationData.loaderData:null,ve=e.hydrationData?e.hydrationData.errors:null;if(ve){let _e=w.findIndex(qe=>ve[qe.route.id]!==void 0);S=w.slice(0,_e+1).every(qe=>!$x(qe.route,ie,ve))}else S=w.every(_e=>!$x(_e.route,ie,ve))}else S=e.hydrationData!=null;else if(S=!1,w=[],d.v7_partialHydration){let ie=Nn(null,i,e.history.location.pathname);ie.active&&ie.matches&&(w=ie.matches)}let R,T={historyAction:e.history.action,location:e.history.location,matches:w,initialized:S,navigation:K0,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},k=Yn.Pop,O=!1,E,C=!1,D=new Map,B=null,U=!1,j=!1,N=[],V=new Set,ee=new Map,M=0,K=-1,te=new Map,oe=new Set,Ie=new Map,Te=new Map,ke=new Set,pe=new Map,Pe=new Map,Ae;function ge(){if(f=e.history.listen(ie=>{let{action:ve,location:_e,delta:qe}=ie;if(Ae){Ae(),Ae=void 0;return}sd(Pe.size===0||qe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ct=mt({currentLocation:T.location,nextLocation:_e,historyAction:ve});if(ct&&qe!=null){let ft=new Promise(Ct=>{Ae=Ct});e.history.go(qe*-1),Ot(ct,{state:"blocked",location:_e,proceed(){Ot(ct,{state:"proceeding",proceed:void 0,reset:void 0,location:_e}),ft.then(()=>e.history.go(qe))},reset(){let Ct=new Map(T.blockers);Ct.set(ct,uf),Q({blockers:Ct})}});return}return fe(ve,_e)}),r){IV(t,D);let ie=()=>EV(t,D);t.addEventListener("pagehide",ie),B=()=>t.removeEventListener("pagehide",ie)}return T.initialized||fe(Yn.Pop,T.location,{initialHydration:!0}),R}function G(){f&&f(),B&&B(),h.clear(),E&&E.abort(),T.fetchers.forEach((ie,ve)=>kt(ve)),T.blockers.forEach((ie,ve)=>Mt(ve))}function Y(ie){return h.add(ie),()=>h.delete(ie)}function Q(ie,ve){ve===void 0&&(ve={}),T=mn({},T,ie);let _e=[],qe=[];d.v7_fetcherPersist&&T.fetchers.forEach((ct,ft)=>{ct.state==="idle"&&(ke.has(ft)?qe.push(ft):_e.push(ft))}),[...h].forEach(ct=>ct(T,{deletedFetchers:qe,viewTransitionOpts:ve.viewTransitionOpts,flushSync:ve.flushSync===!0})),d.v7_fetcherPersist&&(_e.forEach(ct=>T.fetchers.delete(ct)),qe.forEach(ct=>kt(ct)))}function Z(ie,ve,_e){var qe,ct;let{flushSync:ft}=_e===void 0?{}:_e,Ct=T.actionData!=null&&T.navigation.formMethod!=null&&Bi(T.navigation.formMethod)&&T.navigation.state==="loading"&&((qe=ie.state)==null?void 0:qe._isRedirect)!==!0,vt;ve.actionData?Object.keys(ve.actionData).length>0?vt=ve.actionData:vt=null:Ct?vt=T.actionData:vt=null;let yt=ve.loaderData?SR(T.loaderData,ve.loaderData,ve.matches||[],ve.errors):T.loaderData,pt=T.blockers;pt.size>0&&(pt=new Map(pt),pt.forEach((zt,kr)=>pt.set(kr,uf)));let Oe=O===!0||T.navigation.formMethod!=null&&Bi(T.navigation.formMethod)&&((ct=ie.state)==null?void 0:ct._isRedirect)!==!0;s&&(i=s,s=void 0),U||k===Yn.Pop||(k===Yn.Push?e.history.push(ie,ie.state):k===Yn.Replace&&e.history.replace(ie,ie.state));let nt;if(k===Yn.Pop){let zt=D.get(T.location.pathname);zt&&zt.has(ie.pathname)?nt={currentLocation:T.location,nextLocation:ie}:D.has(ie.pathname)&&(nt={currentLocation:ie,nextLocation:T.location})}else if(C){let zt=D.get(T.location.pathname);zt?zt.add(ie.pathname):(zt=new Set([ie.pathname]),D.set(T.location.pathname,zt)),nt={currentLocation:T.location,nextLocation:ie}}Q(mn({},ve,{actionData:vt,loaderData:yt,historyAction:k,location:ie,initialized:!0,navigation:K0,revalidation:"idle",restoreScrollPosition:uo(ie,ve.matches||T.matches),preventScrollReset:Oe,blockers:pt}),{viewTransitionOpts:nt,flushSync:ft===!0}),k=Yn.Pop,O=!1,C=!1,U=!1,j=!1,N=[]}async function X(ie,ve){if(typeof ie=="number"){e.history.go(ie);return}let _e=Px(T.location,T.matches,l,d.v7_prependBasename,ie,d.v7_relativeSplatPath,ve==null?void 0:ve.fromRouteId,ve==null?void 0:ve.relative),{path:qe,submission:ct,error:ft}=hR(d.v7_normalizeFormMethod,!1,_e,ve),Ct=T.location,vt=Ap(T.location,qe,ve&&ve.state);vt=mn({},vt,e.history.encodeLocation(vt));let yt=ve&&ve.replace!=null?ve.replace:void 0,pt=Yn.Push;yt===!0?pt=Yn.Replace:yt===!1||ct!=null&&Bi(ct.formMethod)&&ct.formAction===T.location.pathname+T.location.search&&(pt=Yn.Replace);let Oe=ve&&"preventScrollReset"in ve?ve.preventScrollReset===!0:void 0,nt=(ve&&ve.flushSync)===!0,zt=mt({currentLocation:Ct,nextLocation:vt,historyAction:pt});if(zt){Ot(zt,{state:"blocked",location:vt,proceed(){Ot(zt,{state:"proceeding",proceed:void 0,reset:void 0,location:vt}),X(ie,ve)},reset(){let kr=new Map(T.blockers);kr.set(zt,uf),Q({blockers:kr})}});return}return await fe(pt,vt,{submission:ct,pendingError:ft,preventScrollReset:Oe,replace:ve&&ve.replace,enableViewTransition:ve&&ve.viewTransition,flushSync:nt})}function ae(){if(qt(),Q({revalidation:"loading"}),T.navigation.state!=="submitting"){if(T.navigation.state==="idle"){fe(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}fe(k||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:C===!0})}}async function fe(ie,ve,_e){E&&E.abort(),E=null,k=ie,U=(_e&&_e.startUninterruptedRevalidation)===!0,wn(T.location,T.matches),O=(_e&&_e.preventScrollReset)===!0,C=(_e&&_e.enableViewTransition)===!0;let qe=s||i,ct=_e&&_e.overrideNavigation,ft=dc(qe,ve,l),Ct=(_e&&_e.flushSync)===!0,vt=Nn(ft,qe,ve.pathname);if(vt.active&&vt.matches&&(ft=vt.matches),!ft){let{error:rr,notFoundMatches:nr,route:Ir}=dr(ve.pathname);Z(ve,{matches:nr,loaderData:{},errors:{[Ir.id]:rr}},{flushSync:Ct});return}if(T.initialized&&!j&&xV(T.location,ve)&&!(_e&&_e.submission&&Bi(_e.submission.formMethod))){Z(ve,{matches:ft},{flushSync:Ct});return}E=new AbortController;let yt=ou(e.history,ve,E.signal,_e&&_e.submission),pt;if(_e&&_e.pendingError)pt=[fc(ft).route.id,{type:Qr.error,error:_e.pendingError}];else if(_e&&_e.submission&&Bi(_e.submission.formMethod)){let rr=await xe(yt,ve,_e.submission,ft,vt.active,{replace:_e.replace,flushSync:Ct});if(rr.shortCircuited)return;if(rr.pendingActionResult){let[nr,Ir]=rr.pendingActionResult;if(Aa(Ir)&&ih(Ir.error)&&Ir.error.status===404){E=null,Z(ve,{matches:rr.matches,loaderData:{},errors:{[nr]:Ir.error}});return}}ft=rr.matches||ft,pt=rr.pendingActionResult,ct=q0(ve,_e.submission),Ct=!1,vt.active=!1,yt=ou(e.history,yt.url,yt.signal)}let{shortCircuited:Oe,matches:nt,loaderData:zt,errors:kr}=await we(yt,ve,ft,vt.active,ct,_e&&_e.submission,_e&&_e.fetcherSubmission,_e&&_e.replace,_e&&_e.initialHydration===!0,Ct,pt);Oe||(E=null,Z(ve,mn({matches:nt||ft},CR(pt),{loaderData:zt,errors:kr})))}async function xe(ie,ve,_e,qe,ct,ft){ft===void 0&&(ft={}),qt();let Ct=RV(ve,_e);if(Q({navigation:Ct},{flushSync:ft.flushSync===!0}),ct){let pt=await Xt(qe,ve.pathname,ie.signal);if(pt.type==="aborted")return{shortCircuited:!0};if(pt.type==="error"){let Oe=fc(pt.partialMatches).route.id;return{matches:pt.partialMatches,pendingActionResult:[Oe,{type:Qr.error,error:pt.error}]}}else if(pt.matches)qe=pt.matches;else{let{notFoundMatches:Oe,error:nt,route:zt}=dr(ve.pathname);return{matches:Oe,pendingActionResult:[zt.id,{type:Qr.error,error:nt}]}}}let vt,yt=Lf(qe,ve);if(!yt.route.action&&!yt.route.lazy)vt={type:Qr.error,error:ua(405,{method:ie.method,pathname:ve.pathname,routeId:yt.route.id})};else if(vt=(await St("action",T,ie,[yt],qe,null))[yt.route.id],ie.signal.aborted)return{shortCircuited:!0};if(vc(vt)){let pt;return ft&&ft.replace!=null?pt=ft.replace:pt=bR(vt.response.headers.get("Location"),new URL(ie.url),l)===T.location.pathname+T.location.search,await Ke(ie,vt,!0,{submission:_e,replace:pt}),{shortCircuited:!0}}if(Cl(vt))throw ua(400,{type:"defer-action"});if(Aa(vt)){let pt=fc(qe,yt.route.id);return(ft&&ft.replace)!==!0&&(k=Yn.Push),{matches:qe,pendingActionResult:[pt.route.id,vt]}}return{matches:qe,pendingActionResult:[yt.route.id,vt]}}async function we(ie,ve,_e,qe,ct,ft,Ct,vt,yt,pt,Oe){let nt=ct||q0(ve,ft),zt=ft||Ct||$R(nt),kr=!U&&(!d.v7_partialHydration||!yt);if(qe){if(kr){let Qt=$e(Oe);Q(mn({navigation:nt},Qt!==void 0?{actionData:Qt}:{}),{flushSync:pt})}let Vt=await Xt(_e,ve.pathname,ie.signal);if(Vt.type==="aborted")return{shortCircuited:!0};if(Vt.type==="error"){let Qt=fc(Vt.partialMatches).route.id;return{matches:Vt.partialMatches,loaderData:{},errors:{[Qt]:Vt.error}}}else if(Vt.matches)_e=Vt.matches;else{let{error:Qt,notFoundMatches:Ee,route:Fr}=dr(ve.pathname);return{matches:Ee,loaderData:{},errors:{[Fr.id]:Qt}}}}let rr=s||i,[nr,Ir]=vR(e.history,T,_e,zt,ve,d.v7_partialHydration&&yt===!0,d.v7_skipActionErrorRevalidation,j,N,V,ke,Ie,oe,rr,l,Oe);if(cr(Vt=>!(_e&&_e.some(Qt=>Qt.route.id===Vt))||nr&&nr.some(Qt=>Qt.route.id===Vt)),K=++M,nr.length===0&&Ir.length===0){let Vt=st();return Z(ve,mn({matches:_e,loaderData:{},errors:Oe&&Aa(Oe[1])?{[Oe[0]]:Oe[1].error}:null},CR(Oe),Vt?{fetchers:new Map(T.fetchers)}:{}),{flushSync:pt}),{shortCircuited:!0}}if(kr){let Vt={};if(!qe){Vt.navigation=nt;let Qt=$e(Oe);Qt!==void 0&&(Vt.actionData=Qt)}Ir.length>0&&(Vt.fetchers=ye(Ir)),Q(Vt,{flushSync:pt})}Ir.forEach(Vt=>{ir(Vt.key),Vt.controller&&ee.set(Vt.key,Vt.controller)});let eo=()=>Ir.forEach(Vt=>ir(Vt.key));E&&E.signal.addEventListener("abort",eo);let{loaderResults:vr,fetcherResults:an}=await Lt(T,_e,nr,Ir,ie);if(ie.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",eo),Ir.forEach(Vt=>ee.delete(Vt.key));let Cr=Cm(vr);if(Cr)return await Ke(ie,Cr.result,!0,{replace:vt}),{shortCircuited:!0};if(Cr=Cm(an),Cr)return oe.add(Cr.key),await Ke(ie,Cr.result,!0,{replace:vt}),{shortCircuited:!0};let{loaderData:Kn,errors:En}=xR(T,_e,vr,Oe,Ir,an,pe);pe.forEach((Vt,Qt)=>{Vt.subscribe(Ee=>{(Ee||Vt.done)&&pe.delete(Qt)})}),d.v7_partialHydration&&yt&&T.errors&&(En=mn({},T.errors,En));let en=st(),ut=He(K),On=en||ut||Ir.length>0;return mn({matches:_e,loaderData:Kn,errors:En},On?{fetchers:new Map(T.fetchers)}:{})}function $e(ie){if(ie&&!Aa(ie[1]))return{[ie[0]]:ie[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function ye(ie){return ie.forEach(ve=>{let _e=T.fetchers.get(ve.key),qe=df(void 0,_e?_e.data:void 0);T.fetchers.set(ve.key,qe)}),new Map(T.fetchers)}function De(ie,ve,_e,qe){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ir(ie);let ct=(qe&&qe.flushSync)===!0,ft=s||i,Ct=Px(T.location,T.matches,l,d.v7_prependBasename,_e,d.v7_relativeSplatPath,ve,qe==null?void 0:qe.relative),vt=dc(ft,Ct,l),yt=Nn(vt,ft,Ct);if(yt.active&&yt.matches&&(vt=yt.matches),!vt){lt(ie,ve,ua(404,{pathname:Ct}),{flushSync:ct});return}let{path:pt,submission:Oe,error:nt}=hR(d.v7_normalizeFormMethod,!0,Ct,qe);if(nt){lt(ie,ve,nt,{flushSync:ct});return}let zt=Lf(vt,pt),kr=(qe&&qe.preventScrollReset)===!0;if(Oe&&Bi(Oe.formMethod)){Ge(ie,ve,pt,zt,vt,yt.active,ct,kr,Oe);return}Ie.set(ie,{routeId:ve,path:pt}),bt(ie,ve,pt,zt,vt,yt.active,ct,kr,Oe)}async function Ge(ie,ve,_e,qe,ct,ft,Ct,vt,yt){qt(),Ie.delete(ie);function pt(xt){if(!xt.route.action&&!xt.route.lazy){let $o=ua(405,{method:yt.formMethod,pathname:_e,routeId:ve});return lt(ie,ve,$o,{flushSync:Ct}),!0}return!1}if(!ft&&pt(qe))return;let Oe=T.fetchers.get(ie);wt(ie,kV(yt,Oe),{flushSync:Ct});let nt=new AbortController,zt=ou(e.history,_e,nt.signal,yt);if(ft){let xt=await Xt(ct,_e,zt.signal);if(xt.type==="aborted")return;if(xt.type==="error"){lt(ie,ve,xt.error,{flushSync:Ct});return}else if(xt.matches){if(ct=xt.matches,qe=Lf(ct,_e),pt(qe))return}else{lt(ie,ve,ua(404,{pathname:_e}),{flushSync:Ct});return}}ee.set(ie,nt);let kr=M,nr=(await St("action",T,zt,[qe],ct,ie))[qe.route.id];if(zt.signal.aborted){ee.get(ie)===nt&&ee.delete(ie);return}if(d.v7_fetcherPersist&&ke.has(ie)){if(vc(nr)||Aa(nr)){wt(ie,hl(void 0));return}}else{if(vc(nr))if(ee.delete(ie),K>kr){wt(ie,hl(void 0));return}else return oe.add(ie),wt(ie,df(yt)),Ke(zt,nr,!1,{fetcherSubmission:yt,preventScrollReset:vt});if(Aa(nr)){lt(ie,ve,nr.error);return}}if(Cl(nr))throw ua(400,{type:"defer-action"});let Ir=T.navigation.location||T.location,eo=ou(e.history,Ir,nt.signal),vr=s||i,an=T.navigation.state!=="idle"?dc(vr,T.navigation.location,l):T.matches;$r(an,"Didn't find any matches after fetcher action");let Cr=++M;te.set(ie,Cr);let Kn=df(yt,nr.data);T.fetchers.set(ie,Kn);let[En,en]=vR(e.history,T,an,yt,Ir,!1,d.v7_skipActionErrorRevalidation,j,N,V,ke,Ie,oe,vr,l,[qe.route.id,nr]);en.filter(xt=>xt.key!==ie).forEach(xt=>{let $o=xt.key,ur=T.fetchers.get($o),Yr=df(void 0,ur?ur.data:void 0);T.fetchers.set($o,Yr),ir($o),xt.controller&&ee.set($o,xt.controller)}),Q({fetchers:new Map(T.fetchers)});let ut=()=>en.forEach(xt=>ir(xt.key));nt.signal.addEventListener("abort",ut);let{loaderResults:On,fetcherResults:Vt}=await Lt(T,an,En,en,eo);if(nt.signal.aborted)return;nt.signal.removeEventListener("abort",ut),te.delete(ie),ee.delete(ie),en.forEach(xt=>ee.delete(xt.key));let Qt=Cm(On);if(Qt)return Ke(eo,Qt.result,!1,{preventScrollReset:vt});if(Qt=Cm(Vt),Qt)return oe.add(Qt.key),Ke(eo,Qt.result,!1,{preventScrollReset:vt});let{loaderData:Ee,errors:Fr}=xR(T,an,On,void 0,en,Vt,pe);if(T.fetchers.has(ie)){let xt=hl(nr.data);T.fetchers.set(ie,xt)}He(Cr),T.navigation.state==="loading"&&Cr>K?($r(k,"Expected pending action"),E&&E.abort(),Z(T.navigation.location,{matches:an,loaderData:Ee,errors:Fr,fetchers:new Map(T.fetchers)})):(Q({errors:Fr,loaderData:SR(T.loaderData,Ee,an,Fr),fetchers:new Map(T.fetchers)}),j=!1)}async function bt(ie,ve,_e,qe,ct,ft,Ct,vt,yt){let pt=T.fetchers.get(ie);wt(ie,df(yt,pt?pt.data:void 0),{flushSync:Ct});let Oe=new AbortController,nt=ou(e.history,_e,Oe.signal);if(ft){let nr=await Xt(ct,_e,nt.signal);if(nr.type==="aborted")return;if(nr.type==="error"){lt(ie,ve,nr.error,{flushSync:Ct});return}else if(nr.matches)ct=nr.matches,qe=Lf(ct,_e);else{lt(ie,ve,ua(404,{pathname:_e}),{flushSync:Ct});return}}ee.set(ie,Oe);let zt=M,rr=(await St("loader",T,nt,[qe],ct,ie))[qe.route.id];if(Cl(rr)&&(rr=await SC(rr,nt.signal,!0)||rr),ee.get(ie)===Oe&&ee.delete(ie),!nt.signal.aborted){if(ke.has(ie)){wt(ie,hl(void 0));return}if(vc(rr))if(K>zt){wt(ie,hl(void 0));return}else{oe.add(ie),await Ke(nt,rr,!1,{preventScrollReset:vt});return}if(Aa(rr)){lt(ie,ve,rr.error);return}$r(!Cl(rr),"Unhandled fetcher deferred data"),wt(ie,hl(rr.data))}}async function Ke(ie,ve,_e,qe){let{submission:ct,fetcherSubmission:ft,preventScrollReset:Ct,replace:vt}=qe===void 0?{}:qe;ve.response.headers.has("X-Remix-Revalidate")&&(j=!0);let yt=ve.response.headers.get("Location");$r(yt,"Expected a Location header on the redirect Response"),yt=bR(yt,new URL(ie.url),l);let pt=Ap(T.location,yt,{_isRedirect:!0});if(r){let nr=!1;if(ve.response.headers.has("X-Remix-Reload-Document"))nr=!0;else if(xC.test(yt)){const Ir=e.history.createURL(yt);nr=Ir.origin!==t.location.origin||Od(Ir.pathname,l)==null}if(nr){vt?t.location.replace(yt):t.location.assign(yt);return}}E=null;let Oe=vt===!0||ve.response.headers.has("X-Remix-Replace")?Yn.Replace:Yn.Push,{formMethod:nt,formAction:zt,formEncType:kr}=T.navigation;!ct&&!ft&&nt&&zt&&kr&&(ct=$R(T.navigation));let rr=ct||ft;if(lV.has(ve.response.status)&&rr&&Bi(rr.formMethod))await fe(Oe,pt,{submission:mn({},rr,{formAction:yt}),preventScrollReset:Ct||O,enableViewTransition:_e?C:void 0});else{let nr=q0(pt,ct);await fe(Oe,pt,{overrideNavigation:nr,fetcherSubmission:ft,preventScrollReset:Ct||O,enableViewTransition:_e?C:void 0})}}async function St(ie,ve,_e,qe,ct,ft){let Ct,vt={};try{Ct=await vV(c,ie,ve,_e,qe,ct,ft,a,o)}catch(yt){return qe.forEach(pt=>{vt[pt.route.id]={type:Qr.error,error:yt}}),vt}for(let[yt,pt]of Object.entries(Ct))if(SV(pt)){let Oe=pt.result;vt[yt]={type:Qr.redirect,response:bV(Oe,_e,yt,ct,l,d.v7_relativeSplatPath)}}else vt[yt]=await yV(pt);return vt}async function Lt(ie,ve,_e,qe,ct){let ft=ie.matches,Ct=St("loader",ie,ct,_e,ve,null),vt=Promise.all(qe.map(async Oe=>{if(Oe.matches&&Oe.match&&Oe.controller){let zt=(await St("loader",ie,ou(e.history,Oe.path,Oe.controller.signal),[Oe.match],Oe.matches,Oe.key))[Oe.match.route.id];return{[Oe.key]:zt}}else return Promise.resolve({[Oe.key]:{type:Qr.error,error:ua(404,{pathname:Oe.path})}})})),yt=await Ct,pt=(await vt).reduce((Oe,nt)=>Object.assign(Oe,nt),{});return await Promise.all([PV(ve,yt,ct.signal,ft,ie.loaderData),$V(ve,pt,qe)]),{loaderResults:yt,fetcherResults:pt}}function qt(){j=!0,N.push(...cr()),Ie.forEach((ie,ve)=>{ee.has(ve)&&V.add(ve),ir(ve)})}function wt(ie,ve,_e){_e===void 0&&(_e={}),T.fetchers.set(ie,ve),Q({fetchers:new Map(T.fetchers)},{flushSync:(_e&&_e.flushSync)===!0})}function lt(ie,ve,_e,qe){qe===void 0&&(qe={});let ct=fc(T.matches,ve);kt(ie),Q({errors:{[ct.route.id]:_e},fetchers:new Map(T.fetchers)},{flushSync:(qe&&qe.flushSync)===!0})}function gt(ie){return d.v7_fetcherPersist&&(Te.set(ie,(Te.get(ie)||0)+1),ke.has(ie)&&ke.delete(ie)),T.fetchers.get(ie)||cV}function kt(ie){let ve=T.fetchers.get(ie);ee.has(ie)&&!(ve&&ve.state==="loading"&&te.has(ie))&&ir(ie),Ie.delete(ie),te.delete(ie),oe.delete(ie),ke.delete(ie),V.delete(ie),T.fetchers.delete(ie)}function dt(ie){if(d.v7_fetcherPersist){let ve=(Te.get(ie)||0)-1;ve<=0?(Te.delete(ie),ke.add(ie)):Te.set(ie,ve)}else kt(ie);Q({fetchers:new Map(T.fetchers)})}function ir(ie){let ve=ee.get(ie);ve&&(ve.abort(),ee.delete(ie))}function jr(ie){for(let ve of ie){let _e=gt(ve),qe=hl(_e.data);T.fetchers.set(ve,qe)}}function st(){let ie=[],ve=!1;for(let _e of oe){let qe=T.fetchers.get(_e);$r(qe,"Expected fetcher: "+_e),qe.state==="loading"&&(oe.delete(_e),ie.push(_e),ve=!0)}return jr(ie),ve}function He(ie){let ve=[];for(let[_e,qe]of te)if(qe<ie){let ct=T.fetchers.get(_e);$r(ct,"Expected fetcher: "+_e),ct.state==="loading"&&(ir(_e),te.delete(_e),ve.push(_e))}return jr(ve),ve.length>0}function Ye(ie,ve){let _e=T.blockers.get(ie)||uf;return Pe.get(ie)!==ve&&Pe.set(ie,ve),_e}function Mt(ie){T.blockers.delete(ie),Pe.delete(ie)}function Ot(ie,ve){let _e=T.blockers.get(ie)||uf;$r(_e.state==="unblocked"&&ve.state==="blocked"||_e.state==="blocked"&&ve.state==="blocked"||_e.state==="blocked"&&ve.state==="proceeding"||_e.state==="blocked"&&ve.state==="unblocked"||_e.state==="proceeding"&&ve.state==="unblocked","Invalid blocker state transition: "+_e.state+" -> "+ve.state);let qe=new Map(T.blockers);qe.set(ie,ve),Q({blockers:qe})}function mt(ie){let{currentLocation:ve,nextLocation:_e,historyAction:qe}=ie;if(Pe.size===0)return;Pe.size>1&&sd(!1,"A router only supports one blocker at a time");let ct=Array.from(Pe.entries()),[ft,Ct]=ct[ct.length-1],vt=T.blockers.get(ft);if(!(vt&&vt.state==="proceeding")&&Ct({currentLocation:ve,nextLocation:_e,historyAction:qe}))return ft}function dr(ie){let ve=ua(404,{pathname:ie}),_e=s||i,{matches:qe,route:ct}=TR(_e);return cr(),{notFoundMatches:qe,route:ct,error:ve}}function cr(ie){let ve=[];return pe.forEach((_e,qe)=>{(!ie||ie(qe))&&(_e.cancel(),ve.push(qe),pe.delete(qe))}),ve}function br(ie,ve,_e){if(p=ie,x=ve,m=_e||null,!b&&T.navigation===K0){b=!0;let qe=uo(T.location,T.matches);qe!=null&&Q({restoreScrollPosition:qe})}return()=>{p=null,x=null,m=null}}function Jr(ie,ve){return m&&m(ie,ve.map(qe=>B8(qe,T.loaderData)))||ie.key}function wn(ie,ve){if(p&&x){let _e=Jr(ie,ve);p[_e]=x()}}function uo(ie,ve){if(p){let _e=Jr(ie,ve),qe=p[_e];if(typeof qe=="number")return qe}return null}function Nn(ie,ve,_e){if(u)if(ie){if(Object.keys(ie[0].params).length>0)return{active:!0,matches:hv(ve,_e,l,!0)}}else return{active:!0,matches:hv(ve,_e,l,!0)||[]};return{active:!1,matches:null}}async function Xt(ie,ve,_e){if(!u)return{type:"success",matches:ie};let qe=ie;for(;;){let ct=s==null,ft=s||i,Ct=a;try{await u({path:ve,matches:qe,patch:(pt,Oe)=>{_e.aborted||yR(pt,Oe,ft,Ct,o)}})}catch(pt){return{type:"error",error:pt,partialMatches:qe}}finally{ct&&!_e.aborted&&(i=[...i])}if(_e.aborted)return{type:"aborted"};let vt=dc(ft,ve,l);if(vt)return{type:"success",matches:vt};let yt=hv(ft,ve,l,!0);if(!yt||qe.length===yt.length&&qe.every((pt,Oe)=>pt.route.id===yt[Oe].route.id))return{type:"success",matches:null};qe=yt}}function qr(ie){a={},s=ig(ie,o,void 0,a)}function Gn(ie,ve){let _e=s==null;yR(ie,ve,s||i,a,o),_e&&(i=[...i],Q({}))}return R={get basename(){return l},get future(){return d},get state(){return T},get routes(){return i},get window(){return t},initialize:ge,subscribe:Y,enableScrollRestoration:br,navigate:X,fetch:De,revalidate:ae,createHref:ie=>e.history.createHref(ie),encodeLocation:ie=>e.history.encodeLocation(ie),getFetcher:gt,deleteFetcher:dt,dispose:G,getBlocker:Ye,deleteBlocker:Mt,patchRoutes:Gn,_internalFetchControllers:ee,_internalActiveDeferreds:pe,_internalSetRoutes:qr},R}function fV(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Px(e,t,r,n,o,a,i,s){let l,c;if(i){l=[];for(let d of t)if(l.push(d),d.route.id===i){c=d;break}}else l=t,c=t[t.length-1];let u=wC(o||".",bC(l,a),Od(e.pathname,r)||e.pathname,s==="path");if(o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c){let d=CC(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let f=new URLSearchParams(u.search),h=f.getAll("index");f.delete("index"),h.filter(m=>m).forEach(m=>f.append("index",m));let p=f.toString();u.search=p?"?"+p:""}}return n&&r!=="/"&&(u.pathname=u.pathname==="/"?r:Us([r,u.pathname])),Oc(u)}function hR(e,t,r,n){if(!n||!fV(n))return{path:r};if(n.formMethod&&!TV(n.formMethod))return{path:r,error:ua(405,{method:n.formMethod})};let o=()=>({path:r,error:ua(400,{type:"invalid-body"})}),a=n.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=KM(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Bi(i))return o();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,p)=>{let[m,x]=p;return""+h+m+"="+x+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!Bi(i))return o();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}$r(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=Rx(n.formData),c=n.formData;else if(n.body instanceof FormData)l=Rx(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=wR(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=wR(l)}catch{return o()}let u={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Bi(u.formMethod))return{path:r,submission:u};let d=Wl(r);return t&&d.search&&CC(d.search)&&l.append("index",""),d.search="?"+l,{path:Oc(d),submission:u}}function mR(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(o=>o.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function vR(e,t,r,n,o,a,i,s,l,c,u,d,f,h,p,m){let x=m?Aa(m[1])?m[1].error:m[1].data:void 0,b=e.createURL(t.location),w=e.createURL(o),g=r;a&&t.errors?g=mR(r,Object.keys(t.errors)[0],!0):m&&Aa(m[1])&&(g=mR(r,m[0]));let S=m?m[1].statusCode:void 0,R=i&&S&&S>=400,T=g.filter((O,E)=>{let{route:C}=O;if(C.lazy)return!0;if(C.loader==null)return!1;if(a)return $x(C,t.loaderData,t.errors);if(pV(t.loaderData,t.matches[E],O)||l.some(U=>U===O.route.id))return!0;let D=t.matches[E],B=O;return gR(O,mn({currentUrl:b,currentParams:D.params,nextUrl:w,nextParams:B.params},n,{actionResult:x,actionStatus:S,defaultShouldRevalidate:R?!1:s||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||WM(D,B)}))}),k=[];return d.forEach((O,E)=>{if(a||!r.some(j=>j.route.id===O.routeId)||u.has(E))return;let C=dc(h,O.path,p);if(!C){k.push({key:E,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(E),B=Lf(C,O.path),U=!1;f.has(E)?U=!1:c.has(E)?(c.delete(E),U=!0):D&&D.state!=="idle"&&D.data===void 0?U=s:U=gR(B,mn({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:x,actionStatus:S,defaultShouldRevalidate:R?!1:s})),U&&k.push({key:E,routeId:O.routeId,path:O.path,matches:C,match:B,controller:new AbortController})}),[T,k]}function $x(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,o=r!=null&&r[e.id]!==void 0;return!n&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!o}function pV(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function WM(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function gR(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function yR(e,t,r,n,o){var a;let i;if(e){let c=n[e];$r(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),i=c.children}else i=r;let s=t.filter(c=>!i.some(u=>GM(c,u))),l=ig(s,o,[e||"_","patch",String(((a=i)==null?void 0:a.length)||"0")],n);i.push(...l)}function GM(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var o;return(o=t.children)==null?void 0:o.some(a=>GM(r,a))}):!1}async function hV(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];$r(o,"No route found in manifest");let a={};for(let i in n){let l=o[i]!==void 0&&i!=="hasErrorBoundary";sd(!l,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!N8.has(i)&&(a[i]=n[i])}Object.assign(o,a),Object.assign(o,mn({},t(o),{lazy:void 0}))}async function mV(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,a,i)=>Object.assign(o,{[r[i].route.id]:a}),{})}async function vV(e,t,r,n,o,a,i,s,l,c){let u=a.map(h=>h.route.lazy?hV(h.route,l,s):void 0),d=a.map((h,p)=>{let m=u[p],x=o.some(w=>w.route.id===h.route.id);return mn({},h,{shouldLoad:x,resolve:async w=>(w&&n.method==="GET"&&(h.route.lazy||h.route.loader)&&(x=!0),x?gV(t,n,h,m,w,c):Promise.resolve({type:Qr.data,result:void 0}))})}),f=await e({matches:d,request:n,params:a[0].params,fetcherKey:i,context:c});try{await Promise.all(u)}catch{}return f}async function gV(e,t,r,n,o,a){let i,s,l=c=>{let u,d=new Promise((p,m)=>u=m);s=()=>u(),t.signal.addEventListener("abort",s);let f=p=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:a},...p!==void 0?[p]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(m=>f(m)):f())}}catch(p){return{type:"error",result:p}}})();return Promise.race([h,d])};try{let c=r.route[e];if(n)if(c){let u,[d]=await Promise.all([l(c).catch(f=>{u=f}),n]);if(u!==void 0)throw u;i=d}else if(await n,c=r.route[e],c)i=await l(c);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw ua(405,{method:t.method,pathname:d,routeId:r.route.id})}else return{type:Qr.data,result:void 0};else if(c)i=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw ua(404,{pathname:d})}$r(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Qr.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function yV(e){let{result:t,type:r}=e;if(qM(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:Qr.error,error:u}}return r===Qr.error?{type:Qr.error,error:new sg(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:Qr.data,data:c,statusCode:t.status,headers:t.headers}}if(r===Qr.error){if(PR(t)){var n;if(t.data instanceof Error){var o;return{type:Qr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new sg(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:Qr.error,error:t,statusCode:ih(t)?t.status:void 0}}if(CV(t)){var a,i;return{type:Qr.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(PR(t)){var s,l;return{type:Qr.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Qr.data,data:t}}function bV(e,t,r,n,o,a){let i=e.headers.get("Location");if($r(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!xC.test(i)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);i=Px(new URL(t.url),s,o,!0,i,a),e.headers.set("Location",i)}return e}function bR(e,t,r){if(xC.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),a=Od(o.pathname,r)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function ou(e,t,r,n){let o=e.createURL(KM(t)).toString(),a={signal:r};if(n&&Bi(n.formMethod)){let{formMethod:i,formEncType:s}=n;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=Rx(n.formData):a.body=n.formData}return new Request(o,a)}function Rx(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function wR(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function wV(e,t,r,n,o){let a={},i=null,s,l=!1,c={},u=r&&Aa(r[1])?r[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,h=t[f];if($r(!vc(h),"Cannot handle redirect results in processLoaderData"),Aa(h)){let p=h.error;u!==void 0&&(p=u,u=void 0),i=i||{};{let m=fc(e,f);i[m.route.id]==null&&(i[m.route.id]=p)}a[f]=void 0,l||(l=!0,s=ih(h.error)?h.error.status:500),h.headers&&(c[f]=h.headers)}else Cl(h)?(n.set(f,h.deferredData),a[f]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[f]=h.headers)):(a[f]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[f]=h.headers))}),u!==void 0&&r&&(i={[r[0]]:u},a[r[0]]=void 0),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:c}}function xR(e,t,r,n,o,a,i){let{loaderData:s,errors:l}=wV(t,r,n,i);return o.forEach(c=>{let{key:u,match:d,controller:f}=c,h=a[u];if($r(h,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(Aa(h)){let p=fc(e.matches,d==null?void 0:d.route.id);l&&l[p.route.id]||(l=mn({},l,{[p.route.id]:h.error})),e.fetchers.delete(u)}else if(vc(h))$r(!1,"Unhandled fetcher revalidation redirect");else if(Cl(h))$r(!1,"Unhandled fetcher deferred data");else{let p=hl(h.data);e.fetchers.set(u,p)}}),{loaderData:s,errors:l}}function SR(e,t,r,n){let o=mn({},t);for(let a of r){let i=a.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(o[i]=t[i]):e[i]!==void 0&&a.route.loader&&(o[i]=e[i]),n&&n.hasOwnProperty(i))break}return o}function CR(e){return e?Aa(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function fc(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function TR(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ua(e,t){let{pathname:r,routeId:n,method:o,type:a,message:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&r&&n?l="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",o&&r&&n?l="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new sg(e||500,s,new Error(l),!0)}function Cm(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(vc(o))return{key:n,result:o}}}function KM(e){let t=typeof e=="string"?Wl(e):e;return Oc(mn({},t,{hash:""}))}function xV(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function SV(e){return qM(e.result)&&sV.has(e.result.status)}function Cl(e){return e.type===Qr.deferred}function Aa(e){return e.type===Qr.error}function vc(e){return(e&&e.type)===Qr.redirect}function PR(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function CV(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function qM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function TV(e){return iV.has(e.toLowerCase())}function Bi(e){return oV.has(e.toLowerCase())}async function PV(e,t,r,n,o){let a=Object.entries(t);for(let i=0;i<a.length;i++){let[s,l]=a[i],c=e.find(f=>(f==null?void 0:f.route.id)===s);if(!c)continue;let u=n.find(f=>f.route.id===c.route.id),d=u!=null&&!WM(u,c)&&(o&&o[c.route.id])!==void 0;Cl(l)&&d&&await SC(l,r,!1).then(f=>{f&&(t[s]=f)})}}async function $V(e,t,r){for(let n=0;n<r.length;n++){let{key:o,routeId:a,controller:i}=r[n],s=t[o];e.find(c=>(c==null?void 0:c.route.id)===a)&&Cl(s)&&($r(i,"Expected an AbortController for revalidating fetcher deferred result"),await SC(s,i.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function SC(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Qr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Qr.error,error:o}}return{type:Qr.data,data:e.deferredData.data}}}function CC(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Lf(e,t){let r=typeof t=="string"?Wl(t).search:t.search;if(e[e.length-1].route.index&&CC(r||""))return e[e.length-1];let n=VM(e);return n[n.length-1]}function $R(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:a,json:i}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function q0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function RV(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function df(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function kV(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function hl(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function IV(e,t){try{let r=e.sessionStorage.getItem(HM);if(r){let n=JSON.parse(r);for(let[o,a]of Object.entries(n||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function EV(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(HM,JSON.stringify(r))}catch(n){sd(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function lg(){return lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lg.apply(this,arguments)}const sy=y.createContext(null),YM=y.createContext(null),Wc=y.createContext(null),TC=y.createContext(null),el=y.createContext({outlet:null,matches:[],isDataRoute:!1}),XM=y.createContext(null);function OV(e,t){let{relative:r}=t===void 0?{}:t;sh()||$r(!1);let{basename:n,navigator:o}=y.useContext(Wc),{hash:a,pathname:i,search:s}=ZM(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:Us([n,i])),o.createHref({pathname:l,search:s,hash:a})}function sh(){return y.useContext(TC)!=null}function lh(){return sh()||$r(!1),y.useContext(TC).location}function QM(e){y.useContext(Wc).static||y.useLayoutEffect(e)}function PC(){let{isDataRoute:e}=y.useContext(el);return e?UV():_V()}function _V(){sh()||$r(!1);let e=y.useContext(sy),{basename:t,future:r,navigator:n}=y.useContext(Wc),{matches:o}=y.useContext(el),{pathname:a}=lh(),i=JSON.stringify(bC(o,r.v7_relativeSplatPath)),s=y.useRef(!1);return QM(()=>{s.current=!0}),y.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let d=wC(c,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Us([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,a,e])}const DV=y.createContext(null);function MV(e){let t=y.useContext(el).outlet;return t&&y.createElement(DV.Provider,{value:e},t)}function ly(){let{matches:e}=y.useContext(el),t=e[e.length-1];return t?t.params:{}}function ZM(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=y.useContext(Wc),{matches:o}=y.useContext(el),{pathname:a}=lh(),i=JSON.stringify(bC(o,n.v7_relativeSplatPath));return y.useMemo(()=>wC(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function AV(e,t,r,n){sh()||$r(!1);let{navigator:o}=y.useContext(Wc),{matches:a}=y.useContext(el),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=lh(),u;u=c;let d=u.pathname||"/",f=d;if(l!=="/"){let m=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(m.length).join("/")}let h=dc(e,{pathname:f});return BV(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:Us([l,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:Us([l,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),a,r,n)}function jV(){let e=tA(),t=ih(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),r?y.createElement("pre",{style:o},r):null,null)}const LV=y.createElement(jV,null);class NV extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?y.createElement(el.Provider,{value:this.props.routeContext},y.createElement(XM.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function FV(e){let{routeContext:t,match:r,children:n}=e,o=y.useContext(sy);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),y.createElement(el.Provider,{value:t},n)}function BV(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||$r(!1),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:h}=r,p=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||p){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,f)=>{let h,p=!1,m=null,x=null;r&&(h=s&&d.route.id?s[d.route.id]:void 0,m=d.route.errorElement||LV,l&&(c<0&&f===0?(HV("route-fallback"),p=!0,x=null):c===f&&(p=!0,x=d.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,f+1)),w=()=>{let g;return h?g=m:p?g=x:d.route.Component?g=y.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=u,y.createElement(FV,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:r!=null},children:g})};return r&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?y.createElement(NV,{location:r.location,revalidation:r.revalidation,component:m,error:h,children:w(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):w()},null)}var JM=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(JM||{}),ld=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ld||{});function zV(e){let t=y.useContext(sy);return t||$r(!1),t}function eA(e){let t=y.useContext(YM);return t||$r(!1),t}function VV(e){let t=y.useContext(el);return t||$r(!1),t}function $C(e){let t=VV(),r=t.matches[t.matches.length-1];return r.route.id||$r(!1),r.route.id}function Pa(){let e=eA(ld.UseLoaderData),t=$C(ld.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function tA(){var e;let t=y.useContext(XM),r=eA(ld.UseRouteError),n=$C(ld.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function UV(){let{router:e}=zV(JM.UseNavigateStable),t=$C(ld.UseNavigateStable),r=y.useRef(!1);return QM(()=>{r.current=!0}),y.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,lg({fromRouteId:t},a)))},[e,t])}const RR={};function HV(e,t,r){RR[e]||(RR[e]=!0)}function WV(e){return MV(e.context)}function GV(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Yn.Pop,navigator:a,static:i=!1,future:s}=e;sh()&&$r(!1);let l=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:l,navigator:a,static:i,future:lg({v7_relativeSplatPath:!1},s)}),[l,s,a,i]);typeof n=="string"&&(n=Wl(n));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default"}=n,m=y.useMemo(()=>{let x=Od(u,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:h,key:p},navigationType:o}},[l,u,d,f,h,p,o]);return m==null?null:y.createElement(Wc.Provider,{value:c},y.createElement(TC.Provider,{children:r,value:m}))}new Promise(()=>{});function KV(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jp.apply(this,arguments)}function qV(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function YV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XV(e,t){return e.button===0&&(!t||t==="_self")&&!YV(e)}const QV=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ZV="6";try{window.__reactRouterVersion=ZV}catch{}function JV(e,t){return dV({basename:void 0,future:jp({},void 0,{v7_prependBasename:!0}),history:A8({window:void 0}),hydrationData:e9(),routes:e,mapRouteProperties:KV,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function e9(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=jp({},t,{errors:t9(t.errors)})),t}function t9(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new sg(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let a=new Error(o.message);a.stack="",r[n]=a}}else r[n]=o;return r}const r9=y.createContext({isTransitioning:!1}),n9=y.createContext(new Map),o9="startTransition",kR=gp[o9],a9="flushSync",IR=M8[a9];function i9(e){kR?kR(e):e()}function ff(e){IR?IR(e):e()}class s9{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function l9(e){let{fallbackElement:t,router:r,future:n}=e,[o,a]=y.useState(r.state),[i,s]=y.useState(),[l,c]=y.useState({isTransitioning:!1}),[u,d]=y.useState(),[f,h]=y.useState(),[p,m]=y.useState(),x=y.useRef(new Map),{v7_startTransition:b}=n||{},w=y.useCallback(O=>{b?i9(O):O()},[b]),g=y.useCallback((O,E)=>{let{deletedFetchers:C,flushSync:D,viewTransitionOpts:B}=E;C.forEach(j=>x.current.delete(j)),O.fetchers.forEach((j,N)=>{j.data!==void 0&&x.current.set(N,j.data)});let U=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!B||U){D?ff(()=>a(O)):w(()=>a(O));return}if(D){ff(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let j=r.window.document.startViewTransition(()=>{ff(()=>a(O))});j.finished.finally(()=>{ff(()=>{d(void 0),h(void 0),s(void 0),c({isTransitioning:!1})})}),ff(()=>h(j));return}f?(u&&u.resolve(),f.skipTransition(),m({state:O,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(O),c({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[r.window,f,u,x,w]);y.useLayoutEffect(()=>r.subscribe(g),[r,g]),y.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new s9)},[l]),y.useEffect(()=>{if(u&&i&&r.window){let O=i,E=u.promise,C=r.window.document.startViewTransition(async()=>{w(()=>a(O)),await E});C.finished.finally(()=>{d(void 0),h(void 0),s(void 0),c({isTransitioning:!1})}),h(C)}},[w,i,u,r.window]),y.useEffect(()=>{u&&i&&o.location.key===i.location.key&&u.resolve()},[u,f,o.location,i]),y.useEffect(()=>{!l.isTransitioning&&p&&(s(p.state),c({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),m(void 0))},[l.isTransitioning,p]),y.useEffect(()=>{},[]);let S=y.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:O=>r.navigate(O),push:(O,E,C)=>r.navigate(O,{state:E,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(O,E,C)=>r.navigate(O,{replace:!0,state:E,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[r]),R=r.basename||"/",T=y.useMemo(()=>({router:r,navigator:S,static:!1,basename:R}),[r,S,R]),k=y.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return y.createElement(y.Fragment,null,y.createElement(sy.Provider,{value:T},y.createElement(YM.Provider,{value:o},y.createElement(n9.Provider,{value:x.current},y.createElement(r9.Provider,{value:l},y.createElement(GV,{basename:R,location:o.location,navigationType:o.historyAction,navigator:S,future:k},o.initialized||r.future.v7_partialHydration?y.createElement(c9,{routes:r.routes,future:r.future,state:o}):t))))),null)}const c9=y.memo(u9);function u9(e){let{routes:t,future:r,state:n}=e;return AV(t,void 0,n,r)}const d9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",f9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rA=y.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=qV(t,QV),{basename:h}=y.useContext(Wc),p,m=!1;if(typeof c=="string"&&f9.test(c)&&(p=c,d9))try{let g=new URL(window.location.href),S=c.startsWith("//")?new URL(g.protocol+c):new URL(c),R=Od(S.pathname,h);S.origin===g.origin&&R!=null?c=R+S.search+S.hash:m=!0}catch{}let x=OV(c,{relative:o}),b=p9(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function w(g){n&&n(g),g.defaultPrevented||b(g)}return y.createElement("a",jp({},f,{href:p||x,onClick:m||a?n:w,ref:r,target:l}))});var ER;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ER||(ER={}));var OR;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(OR||(OR={}));function p9(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,viewTransition:s}=t===void 0?{}:t,l=PC(),c=lh(),u=ZM(e,{relative:i});return y.useCallback(d=>{if(XV(d,r)){d.preventDefault();let f=n!==void 0?n:Oc(c)===Oc(u);l(e,{replace:f,state:o,preventScrollReset:a,relative:i,viewTransition:s})}},[c,l,u,n,o,r,e,a,i,s])}const Lp={black:"#000",white:"#fff"},yl={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},au={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"},_R={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},iu={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"},su={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"},lu={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"},pf={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"},h9={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"};function xa(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const gi="$$material";function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},le.apply(null,arguments)}function RC(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var m9=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,v9=RC(function(e){return m9.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),g9=!1;function y9(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 b9(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 kC=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!g9:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(b9(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=y9(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Lr="-ms-",Fl="-moz-",Ft="-webkit-",nA="comm",cy="rule",uy="decl",w9="@import",IC="@keyframes",x9="@layer",S9=Math.abs,ch=String.fromCharCode,C9=Object.assign;function oA(e,t){return vn(e,0)^45?(((t<<2^vn(e,0))<<2^vn(e,1))<<2^vn(e,2))<<2^vn(e,3):0}function aA(e){return e.trim()}function iA(e,t){return(e=t.exec(e))?e[0]:e}function Wt(e,t,r){return e.replace(t,r)}function Np(e,t){return e.indexOf(t)}function vn(e,t){return e.charCodeAt(t)|0}function Fp(e,t,r){return e.slice(t,r)}function ui(e){return e.length}function EC(e){return e.length}function Tm(e,t){return t.push(e),e}function sA(e,t){return e.map(t).join("")}var dy=1,cd=1,lA=0,Bo=0,Xn=0,_d="";function fy(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:dy,column:cd,length:i,return:""}}function gs(e,t){return C9(fy("",null,null,"",null,null,0),e,{length:-e.length},t)}function T9(){return Xn}function P9(){return Xn=Bo>0?vn(_d,--Bo):0,cd--,Xn===10&&(cd=1,dy--),Xn}function ea(){return Xn=Bo<lA?vn(_d,Bo++):0,cd++,Xn===10&&(cd=1,dy++),Xn}function Fa(){return vn(_d,Bo)}function mv(){return Bo}function Dd(e,t){return Fp(_d,e,t)}function _c(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 OC(e){return dy=cd=1,lA=ui(_d=e),Bo=0,[]}function _C(e){return _d="",e}function tp(e){return aA(Dd(Bo-1,kx(e===91?e+2:e===40?e+1:e)))}function $9(e){for(;(Xn=Fa())&&Xn<33;)ea();return _c(e)>2||_c(Xn)>3?"":" "}function R9(e,t){for(;--t&&ea()&&!(Xn<48||Xn>102||Xn>57&&Xn<65||Xn>70&&Xn<97););return Dd(e,mv()+(t<6&&Fa()==32&&ea()==32))}function kx(e){for(;ea();)switch(Xn){case e:return Bo;case 34:case 39:e!==34&&e!==39&&kx(Xn);break;case 40:e===41&&kx(e);break;case 92:ea();break}return Bo}function k9(e,t){for(;ea()&&e+Xn!==57;)if(e+Xn===84&&Fa()===47)break;return"/*"+Dd(t,Bo-1)+"*"+ch(e===47?e:ea())}function I9(e){for(;!_c(Fa());)ea();return Dd(e,Bo)}function cA(e){return _C(vv("",null,null,null,[""],e=OC(e),0,[0],e))}function vv(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,h=0,p=0,m=1,x=1,b=1,w=0,g="",S=o,R=a,T=n,k=g;x;)switch(p=w,w=ea()){case 40:if(p!=108&&vn(k,d-1)==58){Np(k+=Wt(tp(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:k+=tp(w);break;case 9:case 10:case 13:case 32:k+=$9(p);break;case 92:k+=R9(mv()-1,7);continue;case 47:switch(Fa()){case 42:case 47:Tm(E9(k9(ea(),mv()),t,r),l);break;default:k+="/"}break;case 123*m:s[c++]=ui(k)*b;case 125*m:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+u:b==-1&&(k=Wt(k,/\f/g,"")),h>0&&ui(k)-d&&Tm(h>32?MR(k+";",n,r,d-1):MR(Wt(k," ","")+";",n,r,d-2),l);break;case 59:k+=";";default:if(Tm(T=DR(k,t,r,c,u,o,s,g,S=[],R=[],d),a),w===123)if(u===0)vv(k,t,T,T,S,a,d,s,R);else switch(f===99&&vn(k,3)===110?100:f){case 100:case 108:case 109:case 115:vv(e,T,T,n&&Tm(DR(e,T,T,0,0,o,s,g,o,S=[],d),R),o,R,d,s,n?S:R);break;default:vv(k,T,T,T,[""],R,0,s,R)}}c=u=h=0,m=b=1,g=k="",d=i;break;case 58:d=1+ui(k),h=p;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&P9()==125)continue}switch(k+=ch(w),w*m){case 38:b=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ui(k)-1)*b,b=1;break;case 64:Fa()===45&&(k+=tp(ea())),f=Fa(),u=d=ui(g=k+=I9(mv())),w++;break;case 45:p===45&&ui(k)==2&&(m=0)}}return a}function DR(e,t,r,n,o,a,i,s,l,c,u){for(var d=o-1,f=o===0?a:[""],h=EC(f),p=0,m=0,x=0;p<n;++p)for(var b=0,w=Fp(e,d+1,d=S9(m=i[p])),g=e;b<h;++b)(g=aA(m>0?f[b]+" "+w:Wt(w,/&\f/g,f[b])))&&(l[x++]=g);return fy(e,t,r,o===0?cy:s,l,c,u)}function E9(e,t,r){return fy(e,t,r,nA,ch(T9()),Fp(e,2,-2),0)}function MR(e,t,r,n){return fy(e,t,r,uy,Fp(e,0,n),Fp(e,n+1,-1),n)}function Ss(e,t){for(var r="",n=EC(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function uA(e,t,r,n){switch(e.type){case x9:if(e.children.length)break;case w9:case uy:return e.return=e.return||e.value;case nA:return"";case IC:return e.return=e.value+"{"+Ss(e.children,n)+"}";case cy:e.value=e.props.join(",")}return ui(r=Ss(e.children,n))?e.return=e.value+"{"+r+"}":""}function dA(e){var t=EC(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function fA(e){return function(t){t.root||(t=t.return)&&e(t)}}var AR=function(t){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=t(n);return r.set(n,o),o}},O9=function(t,r,n){for(var o=0,a=0;o=a,a=Fa(),o===38&&a===12&&(r[n]=1),!_c(a);)ea();return Dd(t,Bo)},_9=function(t,r){var n=-1,o=44;do switch(_c(o)){case 0:o===38&&Fa()===12&&(r[n]=1),t[n]+=O9(Bo-1,r,n);break;case 2:t[n]+=tp(o);break;case 4:if(o===44){t[++n]=Fa()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ch(o)}while(o=ea());return t},D9=function(t,r){return _C(_9(OC(t),r))},jR=new WeakMap,M9=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!jR.get(n))&&!o){jR.set(t,!0);for(var a=[],i=D9(r,a),s=n.props,l=0,c=0;l<i.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=a[l]?i[l].replace(/&\f/g,s[u]):s[u]+" "+i[l]}}},A9=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function pA(e,t){switch(oA(e,t)){case 5103:return Ft+"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 Ft+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ft+e+Fl+e+Lr+e+e;case 6828:case 4268:return Ft+e+Lr+e+e;case 6165:return Ft+e+Lr+"flex-"+e+e;case 5187:return Ft+e+Wt(e,/(\w+).+(:[^]+)/,Ft+"box-$1$2"+Lr+"flex-$1$2")+e;case 5443:return Ft+e+Lr+"flex-item-"+Wt(e,/flex-|-self/,"")+e;case 4675:return Ft+e+Lr+"flex-line-pack"+Wt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ft+e+Lr+Wt(e,"shrink","negative")+e;case 5292:return Ft+e+Lr+Wt(e,"basis","preferred-size")+e;case 6060:return Ft+"box-"+Wt(e,"-grow","")+Ft+e+Lr+Wt(e,"grow","positive")+e;case 4554:return Ft+Wt(e,/([^-])(transform)/g,"$1"+Ft+"$2")+e;case 6187:return Wt(Wt(Wt(e,/(zoom-|grab)/,Ft+"$1"),/(image-set)/,Ft+"$1"),e,"")+e;case 5495:case 3959:return Wt(e,/(image-set\([^]*)/,Ft+"$1$`$1");case 4968:return Wt(Wt(e,/(.+:)(flex-)?(.*)/,Ft+"box-pack:$3"+Lr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ft+e+e;case 4095:case 3583:case 4068:case 2532:return Wt(e,/(.+)-inline(.+)/,Ft+"$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(ui(e)-1-t>6)switch(vn(e,t+1)){case 109:if(vn(e,t+4)!==45)break;case 102:return Wt(e,/(.+:)(.+)-([^]+)/,"$1"+Ft+"$2-$3$1"+Fl+(vn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Np(e,"stretch")?pA(Wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(vn(e,t+1)!==115)break;case 6444:switch(vn(e,ui(e)-3-(~Np(e,"!important")&&10))){case 107:return Wt(e,":",":"+Ft)+e;case 101:return Wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ft+(vn(e,14)===45?"inline-":"")+"box$3$1"+Ft+"$2$3$1"+Lr+"$2box$3")+e}break;case 5936:switch(vn(e,t+11)){case 114:return Ft+e+Lr+Wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ft+e+Lr+Wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ft+e+Lr+Wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ft+e+Lr+e+e}return e}var j9=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case uy:t.return=pA(t.value,t.length);break;case IC:return Ss([gs(t,{value:Wt(t.value,"@","@"+Ft)})],o);case cy:if(t.length)return sA(t.props,function(a){switch(iA(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ss([gs(t,{props:[Wt(a,/:(read-\w+)/,":"+Fl+"$1")]})],o);case"::placeholder":return Ss([gs(t,{props:[Wt(a,/:(plac\w+)/,":"+Ft+"input-$1")]}),gs(t,{props:[Wt(a,/:(plac\w+)/,":"+Fl+"$1")]}),gs(t,{props:[Wt(a,/:(plac\w+)/,Lr+"input-$1")]})],o)}return""})}},L9=[j9],DC=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||L9,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),b=1;b<x.length;b++)a[x[b]]=!0;s.push(m)});var l,c=[M9,A9];{var u,d=[uA,fA(function(m){u.insert(m)})],f=dA(c.concat(o,d)),h=function(x){return Ss(cA(x),f)};l=function(x,b,w,g){u=w,h(x?x+"{"+b.styles+"}":b.styles),g&&(p.inserted[b.name]=!0)}}var p={key:r,sheet:new kC({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return p.sheet.hydrate(s),p},hA={exports:{}},Kr={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var To=typeof Symbol=="function"&&Symbol.for,MC=To?Symbol.for("react.element"):60103,AC=To?Symbol.for("react.portal"):60106,py=To?Symbol.for("react.fragment"):60107,hy=To?Symbol.for("react.strict_mode"):60108,my=To?Symbol.for("react.profiler"):60114,vy=To?Symbol.for("react.provider"):60109,gy=To?Symbol.for("react.context"):60110,jC=To?Symbol.for("react.async_mode"):60111,yy=To?Symbol.for("react.concurrent_mode"):60111,by=To?Symbol.for("react.forward_ref"):60112,wy=To?Symbol.for("react.suspense"):60113,N9=To?Symbol.for("react.suspense_list"):60120,xy=To?Symbol.for("react.memo"):60115,Sy=To?Symbol.for("react.lazy"):60116,F9=To?Symbol.for("react.block"):60121,B9=To?Symbol.for("react.fundamental"):60117,z9=To?Symbol.for("react.responder"):60118,V9=To?Symbol.for("react.scope"):60119;function Wa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case MC:switch(e=e.type,e){case jC:case yy:case py:case my:case hy:case wy:return e;default:switch(e=e&&e.$$typeof,e){case gy:case by:case Sy:case xy:case vy:return e;default:return t}}case AC:return t}}}function mA(e){return Wa(e)===yy}Kr.AsyncMode=jC;Kr.ConcurrentMode=yy;Kr.ContextConsumer=gy;Kr.ContextProvider=vy;Kr.Element=MC;Kr.ForwardRef=by;Kr.Fragment=py;Kr.Lazy=Sy;Kr.Memo=xy;Kr.Portal=AC;Kr.Profiler=my;Kr.StrictMode=hy;Kr.Suspense=wy;Kr.isAsyncMode=function(e){return mA(e)||Wa(e)===jC};Kr.isConcurrentMode=mA;Kr.isContextConsumer=function(e){return Wa(e)===gy};Kr.isContextProvider=function(e){return Wa(e)===vy};Kr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===MC};Kr.isForwardRef=function(e){return Wa(e)===by};Kr.isFragment=function(e){return Wa(e)===py};Kr.isLazy=function(e){return Wa(e)===Sy};Kr.isMemo=function(e){return Wa(e)===xy};Kr.isPortal=function(e){return Wa(e)===AC};Kr.isProfiler=function(e){return Wa(e)===my};Kr.isStrictMode=function(e){return Wa(e)===hy};Kr.isSuspense=function(e){return Wa(e)===wy};Kr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===py||e===yy||e===my||e===hy||e===wy||e===N9||typeof e=="object"&&e!==null&&(e.$$typeof===Sy||e.$$typeof===xy||e.$$typeof===vy||e.$$typeof===gy||e.$$typeof===by||e.$$typeof===B9||e.$$typeof===z9||e.$$typeof===V9||e.$$typeof===F9)};Kr.typeOf=Wa;hA.exports=Kr;var U9=hA.exports,LC=U9,H9={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},W9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G9={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vA={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NC={};NC[LC.ForwardRef]=G9;NC[LC.Memo]=vA;function LR(e){return LC.isMemo(e)?vA:NC[e.$$typeof]||H9}var K9=Object.defineProperty,q9=Object.getOwnPropertyNames,NR=Object.getOwnPropertySymbols,Y9=Object.getOwnPropertyDescriptor,X9=Object.getPrototypeOf,FR=Object.prototype;function gA(e,t,r){if(typeof t!="string"){if(FR){var n=X9(t);n&&n!==FR&&gA(e,n,r)}var o=q9(t);NR&&(o=o.concat(NR(t)));for(var a=LR(e),i=LR(t),s=0;s<o.length;++s){var l=o[s];if(!W9[l]&&!(r&&r[l])&&!(i&&i[l])&&!(a&&a[l])){var c=Y9(t,l);try{K9(e,l,c)}catch{}}}}return e}var Q9=gA;const FC=Rd(Q9);var Z9=function(e,t){return FC(e,t)},J9=!0;function BC(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Cy=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||J9===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Ty=function(t,r,n){Cy(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function yA(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 bA={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},eU=!1,tU=/[A-Z]|^ms/g,rU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wA=function(t){return t.charCodeAt(1)===45},BR=function(t){return t!=null&&typeof t!="boolean"},Y0=RC(function(e){return wA(e)?e:e.replace(tU,"-$&").toLowerCase()}),zR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(rU,function(n,o,a){return hs={name:o,styles:a,next:hs},o})}return bA[t]!==1&&!wA(t)&&typeof r=="number"&&r!==0?r+"px":r},nU="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Bp(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return hs={name:o.name,styles:o.styles,next:hs},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)hs={name:i.name,styles:i.styles,next:hs},i=i.next;var s=a.styles+";";return s}return oU(e,t,r)}case"function":{if(e!==void 0){var l=hs,c=r(e);return hs=l,Bp(e,t,c)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function oU(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Bp(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?n+=a+"{"+t[s]+"}":BR(s)&&(n+=Y0(a)+":"+zR(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&eU)throw new Error(nU);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)BR(i[l])&&(n+=Y0(a)+":"+zR(a,i[l])+";");else{var c=Bp(e,t,i);switch(a){case"animation":case"animationName":{n+=Y0(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}}return n}var VR=/label:\s*([^\s;{]+)\s*(;|$)/g,hs;function Md(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";hs=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Bp(r,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=Bp(r,t,e[s]),n){var l=a;o+=l[s]}VR.lastIndex=0;for(var c="",u;(u=VR.exec(o))!==null;)c+="-"+u[1];var d=yA(o)+c;return{name:d,styles:o,next:hs}}var aU=function(t){return t()},xA=gp.useInsertionEffect?gp.useInsertionEffect:!1,zC=xA||aU,UR=xA||y.useLayoutEffect,Ix=!1,VC=y.createContext(typeof HTMLElement<"u"?DC({key:"css"}):null),SA=VC.Provider,iU=function(){return y.useContext(VC)},uh=function(t){return y.forwardRef(function(r,n){var o=y.useContext(VC);return t(r,o,n)})},Qi=y.createContext({}),sU=function(){return y.useContext(Qi)},lU=function(t,r){if(typeof r=="function"){var n=r(t);return n}return le({},t,r)},cU=AR(function(e){return AR(function(t){return lU(e,t)})}),CA=function(t){var r=y.useContext(Qi);return t.theme!==r&&(r=cU(r)(t.theme)),y.createElement(Qi.Provider,{value:r},t.children)};function uU(e){var t=e.displayName||e.name||"Component",r=function(a,i){var s=y.useContext(Qi);return y.createElement(e,le({theme:s,ref:i},a))},n=y.forwardRef(r);return n.displayName="WithTheme("+t+")",Z9(n,e)}var UC={}.hasOwnProperty,Ex="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dU=function(t,r){var n={};for(var o in r)UC.call(r,o)&&(n[o]=r[o]);return n[Ex]=t,n},fU=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Cy(r,n,o),zC(function(){return Ty(r,n,o)}),null},pU=uh(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Ex],a=[n],i="";typeof e.className=="string"?i=BC(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=Md(a,void 0,y.useContext(Qi));i+=t.key+"-"+s.name;var l={};for(var c in e)UC.call(e,c)&&c!=="css"&&c!==Ex&&!Ix&&(l[c]=e[c]);return l.className=i,r&&(l.ref=r),y.createElement(y.Fragment,null,y.createElement(fU,{cache:t,serialized:s,isStringTag:typeof o=="string"}),y.createElement(o,l))}),hU=pU,HR=function(t,r){var n=arguments;if(r==null||!UC.call(r,"css"))return y.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=hU,a[1]=dU(t,r);for(var i=2;i<o;i++)a[i]=n[i];return y.createElement.apply(null,a)},TA=uh(function(e,t){var r=e.styles,n=Md([r],void 0,y.useContext(Qi)),o=y.useRef();return UR(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,s],function(){i.flush()}},[t]),UR(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&Ty(t,n.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function dh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Md(t)}var Gc=function(){var t=dh.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},mU=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var a=t[n];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var s in a)a[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function vU(e,t,r){var n=[],o=BC(e,n,r);return n.length<2?r:o+t(n)}var gU=function(t){var r=t.cache,n=t.serializedArr;return zC(function(){for(var o=0;o<n.length;o++)Ty(r,n[o],!1)}),null},yU=uh(function(e,t){var r=!1,n=[],o=function(){if(r&&Ix)throw new Error("css can only be used during render");for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];var f=Md(u,t.registered);return n.push(f),Cy(t,f,!1),t.key+"-"+f.name},a=function(){if(r&&Ix)throw new Error("cx can only be used during render");for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];return vU(t.registered,o,mU(u))},i={css:o,cx:a,theme:y.useContext(Qi)},s=e.children(i);return r=!0,y.createElement(y.Fragment,null,y.createElement(gU,{cache:t,serializedArr:n}),s)});const bU=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:SA,ClassNames:yU,Global:TA,ThemeContext:Qi,ThemeProvider:CA,__unsafe_useEmotionCache:iU,createElement:HR,css:dh,jsx:HR,keyframes:Gc,useTheme:sU,withEmotionCache:uh,withTheme:uU},Symbol.toStringTag,{value:"Module"}));var wU=v9,xU=function(t){return t!=="theme"},WR=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?wU:xU},GR=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},SU=!1,CU=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Cy(r,n,o),zC(function(){return Ty(r,n,o)}),null},TU=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=GR(t,r,n),l=s||WR(o),c=!l("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],u[0][h])}var p=uh(function(m,x,b){var w=c&&m.as||o,g="",S=[],R=m;if(m.theme==null){R={};for(var T in m)R[T]=m[T];R.theme=y.useContext(Qi)}typeof m.className=="string"?g=BC(x.registered,S,m.className):m.className!=null&&(g=m.className+" ");var k=Md(d.concat(S),x.registered,R);g+=x.key+"-"+k.name,i!==void 0&&(g+=" "+i);var O=c&&s===void 0?WR(w):l,E={};for(var C in m)c&&C==="as"||O(C)&&(E[C]=m[C]);return E.className=g,b&&(E.ref=b),y.createElement(y.Fragment,null,y.createElement(CU,{cache:x,serialized:k,isStringTag:typeof w=="string"}),y.createElement(w,E))});return p.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return i===void 0&&SU?"NO_COMPONENT_SELECTOR":"."+i}}),p.withComponent=function(m,x){return e(m,le({},r,x,{shouldForwardProp:GR(p,x,!0)})).apply(void 0,d)},p}},PU=["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"],Ox=TU.bind();PU.forEach(function(e){Ox[e]=Ox(e)});var PA={exports:{}},$U="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",RU=$U,kU=RU;function $A(){}function RA(){}RA.resetWarningCache=$A;var IU=function(){function e(n,o,a,i,s,l){if(l!==kU){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={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:RA,resetWarningCache:$A};return r.PropTypes=r,r};PA.exports=IU();var kA=PA.exports;const Re=Rd(kA),EU=e=>{const t=DC(e);class r extends kC{constructor(o){super(o),this.prepend=t.sheet.prepend}}return t.sheet=new r({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let _x;typeof document=="object"&&(_x=EU({key:"css",prepend:!0}));function OU(e){const{injectFirst:t,children:r}=e;return t&&_x?v.jsx(SA,{value:_x,children:r}):r}function _U(e){return e==null||Object.keys(e).length===0}function IA(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(_U(o)?r:o):t;return v.jsx(TA,{styles:n})}/** + * @mui/styled-engine v6.1.6 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function EA(e,t){return Ox(e,t)}function DU(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const KR=[];function qR(e){return KR[0]=e,Md(KR)}function ys(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function OA(e){if(!ys(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=OA(e[r])}),t}function so(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ys(e)&&ys(t)&&Object.keys(t).forEach(o=>{ys(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ys(e[o])?n[o]=so(e[o],t[o],r):r.clone?n[o]=ys(t[o])?OA(t[o]):t[o]:n[o]=t[o]}),n}const MU=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function HC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=MU(t),i=Object.keys(a);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,h){const p=i.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(p!==-1&&typeof t[i[p]]=="number"?t[i[p]]:h)-n/100}${r})`}function u(f){return i.indexOf(f)+1<i.length?c(f,i[i.indexOf(f)+1]):s(f)}function d(f){const h=i.indexOf(f);return h===0?s(i[1]):h===i.length-1?l(i[h]):c(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:l,between:c,only:u,not:d,unit:r,...o}}function AU(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var i,s;const a=/min-width:\s*([0-9.]+)/;return+(((i=n.match(a))==null?void 0:i[1])||0)-+(((s=o.match(a))==null?void 0:s[1])||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function jU(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function LU(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function NU(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const FU={borderRadius:4};function rp(e,t){return t?so(e,t,{clone:!1}):e}const Py={xs:0,sm:600,md:900,lg:1200,xl:1536},YR={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Py[e]}px)`},BU={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Py[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Sa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||YR;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||YR;return Object.keys(t).reduce((i,s)=>{if(jU(a.keys,s)){const l=LU(n.containerQueries?n:BU,s);l&&(i[l]=r(t[s],s))}else if(Object.keys(a.values||Py).includes(s)){const l=a.up(s);i[l]=r(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return r(t)}function _A(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function DA(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function zU(e,...t){const r=_A(e),n=[r,...t].reduce((o,a)=>so(o,a),{});return DA(Object.keys(r),n)}function VU(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Sc({values:e,breakpoints:t,base:r}){const n=r||VU(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function Le(e){if(typeof e!="string")throw new Error(xa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ud(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function cg(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=ud(e,r)||n,t&&(o=t(o,n,e)),o}function Hn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=ud(l,n)||{};return Sa(i,s,d=>{let f=cg(c,o,d);return d===f&&typeof d=="string"&&(f=cg(c,o,`${t}${d==="default"?"":Le(d)}`,d)),r===!1?f:{[r]:f}})};return a.propTypes={},a.filterProps=[t],a}function UU(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const HU={m:"margin",p:"padding"},WU={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},XR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},GU=UU(e=>{if(e.length>2)if(XR[e])e=XR[e];else return[e];const[t,r]=e.split(""),n=HU[t],o=WU[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),WC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],GC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...WC,...GC];function fh(e,t,r,n){const o=ud(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function $y(e){return fh(e,"spacing",8)}function Dc(e,t){return typeof t=="string"||t==null?t:e(t)}function KU(e,t){return r=>e.reduce((n,o)=>(n[o]=Dc(t,r),n),{})}function qU(e,t,r,n){if(!t.includes(r))return null;const o=GU(r),a=KU(o,n),i=e[r];return Sa(e,i,a)}function MA(e,t){const r=$y(e.theme);return Object.keys(e).map(n=>qU(e,t,n,r)).reduce(rp,{})}function Mn(e){return MA(e,WC)}Mn.propTypes={};Mn.filterProps=WC;function An(e){return MA(e,GC)}An.propTypes={};An.filterProps=GC;function KC(e=8,t=$y({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Ry(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?rp(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function di(e){return typeof e!="number"?e:`${e}px solid`}function Ti(e,t){return Hn({prop:e,themeKey:"borders",transform:t})}const YU=Ti("border",di),XU=Ti("borderTop",di),QU=Ti("borderRight",di),ZU=Ti("borderBottom",di),JU=Ti("borderLeft",di),eH=Ti("borderColor"),tH=Ti("borderTopColor"),rH=Ti("borderRightColor"),nH=Ti("borderBottomColor"),oH=Ti("borderLeftColor"),aH=Ti("outline",di),iH=Ti("outlineColor"),ky=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=fh(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Dc(t,n)});return Sa(e,e.borderRadius,r)}return null};ky.propTypes={};ky.filterProps=["borderRadius"];Ry(YU,XU,QU,ZU,JU,eH,tH,rH,nH,oH,ky,aH,iH);const Iy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=fh(e.theme,"spacing",8),r=n=>({gap:Dc(t,n)});return Sa(e,e.gap,r)}return null};Iy.propTypes={};Iy.filterProps=["gap"];const Ey=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=fh(e.theme,"spacing",8),r=n=>({columnGap:Dc(t,n)});return Sa(e,e.columnGap,r)}return null};Ey.propTypes={};Ey.filterProps=["columnGap"];const Oy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=fh(e.theme,"spacing",8),r=n=>({rowGap:Dc(t,n)});return Sa(e,e.rowGap,r)}return null};Oy.propTypes={};Oy.filterProps=["rowGap"];const sH=Hn({prop:"gridColumn"}),lH=Hn({prop:"gridRow"}),cH=Hn({prop:"gridAutoFlow"}),uH=Hn({prop:"gridAutoColumns"}),dH=Hn({prop:"gridAutoRows"}),fH=Hn({prop:"gridTemplateColumns"}),pH=Hn({prop:"gridTemplateRows"}),hH=Hn({prop:"gridTemplateAreas"}),mH=Hn({prop:"gridArea"});Ry(Iy,Ey,Oy,sH,lH,cH,uH,dH,fH,pH,hH,mH);function Yu(e,t){return t==="grey"?t:e}const vH=Hn({prop:"color",themeKey:"palette",transform:Yu}),gH=Hn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yu}),yH=Hn({prop:"backgroundColor",themeKey:"palette",transform:Yu});Ry(vH,gH,yH);function ja(e){return e<=1&&e!==0?`${e*100}%`:e}const bH=Hn({prop:"width",transform:ja}),qC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,a,i,s,l;const n=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[r])||Py[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ja(r)}};return Sa(e,e.maxWidth,t)}return null};qC.filterProps=["maxWidth"];const wH=Hn({prop:"minWidth",transform:ja}),xH=Hn({prop:"height",transform:ja}),SH=Hn({prop:"maxHeight",transform:ja}),CH=Hn({prop:"minHeight",transform:ja});Hn({prop:"size",cssProperty:"width",transform:ja});Hn({prop:"size",cssProperty:"height",transform:ja});const TH=Hn({prop:"boxSizing"});Ry(bH,qC,wH,xH,SH,CH,TH);const ph={border:{themeKey:"borders",transform:di},borderTop:{themeKey:"borders",transform:di},borderRight:{themeKey:"borders",transform:di},borderBottom:{themeKey:"borders",transform:di},borderLeft:{themeKey:"borders",transform:di},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:di},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ky},color:{themeKey:"palette",transform:Yu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yu},backgroundColor:{themeKey:"palette",transform:Yu},p:{style:An},pt:{style:An},pr:{style:An},pb:{style:An},pl:{style:An},px:{style:An},py:{style:An},padding:{style:An},paddingTop:{style:An},paddingRight:{style:An},paddingBottom:{style:An},paddingLeft:{style:An},paddingX:{style:An},paddingY:{style:An},paddingInline:{style:An},paddingInlineStart:{style:An},paddingInlineEnd:{style:An},paddingBlock:{style:An},paddingBlockStart:{style:An},paddingBlockEnd:{style:An},m:{style:Mn},mt:{style:Mn},mr:{style:Mn},mb:{style:Mn},ml:{style:Mn},mx:{style:Mn},my:{style:Mn},margin:{style:Mn},marginTop:{style:Mn},marginRight:{style:Mn},marginBottom:{style:Mn},marginLeft:{style:Mn},marginX:{style:Mn},marginY:{style:Mn},marginInline:{style:Mn},marginInlineStart:{style:Mn},marginInlineEnd:{style:Mn},marginBlock:{style:Mn},marginBlockStart:{style:Mn},marginBlockEnd:{style:Mn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Iy},rowGap:{style:Oy},columnGap:{style:Ey},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ja},maxWidth:{style:qC},minWidth:{transform:ja},height:{transform:ja},maxHeight:{transform:ja},minHeight:{transform:ja},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function PH(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function $H(e,t){return typeof e=="function"?e(t):e}function RH(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=ud(o,c)||{};return d?d(i):Sa(i,n,p=>{let m=cg(f,u,p);return p===m&&typeof p=="string"&&(m=cg(f,u,`${r}${p==="default"?"":Le(p)}`,p)),l===!1?m:{[l]:m}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??ph;function i(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=_A(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const h=$H(l[f],o);if(h!=null)if(typeof h=="object")if(a[f])d=rp(d,e(f,h,o,a));else{const p=Sa({theme:o},h,m=>({[f]:m}));PH(p,h)?d[f]=t({sx:h,theme:o}):d=rp(d,p)}else d=rp(d,e(f,h,o,a))}),AU(o,DA(u,d))}return Array.isArray(n)?n.map(i):i(n)}return t}const Bl=RH();Bl.filterProps=["sx"];function kH(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function hh(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=e,s=HC(r),l=KC(o);let c=so({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...FU,...a}},i);return c=NU(c),c.applyStyles=kH,c=t.reduce((u,d)=>so(u,d),c),c.unstable_sxConfig={...ph,...i==null?void 0:i.unstable_sxConfig},c.unstable_sx=function(d){return Bl({sx:d,theme:this})},c}function IH(e){return Object.keys(e).length===0}function YC(e=null){const t=y.useContext(Qi);return!t||IH(t)?e:t}const EH=hh();function _y(e=EH){return YC(e)}function OH({styles:e,themeId:t,defaultTheme:r={}}){const n=_y(r),o=typeof e=="function"?e(t&&n[t]||n):e;return v.jsx(IA,{styles:o})}const _H=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??ph;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Dy(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=_H(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return ys(s)?{...n,...s}:n}:a={...n,...t},{...o,sx:a}}const QR=e=>e,DH=()=>{let e=QR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=QR}}},XC=DH();function AA(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=AA(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Fe(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=AA(e))&&(n&&(n+=" "),n+=t);return n}function MH(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=EA("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Bl);return y.forwardRef(function(l,c){const u=_y(r),{className:d,component:f="div",...h}=Dy(l);return v.jsx(a,{as:f,ref:c,className:Fe(d,o?o(n):n),theme:t&&u[t]||u,...h})})}const AH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Qe(e,t,r="Mui"){const n=AH[t];return n?`${r}-${n}`:`${XC.generate(e)}-${t}`}function Ze(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Qe(e,o,r)}),n}function jA(e){const{variants:t,...r}=e,n={variants:t,style:qR(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=qR(o.style))}),n}const jH=hh();function gv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function LH(e){return e?(t,r)=>r[e]:null}function NH(e,t,r){e.theme=BH(e.theme)?r:e.theme[t]||e.theme}function yv(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>yv(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return LA(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function LA(e,t,r=[]){var o;let n;e:for(let a=0;a<t.length;a+=1){const i=t[a];if(typeof i.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(n))continue}else for(const s in i.props)if(e[s]!==i.props[s]&&((o=e.ownerState)==null?void 0:o[s])!==i.props[s])continue e;typeof i.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(i.style(n))):r.push(i.style)}return r}function NA(e={}){const{themeId:t,defaultTheme:r=jH,rootShouldForwardProp:n=gv,slotShouldForwardProp:o=gv}=e;function a(s){NH(s,t,r)}return(s,l={})=>{DU(s,R=>R.filter(T=>T!==Bl));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=LH(VH(u)),...p}=l,m=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,x=f||!1;let b=gv;u==="Root"||u==="root"?b=n:u?b=o:zH(s)&&(b=void 0);const w=EA(s,{shouldForwardProp:b,label:FH(),...p}),g=R=>{if(typeof R=="function"&&R.__emotion_real!==R)return function(k){return yv(k,R)};if(ys(R)){const T=jA(R);return T.variants?function(O){return yv(O,T)}:T.style}return R},S=(...R)=>{const T=[],k=R.map(g),O=[];if(T.push(a),c&&h&&O.push(function(B){var V,ee;const j=(ee=(V=B.theme.components)==null?void 0:V[c])==null?void 0:ee.styleOverrides;if(!j)return null;const N={};for(const M in j)N[M]=yv(B,j[M]);return h(B,N)}),c&&!m&&O.push(function(B){var N,V;const U=B.theme,j=(V=(N=U==null?void 0:U.components)==null?void 0:N[c])==null?void 0:V.variants;return j?LA(B,j):null}),x||O.push(Bl),Array.isArray(k[0])){const D=k.shift(),B=new Array(T.length).fill(""),U=new Array(O.length).fill("");let j;j=[...B,...D,...U],j.raw=[...B,...D.raw,...U],T.unshift(j)}const E=[...T,...k,...O],C=w(...E);return s.muiName&&(C.muiName=s.muiName),C};return w.withConfig&&(S.withConfig=w.withConfig),S}}function FH(e,t){return void 0}function BH(e){for(const t in e)return!1;return!0}function zH(e){return typeof e=="string"&&e.charCodeAt(0)>96}function VH(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const FA=NA();function zp(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],i=t[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;r[o][l]=zp(a[l],i[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function BA(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:zp(t.components[r].defaultProps,n)}function QC({props:e,name:t,defaultTheme:r,themeId:n}){let o=_y(r);return n&&(o=o[n]||o),BA({theme:o,name:t,props:e})}const $n=typeof window<"u"?y.useLayoutEffect:y.useEffect;function UH(e,t,r,n,o){const[a,i]=y.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return $n(()=>{if(!r)return;const s=r(e),l=()=>{i(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,r]),a}const HH={...gp},zA=HH.useSyncExternalStore;function WH(e,t,r,n,o){const a=y.useCallback(()=>t,[t]),i=y.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:u}=n(e);return()=>u}return a},[a,e,n,o,r]),[s,l]=y.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const u=r(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[a,r,e]);return zA(l,s,i)}function My(e,t={}){const r=YC(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=BA({name:"MuiUseMediaQuery",props:t,theme:r});let l=typeof e=="function"?e(r):e;return l=l.replace(/^@media( ?)/m,""),(zA!==void 0?WH:UH)(l,o,a,i,s)}function GH(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function ZC(e,t=0,r=1){return GH(e,t,r)}function VA(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function KH(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ps(e){if(e.type)return e;if(e.charAt(0)==="#")return Ps(VA(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(xa(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(xa(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const qH=e=>{const t=Ps(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Nf=(e,t)=>{try{return qH(e)}catch{return e}};function mh(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function YH(e){if(e.startsWith("#"))return e;const{values:t}=Ps(e);return`#${t.map((r,n)=>KH(n===3?Math.round(255*r):r)).join("")}`}function JC(e){e=Ps(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,u=(c+r/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),mh({type:s,values:l})}function ug(e){e=Ps(e);let t=e.type==="hsl"||e.type==="hsla"?Ps(JC(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function UA(e,t){const r=ug(e),n=ug(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Yt(e,t){return e=Ps(e),t=ZC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mh(e)}function Pm(e,t,r){try{return Yt(e,t)}catch{return e}}function Mc(e,t){if(e=Ps(e),t=ZC(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return mh(e)}function nn(e,t,r){try{return Mc(e,t)}catch{return e}}function Ac(e,t){if(e=Ps(e),t=ZC(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return mh(e)}function on(e,t,r){try{return Ac(e,t)}catch{return e}}function eT(e,t=.15){return ug(e)>.5?Mc(e,t):Ac(e,t)}function $m(e,t,r){try{return eT(e,t)}catch{return e}}const HA=Re.oneOfType([Re.func,Re.object]);function dg(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Ad(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function XH(e,t){return()=>null}function np(e,t){var r,n,o;return y.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}function Un(e){return e&&e.ownerDocument||document}function Ca(e){return Un(e).defaultView||window}function QH(e,t){return()=>null}function fg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ZR=0;function ZH(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect(()=>{t==null&&(ZR+=1,r(`mui-${ZR}`))},[t]),n}const JH={...gp},JR=JH.useId;function Ta(e){if(JR!==void 0){const t=JR();return e??t}return ZH(e)}function e7(e,t,r,n,o){return null}function za({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(e!==void 0),[a,i]=y.useState(t),s=o?e:a,l=y.useCallback(c=>{o||i(c)},[]);return[s,l]}function it(e){const t=y.useRef(e);return $n(()=>{t.current=e}),y.useRef((...r)=>(0,t.current)(...r)).current}function mr(...e){return y.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{fg(r,t)})},e)}const e2={};function WA(e,t){const r=y.useRef(e2);return r.current===e2&&(r.current=e(t)),r}const t7=[];function r7(e){y.useEffect(e,t7)}class Ay{constructor(){ru(this,"currentId",null);ru(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ru(this,"disposeEffect",()=>this.clear)}static create(){return new Ay}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function gc(){const e=WA(Ay.create).current;return r7(e.disposeEffect),e}function dd(e){try{return e.matches(":focus-visible")}catch{}return!1}function GA(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function n7(e){return y.Children.toArray(e).filter(t=>y.isValidElement(t))}const o7={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Xe(e,t,r=void 0){const n={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(i+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(i+=" "+r[c]))}n[o]=i}return n}function a7(e){return typeof e=="string"}function Nu(e,t,r){return e===void 0||a7(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function pg(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function t2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function KA(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const h=Fe(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),p={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},m={...r,...o,...n};return h.length>0&&(m.className=h),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:void 0}}const i=pg({...o,...n}),s=t2(n),l=t2(o),c=t(i),u=Fe(c==null?void 0:c.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),d={...c==null?void 0:c.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},f={...c,...r,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function Vp(e,t,r){return typeof e=="function"?e(t,r):e}function xr(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:Vp(r,n),{props:s,internalRef:l}=KA({...a,externalSlotProps:i}),c=mr(l,i==null?void 0:i.ref,(d=e.additionalProps)==null?void 0:d.ref);return Nu(t,{...s,ref:c},n)}function Gl(e){var t;return parseInt(y.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const qA=y.createContext(null);function tT(){return y.useContext(qA)}const i7=typeof Symbol=="function"&&Symbol.for,s7=i7?Symbol.for("mui.nested"):"__THEME_NESTED__";function l7(e,t){return typeof t=="function"?t(e):{...e,...t}}function c7(e){const{children:t,theme:r}=e,n=tT(),o=y.useMemo(()=>{const a=n===null?{...r}:l7(n,r);return a!=null&&(a[s7]=n!==null),a},[r,n]);return v.jsx(qA.Provider,{value:o,children:t})}const YA=y.createContext();function u7({value:e,...t}){return v.jsx(YA.Provider,{value:e??!0,...t})}const lo=()=>y.useContext(YA)??!1,XA=y.createContext(void 0);function d7({value:e,children:t}){return v.jsx(XA.Provider,{value:e,children:t})}function f7(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?zp(o.defaultProps,n):!o.styleOverrides&&!o.variants?zp(o,n):n}function p7({props:e,name:t}){const r=y.useContext(XA);return f7({props:e,name:t,theme:{components:r}})}const r2={};function n2(e,t,r,n=!1){return y.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?{...t,[e]:a}:a;return n?()=>i:i}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function QA(e){const{children:t,theme:r,themeId:n}=e,o=YC(r2),a=tT()||r2,i=n2(n,o,r),s=n2(n,a,r,!0),l=i.direction==="rtl";return v.jsx(c7,{theme:s,children:v.jsx(Qi.Provider,{value:i,children:v.jsx(u7,{value:l,children:v.jsx(d7,{value:i==null?void 0:i.components,children:t})})})})}const o2={theme:void 0};function h7(e){let t,r;return function(o){let a=t;return(a===void 0||o.theme!==r)&&(o2.theme=o.theme,a=jA(e(o2)),t=a,r=o.theme),a}}const rT="mode",nT="color-scheme",m7="data-color-scheme";function v7(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=rT,colorSchemeStorageKey:a=nT,attribute:i=m7,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=i;if(i==="class"&&(u=".%s"),i==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); + ${s}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[f,h]=d[1].split("=");h||(c+=`${s}.removeAttribute('${f}'.replace('%s', light)); + ${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=` + ${s}.setAttribute('${f}'.replace('%s', colorScheme), ${h?`${h}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return v.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${t}'; + const dark = localStorage.getItem('${a}-dark') || '${n}'; + const light = localStorage.getItem('${a}-light') || '${r}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${c} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function a2(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function ZA(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function g7(e){return ZA(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function X0(e,t){if(typeof window>"u")return;let r;try{r=localStorage.getItem(e)||void 0,r||localStorage.setItem(e,t)}catch{}return r||t}function y7(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=rT,colorSchemeStorageKey:i=nT,storageWindow:s=typeof window>"u"?void 0:window}=e,l=o.join(","),c=o.length>1,[u,d]=y.useState(()=>{const g=X0(a,t),S=X0(`${i}-light`,r),R=X0(`${i}-dark`,n);return{mode:g,systemMode:a2(g),lightColorScheme:S,darkColorScheme:R}}),[,f]=y.useState(!1),h=y.useRef(!1);y.useEffect(()=>{c&&f(!0),h.current=!0},[c]);const p=g7(u),m=y.useCallback(g=>{d(S=>{if(g===S.mode)return S;const R=g??t;try{localStorage.setItem(a,R)}catch{}return{...S,mode:R,systemMode:a2(R)}})},[a,t]),x=y.useCallback(g=>{g?typeof g=="string"?g&&!l.includes(g)?console.error(`\`${g}\` does not exist in \`theme.colorSchemes\`.`):d(S=>{const R={...S};return ZA(S,T=>{try{localStorage.setItem(`${i}-${T}`,g)}catch{}T==="light"&&(R.lightColorScheme=g),T==="dark"&&(R.darkColorScheme=g)}),R}):d(S=>{const R={...S},T=g.light===null?r:g.light,k=g.dark===null?n:g.dark;if(T)if(!l.includes(T))console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`);else{R.lightColorScheme=T;try{localStorage.setItem(`${i}-light`,T)}catch{}}if(k)if(!l.includes(k))console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`);else{R.darkColorScheme=k;try{localStorage.setItem(`${i}-dark`,k)}catch{}}return R}):d(S=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return{...S,lightColorScheme:r,darkColorScheme:n}})},[l,i,r,n]),b=y.useCallback(g=>{u.mode==="system"&&d(S=>{const R=g!=null&&g.matches?"dark":"light";return S.systemMode===R?S:{...S,systemMode:R}})},[u.mode]),w=y.useRef(b);return w.current=b,y.useEffect(()=>{if(typeof window.matchMedia!="function"||!c)return;const g=(...R)=>w.current(...R),S=window.matchMedia("(prefers-color-scheme: dark)");return S.addListener(g),g(S),()=>{S.removeListener(g)}},[c]),y.useEffect(()=>{if(s&&c){const g=S=>{const R=S.newValue;typeof S.key=="string"&&S.key.startsWith(i)&&(!R||l.match(R))&&(S.key.endsWith("light")&&x({light:R}),S.key.endsWith("dark")&&x({dark:R})),S.key===a&&(!R||["light","dark","system"].includes(R))&&m(R||t)};return s.addEventListener("storage",g),()=>{s.removeEventListener("storage",g)}}},[x,m,a,i,l,t,s,c]),{...u,mode:h.current||!c?u.mode:void 0,systemMode:h.current||!c?u.systemMode:void 0,colorScheme:h.current||!c?p:void 0,setMode:m,setColorScheme:x}}const b7="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function w7(e){const{themeId:t,theme:r={},modeStorageKey:n=rT,colorSchemeStorageKey:o=nT,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=y.createContext(void 0),u=()=>y.useContext(c)||l;function d(m){var bt,Ke,St,Lt,qt;const{children:x,theme:b,modeStorageKey:w=n,colorSchemeStorageKey:g=o,disableTransitionOnChange:S=a,storageWindow:R=typeof window>"u"?void 0:window,documentNode:T=typeof document>"u"?void 0:document,colorSchemeNode:k=typeof document>"u"?void 0:document.documentElement,disableNestedContext:O=!1,disableStyleSheetGeneration:E=!1,defaultMode:C="system"}=m,D=y.useRef(!1),B=tT(),U=y.useContext(c),j=!!U&&!O,N=y.useMemo(()=>b||(typeof r=="function"?r():r),[b]),V=N[t],{colorSchemes:ee={},components:M={},cssVarPrefix:K,...te}=V||N,oe=Object.keys(ee).filter(wt=>!!ee[wt]).join(","),Ie=y.useMemo(()=>oe.split(","),[oe]),Te=typeof i=="string"?i:i.light,ke=typeof i=="string"?i:i.dark,pe=ee[Te]&&ee[ke]?C:((Ke=(bt=ee[te.defaultColorScheme])==null?void 0:bt.palette)==null?void 0:Ke.mode)||((St=te.palette)==null?void 0:St.mode),{mode:Pe,setMode:Ae,systemMode:ge,lightColorScheme:G,darkColorScheme:Y,colorScheme:Q,setColorScheme:Z}=y7({supportedColorSchemes:Ie,defaultLightColorScheme:Te,defaultDarkColorScheme:ke,modeStorageKey:w,colorSchemeStorageKey:g,defaultMode:pe,storageWindow:R});let X=Pe,ae=Q;j&&(X=U.mode,ae=U.colorScheme);const fe=ae||te.defaultColorScheme,xe=((Lt=te.generateThemeVars)==null?void 0:Lt.call(te))||te.vars,we={...te,components:M,colorSchemes:ee,cssVarPrefix:K,vars:xe};if(typeof we.generateSpacing=="function"&&(we.spacing=we.generateSpacing()),fe){const wt=ee[fe];wt&&typeof wt=="object"&&Object.keys(wt).forEach(lt=>{wt[lt]&&typeof wt[lt]=="object"?we[lt]={...we[lt],...wt[lt]}:we[lt]=wt[lt]})}const $e=te.colorSchemeSelector;y.useEffect(()=>{if(ae&&k&&$e&&$e!=="media"){const wt=$e;let lt=$e;if(wt==="class"&&(lt=".%s"),wt==="data"&&(lt="[data-%s]"),wt!=null&&wt.startsWith("data-")&&!wt.includes("%s")&&(lt=`[${wt}="%s"]`),lt.startsWith("."))k.classList.remove(...Ie.map(gt=>lt.substring(1).replace("%s",gt))),k.classList.add(lt.substring(1).replace("%s",ae));else{const gt=lt.replace("%s",ae).match(/\[([^\]]+)\]/);if(gt){const[kt,dt]=gt[1].split("=");dt||Ie.forEach(ir=>{k.removeAttribute(kt.replace(ae,ir))}),k.setAttribute(kt,dt?dt.replace(/"|'/g,""):"")}else k.setAttribute(lt,ae)}}},[ae,$e,k,Ie]),y.useEffect(()=>{let wt;if(S&&D.current&&T){const lt=T.createElement("style");lt.appendChild(T.createTextNode(b7)),T.head.appendChild(lt),window.getComputedStyle(T.body),wt=setTimeout(()=>{T.head.removeChild(lt)},1)}return()=>{clearTimeout(wt)}},[ae,S,T]),y.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const ye=y.useMemo(()=>({allColorSchemes:Ie,colorScheme:ae,darkColorScheme:Y,lightColorScheme:G,mode:X,setColorScheme:Z,setMode:Ae,systemMode:ge}),[Ie,ae,Y,G,X,Z,Ae,ge]);let De=!0;(E||te.cssVariables===!1||j&&(B==null?void 0:B.cssVarPrefix)===K)&&(De=!1);const Ge=v.jsxs(y.Fragment,{children:[v.jsx(QA,{themeId:V?t:void 0,theme:s?s(we):we,children:x}),De&&v.jsx(IA,{styles:((qt=we.generateStyleSheets)==null?void 0:qt.call(we))||[]})]});return j?Ge:v.jsx(c.Provider,{value:ye,children:Ge})}const f=typeof i=="string"?i:i.light,h=typeof i=="string"?i:i.dark;return{CssVarsProvider:d,useColorScheme:u,getInitColorSchemeScript:m=>v7({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:h,modeStorageKey:n,...m})}}function x7(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const i2=(e,t,r,n=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},S7=(e,t,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}n(e)},C7=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Q0(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return S7(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,d=C7(s,l);Object.assign(o,{[u]:d}),i2(a,s,`var(${u})`,c),i2(i,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function T7(e,t={}){const{getSelector:r=x,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=Q0(l,t);let f=d;const h={},{[s]:p,...m}=a;if(Object.entries(m||{}).forEach(([g,S])=>{const{vars:R,css:T,varsWithDefaults:k}=Q0(S,t);f=so(f,k),h[g]={css:T,vars:R}}),p){const{css:g,vars:S,varsWithDefaults:R}=Q0(p,t);f=so(f,R),h[s]={css:g,vars:S}}function x(g,S){var T,k;let R=o;if(o==="class"&&(R=".%s"),o==="data"&&(R="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(R=`[${o}="%s"]`),g){if(R==="media")return e.defaultColorScheme===g?":root":{[`@media (prefers-color-scheme: ${((k=(T=a[g])==null?void 0:T.palette)==null?void 0:k.mode)||g})`]:{":root":S}};if(R)return e.defaultColorScheme===g?`:root, ${R.replace("%s",String(g))}`:R.replace("%s",String(g))}return":root"}return{vars:f,generateThemeVars:()=>{let g={...c};return Object.entries(h).forEach(([,{vars:S}])=>{g=so(g,S)}),g},generateStyleSheets:()=>{var O,E;const g=[],S=e.defaultColorScheme||"light";function R(C,D){Object.keys(D).length&&g.push(typeof C=="string"?{[C]:{...D}}:C)}R(r(void 0,{...u}),u);const{[S]:T,...k}=h;if(T){const{css:C}=T,D=(E=(O=a[S])==null?void 0:O.palette)==null?void 0:E.mode,B=!n&&D?{colorScheme:D,...C}:{...C};R(r(S,{...B}),B)}return Object.entries(k).forEach(([C,{css:D}])=>{var j,N;const B=(N=(j=a[C])==null?void 0:j.palette)==null?void 0:N.mode,U=!n&&B?{colorScheme:B,...D}:{...D};R(r(C,{...U}),U)}),g}}}function P7(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const $7=hh(),R7=FA("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Le(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),k7=e=>QC({props:e,name:"MuiContainer",defaultTheme:$7}),I7=(e,t)=>{const r=l=>Qe(t,l),{classes:n,fixed:o,disableGutters:a,maxWidth:i}=e,s={root:["root",i&&`maxWidth${Le(String(i))}`,o&&"fixed",a&&"disableGutters"]};return Xe(s,r,n)};function E7(e={}){const{createStyledComponent:t=R7,useThemeProps:r=k7,componentName:n="MuiContainer"}=e,o=t(({theme:i,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}}),({theme:i,ownerState:s})=>s.fixed&&Object.keys(i.breakpoints.values).reduce((l,c)=>{const u=c,d=i.breakpoints.values[u];return d!==0&&(l[i.breakpoints.up(u)]={maxWidth:`${d}${i.breakpoints.unit}`}),l},{}),({theme:i,ownerState:s})=>({...s.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[i.breakpoints.up(s.maxWidth)]:{maxWidth:`${i.breakpoints.values[s.maxWidth]}${i.breakpoints.unit}`}}}));return y.forwardRef(function(s,l){const c=r(s),{className:u,component:d="div",disableGutters:f=!1,fixed:h=!1,maxWidth:p="lg",classes:m,...x}=c,b={...c,component:d,disableGutters:f,fixed:h,maxWidth:p},w=I7(b,n);return v.jsx(o,{as:d,ownerState:b,className:Fe(w.root,u),ref:l,...x})})}const O7=hh(),_7=FA("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function D7(e){return QC({props:e,name:"MuiStack",defaultTheme:O7})}function M7(e,t){const r=y.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(y.cloneElement(t,{key:`separator-${a}`})),n),[])}const A7=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],j7=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...Sa({theme:t},Sc({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=$y(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Sc({values:e.direction,base:o}),i=Sc({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const f=c>0?a[u[c-1]]:"column";a[l]=f}}),r=so(r,Sa({theme:t},i,(l,c)=>e.useFlexGap?{gap:Dc(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${A7(c?a[c]:e.direction)}`]:Dc(n,l)}}))}return r=zU(t.breakpoints,r),r};function L7(e={}){const{createStyledComponent:t=_7,useThemeProps:r=D7,componentName:n="MuiStack"}=e,o=()=>Xe({root:["root"]},l=>Qe(n,l),{}),a=t(j7);return y.forwardRef(function(l,c){const u=r(l),d=Dy(u),{component:f="div",direction:h="column",spacing:p=0,divider:m,children:x,className:b,useFlexGap:w=!1,...g}=d,S={direction:h,spacing:p,useFlexGap:w},R=o();return v.jsx(a,{as:f,ownerState:S,ref:c,className:Fe(R.root,b),...g,children:m?M7(x,m):x})})}function N7(e){const{defaultProps:t={},mixins:r={},overrides:n={},palette:o={},props:a={},styleOverrides:i={},...s}=e,l={...s,components:{}};Object.keys(t).forEach(m=>{const x=l.components[m]||{};x.defaultProps=t[m],l.components[m]=x}),Object.keys(a).forEach(m=>{const x=l.components[m]||{};x.defaultProps=a[m],l.components[m]=x}),Object.keys(i).forEach(m=>{const x=l.components[m]||{};x.styleOverrides=i[m],l.components[m]=x}),Object.keys(n).forEach(m=>{const x=l.components[m]||{};x.styleOverrides=n[m],l.components[m]=x}),l.spacing=KC(e.spacing);const c=HC(e.breakpoints||{}),u=l.spacing;l.mixins={gutters:(m={})=>({paddingLeft:u(2),paddingRight:u(2),...m,[c.up("sm")]:{paddingLeft:u(3),paddingRight:u(3),...m[c.up("sm")]}}),...r};const{type:d,mode:f,...h}=o,p=f||d||"light";return l.palette={text:{hint:p==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:p,type:p,...h},l}function JA(){return{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:Lp.white,default:Lp.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}}}const F7=JA();function ej(){return{text:{primary:Lp.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:Lp.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}}}const s2=ej();function l2(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ac(e.main,o):t==="dark"&&(e.dark=Mc(e.main,a)))}function B7(e="light"){return e==="dark"?{main:iu[200],light:iu[50],dark:iu[400]}:{main:iu[700],light:iu[400],dark:iu[800]}}function z7(e="light"){return e==="dark"?{main:au[200],light:au[50],dark:au[400]}:{main:au[500],light:au[300],dark:au[700]}}function V7(e="light"){return e==="dark"?{main:yl[500],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[400],dark:yl[800]}}function U7(e="light"){return e==="dark"?{main:su[400],light:su[300],dark:su[700]}:{main:su[700],light:su[500],dark:su[900]}}function H7(e="light"){return e==="dark"?{main:lu[400],light:lu[300],dark:lu[700]}:{main:lu[800],light:lu[500],dark:lu[900]}}function W7(e="light"){return e==="dark"?{main:pf[400],light:pf[300],dark:pf[700]}:{main:"#ed6c02",light:pf[500],dark:pf[900]}}function oT(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,a=e.primary||B7(t),i=e.secondary||z7(t),s=e.error||V7(t),l=e.info||U7(t),c=e.success||H7(t),u=e.warning||W7(t);function d(m){return UA(m,s2.text.primary)>=r?s2.text.primary:F7.text.primary}const f=({color:m,name:x,mainShade:b=500,lightShade:w=300,darkShade:g=700})=>{if(m={...m},!m.main&&m[b]&&(m.main=m[b]),!m.hasOwnProperty("main"))throw new Error(xa(11,x?` (${x})`:"",b));if(typeof m.main!="string")throw new Error(xa(12,x?` (${x})`:"",JSON.stringify(m.main)));return l2(m,"light",w,n),l2(m,"dark",g,n),m.contrastText||(m.contrastText=d(m.main)),m};let h;return t==="light"?h=JA():t==="dark"&&(h=ej()),so({common:{...Lp},mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:h9,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n,...h},o)}function G7(e){const t={};return Object.entries(e).forEach(n=>{const[o,a]=n;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function tj(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function K7(e){return Math.round(e*1e5)/1e5}const c2={textTransform:"uppercase"},u2='"Roboto", "Helvetica", "Arial", sans-serif';function aT(e,t){const{fontFamily:r=u2,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=n/14,h=u||(x=>`${x/l*f}rem`),p=(x,b,w,g,S)=>({fontFamily:r,fontWeight:x,fontSize:h(b),lineHeight:w,...r===u2?{letterSpacing:`${K7(g/b)}em`}:{},...S,...c}),m={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(a,48,1.167,0),h4:p(a,34,1.235,.25),h5:p(a,24,1.334,0),h6:p(i,20,1.6,.15),subtitle1:p(a,16,1.75,.15),subtitle2:p(i,14,1.57,.1),body1:p(a,16,1.5,.15),body2:p(a,14,1.43,.15),button:p(i,14,1.75,.4,c2),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,c2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return so({htmlFontSize:l,pxToRem:h,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...m},d,{clone:!1})}const q7=.2,Y7=.14,X7=.12;function hn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${q7})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Y7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${X7})`].join(",")}const Q7=["none",hn(0,2,1,-1,0,1,1,0,0,1,3,0),hn(0,3,1,-2,0,2,2,0,0,1,5,0),hn(0,3,3,-2,0,3,4,0,0,1,8,0),hn(0,2,4,-1,0,4,5,0,0,1,10,0),hn(0,3,5,-1,0,5,8,0,0,1,14,0),hn(0,3,5,-1,0,6,10,0,0,1,18,0),hn(0,4,5,-2,0,7,10,1,0,2,16,1),hn(0,5,5,-3,0,8,10,1,0,3,14,2),hn(0,5,6,-3,0,9,12,1,0,3,16,2),hn(0,6,6,-3,0,10,14,1,0,4,18,3),hn(0,6,7,-4,0,11,15,1,0,4,20,3),hn(0,7,8,-4,0,12,17,2,0,5,22,4),hn(0,7,8,-4,0,13,19,2,0,5,24,4),hn(0,7,9,-4,0,14,21,2,0,5,26,4),hn(0,8,9,-5,0,15,22,2,0,6,28,5),hn(0,8,10,-5,0,16,24,2,0,6,30,5),hn(0,8,11,-5,0,17,26,2,0,6,32,5),hn(0,9,11,-5,0,18,28,2,0,7,34,6),hn(0,9,12,-6,0,19,29,2,0,7,36,6),hn(0,10,13,-6,0,20,31,3,0,8,38,7),hn(0,10,13,-6,0,21,33,3,0,8,40,7),hn(0,10,14,-6,0,22,35,3,0,8,42,7),hn(0,11,14,-7,0,23,36,3,0,9,44,8),hn(0,11,15,-7,0,24,38,3,0,9,46,8)],rj={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)"},nj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function d2(e){return`${Math.round(e)}ms`}function Z7(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function oj(e){const t={...rj,...e.easing},r={...nj,...e.duration};return{getAutoHeightDuration:Z7,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=a;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:d2(i)} ${s} ${typeof l=="string"?l:d2(l)}`).join(",")},...e,easing:t,duration:r}}const J7={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eW(e){return ys(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function aj(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;a<o.length;a++){const[i,s]=o[a];!eW(s)||i.startsWith("unstable_")?delete n[i]:ys(s)&&(n[i]={...s},r(n[i]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; + +const theme = ${JSON.stringify(t,null,2)}; + +theme.breakpoints = createBreakpoints(theme.breakpoints || {}); +theme.transitions = createTransitions(theme.transitions || {}); + +export default theme;`}function hg(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars)throw new Error(xa(20));const u=oT(a),d=hh(e);let f=so(d,{mixins:tj(d.breakpoints,n),palette:u,shadows:Q7.slice(),typography:aT(u,s),transitions:oj(i),zIndex:{...J7}});return f=so(f,c),f=t.reduce((h,p)=>so(h,p),f),f.unstable_sxConfig={...ph,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(p){return Bl({sx:p,theme:this})},f.toRuntimeSource=aj,f}function tW(...e){return hg(...e)}function mg(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const rW=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=mg(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function ij(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function sj(e){return e==="dark"?rW:[]}function lj(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,a=oT(t);return{palette:a,opacity:{...ij(a.mode),...r},overlays:n||sj(a.mode),...o}}function cj(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const uj=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],nW=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return uj(e.cssVarPrefix).forEach(s=>{i[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",t)]:i,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function oW(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function Ve(e,t,r){!e[t]&&r&&(e[t]=r)}function Ff(e){return!e||!e.startsWith("hsl")?e:JC(e)}function Ds(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Nf(Ff(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function aW(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const cs=e=>{try{return e()}catch{}},iW=(e="mui")=>x7(e);function Z0(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=lj({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:a,...i}=hg({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:a,opacity:{...ij(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||sj(o)},i}function iT(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=cj,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(r)[0],d=n||(r.light&&u!=="light"?"light":u),f=iW(a),{[d]:h,light:p,dark:m,...x}=r,b={...x};let w=h;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(xa(21,d));const g=Z0(b,w,c,d);p&&!b.light&&Z0(b,p,void 0,"light"),m&&!b.dark&&Z0(b,m,void 0,"dark");let S={defaultColorScheme:d,...g,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:b,font:{...G7(g.typography),...g.font},spacing:aW(c.spacing)};Object.keys(S.colorSchemes).forEach(E=>{const C=S.colorSchemes[E].palette,D=B=>{const U=B.split("-"),j=U[1],N=U[2];return f(B,C[j][N])};if(C.mode==="light"&&(Ve(C.common,"background","#fff"),Ve(C.common,"onBackground","#000")),C.mode==="dark"&&(Ve(C.common,"background","#000"),Ve(C.common,"onBackground","#fff")),oW(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){Ve(C.Alert,"errorColor",nn(C.error.light,.6)),Ve(C.Alert,"infoColor",nn(C.info.light,.6)),Ve(C.Alert,"successColor",nn(C.success.light,.6)),Ve(C.Alert,"warningColor",nn(C.warning.light,.6)),Ve(C.Alert,"errorFilledBg",D("palette-error-main")),Ve(C.Alert,"infoFilledBg",D("palette-info-main")),Ve(C.Alert,"successFilledBg",D("palette-success-main")),Ve(C.Alert,"warningFilledBg",D("palette-warning-main")),Ve(C.Alert,"errorFilledColor",cs(()=>C.getContrastText(C.error.main))),Ve(C.Alert,"infoFilledColor",cs(()=>C.getContrastText(C.info.main))),Ve(C.Alert,"successFilledColor",cs(()=>C.getContrastText(C.success.main))),Ve(C.Alert,"warningFilledColor",cs(()=>C.getContrastText(C.warning.main))),Ve(C.Alert,"errorStandardBg",on(C.error.light,.9)),Ve(C.Alert,"infoStandardBg",on(C.info.light,.9)),Ve(C.Alert,"successStandardBg",on(C.success.light,.9)),Ve(C.Alert,"warningStandardBg",on(C.warning.light,.9)),Ve(C.Alert,"errorIconColor",D("palette-error-main")),Ve(C.Alert,"infoIconColor",D("palette-info-main")),Ve(C.Alert,"successIconColor",D("palette-success-main")),Ve(C.Alert,"warningIconColor",D("palette-warning-main")),Ve(C.AppBar,"defaultBg",D("palette-grey-100")),Ve(C.Avatar,"defaultBg",D("palette-grey-400")),Ve(C.Button,"inheritContainedBg",D("palette-grey-300")),Ve(C.Button,"inheritContainedHoverBg",D("palette-grey-A100")),Ve(C.Chip,"defaultBorder",D("palette-grey-400")),Ve(C.Chip,"defaultAvatarColor",D("palette-grey-700")),Ve(C.Chip,"defaultIconColor",D("palette-grey-700")),Ve(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ve(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ve(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ve(C.LinearProgress,"primaryBg",on(C.primary.main,.62)),Ve(C.LinearProgress,"secondaryBg",on(C.secondary.main,.62)),Ve(C.LinearProgress,"errorBg",on(C.error.main,.62)),Ve(C.LinearProgress,"infoBg",on(C.info.main,.62)),Ve(C.LinearProgress,"successBg",on(C.success.main,.62)),Ve(C.LinearProgress,"warningBg",on(C.warning.main,.62)),Ve(C.Skeleton,"bg",`rgba(${D("palette-text-primaryChannel")} / 0.11)`),Ve(C.Slider,"primaryTrack",on(C.primary.main,.62)),Ve(C.Slider,"secondaryTrack",on(C.secondary.main,.62)),Ve(C.Slider,"errorTrack",on(C.error.main,.62)),Ve(C.Slider,"infoTrack",on(C.info.main,.62)),Ve(C.Slider,"successTrack",on(C.success.main,.62)),Ve(C.Slider,"warningTrack",on(C.warning.main,.62));const B=$m(C.background.default,.8);Ve(C.SnackbarContent,"bg",B),Ve(C.SnackbarContent,"color",cs(()=>C.getContrastText(B))),Ve(C.SpeedDialAction,"fabHoverBg",$m(C.background.paper,.15)),Ve(C.StepConnector,"border",D("palette-grey-400")),Ve(C.StepContent,"border",D("palette-grey-400")),Ve(C.Switch,"defaultColor",D("palette-common-white")),Ve(C.Switch,"defaultDisabledColor",D("palette-grey-100")),Ve(C.Switch,"primaryDisabledColor",on(C.primary.main,.62)),Ve(C.Switch,"secondaryDisabledColor",on(C.secondary.main,.62)),Ve(C.Switch,"errorDisabledColor",on(C.error.main,.62)),Ve(C.Switch,"infoDisabledColor",on(C.info.main,.62)),Ve(C.Switch,"successDisabledColor",on(C.success.main,.62)),Ve(C.Switch,"warningDisabledColor",on(C.warning.main,.62)),Ve(C.TableCell,"border",on(Pm(C.divider,1),.88)),Ve(C.Tooltip,"bg",Pm(C.grey[700],.92))}if(C.mode==="dark"){Ve(C.Alert,"errorColor",on(C.error.light,.6)),Ve(C.Alert,"infoColor",on(C.info.light,.6)),Ve(C.Alert,"successColor",on(C.success.light,.6)),Ve(C.Alert,"warningColor",on(C.warning.light,.6)),Ve(C.Alert,"errorFilledBg",D("palette-error-dark")),Ve(C.Alert,"infoFilledBg",D("palette-info-dark")),Ve(C.Alert,"successFilledBg",D("palette-success-dark")),Ve(C.Alert,"warningFilledBg",D("palette-warning-dark")),Ve(C.Alert,"errorFilledColor",cs(()=>C.getContrastText(C.error.dark))),Ve(C.Alert,"infoFilledColor",cs(()=>C.getContrastText(C.info.dark))),Ve(C.Alert,"successFilledColor",cs(()=>C.getContrastText(C.success.dark))),Ve(C.Alert,"warningFilledColor",cs(()=>C.getContrastText(C.warning.dark))),Ve(C.Alert,"errorStandardBg",nn(C.error.light,.9)),Ve(C.Alert,"infoStandardBg",nn(C.info.light,.9)),Ve(C.Alert,"successStandardBg",nn(C.success.light,.9)),Ve(C.Alert,"warningStandardBg",nn(C.warning.light,.9)),Ve(C.Alert,"errorIconColor",D("palette-error-main")),Ve(C.Alert,"infoIconColor",D("palette-info-main")),Ve(C.Alert,"successIconColor",D("palette-success-main")),Ve(C.Alert,"warningIconColor",D("palette-warning-main")),Ve(C.AppBar,"defaultBg",D("palette-grey-900")),Ve(C.AppBar,"darkBg",D("palette-background-paper")),Ve(C.AppBar,"darkColor",D("palette-text-primary")),Ve(C.Avatar,"defaultBg",D("palette-grey-600")),Ve(C.Button,"inheritContainedBg",D("palette-grey-800")),Ve(C.Button,"inheritContainedHoverBg",D("palette-grey-700")),Ve(C.Chip,"defaultBorder",D("palette-grey-700")),Ve(C.Chip,"defaultAvatarColor",D("palette-grey-300")),Ve(C.Chip,"defaultIconColor",D("palette-grey-300")),Ve(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ve(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ve(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ve(C.LinearProgress,"primaryBg",nn(C.primary.main,.5)),Ve(C.LinearProgress,"secondaryBg",nn(C.secondary.main,.5)),Ve(C.LinearProgress,"errorBg",nn(C.error.main,.5)),Ve(C.LinearProgress,"infoBg",nn(C.info.main,.5)),Ve(C.LinearProgress,"successBg",nn(C.success.main,.5)),Ve(C.LinearProgress,"warningBg",nn(C.warning.main,.5)),Ve(C.Skeleton,"bg",`rgba(${D("palette-text-primaryChannel")} / 0.13)`),Ve(C.Slider,"primaryTrack",nn(C.primary.main,.5)),Ve(C.Slider,"secondaryTrack",nn(C.secondary.main,.5)),Ve(C.Slider,"errorTrack",nn(C.error.main,.5)),Ve(C.Slider,"infoTrack",nn(C.info.main,.5)),Ve(C.Slider,"successTrack",nn(C.success.main,.5)),Ve(C.Slider,"warningTrack",nn(C.warning.main,.5));const B=$m(C.background.default,.98);Ve(C.SnackbarContent,"bg",B),Ve(C.SnackbarContent,"color",cs(()=>C.getContrastText(B))),Ve(C.SpeedDialAction,"fabHoverBg",$m(C.background.paper,.15)),Ve(C.StepConnector,"border",D("palette-grey-600")),Ve(C.StepContent,"border",D("palette-grey-600")),Ve(C.Switch,"defaultColor",D("palette-grey-300")),Ve(C.Switch,"defaultDisabledColor",D("palette-grey-600")),Ve(C.Switch,"primaryDisabledColor",nn(C.primary.main,.55)),Ve(C.Switch,"secondaryDisabledColor",nn(C.secondary.main,.55)),Ve(C.Switch,"errorDisabledColor",nn(C.error.main,.55)),Ve(C.Switch,"infoDisabledColor",nn(C.info.main,.55)),Ve(C.Switch,"successDisabledColor",nn(C.success.main,.55)),Ve(C.Switch,"warningDisabledColor",nn(C.warning.main,.55)),Ve(C.TableCell,"border",nn(Pm(C.divider,1),.68)),Ve(C.Tooltip,"bg",Pm(C.grey[700],.92))}Ds(C.background,"default"),Ds(C.background,"paper"),Ds(C.common,"background"),Ds(C.common,"onBackground"),Ds(C,"divider"),Object.keys(C).forEach(B=>{const U=C[B];U&&typeof U=="object"&&(U.main&&Ve(C[B],"mainChannel",Nf(Ff(U.main))),U.light&&Ve(C[B],"lightChannel",Nf(Ff(U.light))),U.dark&&Ve(C[B],"darkChannel",Nf(Ff(U.dark))),U.contrastText&&Ve(C[B],"contrastTextChannel",Nf(Ff(U.contrastText))),B==="text"&&(Ds(C[B],"primary"),Ds(C[B],"secondary")),B==="action"&&(U.active&&Ds(C[B],"active"),U.selected&&Ds(C[B],"selected")))})}),S=t.reduce((E,C)=>so(E,C),S);const R={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:nW(S)},{vars:T,generateThemeVars:k,generateStyleSheets:O}=T7(S,R);return S.vars=T,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([E,C])=>{S[E]=C}),S.generateThemeVars=k,S.generateStyleSheets=O,S.generateSpacing=function(){return KC(c.spacing,$y(this))},S.getColorSchemeSelector=P7(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=i,S.unstable_sxConfig={...ph,...c==null?void 0:c.unstable_sxConfig},S.unstable_sx=function(C){return Bl({sx:C,theme:this})},S.toRuntimeSource=aj,S}function f2(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:oT({...r===!0?{}:r.palette,mode:t})})}function jd(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=e,s=a||"light",l=o==null?void 0:o[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return hg(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=hg({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},f2(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},f2(d,"light",c.light)),d}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),iT({...i,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}function sW(e,...t){return jd(so({unstable_strictMode:!0},e),...t)}let p2=!1;function lW(e){return p2||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` +`)),p2=!0),e}function h2(e){return String(parseFloat(e)).length===String(e).length}function dj(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function ml(e){return parseFloat(e)}function cW(e){return(t,r)=>{const n=dj(t);if(n===r)return t;let o=ml(t);n!=="px"&&(n==="em"||n==="rem")&&(o=ml(t)*ml(e));let a=o;if(r!=="px")if(r==="em")a=o/ml(e);else if(r==="rem")a=o/ml(e);else return t;return parseFloat(a.toFixed(5))+r}}function uW({size:e,grid:t}){const r=e-e%t,n=r+t;return e-r<n-e?r:n}function dW({lineHeight:e,pixels:t,htmlFontSize:r}){return t/(e*r)}function fW({cssProperty:e,min:t,max:r,unit:n="rem",breakpoints:o=[600,900,1200],transform:a=null}){const i={[e]:`${t}${n}`},s=(r-t)/o[o.length-1];return o.forEach(l=>{let c=t+s*l;a!==null&&(c=a(c)),i[`@media (min-width:${l}px)`]={[e]:`${Math.round(c*1e4)/1e4}${n}`}}),i}function pW(e,t={}){const{breakpoints:r=["sm","md","lg"],disableAlign:n=!1,factor:o=2,variants:a=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,i={...e};i.typography={...i.typography};const s=i.typography,l=cW(s.htmlFontSize),c=r.map(u=>i.breakpoints.values[u]);return a.forEach(u=>{const d=s[u];if(!d)return;const f=parseFloat(l(d.fontSize,"rem"));if(f<=1)return;const h=f,p=1+(h-1)/o;let{lineHeight:m}=d;if(!h2(m)&&!n)throw new Error(xa(6));h2(m)||(m=parseFloat(l(m,"rem"))/parseFloat(f));let x=null;n||(x=b=>uW({size:b,grid:dW({pixels:4,lineHeight:m,htmlFontSize:s.htmlFontSize})})),s[u]={...d,...fW({cssProperty:"fontSize",min:p,max:h,unit:"rem",breakpoints:c,transform:x})}}),i}const jy=jd();function na(){const e=_y(jy);return e[gi]||e}function Rr({props:e,name:t}){return QC({props:e,name:t,defaultTheme:jy,themeId:gi})}function fj(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const co=e=>fj(e)&&e!=="classes",ce=NA({themeId:gi,defaultTheme:jy,rootShouldForwardProp:co});function m2({theme:e,...t}){const r=gi in e?e[gi]:void 0;return v.jsx(QA,{...t,themeId:r?gi:void 0,theme:r||e})}const Rm={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:pj,useColorScheme:hW,getInitColorSchemeScript:mW}=w7({themeId:gi,theme:()=>jd({cssVariables:!0}),colorSchemeStorageKey:Rm.colorSchemeStorageKey,modeStorageKey:Rm.modeStorageKey,defaultColorScheme:{light:Rm.defaultLightColorScheme,dark:Rm.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:aT(e.palette,e.typography)};return t.unstable_sx=function(n){return Bl({sx:n,theme:this})},t}});function vW(e){return v.jsx(pj,{...e})}let v2=!1;const gW=e=>(v2||(console.warn(["MUI: The getInitColorSchemeScript function has been deprecated.","","You should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`","and replace the function call with `<InitColorSchemeScript />` instead."].join(` +`)),v2=!0),mW(e)),hj=pj;function yW({theme:e,...t}){return typeof e=="function"?v.jsx(m2,{theme:e,...t}):"colorSchemes"in(gi in e?e[gi]:e)?v.jsx(hj,{theme:e,...t}):v.jsx(m2,{theme:e,...t})}function bW(){throw new Error(xa(14))}function wW(){throw new Error(xa(15))}function xW(){throw new Error(xa(16))}let g2=!1;function SW(...e){return g2||(console.warn(["MUI: The `experimental_extendTheme` has been stabilized.","","You should use `import { extendTheme } from '@mui/material/styles'`"].join(` +`)),g2=!0),iT(...e)}function CW(){throw new Error(xa(19))}const TW=Object.freeze(Object.defineProperty({__proto__:null,CssVarsProvider:hj,Experimental_CssVarsProvider:vW,StyledEngineProvider:OU,THEME_ID:gi,ThemeProvider:yW,adaptV4Theme:N7,alpha:Yt,createColorScheme:lj,createMuiTheme:tW,createStyles:lW,createTheme:jd,createTransitions:oj,css:dh,darken:Mc,decomposeColor:Ps,duration:nj,easing:rj,emphasize:eT,experimentalStyled:ce,experimental_extendTheme:SW,experimental_sx:CW,extendTheme:iT,getContrastRatio:UA,getInitColorSchemeScript:gW,getLuminance:ug,getOverlayAlpha:mg,hexToRgb:VA,hslToRgb:JC,keyframes:Gc,lighten:Ac,makeStyles:bW,private_createMixins:tj,private_createTypography:aT,private_excludeVariablesFromRoot:uj,recomposeColor:mh,responsiveFontSizes:pW,rgbToHex:YH,shouldSkipGeneratingVar:cj,styled:ce,unstable_createBreakpoints:HC,unstable_createMuiStrictModeTheme:sW,unstable_getUnit:dj,unstable_toUnitless:ml,useColorScheme:hW,useTheme:na,useThemeProps:Rr,withStyles:wW,withTheme:xW},Symbol.toStringTag,{value:"Module"}));function PW(e){return v.jsx(OH,{...e,defaultTheme:jy,themeId:gi})}function sT(e){return function(r){return v.jsx(PW,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function $W(){return Dy}const Bt=h7;function Pt(e){return p7(e)}function RW(e){return Qe("MuiSvgIcon",e)}Ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kW=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(r)}`]};return Xe(o,RW,n)},IW=ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Le(r.color)}`],t[`fontSize${Le(r.fontSize)}`]]}})(Bt(({theme:e})=>{var t,r,n,o,a,i,s,l,c,u,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,m])=>m&&m.main).map(([m])=>{var x,b;return{props:{color:m},style:{color:(b=(x=(e.vars??e).palette)==null?void 0:x[m])==null?void 0:b.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(p=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:p.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),vg=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...h}=n,p=y.isValidElement(o)&&o.type==="svg",m={...n,color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:p},x={};u||(x.viewBox=f);const b=kW(m);return v.jsxs(IW,{as:s,className:Fe(b.root,a),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...x,...h,...p&&o.props,ownerState:m,children:[p?o.props.children:o,d?v.jsx("title",{children:d}):null]})});vg&&(vg.muiName="SvgIcon");function pr(e,t){function r(n,o){return v.jsx(vg,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return r.muiName=vg.muiName,y.memo(y.forwardRef(r))}const EW={configure:e=>{XC.configure(e)}},OW=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Le,createChainedFunction:dg,createSvgIcon:pr,debounce:Ad,deprecatedPropType:XH,isMuiElement:np,ownerDocument:Un,ownerWindow:Ca,requirePropFactory:QH,setRef:fg,unstable_ClassNameGenerator:EW,unstable_memoTheme:Bt,unstable_useEnhancedEffect:$n,unstable_useId:Ta,unsupportedProp:e7,useControlled:za,useEventCallback:it,useForkRef:mr},Symbol.toStringTag,{value:"Module"}));var Zr={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var lT=Symbol.for("react.element"),cT=Symbol.for("react.portal"),Ly=Symbol.for("react.fragment"),Ny=Symbol.for("react.strict_mode"),Fy=Symbol.for("react.profiler"),By=Symbol.for("react.provider"),zy=Symbol.for("react.context"),_W=Symbol.for("react.server_context"),Vy=Symbol.for("react.forward_ref"),Uy=Symbol.for("react.suspense"),Hy=Symbol.for("react.suspense_list"),Wy=Symbol.for("react.memo"),Gy=Symbol.for("react.lazy"),DW=Symbol.for("react.offscreen"),mj;mj=Symbol.for("react.module.reference");function Pi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lT:switch(e=e.type,e){case Ly:case Fy:case Ny:case Uy:case Hy:return e;default:switch(e=e&&e.$$typeof,e){case _W:case zy:case Vy:case Gy:case Wy:case By:return e;default:return t}}case cT:return t}}}Zr.ContextConsumer=zy;Zr.ContextProvider=By;Zr.Element=lT;Zr.ForwardRef=Vy;Zr.Fragment=Ly;Zr.Lazy=Gy;Zr.Memo=Wy;Zr.Portal=cT;Zr.Profiler=Fy;Zr.StrictMode=Ny;Zr.Suspense=Uy;Zr.SuspenseList=Hy;Zr.isAsyncMode=function(){return!1};Zr.isConcurrentMode=function(){return!1};Zr.isContextConsumer=function(e){return Pi(e)===zy};Zr.isContextProvider=function(e){return Pi(e)===By};Zr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lT};Zr.isForwardRef=function(e){return Pi(e)===Vy};Zr.isFragment=function(e){return Pi(e)===Ly};Zr.isLazy=function(e){return Pi(e)===Gy};Zr.isMemo=function(e){return Pi(e)===Wy};Zr.isPortal=function(e){return Pi(e)===cT};Zr.isProfiler=function(e){return Pi(e)===Fy};Zr.isStrictMode=function(e){return Pi(e)===Ny};Zr.isSuspense=function(e){return Pi(e)===Uy};Zr.isSuspenseList=function(e){return Pi(e)===Hy};Zr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ly||e===Fy||e===Ny||e===Uy||e===Hy||e===DW||typeof e=="object"&&e!==null&&(e.$$typeof===Gy||e.$$typeof===Wy||e.$$typeof===By||e.$$typeof===zy||e.$$typeof===Vy||e.$$typeof===mj||e.getModuleId!==void 0)};Zr.typeOf=Pi;function Zt(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Dx(e,t){return Dx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Dx(e,t)}function uT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dx(e,t)}function MW(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function AW(e,t){e.classList?e.classList.add(t):MW(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function y2(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function jW(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=y2(e.className,t):e.setAttribute("class",y2(e.className&&e.className.baseVal||"",t))}const b2={disabled:!1},gg=No.createContext(null);var vj=function(t){return t.scrollTop},Bf="unmounted",lc="exited",cc="entering",bu="entered",Mx="exiting",$i=function(e){uT(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=lc,a.appearStatus=cc):l=bu:n.unmountOnExit||n.mountOnEnter?l=Bf:l=lc,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Bf?{status:lc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==cc&&i!==bu&&(a=cc):(i===cc||i===bu)&&(a=Mx)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===cc){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:jf.findDOMNode(this);i&&vj(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lc&&this.setState({status:Bf})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[jf.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!i||b2.disabled){this.safeSetState({status:bu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:cc},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:bu},function(){a.props.onEntered(c,u)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:jf.findDOMNode(this);if(!a||b2.disabled){this.safeSetState({status:lc},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Mx},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:lc},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:jf.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Bf)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Zt(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return No.createElement(gg.Provider,{value:null},typeof i=="function"?i(o,s):No.cloneElement(No.Children.only(i),s))},t}(No.Component);$i.contextType=gg;$i.propTypes={};function cu(){}$i.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cu,onEntering:cu,onEntered:cu,onExit:cu,onExiting:cu,onExited:cu};$i.UNMOUNTED=Bf;$i.EXITED=lc;$i.ENTERING=cc;$i.ENTERED=bu;$i.EXITING=Mx;var LW=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return AW(t,n)})},J0=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return jW(t,n)})},dT=function(e){uT(t,e);function t(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,l){var c=n.resolveArguments(s,l),u=c[0],d=c[1];n.removeClasses(u,"exit"),n.addClass(u,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,l)},n.onEntering=function(s,l){var c=n.resolveArguments(s,l),u=c[0],d=c[1],f=d?"appear":"enter";n.addClass(u,f,"active"),n.props.onEntering&&n.props.onEntering(s,l)},n.onEntered=function(s,l){var c=n.resolveArguments(s,l),u=c[0],d=c[1],f=d?"appear":"enter";n.removeClasses(u,f),n.addClass(u,f,"done"),n.props.onEntered&&n.props.onEntered(s,l)},n.onExit=function(s){var l=n.resolveArguments(s),c=l[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var l=n.resolveArguments(s),c=l[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var l=n.resolveArguments(s),c=l[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,l){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,l]},n.getClassNames=function(s){var l=n.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+s:l[s],f=c?d+"-active":l[s+"Active"],h=c?d+"-done":l[s+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:h}},n}var r=t.prototype;return r.addClass=function(o,a,i){var s=this.getClassNames(a)[i+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;a==="appear"&&i==="done"&&c&&(s+=" "+c),i==="active"&&o&&vj(o),s&&(this.appliedClasses[a][i]=s,LW(o,s))},r.removeClasses=function(o,a){var i=this.appliedClasses[a],s=i.base,l=i.active,c=i.done;this.appliedClasses[a]={},s&&J0(o,s),l&&J0(o,l),c&&J0(o,c)},r.render=function(){var o=this.props;o.classNames;var a=Zt(o,["classNames"]);return No.createElement($i,le({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(No.Component);dT.defaultProps={classNames:""};dT.propTypes={};function NW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fT(e,t){var r=function(a){return t&&y.isValidElement(a)?t(a):a},n=Object.create(null);return e&&y.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function FW(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(n[l])for(i=0;i<n[l].length;i++){var c=n[l][i];s[n[l][i]]=r(c)}s[l]=r(l)}for(i=0;i<o.length;i++)s[o[i]]=r(o[i]);return s}function yc(e,t,r){return r[t]!=null?r[t]:e.props[t]}function BW(e,t){return fT(e.children,function(r){return y.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:yc(r,"appear",e),enter:yc(r,"enter",e),exit:yc(r,"exit",e)})})}function zW(e,t,r){var n=fT(e.children),o=FW(t,n);return Object.keys(o).forEach(function(a){var i=o[a];if(y.isValidElement(i)){var s=a in t,l=a in n,c=t[a],u=y.isValidElement(c)&&!c.props.in;l&&(!s||u)?o[a]=y.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:yc(i,"exit",e),enter:yc(i,"enter",e)}):!l&&s&&!u?o[a]=y.cloneElement(i,{in:!1}):l&&s&&y.isValidElement(c)&&(o[a]=y.cloneElement(i,{onExited:r.bind(null,i),in:c.props.in,exit:yc(i,"exit",e),enter:yc(i,"enter",e)}))}}),o}var VW=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},UW={component:"div",childFactory:function(t){return t}},vh=function(e){uT(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=a.handleExited.bind(NW(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,s=a.handleExited,l=a.firstRender;return{children:l?BW(o,s):zW(o,i,s),firstRender:!1}},r.handleExited=function(o,a){var i=fT(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(s){var l=le({},s.children);return delete l[o.key],{children:l}}))},r.render=function(){var o=this.props,a=o.component,i=o.childFactory,s=Zt(o,["component","childFactory"]),l=this.state.contextValue,c=VW(this.state.children).map(i);return delete s.appear,delete s.enter,delete s.exit,a===null?No.createElement(gg.Provider,{value:l},c):No.createElement(gg.Provider,{value:l},No.createElement(a,s,c))},t}(No.Component);vh.propTypes={};vh.defaultProps=UW;const pT=e=>e.scrollTop;function fd(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function gj(e){return Qe("MuiPaper",e)}const HW=Ze("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"]),WW=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Xe(a,gj,o)},GW=ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Bt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ga=y.forwardRef(function(t,r){var h;const n=Pt({props:t,name:"MuiPaper"}),o=na(),{className:a,component:i="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=n,d={...n,component:i,elevation:s,square:l,variant:c},f=WW(d);return v.jsx(GW,{as:i,ownerState:d,className:Fe(f.root,a),ref:r,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(h=o.vars.overlays)==null?void 0:h[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Yt("#fff",mg(s))}, ${Yt("#fff",mg(s))})`}},...u.style}})}),KW=Object.freeze(Object.defineProperty({__proto__:null,default:Ga,getPaperUtilityClass:gj,paperClasses:HW},Symbol.toStringTag,{value:"Module"}));function ha(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,h=u[e]||n,p=Vp(d[e],o),{props:{component:m,...x},internalRef:b}=KA({className:r,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:p}),w=mr(b,p==null?void 0:p.ref,t.ref),g=i?i(x):{},S={...o,...g},R=e==="root"?m||c:m,T=Nu(h,{...e==="root"&&!c&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...x,...R&&{as:R},ref:w},S);return Object.keys(g).forEach(k=>{delete T[k]}),[h,T]}class yg{constructor(){ru(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new yg}static use(){const t=WA(yg.create).current,[r,n]=y.useState(!1);return t.shouldMount=r,t.setShouldMount=n,y.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=YW(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function qW(){return yg.use()}function YW(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function XW(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,d]=y.useState(!1),f=Fe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},p=Fe(r.child,u&&r.childLeaving,n&&r.childPulsate);return!s&&!u&&d(!0),y.useEffect(()=>{if(!s&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,s,c]),v.jsx("span",{className:f,style:h,children:v.jsx("span",{className:p})})}const si=Ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ax=550,QW=80,ZW=Gc` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,JW=Gc` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,eG=Gc` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,tG=ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rG=ce(XW,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${si.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${ZW}; + animation-duration: ${Ax}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${si.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${si.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${si.childLeaving} { + opacity: 0; + animation-name: ${JW}; + animation-duration: ${Ax}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${si.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${eG}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,nG=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...s}=n,[l,c]=y.useState([]),u=y.useRef(0),d=y.useRef(null);y.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=y.useRef(!1),h=gc(),p=y.useRef(null),m=y.useRef(null),x=y.useCallback(S=>{const{pulsate:R,rippleX:T,rippleY:k,rippleSize:O,cb:E}=S;c(C=>[...C,v.jsx(rG,{classes:{ripple:Fe(a.ripple,si.ripple),rippleVisible:Fe(a.rippleVisible,si.rippleVisible),ripplePulsate:Fe(a.ripplePulsate,si.ripplePulsate),child:Fe(a.child,si.child),childLeaving:Fe(a.childLeaving,si.childLeaving),childPulsate:Fe(a.childPulsate,si.childPulsate)},timeout:Ax,pulsate:R,rippleX:T,rippleY:k,rippleSize:O},u.current)]),u.current+=1,d.current=E},[a]),b=y.useCallback((S={},R={},T=()=>{})=>{const{pulsate:k=!1,center:O=o||R.pulsate,fakeElement:E=!1}=R;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const C=E?null:m.current,D=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,U,j;if(O||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)B=Math.round(D.width/2),U=Math.round(D.height/2);else{const{clientX:N,clientY:V}=S.touches&&S.touches.length>0?S.touches[0]:S;B=Math.round(N-D.left),U=Math.round(V-D.top)}if(O)j=Math.sqrt((2*D.width**2+D.height**2)/3),j%2===0&&(j+=1);else{const N=Math.max(Math.abs((C?C.clientWidth:0)-B),B)*2+2,V=Math.max(Math.abs((C?C.clientHeight:0)-U),U)*2+2;j=Math.sqrt(N**2+V**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{x({pulsate:k,rippleX:B,rippleY:U,rippleSize:j,cb:T})},h.start(QW,()=>{p.current&&(p.current(),p.current=null)})):x({pulsate:k,rippleX:B,rippleY:U,rippleSize:j,cb:T})},[o,x,h]),w=y.useCallback(()=>{b({},{pulsate:!0})},[b]),g=y.useCallback((S,R)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.start(0,()=>{g(S,R)});return}p.current=null,c(T=>T.length>0?T.slice(1):T),d.current=R},[h]);return y.useImperativeHandle(r,()=>({pulsate:w,start:b,stop:g}),[w,b,g]),v.jsx(tG,{className:Fe(si.root,a.root,i),ref:m,...s,children:v.jsx(vh,{component:null,exit:!0,children:l})})});function oG(e){return Qe("MuiButtonBase",e)}const aG=Ze("MuiButtonBase",["root","disabled","focusVisible"]),iG=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Xe({root:["root",t&&"disabled",r&&"focusVisible"]},oG,o);return r&&n&&(i.root+=` ${n}`),i},sG=ce("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"},[`&.${aG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Zi=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:h,LinkComponent:p="a",onBlur:m,onClick:x,onContextMenu:b,onDragLeave:w,onFocus:g,onFocusVisible:S,onKeyDown:R,onKeyUp:T,onMouseDown:k,onMouseLeave:O,onMouseUp:E,onTouchEnd:C,onTouchMove:D,onTouchStart:B,tabIndex:U=0,TouchRippleProps:j,touchRippleRef:N,type:V,...ee}=n,M=y.useRef(null),K=qW(),te=mr(K.ref,N),[oe,Ie]=y.useState(!1);c&&oe&&Ie(!1),y.useImperativeHandle(o,()=>({focusVisible:()=>{Ie(!0),M.current.focus()}}),[]);const Te=K.shouldMount&&!u&&!c;y.useEffect(()=>{oe&&f&&!u&&K.pulsate()},[u,f,oe,K]);function ke(Ke,St,Lt=d){return it(qt=>(St&&St(qt),Lt||K[Ke](qt),!0))}const pe=ke("start",k),Pe=ke("stop",b),Ae=ke("stop",w),ge=ke("stop",E),G=ke("stop",Ke=>{oe&&Ke.preventDefault(),O&&O(Ke)}),Y=ke("start",B),Q=ke("stop",C),Z=ke("stop",D),X=ke("stop",Ke=>{dd(Ke.target)||Ie(!1),m&&m(Ke)},!1),ae=it(Ke=>{M.current||(M.current=Ke.currentTarget),dd(Ke.target)&&(Ie(!0),S&&S(Ke)),g&&g(Ke)}),fe=()=>{const Ke=M.current;return l&&l!=="button"&&!(Ke.tagName==="A"&&Ke.href)},xe=it(Ke=>{f&&!Ke.repeat&&oe&&Ke.key===" "&&K.stop(Ke,()=>{K.start(Ke)}),Ke.target===Ke.currentTarget&&fe()&&Ke.key===" "&&Ke.preventDefault(),R&&R(Ke),Ke.target===Ke.currentTarget&&fe()&&Ke.key==="Enter"&&!c&&(Ke.preventDefault(),x&&x(Ke))}),we=it(Ke=>{f&&Ke.key===" "&&oe&&!Ke.defaultPrevented&&K.stop(Ke,()=>{K.pulsate(Ke)}),T&&T(Ke),x&&Ke.target===Ke.currentTarget&&fe()&&Ke.key===" "&&!Ke.defaultPrevented&&x(Ke)});let $e=l;$e==="button"&&(ee.href||ee.to)&&($e=p);const ye={};$e==="button"?(ye.type=V===void 0?"button":V,ye.disabled=c):(!ee.href&&!ee.to&&(ye.role="button"),c&&(ye["aria-disabled"]=c));const De=mr(r,M),Ge={...n,centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:U,focusVisible:oe},bt=iG(Ge);return v.jsxs(sG,{as:$e,className:Fe(bt.root,s),ownerState:Ge,onBlur:X,onClick:x,onContextMenu:Pe,onFocus:ae,onKeyDown:xe,onKeyUp:we,onMouseDown:pe,onMouseLeave:G,onMouseUp:ge,onDragLeave:Ae,onTouchEnd:Q,onTouchMove:Z,onTouchStart:Y,ref:De,tabIndex:c?-1:U,type:V,...ye,...ee,children:[i,Te?v.jsx(nG,{ref:te,center:a,...j}):null]})});function lG(e){return typeof e.main=="string"}function cG(e,t=[]){if(!lG(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function yn(e=[]){return([,t])=>t&&cG(t,e)}function uG(e){return Qe("MuiAlert",e)}const w2=Ze("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function yj(e){return Qe("MuiIconButton",e)}const bj=Ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),dG=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${Le(n)}`,o&&`edge${Le(o)}`,`size${Le(a)}`]};return Xe(i,yj,t)},fG=ce(Zi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Le(r.color)}`],r.edge&&t[`edge${Le(r.edge)}`],t[`size${Le(r.size)}`]]}})(Bt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Bt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${bj.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Vn=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=n,f={...n,edge:o,color:s,disabled:l,disableFocusRipple:c,size:u},h=dG(f);return v.jsx(fG,{className:Fe(h.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:r,...d,ownerState:f,children:a})}),pG=Object.freeze(Object.defineProperty({__proto__:null,default:Vn,getIconButtonUtilityClass:yj,iconButtonClasses:bj},Symbol.toStringTag,{value:"Module"})),hG=pr(v.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"),mG=pr(v.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),vG=pr(v.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"),gG=pr(v.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"),yG=pr(v.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"),bG=e=>{const{variant:t,color:r,severity:n,classes:o}=e,a={root:["root",`color${Le(r||n)}`,`${t}${Le(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Xe(a,uG,o)},wG=ce(Ga,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Le(r.color||r.severity)}`]]}})(Bt(({theme:e})=>{const t=e.palette.mode==="light"?Mc:Ac,r=e.palette.mode==="light"?Ac:Mc;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(yn(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${w2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(yn(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${w2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(yn(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)}}}))]}})),xG=ce("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),SG=ce("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),x2=ce("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),S2={success:v.jsx(hG,{fontSize:"inherit"}),warning:v.jsx(mG,{fontSize:"inherit"}),error:v.jsx(vG,{fontSize:"inherit"}),info:v.jsx(gG,{fontSize:"inherit"})},CG=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiAlert"}),{action:o,children:a,className:i,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=S2,onClose:h,role:p="alert",severity:m="success",slotProps:x={},slots:b={},variant:w="standard",...g}=n,S={...n,color:l,severity:m,variant:w,colorSeverity:l||m},R=bG(S),T={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...b},slotProps:{...u,...x}},[k,O]=ha("closeButton",{elementType:Vn,externalForwardedProps:T,ownerState:S}),[E,C]=ha("closeIcon",{elementType:yG,externalForwardedProps:T,ownerState:S});return v.jsxs(wG,{role:p,elevation:0,ownerState:S,className:Fe(R.root,i),ref:r,...g,children:[d!==!1?v.jsx(xG,{ownerState:S,className:R.icon,children:d||f[m]||S2[m]}):null,v.jsx(SG,{ownerState:S,className:R.message,children:a}),o!=null?v.jsx(x2,{ownerState:S,className:R.action,children:o}):null,o==null&&h?v.jsx(x2,{ownerState:S,className:R.action,children:v.jsx(k,{size:"small","aria-label":s,title:s,color:"inherit",onClick:h,...O,children:v.jsx(E,{fontSize:"small",...C})})}):null]})});function wj(e){return Qe("MuiTypography",e)}const jx=Ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),TG={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},PG=$W(),$G=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Le(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Xe(s,wj,i)},RG=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Le(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Bt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(yn()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Le(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),C2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},sr=y.forwardRef(function(t,r){const{color:n,...o}=Pt({props:t,name:"MuiTypography"}),a=!TG[n],i=PG({...o,...a&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:p=C2,...m}=i,x={...i,align:s,color:n,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:h,variantMapping:p},b=c||(f?"p":p[h]||C2[h])||"span",w=$G(x);return v.jsx(RG,{as:b,ref:r,className:Fe(w.root,l),...m,ownerState:x,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...m.style}})}),kG=Object.freeze(Object.defineProperty({__proto__:null,default:sr,getTypographyUtilityClass:wj,typographyClasses:jx},Symbol.toStringTag,{value:"Module"}));function IG(e){return Qe("MuiAppBar",e)}Ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const EG=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${Le(t)}`,`position${Le(r)}`]};return Xe(o,IG,n)},T2=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,OG=ce(Ga,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Le(r.position)}`],t[`color${Le(r.color)}`]]}})(Bt(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(yn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?T2(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?T2(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),xj=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed",...l}=n,c={...n,color:a,position:s,enableColorOnDark:i},u=EG(c);return v.jsx(OG,{square:!0,component:"header",ownerState:c,elevation:4,className:Fe(u.root,o,s==="fixed"&&"mui-fixed"),ref:r,...l})});var ba="top",xi="bottom",Si="right",wa="left",hT="auto",gh=[ba,xi,Si,wa],pd="start",Up="end",_G="clippingParents",Sj="viewport",hf="popper",DG="reference",P2=gh.reduce(function(e,t){return e.concat([t+"-"+pd,t+"-"+Up])},[]),Cj=[].concat(gh,[hT]).reduce(function(e,t){return e.concat([t,t+"-"+pd,t+"-"+Up])},[]),MG="beforeRead",AG="read",jG="afterRead",LG="beforeMain",NG="main",FG="afterMain",BG="beforeWrite",zG="write",VG="afterWrite",UG=[MG,AG,jG,LG,NG,FG,BG,zG,VG];function $s(e){return e?(e.nodeName||"").toLowerCase():null}function Va(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jc(e){var t=Va(e).Element;return e instanceof t||e instanceof Element}function yi(e){var t=Va(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mT(e){if(typeof ShadowRoot>"u")return!1;var t=Va(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HG(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!yi(a)||!$s(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function WG(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(l,c){return l[c]="",l},{});!yi(o)||!$s(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const GG={name:"applyStyles",enabled:!0,phase:"write",fn:HG,effect:WG,requires:["computeStyles"]};function Cs(e){return e.split("-")[0]}var Cc=Math.max,bg=Math.min,hd=Math.round;function Lx(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Tj(){return!/^((?!chrome|android).)*safari/i.test(Lx())}function md(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&yi(e)&&(o=e.offsetWidth>0&&hd(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&hd(n.height)/e.offsetHeight||1);var i=jc(e)?Va(e):window,s=i.visualViewport,l=!Tj()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/o,u=(n.top+(l&&s?s.offsetTop:0))/a,d=n.width/o,f=n.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function vT(e){var t=md(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Pj(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&mT(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qs(e){return Va(e).getComputedStyle(e)}function KG(e){return["table","td","th"].indexOf($s(e))>=0}function Kl(e){return((jc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ky(e){return $s(e)==="html"?e:e.assignedSlot||e.parentNode||(mT(e)?e.host:null)||Kl(e)}function $2(e){return!yi(e)||Qs(e).position==="fixed"?null:e.offsetParent}function qG(e){var t=/firefox/i.test(Lx()),r=/Trident/i.test(Lx());if(r&&yi(e)){var n=Qs(e);if(n.position==="fixed")return null}var o=Ky(e);for(mT(o)&&(o=o.host);yi(o)&&["html","body"].indexOf($s(o))<0;){var a=Qs(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function yh(e){for(var t=Va(e),r=$2(e);r&&KG(r)&&Qs(r).position==="static";)r=$2(r);return r&&($s(r)==="html"||$s(r)==="body"&&Qs(r).position==="static")?t:r||qG(e)||t}function gT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function op(e,t,r){return Cc(e,bg(t,r))}function YG(e,t,r){var n=op(e,t,r);return n>r?r:n}function $j(){return{top:0,right:0,bottom:0,left:0}}function Rj(e){return Object.assign({},$j(),e)}function kj(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var XG=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Rj(typeof t!="number"?t:kj(t,gh))};function QG(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Cs(r.placement),l=gT(s),c=[wa,Si].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var d=XG(o.padding,r),f=vT(a),h=l==="y"?ba:wa,p=l==="y"?xi:Si,m=r.rects.reference[u]+r.rects.reference[l]-i[l]-r.rects.popper[u],x=i[l]-r.rects.reference[l],b=yh(a),w=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,g=m/2-x/2,S=d[h],R=w-f[u]-d[p],T=w/2-f[u]/2+g,k=op(S,T,R),O=l;r.modifiersData[n]=(t={},t[O]=k,t.centerOffset=k-T,t)}}function ZG(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Pj(t.elements.popper,o)&&(t.elements.arrow=o))}const JG={name:"arrow",enabled:!0,phase:"main",fn:QG,effect:ZG,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vd(e){return e.split("-")[1]}var eK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tK(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:hd(r*o)/o||0,y:hd(n*o)/o||0}}function R2(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,h=f===void 0?0:f,p=i.y,m=p===void 0?0:p,x=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=x.x,m=x.y;var b=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),g=wa,S=ba,R=window;if(c){var T=yh(r),k="clientHeight",O="clientWidth";if(T===Va(r)&&(T=Kl(r),Qs(T).position!=="static"&&s==="absolute"&&(k="scrollHeight",O="scrollWidth")),T=T,o===ba||(o===wa||o===Si)&&a===Up){S=xi;var E=d&&T===R&&R.visualViewport?R.visualViewport.height:T[k];m-=E-n.height,m*=l?1:-1}if(o===wa||(o===ba||o===xi)&&a===Up){g=Si;var C=d&&T===R&&R.visualViewport?R.visualViewport.width:T[O];h-=C-n.width,h*=l?1:-1}}var D=Object.assign({position:s},c&&eK),B=u===!0?tK({x:h,y:m},Va(r)):{x:h,y:m};if(h=B.x,m=B.y,l){var U;return Object.assign({},D,(U={},U[S]=w?"0":"",U[g]=b?"0":"",U.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",U))}return Object.assign({},D,(t={},t[S]=w?m+"px":"",t[g]=b?h+"px":"",t.transform="",t))}function rK(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Cs(t.placement),variation:vd(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,R2(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,R2(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rK,data:{}};var km={passive:!0};function oK(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,l=Va(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",r.update,km)}),s&&l.addEventListener("resize",r.update,km),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",r.update,km)}),s&&l.removeEventListener("resize",r.update,km)}}const aK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oK,data:{}};var iK={left:"right",right:"left",bottom:"top",top:"bottom"};function bv(e){return e.replace(/left|right|bottom|top/g,function(t){return iK[t]})}var sK={start:"end",end:"start"};function k2(e){return e.replace(/start|end/g,function(t){return sK[t]})}function yT(e){var t=Va(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bT(e){return md(Kl(e)).left+yT(e).scrollLeft}function lK(e,t){var r=Va(e),n=Kl(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Tj();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+bT(e),y:l}}function cK(e){var t,r=Kl(e),n=yT(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Cc(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Cc(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+bT(e),l=-n.scrollTop;return Qs(o||r).direction==="rtl"&&(s+=Cc(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function wT(e){var t=Qs(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ij(e){return["html","body","#document"].indexOf($s(e))>=0?e.ownerDocument.body:yi(e)&&wT(e)?e:Ij(Ky(e))}function ap(e,t){var r;t===void 0&&(t=[]);var n=Ij(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=Va(n),i=o?[a].concat(a.visualViewport||[],wT(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(ap(Ky(i)))}function Nx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uK(e,t){var r=md(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function I2(e,t,r){return t===Sj?Nx(lK(e,r)):jc(t)?uK(t,r):Nx(cK(Kl(e)))}function dK(e){var t=ap(Ky(e)),r=["absolute","fixed"].indexOf(Qs(e).position)>=0,n=r&&yi(e)?yh(e):e;return jc(n)?t.filter(function(o){return jc(o)&&Pj(o,n)&&$s(o)!=="body"}):[]}function fK(e,t,r,n){var o=t==="clippingParents"?dK(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(l,c){var u=I2(e,c,n);return l.top=Cc(u.top,l.top),l.right=bg(u.right,l.right),l.bottom=bg(u.bottom,l.bottom),l.left=Cc(u.left,l.left),l},I2(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ej(e){var t=e.reference,r=e.element,n=e.placement,o=n?Cs(n):null,a=n?vd(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case ba:l={x:i,y:t.y-r.height};break;case xi:l={x:i,y:t.y+t.height};break;case Si:l={x:t.x+t.width,y:s};break;case wa:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?gT(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case pd:l[c]=l[c]-(t[u]/2-r[u]/2);break;case Up:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function Hp(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?_G:s,c=r.rootBoundary,u=c===void 0?Sj:c,d=r.elementContext,f=d===void 0?hf:d,h=r.altBoundary,p=h===void 0?!1:h,m=r.padding,x=m===void 0?0:m,b=Rj(typeof x!="number"?x:kj(x,gh)),w=f===hf?DG:hf,g=e.rects.popper,S=e.elements[p?w:f],R=fK(jc(S)?S:S.contextElement||Kl(e.elements.popper),l,u,i),T=md(e.elements.reference),k=Ej({reference:T,element:g,strategy:"absolute",placement:o}),O=Nx(Object.assign({},g,k)),E=f===hf?O:T,C={top:R.top-E.top+b.top,bottom:E.bottom-R.bottom+b.bottom,left:R.left-E.left+b.left,right:E.right-R.right+b.right},D=e.modifiersData.offset;if(f===hf&&D){var B=D[o];Object.keys(C).forEach(function(U){var j=[Si,xi].indexOf(U)>=0?1:-1,N=[ba,xi].indexOf(U)>=0?"y":"x";C[U]+=B[N]*j})}return C}function pK(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Cj:l,u=vd(n),d=u?s?P2:P2.filter(function(p){return vd(p)===u}):gh,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,m){return p[m]=Hp(e,{placement:m,boundary:o,rootBoundary:a,padding:i})[Cs(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function hK(e){if(Cs(e)===hT)return[];var t=bv(e);return[k2(e),t,k2(t)]}function mK(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,p=h===void 0?!0:h,m=r.allowedAutoPlacements,x=t.options.placement,b=Cs(x),w=b===x,g=l||(w||!p?[bv(x)]:hK(x)),S=[x].concat(g).reduce(function(ke,pe){return ke.concat(Cs(pe)===hT?pK(t,{placement:pe,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):pe)},[]),R=t.rects.reference,T=t.rects.popper,k=new Map,O=!0,E=S[0],C=0;C<S.length;C++){var D=S[C],B=Cs(D),U=vd(D)===pd,j=[ba,xi].indexOf(B)>=0,N=j?"width":"height",V=Hp(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),ee=j?U?Si:wa:U?xi:ba;R[N]>T[N]&&(ee=bv(ee));var M=bv(ee),K=[];if(a&&K.push(V[B]<=0),s&&K.push(V[ee]<=0,V[M]<=0),K.every(function(ke){return ke})){E=D,O=!1;break}k.set(D,K)}if(O)for(var te=p?3:1,oe=function(pe){var Pe=S.find(function(Ae){var ge=k.get(Ae);if(ge)return ge.slice(0,pe).every(function(G){return G})});if(Pe)return E=Pe,"break"},Ie=te;Ie>0;Ie--){var Te=oe(Ie);if(Te==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}const vK={name:"flip",enabled:!0,phase:"main",fn:mK,requiresIfExists:["offset"],data:{_skip:!1}};function E2(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function O2(e){return[ba,Si,xi,wa].some(function(t){return e[t]>=0})}function gK(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Hp(t,{elementContext:"reference"}),s=Hp(t,{altBoundary:!0}),l=E2(i,n),c=E2(s,o,a),u=O2(l),d=O2(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const yK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gK};function bK(e,t,r){var n=Cs(e),o=[wa,ba].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[wa,Si].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function wK(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=Cj.reduce(function(u,d){return u[d]=bK(d,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=i}const xK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wK};function SK(e){var t=e.state,r=e.name;t.modifiersData[r]=Ej({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const CK={name:"popperOffsets",enabled:!0,phase:"read",fn:SK,data:{}};function TK(e){return e==="x"?"y":"x"}function PK(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,h=f===void 0?!0:f,p=r.tetherOffset,m=p===void 0?0:p,x=Hp(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=Cs(t.placement),w=vd(t.placement),g=!w,S=gT(b),R=TK(S),T=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,C=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(T){if(a){var U,j=S==="y"?ba:wa,N=S==="y"?xi:Si,V=S==="y"?"height":"width",ee=T[S],M=ee+x[j],K=ee-x[N],te=h?-O[V]/2:0,oe=w===pd?k[V]:O[V],Ie=w===pd?-O[V]:-k[V],Te=t.elements.arrow,ke=h&&Te?vT(Te):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$j(),Pe=pe[j],Ae=pe[N],ge=op(0,k[V],ke[V]),G=g?k[V]/2-te-ge-Pe-C.mainAxis:oe-ge-Pe-C.mainAxis,Y=g?-k[V]/2+te+ge+Ae+C.mainAxis:Ie+ge+Ae+C.mainAxis,Q=t.elements.arrow&&yh(t.elements.arrow),Z=Q?S==="y"?Q.clientTop||0:Q.clientLeft||0:0,X=(U=D==null?void 0:D[S])!=null?U:0,ae=ee+G-X-Z,fe=ee+Y-X,xe=op(h?bg(M,ae):M,ee,h?Cc(K,fe):K);T[S]=xe,B[S]=xe-ee}if(s){var we,$e=S==="x"?ba:wa,ye=S==="x"?xi:Si,De=T[R],Ge=R==="y"?"height":"width",bt=De+x[$e],Ke=De-x[ye],St=[ba,wa].indexOf(b)!==-1,Lt=(we=D==null?void 0:D[R])!=null?we:0,qt=St?bt:De-k[Ge]-O[Ge]-Lt+C.altAxis,wt=St?De+k[Ge]+O[Ge]-Lt-C.altAxis:Ke,lt=h&&St?YG(qt,De,wt):op(h?qt:bt,De,h?wt:Ke);T[R]=lt,B[R]=lt-De}t.modifiersData[n]=B}}const $K={name:"preventOverflow",enabled:!0,phase:"main",fn:PK,requiresIfExists:["offset"]};function RK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kK(e){return e===Va(e)||!yi(e)?yT(e):RK(e)}function IK(e){var t=e.getBoundingClientRect(),r=hd(t.width)/e.offsetWidth||1,n=hd(t.height)/e.offsetHeight||1;return r!==1||n!==1}function EK(e,t,r){r===void 0&&(r=!1);var n=yi(t),o=yi(t)&&IK(t),a=Kl(t),i=md(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(($s(t)!=="body"||wT(a))&&(s=kK(t)),yi(t)?(l=md(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=bT(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function OK(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function _K(e){var t=OK(e);return UG.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function DK(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function MK(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var _2={placement:"bottom",modifiers:[],strategy:"absolute"};function D2(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function AK(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?_2:o;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},_2,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(b){var w=typeof b=="function"?b(u.options):b;m(),u.options=Object.assign({},a,u.options,w),u.scrollParents={reference:jc(s)?ap(s):s.contextElement?ap(s.contextElement):[],popper:ap(l)};var g=_K(MK([].concat(n,u.options.modifiers)));return u.orderedModifiers=g.filter(function(S){return S.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var b=u.elements,w=b.reference,g=b.popper;if(D2(w,g)){u.rects={reference:EK(w,yh(g),u.options.strategy==="fixed"),popper:vT(g)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var R=u.orderedModifiers[S],T=R.fn,k=R.options,O=k===void 0?{}:k,E=R.name;typeof T=="function"&&(u=T({state:u,options:O,name:E,instance:h})||u)}}}},update:DK(function(){return new Promise(function(x){h.forceUpdate(),x(u)})}),destroy:function(){m(),f=!0}};if(!D2(s,l))return h;h.setOptions(c).then(function(x){!f&&c.onFirstUpdate&&c.onFirstUpdate(x)});function p(){u.orderedModifiers.forEach(function(x){var b=x.name,w=x.options,g=w===void 0?{}:w,S=x.effect;if(typeof S=="function"){var R=S({state:u,name:b,instance:h,options:g}),T=function(){};d.push(R||T)}})}function m(){d.forEach(function(x){return x()}),d=[]}return h}}var jK=[aK,CK,nK,GG,xK,vK,$K,JG,yK],LK=AK({defaultModifiers:jK});function NK(e){return typeof e=="function"?e():e}const Oj=y.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[i,s]=y.useState(null),l=mr(y.isValidElement(n)?Gl(n):null,r);if($n(()=>{a||s(NK(o)||document.body)},[o,a]),$n(()=>{if(i&&!a)return fg(r,i),()=>{fg(r,null)}},[r,i,a]),a){if(y.isValidElement(n)){const c={ref:l};return y.cloneElement(n,c)}return v.jsx(y.Fragment,{children:n})}return v.jsx(y.Fragment,{children:i&&ah.createPortal(n,i)})});function FK(e){return Qe("MuiPopper",e)}Ze("MuiPopper",["root"]);function BK(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 Fx(e){return typeof e=="function"?e():e}function zK(e){return e.nodeType!==void 0}const VK=e=>{const{classes:t}=e;return Xe({root:["root"]},FK,t)},UK={},HK=y.forwardRef(function(t,r){const{anchorEl:n,children:o,direction:a,disablePortal:i,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:h={},TransitionProps:p,ownerState:m,...x}=t,b=y.useRef(null),w=mr(b,r),g=y.useRef(null),S=mr(g,d),R=y.useRef(S);$n(()=>{R.current=S},[S]),y.useImperativeHandle(d,()=>g.current,[]);const T=BK(c,a),[k,O]=y.useState(T),[E,C]=y.useState(Fx(n));y.useEffect(()=>{g.current&&g.current.forceUpdate()}),y.useEffect(()=>{n&&C(Fx(n))},[n]),$n(()=>{if(!E||!l)return;const N=M=>{O(M.placement)};let V=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{N(M)}}];s!=null&&(V=V.concat(s)),u&&u.modifiers!=null&&(V=V.concat(u.modifiers));const ee=LK(E,b.current,{placement:T,...u,modifiers:V});return R.current(ee),()=>{ee.destroy(),R.current(null)}},[E,i,s,l,u,T]);const D={placement:k};p!==null&&(D.TransitionProps=p);const B=VK(t),U=h.root??"div",j=xr({elementType:U,externalSlotProps:f.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:B.root});return v.jsx(U,{...j,children:typeof o=="function"?o(D):o})}),WK=y.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=UK,popperRef:h,style:p,transition:m=!1,slotProps:x={},slots:b={},...w}=t,[g,S]=y.useState(!0),R=()=>{S(!1)},T=()=>{S(!0)};if(!l&&!u&&(!m||g))return null;let k;if(a)k=a;else if(n){const C=Fx(n);k=C&&zK(C)?Un(C).body:Un(null).body}const O=!u&&l&&(!m||g)?"none":void 0,E=m?{in:u,onEnter:R,onExited:T}:void 0;return v.jsx(Oj,{disablePortal:s,container:k,children:v.jsx(HK,{anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:r,open:m?!g:u,placement:d,popperOptions:f,popperRef:h,slotProps:x,slots:b,...w,style:{position:"fixed",top:0,left:0,display:O,...p},TransitionProps:E,children:o})})}),GK=ce(WK,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xT=y.forwardRef(function(t,r){const n=lo(),o=Pt({props:t,name:"MuiPopper"}),{anchorEl:a,component:i,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:p,popperOptions:m,popperRef:x,transition:b,slots:w,slotProps:g,...S}=o,R=(w==null?void 0:w.root)??(s==null?void 0:s.Root),T={anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:p,popperOptions:m,popperRef:x,transition:b,...S};return v.jsx(GK,{as:i,direction:n?"rtl":"ltr",slots:{root:R},slotProps:g??l,...T,ref:r})}),KK=pr(v.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 _j(e){return Qe("MuiChip",e)}const wr=Ze("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),qK=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,r&&"disabled",`size${Le(n)}`,`color${Le(o)}`,s&&"clickable",s&&`clickableColor${Le(o)}`,i&&"deletable",i&&`deletableColor${Le(o)}`,`${l}${Le(o)}`],label:["label",`label${Le(n)}`],avatar:["avatar",`avatar${Le(n)}`,`avatarColor${Le(o)}`],icon:["icon",`icon${Le(n)}`,`iconColor${Le(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Le(n)}`,`deleteIconColor${Le(o)}`,`deleteIcon${Le(l)}Color${Le(o)}`]};return Xe(c,_j,t)},YK=ce("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=r;return[{[`& .${wr.avatar}`]:t.avatar},{[`& .${wr.avatar}`]:t[`avatar${Le(s)}`]},{[`& .${wr.avatar}`]:t[`avatarColor${Le(n)}`]},{[`& .${wr.icon}`]:t.icon},{[`& .${wr.icon}`]:t[`icon${Le(s)}`]},{[`& .${wr.icon}`]:t[`iconColor${Le(o)}`]},{[`& .${wr.deleteIcon}`]:t.deleteIcon},{[`& .${wr.deleteIcon}`]:t[`deleteIcon${Le(s)}`]},{[`& .${wr.deleteIcon}`]:t[`deleteIconColor${Le(n)}`]},{[`& .${wr.deleteIcon}`]:t[`deleteIcon${Le(l)}Color${Le(n)}`]},t.root,t[`size${Le(s)}`],t[`color${Le(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${Le(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${Le(n)}`],t[l],t[`${l}${Le(n)}`]]}})(Bt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${wr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${wr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${wr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${wr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${wr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${wr.icon}`]:{marginLeft:5,marginRight:-6},[`& .${wr.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Yt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Yt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${wr.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${wr.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(yn(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${wr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:Yt(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${wr.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${wr.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${wr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(yn(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${wr.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{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}))`:Yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${wr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(yn(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${wr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{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]}`,[`&.${wr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${wr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${wr.avatar}`]:{marginLeft:4},[`& .${wr.avatarSmall}`]:{marginLeft:2},[`& .${wr.icon}`]:{marginLeft:4},[`& .${wr.iconSmall}`]:{marginLeft:2},[`& .${wr.deleteIcon}`]:{marginRight:5},[`& .${wr.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(yn()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Yt(e.palette[r].main,.7)}`,[`&.${wr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${wr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Yt(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${wr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Yt(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),XK=ce("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${Le(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function M2(e){return e.key==="Backspace"||e.key==="Delete"}const Dj=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:h,onDelete:p,onKeyDown:m,onKeyUp:x,size:b="medium",variant:w="filled",tabIndex:g,skipFocusWhenDisabled:S=!1,...R}=n,T=y.useRef(null),k=mr(T,r),O=K=>{K.stopPropagation(),p&&p(K)},E=K=>{K.currentTarget===K.target&&M2(K)&&K.preventDefault(),m&&m(K)},C=K=>{K.currentTarget===K.target&&p&&M2(K)&&p(K),x&&x(K)},D=i!==!1&&h?!0:i,B=D||p?Zi:l||"div",U={...n,component:B,disabled:u,size:b,color:s,iconColor:y.isValidElement(d)&&d.props.color||s,onDelete:!!p,clickable:D,variant:w},j=qK(U),N=B===Zi?{component:l||"div",focusVisibleClassName:j.focusVisible,...p&&{disableRipple:!0}}:{};let V=null;p&&(V=c&&y.isValidElement(c)?y.cloneElement(c,{className:Fe(c.props.className,j.deleteIcon),onClick:O}):v.jsx(KK,{className:Fe(j.deleteIcon),onClick:O}));let ee=null;o&&y.isValidElement(o)&&(ee=y.cloneElement(o,{className:Fe(j.avatar,o.props.className)}));let M=null;return d&&y.isValidElement(d)&&(M=y.cloneElement(d,{className:Fe(j.icon,d.props.className)})),v.jsxs(YK,{as:B,className:Fe(j.root,a),disabled:D&&u?!0:void 0,onClick:h,onKeyDown:E,onKeyUp:C,ref:k,tabIndex:S&&u?-1:g,ownerState:U,...N,...R,children:[ee||M,v.jsx(XK,{className:Fe(j.label),ownerState:U,children:f}),V]})}),QK=Object.freeze(Object.defineProperty({__proto__:null,chipClasses:wr,default:Dj,getChipUtilityClass:_j},Symbol.toStringTag,{value:"Module"}));function Im(e){return parseInt(e,10)||0}const ZK={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function JK(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const eq=y.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s,...l}=t,{current:c}=y.useRef(s!=null),u=y.useRef(null),d=mr(r,u),f=y.useRef(null),h=y.useRef(null),p=y.useCallback(()=>{const b=u.current,g=Ca(b).getComputedStyle(b);if(g.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=h.current;S.style.width=g.width,S.value=b.value||t.placeholder||"x",S.value.slice(-1)===` +`&&(S.value+=" ");const R=g.boxSizing,T=Im(g.paddingBottom)+Im(g.paddingTop),k=Im(g.borderBottomWidth)+Im(g.borderTopWidth),O=S.scrollHeight;S.value="x";const E=S.scrollHeight;let C=O;a&&(C=Math.max(Number(a)*E,C)),o&&(C=Math.min(Number(o)*E,C)),C=Math.max(C,E);const D=C+(R==="border-box"?T+k:0),B=Math.abs(C-O)<=1;return{outerHeightStyle:D,overflowing:B}},[o,a,t.placeholder]),m=y.useCallback(()=>{const b=p();if(JK(b))return;const w=b.outerHeightStyle,g=u.current;f.current!==w&&(f.current=w,g.style.height=`${w}px`),g.style.overflow=b.overflowing?"hidden":""},[p]);$n(()=>{const b=()=>{m()};let w;const g=Ad(b),S=u.current,R=Ca(S);R.addEventListener("resize",g);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(b),T.observe(S)),()=>{g.clear(),cancelAnimationFrame(w),R.removeEventListener("resize",g),T&&T.disconnect()}},[p,m]),$n(()=>{m()});const x=b=>{c||m(),n&&n(b)};return v.jsxs(y.Fragment,{children:[v.jsx("textarea",{value:s,onChange:x,ref:d,rows:a,style:i,...l}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...ZK.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function gd(e){return typeof e=="string"}function ql({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const qy=y.createContext(void 0);function Vo(){return y.useContext(qy)}function A2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function wg(e,t=!1){return e&&(A2(e.value)&&e.value!==""||t&&A2(e.defaultValue)&&e.defaultValue!=="")}function tq(e){return e.startAdornment}function Mj(e){return Qe("MuiInputBase",e)}const Lc=Ze("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var j2;const Yy=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Le(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Xy=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},rq=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:h,type:p}=e,m={root:["root",`color${Le(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&f!=="medium"&&`size${Le(f)}`,u&&"multiline",h&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Xe(m,Mj,t)},Qy=ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yy})(Bt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Lc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Zy=ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xy})(Bt(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Lc.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Lc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),L2=sT({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),bh=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:p,error:m,fullWidth:x=!1,id:b,inputComponent:w="input",inputProps:g={},inputRef:S,margin:R,maxRows:T,minRows:k,multiline:O=!1,name:E,onBlur:C,onChange:D,onClick:B,onFocus:U,onKeyDown:j,onKeyUp:N,placeholder:V,readOnly:ee,renderSuffix:M,rows:K,size:te,slotProps:oe={},slots:Ie={},startAdornment:Te,type:ke="text",value:pe,...Pe}=n,Ae=g.value!=null?g.value:pe,{current:ge}=y.useRef(Ae!=null),G=y.useRef(),Y=y.useCallback(dt=>{},[]),Q=mr(G,S,g.ref,Y),[Z,X]=y.useState(!1),ae=Vo(),fe=ql({props:n,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=ae?ae.focused:Z,y.useEffect(()=>{!ae&&f&&Z&&(X(!1),C&&C())},[ae,f,Z,C]);const xe=ae&&ae.onFilled,we=ae&&ae.onEmpty,$e=y.useCallback(dt=>{wg(dt)?xe&&xe():we&&we()},[xe,we]);$n(()=>{ge&&$e({value:Ae})},[Ae,$e,ge]);const ye=dt=>{U&&U(dt),g.onFocus&&g.onFocus(dt),ae&&ae.onFocus?ae.onFocus(dt):X(!0)},De=dt=>{C&&C(dt),g.onBlur&&g.onBlur(dt),ae&&ae.onBlur?ae.onBlur(dt):X(!1)},Ge=(dt,...ir)=>{if(!ge){const jr=dt.target||G.current;if(jr==null)throw new Error(xa(1));$e({value:jr.value})}g.onChange&&g.onChange(dt,...ir),D&&D(dt,...ir)};y.useEffect(()=>{$e(G.current)},[]);const bt=dt=>{G.current&&dt.currentTarget===dt.target&&G.current.focus(),B&&B(dt)};let Ke=w,St=g;O&&Ke==="input"&&(K?St={type:void 0,minRows:K,maxRows:K,...St}:St={type:void 0,maxRows:T,minRows:k,...St},Ke=eq);const Lt=dt=>{$e(dt.animationName==="mui-auto-fill-cancel"?G.current:{value:"x"})};y.useEffect(()=>{ae&&ae.setAdornedStart(!!Te)},[ae,Te]);const qt={...n,color:fe.color||"primary",disabled:fe.disabled,endAdornment:p,error:fe.error,focused:fe.focused,formControl:ae,fullWidth:x,hiddenLabel:fe.hiddenLabel,multiline:O,size:fe.size,startAdornment:Te,type:ke},wt=rq(qt),lt=Ie.root||c.Root||Qy,gt=oe.root||u.root||{},kt=Ie.input||c.Input||Zy;return St={...St,...oe.input??u.input},v.jsxs(y.Fragment,{children:[!h&&typeof L2=="function"&&(j2||(j2=v.jsx(L2,{}))),v.jsxs(lt,{...gt,ref:r,onClick:bt,...Pe,...!gd(lt)&&{ownerState:{...qt,...gt.ownerState}},className:Fe(wt.root,gt.className,s,ee&&"MuiInputBase-readOnly"),children:[Te,v.jsx(qy.Provider,{value:null,children:v.jsx(kt,{"aria-invalid":fe.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:d,disabled:fe.disabled,id:b,onAnimationStart:Lt,name:E,placeholder:V,readOnly:ee,required:fe.required,rows:K,value:Ae,onKeyDown:j,onKeyUp:N,type:ke,...St,...!gd(kt)&&{as:Ke,ownerState:{...qt,...St.ownerState}},ref:Q,className:Fe(wt.input,St.className,ee&&"MuiInputBase-readOnly"),onBlur:De,onChange:Ge,onFocus:ye})}),p,M?M({...fe,startAdornment:Te}):null]})]})}),nq=Object.freeze(Object.defineProperty({__proto__:null,default:bh,getInputBaseUtilityClass:Mj,inputBaseClasses:Lc},Symbol.toStringTag,{value:"Module"}));function Aj(e){return Qe("MuiInput",e)}const wu={...Lc,...Ze("MuiInput",["root","underline","input"])};function oq(e){return Qe("MuiOutlinedInput",e)}const us={...Lc,...Ze("MuiOutlinedInput",["root","notchedOutline","input"])};function aq(e){return Qe("MuiFilledInput",e)}const ec={...Lc,...Ze("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},iq=pr(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),sq={entering:{opacity:1},entered:{opacity:1}},Ld=y.forwardRef(function(t,r){const n=na(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:h,onExited:p,onExiting:m,style:x,timeout:b=o,TransitionComponent:w=$i,...g}=t,S=y.useRef(null),R=mr(S,Gl(s),r),T=j=>N=>{if(j){const V=S.current;N===void 0?j(V):j(V,N)}},k=T(f),O=T((j,N)=>{pT(j);const V=fd({style:x,timeout:b,easing:l},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",V),j.style.transition=n.transitions.create("opacity",V),u&&u(j,N)}),E=T(d),C=T(m),D=T(j=>{const N=fd({style:x,timeout:b,easing:l},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",N),j.style.transition=n.transitions.create("opacity",N),h&&h(j)}),B=T(p),U=j=>{a&&a(S.current,j)};return v.jsx(w,{appear:i,in:c,nodeRef:S,onEnter:O,onEntered:E,onEntering:k,onExit:D,onExited:B,onExiting:C,addEndListener:U,timeout:b,...g,children:(j,N)=>y.cloneElement(s,{style:{opacity:0,visibility:j==="exited"&&!c?"hidden":void 0,...sq[j],...x,...s.props.style},ref:R,...N})})});function lq(e){return Qe("MuiBackdrop",e)}Ze("MuiBackdrop",["root","invisible"]);const cq=e=>{const{ownerState:t,...r}=e;return r},uq=e=>{const{classes:t,invisible:r}=e;return Xe({root:["root",r&&"invisible"]},lq,t)},dq=ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),jj=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:i="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:h,transitionDuration:p,...m}=n,x={...n,component:i,invisible:s},b=uq(x),w={transition:h,root:c.Root,...f},g={...u,...d},S={slots:w,slotProps:g},[R,T]=ha("root",{elementType:dq,externalForwardedProps:S,className:Fe(b.root,a),ownerState:x}),[k,O]=ha("transition",{elementType:Ld,externalForwardedProps:S,ownerState:x}),E=cq(O);return v.jsx(k,{in:l,timeout:p,...m,...E,children:v.jsx(R,{"aria-hidden":!0,...T,classes:b,ref:r,children:o})})}),fq=Ze("MuiBox",["root"]),pq=jd(),Qn=MH({themeId:gi,defaultTheme:pq,defaultClassName:fq.root,generateClassName:XC.generate});function Lj(e){return Qe("MuiButton",e)}const uc=Ze("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Nj=y.createContext({}),Fj=y.createContext(void 0),hq=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Le(t)}`,`size${Le(o)}`,`${a}Size${Le(o)}`,`color${Le(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Le(o)}`],endIcon:["icon","endIcon",`iconSize${Le(o)}`]},l=Xe(s,Lj,i);return{...i,...l}},Bj=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],mq=ce(Zi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Le(r.color)}`],t[`size${Le(r.size)}`],t[`${r.variant}Size${Le(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(Bt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${uc.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${uc.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${uc.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${uc.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(yn()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:Yt(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${uc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${uc.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),vq=ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Le(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Bj]}),gq=ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Le(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Bj]}),zr=y.forwardRef(function(t,r){const n=y.useContext(Nj),o=y.useContext(Fj),a=zp(n,t),i=Pt({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:m,fullWidth:x=!1,size:b="medium",startIcon:w,type:g,variant:S="text",...R}=i,T={...i,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:h,fullWidth:x,size:b,type:g,variant:S},k=hq(T),O=w&&v.jsx(vq,{className:k.startIcon,ownerState:T,children:w}),E=p&&v.jsx(gq,{className:k.endIcon,ownerState:T,children:p}),C=o||"";return v.jsxs(mq,{ownerState:T,className:Fe(n.className,k.root,u,C),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:Fe(k.focusVisible,m),ref:r,type:g,...R,classes:k,children:[O,s,E]})}),yq=Object.freeze(Object.defineProperty({__proto__:null,buttonClasses:uc,default:zr,getButtonUtilityClass:Lj},Symbol.toStringTag,{value:"Module"}));function bq(e){return Qe("MuiButtonGroup",e)}const hr=Ze("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),wq=(e,t)=>{const{ownerState:r}=e;return[{[`& .${hr.grouped}`]:t.grouped},{[`& .${hr.grouped}`]:t[`grouped${Le(r.orientation)}`]},{[`& .${hr.grouped}`]:t[`grouped${Le(r.variant)}`]},{[`& .${hr.grouped}`]:t[`grouped${Le(r.variant)}${Le(r.orientation)}`]},{[`& .${hr.grouped}`]:t[`grouped${Le(r.variant)}${Le(r.color)}`]},{[`& .${hr.firstButton}`]:t.firstButton},{[`& .${hr.lastButton}`]:t.lastButton},{[`& .${hr.middleButton}`]:t.middleButton},t.root,t[r.variant],r.disableElevation===!0&&t.disableElevation,r.fullWidth&&t.fullWidth,r.orientation==="vertical"&&t.vertical]},xq=e=>{const{classes:t,color:r,disabled:n,disableElevation:o,fullWidth:a,orientation:i,variant:s}=e,l={root:["root",s,i,a&&"fullWidth",o&&"disableElevation",`color${Le(r)}`],grouped:["grouped",`grouped${Le(i)}`,`grouped${Le(s)}`,`grouped${Le(s)}${Le(i)}`,`grouped${Le(s)}${Le(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Xe(l,bq,t)},Sq=ce("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:wq})(Bt(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${hr.lastButton},& .${hr.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${hr.lastButton},& .${hr.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${hr.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${hr.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(yn()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Yt(e.palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${hr.lastButton},& .${hr.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${hr.lastButton},& .${hr.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${hr.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${hr.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(yn(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${hr.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),Cq=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiButtonGroup"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:d=!1,fullWidth:f=!1,orientation:h="horizontal",size:p="medium",variant:m="outlined",...x}=n,b={...n,color:i,component:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:f,orientation:h,size:p,variant:m},w=xq(b),g=y.useMemo(()=>({className:w.grouped,color:i,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:f,size:p,variant:m}),[i,l,c,u,d,f,p,m,w.grouped]),S=n7(o),R=S.length,T=k=>{const O=k===0,E=k===R-1;return O&&E?"":O?w.firstButton:E?w.lastButton:w.middleButton};return v.jsx(Sq,{as:s,role:"group",className:Fe(w.root,a),ref:r,ownerState:b,...x,children:v.jsx(Nj.Provider,{value:g,children:S.map((k,O)=>v.jsx(Fj.Provider,{value:T(O),children:k},O))})})});function Tq(e){return Qe("MuiCard",e)}Ze("MuiCard",["root"]);const Pq=e=>{const{classes:t}=e;return Xe({root:["root"]},Tq,t)},$q=ce(Ga,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),Rq=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...i}=n,s={...n,raised:a},l=Pq(s);return v.jsx($q,{className:Fe(l.root,o),elevation:a?8:void 0,ref:r,ownerState:s,...i})});function kq(e){return Qe("PrivateSwitchBase",e)}Ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Iq=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${Le(o)}`],input:["input"]};return Xe(a,kq,t)},Eq=ce(Zi)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Oq=ce("input",{shouldForwardProp:co})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),zj=y.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:h,inputRef:p,name:m,onBlur:x,onChange:b,onFocus:w,readOnly:g,required:S=!1,tabIndex:R,type:T,value:k,...O}=t,[E,C]=za({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),D=Vo(),B=K=>{w&&w(K),D&&D.onFocus&&D.onFocus(K)},U=K=>{x&&x(K),D&&D.onBlur&&D.onBlur(K)},j=K=>{if(K.nativeEvent.defaultPrevented)return;const te=K.target.checked;C(te),b&&b(K,te)};let N=l;D&&typeof N>"u"&&(N=D.disabled);const V=T==="checkbox"||T==="radio",ee={...t,checked:E,disabled:N,disableFocusRipple:c,edge:u},M=Iq(ee);return v.jsxs(Eq,{component:"span",className:Fe(M.root,i),centerRipple:!0,focusRipple:!c,disabled:N,tabIndex:null,role:void 0,onFocus:B,onBlur:U,ownerState:ee,ref:r,...O,children:[v.jsx(Oq,{autoFocus:n,checked:o,defaultChecked:s,className:M.input,disabled:N,id:V?f:void 0,name:m,onChange:j,readOnly:g,ref:p,required:S,ownerState:ee,tabIndex:R,type:T,...T==="checkbox"&&k===void 0?{}:{value:k},...h}),E?a:d]})}),_q=pr(v.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"),Dq=pr(v.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"),Mq=pr(v.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 Vj(e){return Qe("MuiCheckbox",e)}const wv=Ze("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Aq=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${Le(n)}`,`size${Le(o)}`]},i=Xe(a,Vj,t);return{...t,...i}},jq=ce(zj,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Le(r.size)}`],r.color!=="default"&&t[`color${Le(r.color)}`]]}})(Bt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{[`&.${wv.checked}, &.${wv.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${wv.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Lq=v.jsx(Dq,{}),Nq=v.jsx(_q,{}),Fq=v.jsx(Mq,{}),ST=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Lq,color:a="primary",icon:i=Nq,indeterminate:s=!1,indeterminateIcon:l=Fq,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,...h}=n,p=s?l:i,m=s?l:o,x={...n,disableRipple:d,color:a,indeterminate:s,size:u},b=Aq(x);return v.jsx(jq,{type:"checkbox",inputProps:{"data-indeterminate":s,...c},icon:y.cloneElement(p,{fontSize:p.props.fontSize??u}),checkedIcon:y.cloneElement(m,{fontSize:m.props.fontSize??u}),ownerState:x,ref:r,className:Fe(b.root,f),disableRipple:d,...h,classes:b})}),Bq=Object.freeze(Object.defineProperty({__proto__:null,checkboxClasses:wv,default:ST,getCheckboxUtilityClass:Vj},Symbol.toStringTag,{value:"Module"}));function zq(e){return Qe("MuiCircularProgress",e)}Ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const cl=44,Bx=Gc` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,zx=Gc` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`,Vq=typeof Bx!="string"?dh` + animation: ${Bx} 1.4s linear infinite; + `:null,Uq=typeof zx!="string"?dh` + animation: ${zx} 1.4s ease-in-out infinite; + `:null,Hq=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${Le(n)}`],svg:["svg"],circle:["circle",`circle${Le(r)}`,o&&"circleDisableShrink"]};return Xe(a,zq,t)},Wq=ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Le(r.color)}`]]}})(Bt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Vq||{animation:`${Bx} 1.4s linear infinite`}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Gq=ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Kq=ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Le(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Bt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Uq||{animation:`${zx} 1.4s ease-in-out infinite`}}]}))),Nc=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=n,h={...n,color:a,disableShrink:i,size:s,thickness:c,value:u,variant:d},p=Hq(h),m={},x={},b={};if(d==="determinate"){const w=2*Math.PI*((cl-c)/2);m.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return v.jsx(Wq,{className:Fe(p.root,o),style:{width:s,height:s,...x,...l},ownerState:h,ref:r,role:"progressbar",...b,...f,children:v.jsx(Gq,{className:p.svg,ownerState:h,viewBox:`${cl/2} ${cl/2} ${cl} ${cl}`,children:v.jsx(Kq,{className:p.circle,style:m,ownerState:h,cx:cl,cy:cl,r:(cl-c)/2,fill:"none",strokeWidth:c})})})});function N2(e){return e.substring(2).toLowerCase()}function qq(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Yq(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=y.useRef(!1),s=y.useRef(null),l=y.useRef(!1),c=y.useRef(!1);y.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=mr(Gl(t),s),d=it(p=>{const m=c.current;c.current=!1;const x=Un(s.current);if(!l.current||!s.current||"clientX"in p&&qq(p,x))return;if(i.current){i.current=!1;return}let b;p.composedPath?b=p.composedPath().includes(s.current):b=!x.documentElement.contains(p.target)||s.current.contains(p.target),!b&&(r||!m)&&o(p)}),f=p=>m=>{c.current=!0;const x=t.props[p];x&&x(m)},h={ref:u};return a!==!1&&(h[a]=f(a)),y.useEffect(()=>{if(a!==!1){const p=N2(a),m=Un(s.current),x=()=>{i.current=!0};return m.addEventListener(p,d),m.addEventListener("touchmove",x),()=>{m.removeEventListener(p,d),m.removeEventListener("touchmove",x)}}},[d,a]),n!==!1&&(h[n]=f(n)),y.useEffect(()=>{if(n!==!1){const p=N2(n),m=Un(s.current);return m.addEventListener(p,d),()=>{m.removeEventListener(p,d)}}},[d,n]),v.jsx(y.Fragment,{children:y.cloneElement(t,h)})}const Rn=E7({createStyledComponent:ce("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Le(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Pt({props:e,name:"MuiContainer"})}),Vx=typeof sT({})=="function",Xq=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Qq=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Uj=(e,t=!1)=>{var a,i;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var u,d;const c=e.getColorSchemeSelector(s);c.startsWith("@")?r[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:r[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let n={html:Xq(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Qq(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const o=(i=(a=e.components)==null?void 0:a.MuiCssBaseline)==null?void 0:i.styleOverrides;return o&&(n=[n,o]),n},xv="mui-ecs",Zq=e=>{const t=Uj(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${xv})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var i,s;const a=e.getColorSchemeSelector(n);a.startsWith("@")?r[a]={[`:root:not(:has(.${xv}))`]:{colorScheme:(i=o.palette)==null?void 0:i.mode}}:r[a.replace(/\s*&/,"")]={[`&:not(:has(.${xv}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},Jq=sT(Vx?({theme:e,enableColorScheme:t})=>Uj(e,t):({theme:e})=>Zq(e));function eY(e){const t=Pt({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return v.jsxs(y.Fragment,{children:[Vx&&v.jsx(Jq,{enableColorScheme:n}),!Vx&&!n&&v.jsx("span",{className:xv,style:{display:"none"}}),r]})}function tY(e){const t=Un(e);return t.body===e?Ca(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ip(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F2(e){return parseInt(Ca(e).getComputedStyle(e).paddingRight,10)||0}function rY(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function B2(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=!a.includes(i),l=!rY(i);s&&l&&ip(i,o)})}function e1(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function nY(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(tY(n)){const i=GA(Ca(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${F2(n)+i}px`;const s=Un(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F2(l)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Un(n).body;else{const i=n.parentElement,s=Ca(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function oY(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class aY{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&ip(t.modalRef,!1);const o=oY(r);B2(r,t.mount,t.modalRef,o,!0);const a=e1(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=e1(this.containers,a=>a.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=nY(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=e1(this.containers,i=>i.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ip(t.modalRef,r),B2(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&ip(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const iY=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sY(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 lY(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function cY(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||lY(e))}function uY(e){const t=[],r=[];return Array.from(e.querySelectorAll(iY)).forEach((n,o)=>{const a=sY(n);a===-1||!cY(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function dY(){return!0}function Hj(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=uY,isEnabled:i=dY,open:s}=e,l=y.useRef(!1),c=y.useRef(null),u=y.useRef(null),d=y.useRef(null),f=y.useRef(null),h=y.useRef(!1),p=y.useRef(null),m=mr(Gl(t),p),x=y.useRef(null);y.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),y.useEffect(()=>{if(!s||!p.current)return;const g=Un(p.current);return p.current.contains(g.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),y.useEffect(()=>{if(!s||!p.current)return;const g=Un(p.current),S=k=>{x.current=k,!(n||!i()||k.key!=="Tab")&&g.activeElement===p.current&&k.shiftKey&&(l.current=!0,u.current&&u.current.focus())},R=()=>{var E,C;const k=p.current;if(k===null)return;if(!g.hasFocus()||!i()||l.current){l.current=!1;return}if(k.contains(g.activeElement)||n&&g.activeElement!==c.current&&g.activeElement!==u.current)return;if(g.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let O=[];if((g.activeElement===c.current||g.activeElement===u.current)&&(O=a(p.current)),O.length>0){const D=!!((E=x.current)!=null&&E.shiftKey&&((C=x.current)==null?void 0:C.key)==="Tab"),B=O[0],U=O[O.length-1];typeof B!="string"&&typeof U!="string"&&(D?U.focus():B.focus())}else k.focus()};g.addEventListener("focusin",R),g.addEventListener("keydown",S,!0);const T=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(T),g.removeEventListener("focusin",R),g.removeEventListener("keydown",S,!0)}},[r,n,o,i,s,a]);const b=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0,f.current=g.target;const S=t.props.onFocus;S&&S(g)},w=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0};return v.jsxs(y.Fragment,{children:[v.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:b}),v.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}function fY(e){return typeof e=="function"?e():e}function pY(e){return e?e.props.hasOwnProperty("in"):!1}const Em=new aY;function hY(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:s,onClose:l,open:c,rootRef:u}=e,d=y.useRef({}),f=y.useRef(null),h=y.useRef(null),p=mr(h,u),[m,x]=y.useState(!c),b=pY(s);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const g=()=>Un(f.current),S=()=>(d.current.modalRef=h.current,d.current.mount=f.current,d.current),R=()=>{Em.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},T=it(()=>{const N=fY(t)||g().body;Em.add(S(),N),h.current&&R()}),k=()=>Em.isTopModal(S()),O=it(N=>{f.current=N,N&&(c&&k()?R():h.current&&ip(h.current,w))}),E=y.useCallback(()=>{Em.remove(S(),w)},[w]);y.useEffect(()=>()=>{E()},[E]),y.useEffect(()=>{c?T():(!b||!o)&&E()},[c,E,b,o,T]);const C=N=>V=>{var ee;(ee=N.onKeyDown)==null||ee.call(N,V),!(V.key!=="Escape"||V.which===229||!k())&&(r||(V.stopPropagation(),l&&l(V,"escapeKeyDown")))},D=N=>V=>{var ee;(ee=N.onClick)==null||ee.call(N,V),V.target===V.currentTarget&&l&&l(V,"backdropClick")};return{getRootProps:(N={})=>{const V=pg(e);delete V.onTransitionEnter,delete V.onTransitionExited;const ee={...V,...N};return{role:"presentation",...ee,onKeyDown:C(ee),ref:p}},getBackdropProps:(N={})=>{const V=N;return{"aria-hidden":!0,...V,onClick:D(V),open:c}},getTransitionProps:()=>{const N=()=>{x(!1),a&&a()},V=()=>{x(!0),i&&i(),o&&E()};return{onEnter:dg(N,s==null?void 0:s.props.onEnter),onExited:dg(V,s==null?void 0:s.props.onExited)}},rootRef:p,portalRef:O,isTopModal:k,exited:m,hasTransition:b}}function mY(e){return Qe("MuiModal",e)}Ze("MuiModal",["root","hidden","backdrop"]);const vY=e=>{const{open:t,exited:r,classes:n}=e;return Xe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},mY,n)},gY=ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Bt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),yY=ce(jj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Jy=y.forwardRef(function(t,r){const n=Pt({name:"MuiModal",props:t}),{BackdropComponent:o=yY,BackdropProps:a,classes:i,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:h={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:x=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:g=!1,hideBackdrop:S=!1,keepMounted:R=!1,onBackdropClick:T,onClose:k,onTransitionEnter:O,onTransitionExited:E,open:C,slotProps:D={},slots:B={},theme:U,...j}=n,N={...n,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:x,disablePortal:b,disableRestoreFocus:w,disableScrollLock:g,hideBackdrop:S,keepMounted:R},{getRootProps:V,getBackdropProps:ee,getTransitionProps:M,portalRef:K,isTopModal:te,exited:oe,hasTransition:Ie}=hY({...N,rootRef:r}),Te={...N,exited:oe},ke=vY(Te),pe={};if(c.props.tabIndex===void 0&&(pe.tabIndex="-1"),Ie){const{onEnter:Z,onExited:X}=M();pe.onEnter=Z,pe.onExited=X}const Pe={...j,slots:{root:f.Root,backdrop:f.Backdrop,...B},slotProps:{...h,...D}},[Ae,ge]=ha("root",{elementType:gY,externalForwardedProps:Pe,getSlotProps:V,additionalProps:{ref:r,as:d},ownerState:Te,className:Fe(s,ke==null?void 0:ke.root,!Te.open&&Te.exited&&(ke==null?void 0:ke.hidden))}),[G,Y]=ha("backdrop",{elementType:o,externalForwardedProps:Pe,additionalProps:a,getSlotProps:Z=>ee({...Z,onClick:X=>{T&&T(X),Z!=null&&Z.onClick&&Z.onClick(X)}}),className:Fe(a==null?void 0:a.className,ke==null?void 0:ke.backdrop),ownerState:Te}),Q=mr(a==null?void 0:a.ref,Y.ref);return!R&&!C&&(!Ie||oe)?null:v.jsx(Oj,{ref:K,container:u,disablePortal:b,children:v.jsxs(Ae,{...ge,children:[!S&&o?v.jsx(G,{...Y,ref:Q}):null,v.jsx(Hj,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:w,isEnabled:te,open:C,children:y.cloneElement(c,pe)})]})})});function bY(e){return Qe("MuiDialog",e)}const sp=Ze("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Wj=y.createContext({}),wY=ce(jj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),xY=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Le(r)}`],paper:["paper",`paperScroll${Le(r)}`,`paperWidth${Le(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Xe(i,bY,t)},SY=ce(Jy,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),CY=ce("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Le(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),TY=ce(Ga,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Le(r.scroll)}`],t[`paperWidth${Le(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(Bt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${sp.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${sp.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${sp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),CT=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiDialog"}),o=na(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:x="sm",onBackdropClick:b,onClick:w,onClose:g,open:S,PaperComponent:R=Ga,PaperProps:T={},scroll:k="paper",TransitionComponent:O=Ld,transitionDuration:E=a,TransitionProps:C,...D}=n,B={...n,disableEscapeKeyDown:h,fullScreen:p,fullWidth:m,maxWidth:x,scroll:k},U=xY(B),j=y.useRef(),N=K=>{j.current=K.target===K.currentTarget},V=K=>{w&&w(K),j.current&&(j.current=null,b&&b(K),g&&g(K,"backdropClick"))},ee=Ta(s),M=y.useMemo(()=>({titleId:ee}),[ee]);return v.jsx(SY,{className:Fe(U.root,f),closeAfterTransition:!0,components:{Backdrop:wY},componentsProps:{backdrop:{transitionDuration:E,as:c,...u}},disableEscapeKeyDown:h,onClose:g,open:S,ref:r,onClick:V,ownerState:B,...D,children:v.jsx(O,{appear:!0,in:S,timeout:E,role:"presentation",...C,children:v.jsx(CY,{className:Fe(U.container),onMouseDown:N,ownerState:B,children:v.jsx(TY,{as:R,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":ee,"aria-modal":l,...T,className:Fe(U.paper,T.className),ownerState:B,children:v.jsx(Wj.Provider,{value:M,children:d})})})})})});function PY(e){return Qe("MuiDialogActions",e)}Ze("MuiDialogActions",["root","spacing"]);const $Y=e=>{const{classes:t,disableSpacing:r}=e;return Xe({root:["root",!r&&"spacing"]},PY,t)},RY=ce("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Gj=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...i}=n,s={...n,disableSpacing:a},l=$Y(s);return v.jsx(RY,{className:Fe(l.root,o),ownerState:s,ref:r,...i})});function kY(e){return Qe("MuiDialogContent",e)}Ze("MuiDialogContent",["root","dividers"]);function IY(e){return Qe("MuiDialogTitle",e)}const EY=Ze("MuiDialogTitle",["root"]),OY=e=>{const{classes:t,dividers:r}=e;return Xe({root:["root",r&&"dividers"]},kY,t)},_Y=ce("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(Bt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${EY.root} + &`]:{paddingTop:0}}}]}))),TT=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...i}=n,s={...n,dividers:a},l=OY(s);return v.jsx(_Y,{className:Fe(l.root,o),ownerState:s,ref:r,...i})});function DY(e){return Qe("MuiDialogContentText",e)}Ze("MuiDialogContentText",["root"]);const MY=e=>{const{classes:t}=e,n=Xe({root:["root"]},DY,t);return{...t,...n}},AY=ce(sr,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jY=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiDialogContentText"}),{children:o,className:a,...i}=n,s=MY(i);return v.jsx(AY,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:i,className:Fe(s.root,a),...n,classes:s})}),LY=e=>{const{classes:t}=e;return Xe({root:["root"]},IY,t)},NY=ce(sr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Kj=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...i}=n,s=n,l=LY(s),{titleId:c=a}=y.useContext(Wj);return v.jsx(NY,{component:"h2",className:Fe(l.root,o),ownerState:s,ref:r,variant:"h6",id:a??c,...i})});function FY(e){return Qe("MuiDivider",e)}const z2=Ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),BY=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Xe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},FY,n)},zY=ce("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Bt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Yt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),VY=ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Bt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),xg=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,orientation:s="horizontal",component:l=a||s==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth",...p}=n,m={...n,absolute:o,component:l,flexItem:c,light:u,orientation:s,role:d,textAlign:f,variant:h},x=BY(m);return v.jsx(zY,{as:l,className:Fe(x.root,i),role:d,ref:r,ownerState:m,"aria-orientation":d==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...p,children:a?v.jsx(VY,{className:x.wrapper,ownerState:m,children:a}):null})});xg&&(xg.muiSkipListHighlight=!0);function UY(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Ca(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const c=a.getComputedStyle(t);i=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(i&&i!=="none"&&typeof i=="string"){const c=i.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-n.left}px)`:`translateX(${a.innerWidth+s-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-n.top}px)`:`translateY(${a.innerHeight+l-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function HY(e){return typeof e=="function"?e():e}function Om(e,t,r){const n=HY(r),o=UY(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const WY=y.forwardRef(function(t,r){const n=na(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:h,onEntered:p,onEntering:m,onExit:x,onExited:b,onExiting:w,style:g,timeout:S=a,TransitionComponent:R=$i,...T}=t,k=y.useRef(null),O=mr(Gl(l),k,r),E=M=>K=>{M&&(K===void 0?M(k.current):M(k.current,K))},C=E((M,K)=>{Om(u,M,c),pT(M),h&&h(M,K)}),D=E((M,K)=>{const te=fd({timeout:S,style:g,easing:d},{mode:"enter"});M.style.webkitTransition=n.transitions.create("-webkit-transform",{...te}),M.style.transition=n.transitions.create("transform",{...te}),M.style.webkitTransform="none",M.style.transform="none",m&&m(M,K)}),B=E(p),U=E(w),j=E(M=>{const K=fd({timeout:S,style:g,easing:d},{mode:"exit"});M.style.webkitTransition=n.transitions.create("-webkit-transform",K),M.style.transition=n.transitions.create("transform",K),Om(u,M,c),x&&x(M)}),N=E(M=>{M.style.webkitTransition="",M.style.transition="",b&&b(M)}),V=M=>{i&&i(k.current,M)},ee=y.useCallback(()=>{k.current&&Om(u,k.current,c)},[u,c]);return y.useEffect(()=>{if(f||u==="down"||u==="right")return;const M=Ad(()=>{k.current&&Om(u,k.current,c)}),K=Ca(k.current);return K.addEventListener("resize",M),()=>{M.clear(),K.removeEventListener("resize",M)}},[u,f,c]),y.useEffect(()=>{f||ee()},[f,ee]),v.jsx(R,{nodeRef:k,onEnter:C,onEntered:B,onEntering:D,onExit:j,onExited:N,onExiting:U,addEndListener:V,appear:s,in:f,timeout:S,...T,children:(M,K)=>y.cloneElement(l,{ref:O,style:{visibility:M==="exited"&&!f?"hidden":void 0,...g,...l.props.style},...K})})});function GY(e){return Qe("MuiDrawer",e)}Ze("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const qj=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},KY=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Le(r)}`,n!=="temporary"&&`paperAnchorDocked${Le(r)}`]};return Xe(o,GY,t)},qY=ce(Jy,{name:"MuiDrawer",slot:"Root",overridesResolver:qj})(Bt(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),V2=ce("div",{shouldForwardProp:co,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:qj})({flex:"0 0 auto"}),YY=ce(Ga,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Le(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Le(r.anchor)}`]]}})(Bt(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Yj={left:"right",right:"left",top:"down",bottom:"up"};function XY(e){return["left","right"].includes(e)}function QY({direction:e},t){return e==="rtl"&&XY(t)?Yj[t]:t}const ZY=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiDrawer"}),o=na(),a=lo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h,...p}={},onClose:m,open:x=!1,PaperProps:b={},SlideProps:w,TransitionComponent:g=WY,transitionDuration:S=i,variant:R="temporary",...T}=n,k=y.useRef(!1);y.useEffect(()=>{k.current=!0},[]);const O=QY({direction:a?"rtl":"ltr"},s),C={...n,anchor:s,elevation:d,open:x,variant:R,...T},D=KY(C),B=v.jsx(YY,{elevation:R==="temporary"?d:0,square:!0,...b,className:Fe(D.paper,b.className),ownerState:C,children:c});if(R==="permanent")return v.jsx(V2,{className:Fe(D.root,D.docked,u),ownerState:C,ref:r,...T,children:B});const U=v.jsx(g,{in:x,direction:Yj[O],timeout:S,appear:k.current,...w,children:B});return R==="persistent"?v.jsx(V2,{className:Fe(D.root,D.docked,u),ownerState:C,ref:r,...T,children:U}):v.jsx(qY,{BackdropProps:{...l,...h,transitionDuration:S},className:Fe(D.root,D.modal,u),open:x,ownerState:C,onClose:m,hideBackdrop:f,ref:r,...T,...p,children:U})}),JY=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:i,multiline:s}=e,l={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Le(a)}`,i&&"hiddenLabel",s&&"multiline"],input:["input"]},c=Xe(l,aq,t);return{...t,...c}},eX=ce(Qy,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yy(e,t),!r.disableUnderline&&t.underline]}})(Bt(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${ec.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${ec.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{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"},[`&.${ec.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ec.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`: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(.${ec.disabled}, .${ec.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ec.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yn()).map(([i])=>{var s;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[i])==null?void 0:s.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:s})=>i.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),tX=ce(Zy,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xy})(Bt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Sg=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:h="text",...p}=n,m={...n,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:h},x=JY(n),b={root:{ownerState:m},input:{ownerState:m}},w=d??i?so(b,d??i):b,g=f.root??a.Root??eX,S=f.input??a.Input??tX;return v.jsx(bh,{slots:{root:g,input:S},componentsProps:w,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:h,...p,classes:x})});Sg&&(Sg.muiName="Input");function Xj(e){return Qe("MuiFormControl",e)}const rX=Ze("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),nX=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${Le(r)}`,n&&"fullWidth"]};return Xe(o,Xj,t)},oX=ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${Le(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Fc=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:p=!1,size:m="medium",variant:x="outlined",...b}=n,w={...n,color:i,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:h,required:p,size:m,variant:x},g=nX(w),[S,R]=y.useState(()=>{let U=!1;return o&&y.Children.forEach(o,j=>{if(!np(j,["Input","Select"]))return;const N=np(j,["Select"])?j.props.input:j;N&&tq(N.props)&&(U=!0)}),U}),[T,k]=y.useState(()=>{let U=!1;return o&&y.Children.forEach(o,j=>{np(j,["Input","Select"])&&(wg(j.props,!0)||wg(j.props.inputProps,!0))&&(U=!0)}),U}),[O,E]=y.useState(!1);l&&O&&E(!1);const C=u!==void 0&&!l?u:O;let D;y.useRef(!1);const B=y.useMemo(()=>({adornedStart:S,setAdornedStart:R,color:i,disabled:l,error:c,filled:T,focused:C,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{E(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{E(!0)},registerEffect:D,required:p,variant:x}),[S,i,l,c,T,C,d,f,D,p,m,x]);return v.jsx(qy.Provider,{value:B,children:v.jsx(oX,{as:s,ownerState:w,className:Fe(g.root,a),ref:r,...b,children:o})})}),aX=Object.freeze(Object.defineProperty({__proto__:null,default:Fc,formControlClasses:rX,getFormControlUtilityClasses:Xj,useFormControl:Vo},Symbol.toStringTag,{value:"Module"}));function Qj(e){return Qe("MuiFormControlLabel",e)}const Fu=Ze("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),iX=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled",`labelPlacement${Le(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Xe(i,Qj,t)},sX=ce("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Fu.label}`]:t.label},t.root,t[`labelPlacement${Le(r.labelPlacement)}`]]}})(Bt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Fu.disabled}`]:{cursor:"default"},[`& .${Fu.label}`]:{[`&.${Fu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),lX=ce("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Bt(({theme:e})=>({[`&.${Fu.error}`]:{color:(e.vars||e).palette.error.main}}))),PT=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:i={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:h,onChange:p,required:m,slots:x={},slotProps:b={},value:w,...g}=n,S=Vo(),R=l??s.props.disabled??(S==null?void 0:S.disabled),T=m??s.props.required,k={disabled:R,required:T};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof s.props[N]>"u"&&typeof n[N]<"u"&&(k[N]=n[N])});const O=ql({props:n,muiFormControl:S,states:["error"]}),E={...n,disabled:R,labelPlacement:f,required:T,error:O.error},C=iX(E),D={slots:x,slotProps:{...i,...b}},[B,U]=ha("typography",{elementType:sr,externalForwardedProps:D,ownerState:E});let j=d;return j!=null&&j.type!==sr&&!c&&(j=v.jsx(B,{component:"span",...U,className:Fe(C.label,U==null?void 0:U.className),children:j})),v.jsxs(sX,{className:Fe(C.root,a),ownerState:E,ref:r,...g,children:[y.cloneElement(s,k),T?v.jsxs("div",{children:[j,v.jsxs(lX,{ownerState:E,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):j]})}),cX=Object.freeze(Object.defineProperty({__proto__:null,default:PT,formControlLabelClasses:Fu,getFormControlLabelUtilityClasses:Qj},Symbol.toStringTag,{value:"Module"}));function Zj(e){return Qe("MuiFormGroup",e)}const uX=Ze("MuiFormGroup",["root","row","error"]),dX=e=>{const{classes:t,row:r,error:n}=e;return Xe({root:["root",r&&"row",n&&"error"]},Zj,t)},fX=ce("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Jj=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1,...i}=n,s=Vo(),l=ql({props:n,muiFormControl:s,states:["error"]}),c={...n,row:a,error:l.error},u=dX(c);return v.jsx(fX,{className:Fe(u.root,o),ownerState:c,ref:r,...i})}),pX=Object.freeze(Object.defineProperty({__proto__:null,default:Jj,formGroupClasses:uX,getFormGroupUtilityClass:Zj},Symbol.toStringTag,{value:"Module"}));function hX(e){return Qe("MuiFormHelperText",e)}const U2=Ze("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var H2;const mX=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",n&&`size${Le(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Xe(c,hX,t)},vX=ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Le(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Bt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${U2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${U2.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),eL=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:h,...p}=n,m=Vo(),x=ql({props:n,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),b={...n,component:i,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete b.ownerState;const w=mX(b);return v.jsx(vX,{as:i,className:Fe(w.root,a),ref:r,...p,ownerState:b,children:o===" "?H2||(H2=v.jsx("span",{className:"notranslate",children:"​"})):o})});function gX(e){return Qe("MuiFormLabel",e)}const lp=Ze("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),yX=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${Le(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Xe(l,gX,t)},bX=ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Bt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{[`&.${lp.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lp.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),wX=ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Bt(({theme:e})=>({[`&.${lp.error}`]:{color:(e.vars||e).palette.error.main}}))),tL=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:i,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...h}=n,p=Vo(),m=ql({props:n,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),x={...n,color:m.color||"primary",component:s,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},b=yX(x);return v.jsxs(bX,{as:s,ownerState:x,className:Fe(b.root,a),ref:r,...h,children:[o,m.required&&v.jsxs(wX,{ownerState:x,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})}),W2=y.createContext();function rL(e){return Qe("MuiGrid",e)}const xX=[0,1,2,3,4,5,6,7,8,9,10],SX=["column-reverse","column","row-reverse","row"],CX=["nowrap","wrap-reverse","wrap"],mf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],yd=Ze("MuiGrid",["root","container","item","zeroMinWidth",...xX.map(e=>`spacing-xs-${e}`),...SX.map(e=>`direction-xs-${e}`),...CX.map(e=>`wrap-xs-${e}`),...mf.map(e=>`grid-xs-${e}`),...mf.map(e=>`grid-sm-${e}`),...mf.map(e=>`grid-md-${e}`),...mf.map(e=>`grid-lg-${e}`),...mf.map(e=>`grid-xl-${e}`)]);function TX({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,o)=>{let a={};if(t[o]&&(r=t[o]),!r)return n;if(r===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Sc({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return n;const l=`${Math.round(r/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${u})`;c={flexBasis:d,maxWidth:d}}}a={flexBasis:l,flexGrow:0,maxWidth:l,...c}}return e.breakpoints.values[o]===0?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n},{})}function PX({theme:e,ownerState:t}){const r=Sc({values:t.direction,breakpoints:e.breakpoints.values});return Sa({theme:e},r,n=>{const o={flexDirection:n};return n.startsWith("column")&&(o[`& > .${yd.item}`]={maxWidth:"none"}),o})}function nL({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(o=>{r===""&&t[o]!==0&&(r=o)});const n=Object.keys(e).sort((o,a)=>e[o]-e[a]);return n.slice(0,n.indexOf(r))}function $X({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&n!==0){const a=Sc({values:n,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=nL({breakpoints:e.breakpoints.values,values:a})),o=Sa({theme:e},a,(s,l)=>{const c=e.spacing(s);return c!=="0px"?{marginTop:e.spacing(-s),[`& > .${yd.item}`]:{paddingTop:c}}:i!=null&&i.includes(l)?{}:{marginTop:0,[`& > .${yd.item}`]:{paddingTop:0}}})}return o}function RX({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&n!==0){const a=Sc({values:n,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=nL({breakpoints:e.breakpoints.values,values:a})),o=Sa({theme:e},a,(s,l)=>{const c=e.spacing(s);if(c!=="0px"){const u=e.spacing(-s);return{width:`calc(100% + ${c})`,marginLeft:u,[`& > .${yd.item}`]:{paddingLeft:c}}}return i!=null&&i.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${yd.item}`]:{paddingLeft:0}}})}return o}function kX(e,t,r={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&n.push(r[`spacing-${o}-${String(a)}`])}),n}const IX=ce("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=r;let u=[];n&&(u=kX(i,c,t));const d=[];return c.forEach(f=>{const h=r[f];h&&d.push(t[`grid-${f}-${String(h)}`])}),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),PX,$X,RX,TX);function EX(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const r=[];return t.forEach(n=>{const o=e[n];if(Number(o)>0){const a=`spacing-${n}-${String(o)}`;r.push(a)}}),r}const OX=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];r&&(c=EX(a,l));const u=[];l.forEach(f=>{const h=e[f];h&&u.push(`grid-${f}-${String(h)}`)});const d={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...c,n!=="row"&&`direction-xs-${String(n)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Xe(d,rL,t)},xu=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiGrid"}),{breakpoints:o}=na(),a=Dy(n),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:f=!1,rowSpacing:h,spacing:p=0,wrap:m="wrap",zeroMinWidth:x=!1,...b}=a,w=h||p,g=l||p,S=y.useContext(W2),R=u?s||12:S,T={},k={...b};o.keys.forEach(C=>{b[C]!=null&&(T[C]=b[C],delete k[C])});const O={...a,columns:R,container:u,direction:d,item:f,rowSpacing:w,columnSpacing:g,wrap:m,zeroMinWidth:x,spacing:p,...T,breakpoints:o.keys},E=OX(O);return v.jsx(W2.Provider,{value:R,children:v.jsx(IX,{ownerState:O,className:Fe(E.root,i),as:c,ref:r,...k})})}),_X=Object.freeze(Object.defineProperty({__proto__:null,default:xu,getGridUtilityClass:rL,gridClasses:yd},Symbol.toStringTag,{value:"Module"}));function Ux(e){return`scale(${e}, ${e**2})`}const DX={entering:{opacity:1,transform:Ux(1)},entered:{opacity:1,transform:"none"}},t1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zl=y.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:h,style:p,timeout:m="auto",TransitionComponent:x=$i,...b}=t,w=gc(),g=y.useRef(),S=na(),R=y.useRef(null),T=mr(R,Gl(a),r),k=N=>V=>{if(N){const ee=R.current;V===void 0?N(ee):N(ee,V)}},O=k(u),E=k((N,V)=>{pT(N);const{duration:ee,delay:M,easing:K}=fd({style:p,timeout:m,easing:i},{mode:"enter"});let te;m==="auto"?(te=S.transitions.getAutoHeightDuration(N.clientHeight),g.current=te):te=ee,N.style.transition=[S.transitions.create("opacity",{duration:te,delay:M}),S.transitions.create("transform",{duration:t1?te:te*.666,delay:M,easing:K})].join(","),l&&l(N,V)}),C=k(c),D=k(h),B=k(N=>{const{duration:V,delay:ee,easing:M}=fd({style:p,timeout:m,easing:i},{mode:"exit"});let K;m==="auto"?(K=S.transitions.getAutoHeightDuration(N.clientHeight),g.current=K):K=V,N.style.transition=[S.transitions.create("opacity",{duration:K,delay:ee}),S.transitions.create("transform",{duration:t1?K:K*.666,delay:t1?ee:ee||K*.333,easing:M})].join(","),N.style.opacity=0,N.style.transform=Ux(.75),d&&d(N)}),U=k(f),j=N=>{m==="auto"&&w.start(g.current||0,N),n&&n(R.current,N)};return v.jsx(x,{appear:o,in:s,nodeRef:R,onEnter:E,onEntered:C,onEntering:O,onExit:B,onExited:U,onExiting:D,addEndListener:j,timeout:m==="auto"?null:m,...b,children:(N,V)=>y.cloneElement(a,{style:{opacity:0,transform:Ux(.75),visibility:N==="exited"&&!s?"hidden":void 0,...DX[N],...p,...a.props.style},ref:T,...V})})});zl&&(zl.muiSupportAuto=!0);const MX=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),AX=e=>{const{classes:t,disableUnderline:r}=e,o=Xe({root:["root",!r&&"underline"],input:["input"]},Aj,t);return{...t,...o}},jX=ce(Qy,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yy(e,t),!r.disableUnderline&&t.underline]}})(Bt(({theme:e})=>{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})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{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"},[`&.${wu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wu.disabled}, .${wu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${wu.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yn()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),LX=ce(Zy,{name:"MuiInput",slot:"Input",overridesResolver:Xy})({}),Wp=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...h}=n,p=AX(n),x={root:{ownerState:{disableUnderline:o}}},b=u??i?so(u??i,x):x,w=d.root??a.Root??jX,g=d.input??a.Input??LX;return v.jsx(bh,{slots:{root:w,input:g},slotProps:b,fullWidth:s,inputComponent:l,multiline:c,ref:r,type:f,...h,classes:p})});Wp&&(Wp.muiName="Input");const NX=Object.freeze(Object.defineProperty({__proto__:null,default:Wp,getInputUtilityClass:Aj,inputClasses:wu},Symbol.toStringTag,{value:"Module"}));function FX(e){return Qe("MuiInputAdornment",e)}const G2=Ze("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var K2;const BX=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Le(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},zX=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&`position${Le(o)}`,i,n&&"hiddenLabel",a&&`size${Le(a)}`]};return Xe(s,FX,t)},VX=ce("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:BX})(Bt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${G2.positionStart}&:not(.${G2.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),oL=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=n,f=Vo()||{};let h=u;u&&f.variant,f&&!h&&(h=f.variant);const p={...n,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:h},m=zX(p);return v.jsx(qy.Provider,{value:null,children:v.jsx(VX,{as:i,ownerState:p,className:Fe(m.root,a),ref:r,...d,children:typeof o=="string"&&!l?v.jsx(sr,{color:"textSecondary",children:o}):v.jsxs(y.Fragment,{children:[c==="start"?K2||(K2=v.jsx("span",{className:"notranslate",children:"​"})):null,o]})})})});function aL(e){return Qe("MuiInputLabel",e)}const UX=Ze("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),HX=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${Le(n)}`,i],asterisk:[s&&"asterisk"]},c=Xe(l,aL,t);return{...t,...c}},WX=ce(tL,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${lp.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Bt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),wh=y.forwardRef(function(t,r){const n=Pt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:i,variant:s,className:l,...c}=n,u=Vo();let d=i;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=ql({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),h={...n,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},p=HX(h);return v.jsx(WX,{"data-shrink":d,ref:r,className:Fe(p.root,l),...c,ownerState:h,classes:p})}),GX=Object.freeze(Object.defineProperty({__proto__:null,default:wh,getInputLabelUtilityClasses:aL,inputLabelClasses:UX},Symbol.toStringTag,{value:"Module"}));function KX(e){return Qe("MuiLink",e)}const qX=Ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),YX=({theme:e,ownerState:t})=>{const r=t.color,n=ud(e,`palette.${r}`,!1)||t.color,o=ud(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Yt(n,.4)},q2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},XX=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${Le(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Xe(a,KX,t)},QX=ce(sr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Le(r.underline)}`],r.component==="button"&&t.button]}})(Bt(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Yt(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Yt(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Yt(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{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"},[`&.${qX.focusVisible}`]:{outline:"auto"}}}]}))),ul=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiLink"}),o=na(),{className:a,color:i="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:h,...p}=n,[m,x]=y.useState(!1),b=R=>{dd(R.target)||x(!1),l&&l(R)},w=R=>{dd(R.target)&&x(!0),c&&c(R)},g={...n,color:i,component:s,focusVisible:m,underline:d,variant:f},S=XX(g);return v.jsx(QX,{color:i,className:Fe(S.root,a),classes:u,component:s,onBlur:b,onFocus:w,ref:r,ownerState:g,variant:f,...p,sx:[...q2[i]===void 0?[{color:i}]:[],...Array.isArray(h)?h:[h]],style:{...p.style,...d==="always"&&i!=="inherit"&&!q2[i]&&{"--Link-underlineColor":YX({theme:o,ownerState:g})}}})}),Yi=y.createContext({});function ZX(e){return Qe("MuiList",e)}Ze("MuiList",["root","padding","dense","subheader"]);const JX=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Xe({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},ZX,t)},eQ=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),$T=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=n,d=y.useMemo(()=>({dense:s}),[s]),f={...n,component:i,dense:s,disablePadding:l},h=JX(f);return v.jsx(Yi.Provider,{value:d,children:v.jsxs(eQ,{as:i,className:Fe(h.root,a),ref:r,ownerState:f,...u,children:[c,o]})})});function tQ(e){return Qe("MuiListItem",e)}Ze("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function rQ(e){return Qe("MuiListItemButton",e)}const Su=Ze("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nQ=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]},oQ=e=>{const{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:a,divider:i,selected:s}=e,c=Xe({root:["root",n&&"dense",!a&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},rQ,r);return{...r,...c}},aQ=ce(Zi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nQ})(Bt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yt(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})`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),iQ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:i="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:f=!1,className:h,...p}=n,m=y.useContext(Yi),x=y.useMemo(()=>({dense:l||m.dense||!1,alignItems:o,disableGutters:c}),[o,m.dense,l,c]),b=y.useRef(null);$n(()=>{a&&b.current&&b.current.focus()},[a]);const w={...n,alignItems:o,dense:x.dense,disableGutters:c,divider:u,selected:f},g=oQ(w),S=mr(b,r);return v.jsx(Yi.Provider,{value:x,children:v.jsx(aQ,{ref:S,href:p.href||p.to,component:(p.href||p.to)&&i==="div"?"button":i,focusVisibleClassName:Fe(g.focusVisible,d),ownerState:w,className:Fe(g.root,h),...p,classes:g,children:s})})});function sQ(e){return Qe("MuiListItemSecondaryAction",e)}Ze("MuiListItemSecondaryAction",["root","disableGutters"]);const lQ=e=>{const{disableGutters:t,classes:r}=e;return Xe({root:["root",t&&"disableGutters"]},sQ,r)},cQ=ce("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),iL=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=n,i=y.useContext(Yi),s={...n,disableGutters:i.disableGutters},l=lQ(s);return v.jsx(cQ,{className:Fe(l.root,o),ownerState:s,ref:r,...a})});iL.muiName="ListItemSecondaryAction";const uQ=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},dQ=e=>{const{alignItems:t,classes:r,dense:n,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:s}=e;return Xe({root:["root",n&&"dense",!o&&"gutters",!a&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},tQ,r)},fQ=ce("div",{name:"MuiListItem",slot:"Root",overridesResolver:uQ})(Bt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Su.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{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"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),pQ=ce("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),sL=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:i,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:h=!1,disableGutters:p=!1,disablePadding:m=!1,divider:x=!1,secondaryAction:b,slotProps:w={},slots:g={},...S}=n,R=y.useContext(Yi),T=y.useMemo(()=>({dense:h||R.dense||!1,alignItems:o,disableGutters:p}),[o,R.dense,h,p]),k=y.useRef(null),O=y.Children.toArray(a),E=O.length&&np(O[O.length-1],["ListItemSecondaryAction"]),C={...n,alignItems:o,dense:T.dense,disableGutters:p,disablePadding:m,divider:x,hasSecondaryAction:E},D=dQ(C),B=mr(k,r),U=g.root||l.Root||fQ,j=w.root||c.root||{},N={className:Fe(D.root,j.className,i),...S};let V=s||"li";return E?(V=!N.component&&!s?"div":V,u==="li"&&(V==="li"?V="div":N.component==="li"&&(N.component="div")),v.jsx(Yi.Provider,{value:T,children:v.jsxs(pQ,{as:u,className:Fe(D.container,d),ref:B,ownerState:C,...f,children:[v.jsx(U,{...j,...!gd(U)&&{as:V,ownerState:{...C,...j.ownerState}},...N,children:O}),O.pop()]})})):v.jsx(Yi.Provider,{value:T,children:v.jsxs(U,{...j,as:V,ref:B,...!gd(U)&&{ownerState:{...C,...j.ownerState}},...N,children:[O,b&&v.jsx(iL,{children:b})]})})});function hQ(e){return Qe("MuiListItemIcon",e)}const Y2=Ze("MuiListItemIcon",["root","alignItemsFlexStart"]),mQ=e=>{const{alignItems:t,classes:r}=e;return Xe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},hQ,r)},vQ=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Bt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),gQ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiListItemIcon"}),{className:o,...a}=n,i=y.useContext(Yi),s={...n,alignItems:i.alignItems},l=mQ(s);return v.jsx(vQ,{className:Fe(l.root,o),ownerState:s,ref:r,...a})});function lL(e){return Qe("MuiListItemText",e)}const bc=Ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yQ=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return Xe({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},lL,t)},bQ=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bc.primary}`]:t.primary},{[`& .${bc.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${jx.root}:where(& .${bc.primary})`]:{display:"block"},[`.${jx.root}:where(& .${bc.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),cL=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,...f}=n,{dense:h}=y.useContext(Yi);let p=l??o,m=u;const x={...n,disableTypography:i,inset:s,primary:!!p,secondary:!!m,dense:h},b=yQ(x);return p!=null&&p.type!==sr&&!i&&(p=v.jsx(sr,{variant:h?"body2":"body1",className:b.primary,component:c!=null&&c.variant?void 0:"span",...c,children:p})),m!=null&&m.type!==sr&&!i&&(m=v.jsx(sr,{variant:"body2",className:b.secondary,color:"textSecondary",...d,children:m})),v.jsxs(bQ,{className:Fe(b.root,a),ownerState:x,ref:r,...f,children:[p,m]})}),wQ=Object.freeze(Object.defineProperty({__proto__:null,default:cL,getListItemTextUtilityClass:lL,listItemTextClasses:bc},Symbol.toStringTag,{value:"Module"}));function r1(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function X2(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function uL(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function vf(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!uL(s,a)||l)s=o(e,s,r);else return s.focus(),!0}return!1}const RT=y.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,h=y.useRef(null),p=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$n(()=>{o&&h.current.focus()},[o]),y.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(g,{direction:S})=>{const R=!h.current.style.width;if(g.clientHeight<h.current.clientHeight&&R){const T=`${GA(Ca(g))}px`;h.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=T,h.current.style.width=`calc(100% + ${T})`}return h.current}}),[]);const m=g=>{const S=h.current,R=g.key;if(g.ctrlKey||g.metaKey||g.altKey){u&&u(g);return}const k=Un(S).activeElement;if(R==="ArrowDown")g.preventDefault(),vf(S,k,c,l,r1);else if(R==="ArrowUp")g.preventDefault(),vf(S,k,c,l,X2);else if(R==="Home")g.preventDefault(),vf(S,null,c,l,r1);else if(R==="End")g.preventDefault(),vf(S,null,c,l,X2);else if(R.length===1){const O=p.current,E=R.toLowerCase(),C=performance.now();O.keys.length>0&&(C-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&E!==O.keys[0]&&(O.repeating=!1)),O.lastTime=C,O.keys.push(E);const D=k&&!O.repeating&&uL(k,O);O.previousKeyMatched&&(D||vf(S,k,!1,l,r1,O))?g.preventDefault():O.previousKeyMatched=!1}u&&u(g)},x=mr(h,r);let b=-1;y.Children.forEach(i,(g,S)=>{if(!y.isValidElement(g)){b===S&&(b+=1,b>=i.length&&(b=-1));return}g.props.disabled||(d==="selectedMenu"&&g.props.selected||b===-1)&&(b=S),b===S&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const w=y.Children.map(i,(g,S)=>{if(S===b){const R={};return a&&(R.autoFocus=!0),g.props.tabIndex===void 0&&d==="selectedMenu"&&(R.tabIndex=0),y.cloneElement(g,R)}return g});return v.jsx($T,{role:"menu",ref:x,className:s,onKeyDown:m,tabIndex:o?0:-1,...f,children:w})});function dL(e){return Qe("MuiPopover",e)}const xQ=Ze("MuiPopover",["root","paper"]);function Hx(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Wx(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Q2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function n1(e){return typeof e=="function"?e():e}const SQ=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},dL,t)},fL=ce(Jy,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kT=ce(Ga,{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}),pL=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:h=16,open:p,PaperProps:m={},slots:x={},slotProps:b={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:g=zl,transitionDuration:S="auto",TransitionProps:{onEntering:R,...T}={},disableScrollLock:k=!1,...O}=n,E=(b==null?void 0:b.paper)??m,C=y.useRef(),D={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:h,externalPaperSlotProps:E,transformOrigin:w,TransitionComponent:g,transitionDuration:S,TransitionProps:T},B=SQ(D),U=y.useCallback(()=>{if(l==="anchorPosition")return s;const Y=n1(a),Z=(Y&&Y.nodeType===1?Y:Un(C.current).body).getBoundingClientRect();return{top:Z.top+Hx(Z,i.vertical),left:Z.left+Wx(Z,i.horizontal)}},[a,i.horizontal,i.vertical,s,l]),j=y.useCallback(Y=>({vertical:Hx(Y,w.vertical),horizontal:Wx(Y,w.horizontal)}),[w.horizontal,w.vertical]),N=y.useCallback(Y=>{const Q={width:Y.offsetWidth,height:Y.offsetHeight},Z=j(Q);if(l==="none")return{top:null,left:null,transformOrigin:Q2(Z)};const X=U();let ae=X.top-Z.vertical,fe=X.left-Z.horizontal;const xe=ae+Q.height,we=fe+Q.width,$e=Ca(n1(a)),ye=$e.innerHeight-h,De=$e.innerWidth-h;if(h!==null&&ae<h){const Ge=ae-h;ae-=Ge,Z.vertical+=Ge}else if(h!==null&&xe>ye){const Ge=xe-ye;ae-=Ge,Z.vertical+=Ge}if(h!==null&&fe<h){const Ge=fe-h;fe-=Ge,Z.horizontal+=Ge}else if(we>De){const Ge=we-De;fe-=Ge,Z.horizontal+=Ge}return{top:`${Math.round(ae)}px`,left:`${Math.round(fe)}px`,transformOrigin:Q2(Z)}},[a,l,U,j,h]),[V,ee]=y.useState(p),M=y.useCallback(()=>{const Y=C.current;if(!Y)return;const Q=N(Y);Q.top!==null&&Y.style.setProperty("top",Q.top),Q.left!==null&&(Y.style.left=Q.left),Y.style.transformOrigin=Q.transformOrigin,ee(!0)},[N]);y.useEffect(()=>(k&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[a,k,M]);const K=(Y,Q)=>{R&&R(Y,Q),M()},te=()=>{ee(!1)};y.useEffect(()=>{p&&M()}),y.useImperativeHandle(o,()=>p?{updatePosition:()=>{M()}}:null,[p,M]),y.useEffect(()=>{if(!p)return;const Y=Ad(()=>{M()}),Q=Ca(a);return Q.addEventListener("resize",Y),()=>{Y.clear(),Q.removeEventListener("resize",Y)}},[a,p,M]);let oe=S;S==="auto"&&!g.muiSupportAuto&&(oe=void 0);const Ie=d||(a?Un(n1(a)).body:void 0),Te={slots:x,slotProps:{...b,paper:E}},[ke,pe]=ha("paper",{elementType:kT,externalForwardedProps:Te,additionalProps:{elevation:f,className:Fe(B.paper,E==null?void 0:E.className),style:V?E.style:{...E.style,opacity:0}},ownerState:D}),[Pe,{slotProps:Ae,...ge}]=ha("root",{elementType:fL,externalForwardedProps:Te,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Ie,open:p},ownerState:D,className:Fe(B.root,u)}),G=mr(C,pe.ref);return v.jsx(Pe,{...ge,...!gd(Pe)&&{slotProps:Ae,disableScrollLock:k},...O,ref:r,children:v.jsx(g,{appear:!0,in:p,onEntering:K,onExited:te,timeout:oe,...T,children:v.jsx(ke,{...pe,ref:G,children:c})})})}),CQ=Object.freeze(Object.defineProperty({__proto__:null,PopoverPaper:kT,PopoverRoot:fL,default:pL,getOffsetLeft:Wx,getOffsetTop:Hx,getPopoverUtilityClass:dL,popoverClasses:xQ},Symbol.toStringTag,{value:"Module"}));function TQ(e){return Qe("MuiMenu",e)}Ze("MuiMenu",["root","paper","list"]);const PQ={vertical:"top",horizontal:"right"},$Q={vertical:"top",horizontal:"left"},RQ=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},TQ,t)},kQ=ce(pL,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IQ=ce(kT,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),EQ=ce(RT,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),OQ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:p,...m}={},variant:x="selectedMenu",slots:b={},slotProps:w={},...g}=n,S=lo(),R={...n,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:p,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:x},T=RQ(R),k=o&&!s&&u,O=y.useRef(null),E=(V,ee)=>{O.current&&O.current.adjustStyleForScrollbar(V,{direction:S?"rtl":"ltr"}),p&&p(V,ee)},C=V=>{V.key==="Tab"&&(V.preventDefault(),c&&c(V,"tabKeyDown"))};let D=-1;y.Children.map(a,(V,ee)=>{y.isValidElement(V)&&(V.props.disabled||(x==="selectedMenu"&&V.props.selected||D===-1)&&(D=ee))});const B=b.paper??IQ,U=w.paper??d,j=xr({elementType:b.root,externalSlotProps:w.root,ownerState:R,className:[T.root,i]}),N=xr({elementType:B,externalSlotProps:U,ownerState:R,className:T.paper});return v.jsx(kQ,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?PQ:$Q,slots:{paper:B,root:b.root},slotProps:{root:j,paper:N},open:u,ref:r,transitionDuration:h,TransitionProps:{onEntering:E,...m},ownerState:R,...g,classes:f,children:v.jsx(EQ,{onKeyDown:C,actions:O,autoFocus:o&&(D===-1||s),autoFocusItem:k,variant:x,...l,className:Fe(T.list,l.className),children:a})})});function hL(e){return Qe("MuiMenuItem",e)}const Cu=Ze("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_Q=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},DQ=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,l=Xe({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},hL,i);return{...i,...l}},MQ=ce(Zi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:_Q})(Bt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yt(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})`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${z2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${z2.inset}`]:{marginLeft:52},[`& .${bc.root}`]:{marginTop:0,marginBottom:0},[`& .${bc.inset}`]:{paddingLeft:36},[`& .${Y2.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Y2.root} svg`]:{fontSize:"1.25rem"}}}]}))),Bs=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...h}=n,p=y.useContext(Yi),m=y.useMemo(()=>({dense:i||p.dense||!1,disableGutters:l}),[p.dense,i,l]),x=y.useRef(null);$n(()=>{o&&x.current&&x.current.focus()},[o]);const b={...n,dense:m.dense,divider:s,disableGutters:l},w=DQ(n),g=mr(x,r);let S;return n.disabled||(S=d!==void 0?d:-1),v.jsx(Yi.Provider,{value:m,children:v.jsx(MQ,{ref:g,role:u,tabIndex:S,component:a,focusVisibleClassName:Fe(w.focusVisible,c),className:Fe(w.root,f),...h,ownerState:b,classes:w})})}),AQ=Object.freeze(Object.defineProperty({__proto__:null,default:Bs,getMenuItemUtilityClass:hL,menuItemClasses:Cu},Symbol.toStringTag,{value:"Module"}));function jQ(e){return Qe("MuiNativeSelect",e)}const IT=Ze("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),LQ=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Le(r)}`,a&&"iconOpen",n&&"disabled"]};return Xe(s,jQ,t)},mL=ce("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${IT.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),NQ=ce(mL,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:co,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${IT.multiple}`]:t.multiple}]}})({}),vL=ce("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${IT.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),FQ=ce(vL,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Le(r.variant)}`],r.open&&t.iconOpen]}})({}),BQ=y.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:a},d=LQ(u);return v.jsxs(y.Fragment,{children:[v.jsx(NQ,{ownerState:u,className:Fe(d.select,n),disabled:o,ref:s||r,...c}),t.multiple?null:v.jsx(FQ,{as:i,ownerState:u,className:d.icon})]})});var Z2;const zQ=ce("fieldset",{shouldForwardProp:co})({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%"}),VQ=ce("legend",{shouldForwardProp:co})(Bt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function UQ(e){const{children:t,classes:r,className:n,label:o,notched:a,...i}=e,s=o!=null&&o!=="",l={...e,notched:a,withLabel:s};return v.jsx(zQ,{"aria-hidden":!0,className:n,ownerState:l,...i,children:v.jsx(VQ,{ownerState:l,children:s?v.jsx("span",{children:o}):Z2||(Z2=v.jsx("span",{className:"notranslate",children:"​"}))})})}const HQ=e=>{const{classes:t}=e,n=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},oq,t);return{...t,...n}},WQ=ce(Qy,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yy})(Bt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${us.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${us.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${us.focused} .${us.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(yn()).map(([r])=>({props:{color:r},style:{[`&.${us.focused} .${us.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${us.error} .${us.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${us.disabled} .${us.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),GQ=ce(UQ,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Bt(({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}})),KQ=ce(Zy,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xy})(Bt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Cg=y.forwardRef(function(t,r){var n;const o=Pt({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...h}=o,p=HQ(o),m=Vo(),x=ql({props:o,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...o,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:m,fullWidth:i,hiddenLabel:x.hiddenLabel,multiline:c,size:x.size,type:f},w=d.root??a.Root??WQ,g=d.input??a.Input??KQ;return v.jsx(bh,{slots:{root:w,input:g},renderSuffix:S=>v.jsx(GQ,{ownerState:b,className:p.notchedOutline,label:l!=null&&l!==""&&x.required?n||(n=v.jsxs(y.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:i,inputComponent:s,multiline:c,ref:r,type:f,...h,classes:{...p,notchedOutline:null}})});Cg&&(Cg.muiName="Input");const qQ=pr(v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),YQ=pr(v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),XQ=pr(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),QQ=pr(v.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),ZQ=ce("span",{shouldForwardProp:co})({position:"relative",display:"flex"}),JQ=ce(XQ)({transform:"scale(1)"}),eZ=ce(QQ)(Bt(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function gL(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o={...e,checked:t};return v.jsxs(ZQ,{className:r.root,ownerState:o,children:[v.jsx(JQ,{fontSize:n,className:r.background,ownerState:o}),v.jsx(eZ,{fontSize:n,className:r.dot,ownerState:o})]})}const yL=y.createContext(void 0);function tZ(){return y.useContext(yL)}function rZ(e){return Qe("MuiRadio",e)}const J2=Ze("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),nZ=e=>{const{classes:t,color:r,size:n}=e,o={root:["root",`color${Le(r)}`,n!=="medium"&&`size${Le(n)}`]};return{...t,...Xe(o,rZ,t)}},oZ=ce(zj,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${Le(r.size)}`],t[`color${Le(r.color)}`]]}})(Bt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${J2.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${J2.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function aZ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const ek=v.jsx(gL,{checked:!0}),tk=v.jsx(gL,{}),iZ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:a=ek,color:i="primary",icon:s=tk,name:l,onChange:c,size:u="medium",className:d,disabled:f,disableRipple:h=!1,...p}=n,m=Vo();let x=f;m&&typeof x>"u"&&(x=m.disabled),x??(x=!1);const b={...n,disabled:x,disableRipple:h,color:i,size:u},w=nZ(b),g=tZ();let S=o;const R=dg(c,g&&g.onChange);let T=l;return g&&(typeof S>"u"&&(S=aZ(g.value,n.value)),typeof T>"u"&&(T=g.name)),v.jsx(oZ,{type:"radio",icon:y.cloneElement(s,{fontSize:tk.props.fontSize??u}),checkedIcon:y.cloneElement(a,{fontSize:ek.props.fontSize??u}),disabled:x,ownerState:b,classes:w,name:T,checked:S,onChange:R,ref:r,className:Fe(w.root,d),...p})});function sZ(e){return Qe("MuiRadioGroup",e)}Ze("MuiRadioGroup",["root","row","error"]);const lZ=e=>{const{classes:t,row:r,error:n}=e;return Xe({root:["root",r&&"row",n&&"error"]},sZ,t)},cZ=y.forwardRef(function(t,r){const{actions:n,children:o,className:a,defaultValue:i,name:s,onChange:l,value:c,...u}=t,d=y.useRef(null),f=lZ(t),[h,p]=za({controlled:c,default:i,name:"RadioGroup"});y.useImperativeHandle(n,()=>({focus:()=>{let w=d.current.querySelector("input:not(:disabled):checked");w||(w=d.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const m=mr(r,d),x=Ta(s),b=y.useMemo(()=>({name:x,onChange(w){p(w.target.value),l&&l(w,w.target.value)},value:h}),[x,l,p,h]);return v.jsx(yL.Provider,{value:b,children:v.jsx(Jj,{role:"radiogroup",ref:m,className:Fe(f.root,a),...u,children:o})})});function bL(e){return Qe("MuiSelect",e)}const Tu=Ze("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var rk;const uZ=ce(mL,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Tu.select}`]:t.select},{[`&.${Tu.select}`]:t[r.variant]},{[`&.${Tu.error}`]:t.error},{[`&.${Tu.multiple}`]:t.multiple}]}})({[`&.${Tu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dZ=ce(vL,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Le(r.variant)}`],r.open&&t.iconOpen]}})({}),fZ=ce("input",{shouldForwardProp:e=>fj(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 nk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function pZ(e){return e==null||typeof e=="string"&&!e.trim()}const hZ=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Le(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Xe(s,bL,t)},mZ=y.forwardRef(function(t,r){var jr;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:h=!1,IconComponent:p,inputRef:m,labelId:x,MenuProps:b={},multiple:w,name:g,onBlur:S,onChange:R,onClose:T,onFocus:k,onOpen:O,open:E,readOnly:C,renderValue:D,SelectDisplayProps:B={},tabIndex:U,type:j,value:N,variant:V="standard",...ee}=t,[M,K]=za({controlled:N,default:u,name:"Select"}),[te,oe]=za({controlled:E,default:c,name:"Select"}),Ie=y.useRef(null),Te=y.useRef(null),[ke,pe]=y.useState(null),{current:Pe}=y.useRef(E!=null),[Ae,ge]=y.useState(),G=mr(r,m),Y=y.useCallback(st=>{Te.current=st,st&&pe(st)},[]),Q=ke==null?void 0:ke.parentNode;y.useImperativeHandle(G,()=>({focus:()=>{Te.current.focus()},node:Ie.current,value:M}),[M]),y.useEffect(()=>{c&&te&&ke&&!Pe&&(ge(i?null:Q.clientWidth),Te.current.focus())},[ke,i]),y.useEffect(()=>{a&&Te.current.focus()},[a]),y.useEffect(()=>{if(!x)return;const st=Un(Te.current).getElementById(x);if(st){const He=()=>{getSelection().isCollapsed&&Te.current.focus()};return st.addEventListener("click",He),()=>{st.removeEventListener("click",He)}}},[x]);const Z=(st,He)=>{st?O&&O(He):T&&T(He),Pe||(ge(i?null:Q.clientWidth),oe(st))},X=st=>{st.button===0&&(st.preventDefault(),Te.current.focus(),Z(!0,st))},ae=st=>{Z(!1,st)},fe=y.Children.toArray(s),xe=st=>{const He=fe.find(Ye=>Ye.props.value===st.target.value);He!==void 0&&(K(He.props.value),R&&R(st,He))},we=st=>He=>{let Ye;if(He.currentTarget.hasAttribute("tabindex")){if(w){Ye=Array.isArray(M)?M.slice():[];const Mt=M.indexOf(st.props.value);Mt===-1?Ye.push(st.props.value):Ye.splice(Mt,1)}else Ye=st.props.value;if(st.props.onClick&&st.props.onClick(He),M!==Ye&&(K(Ye),R)){const Mt=He.nativeEvent||He,Ot=new Mt.constructor(Mt.type,Mt);Object.defineProperty(Ot,"target",{writable:!0,value:{value:Ye,name:g}}),R(Ot,st)}w||Z(!1,He)}},$e=st=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(st.key)&&(st.preventDefault(),Z(!0,st))},ye=ke!==null&&te,De=st=>{!ye&&S&&(Object.defineProperty(st,"target",{writable:!0,value:{value:M,name:g}}),S(st))};delete ee["aria-invalid"];let Ge,bt;const Ke=[];let St=!1;(wg({value:M})||f)&&(D?Ge=D(M):St=!0);const Lt=fe.map(st=>{if(!y.isValidElement(st))return null;let He;if(w){if(!Array.isArray(M))throw new Error(xa(2));He=M.some(Ye=>nk(Ye,st.props.value)),He&&St&&Ke.push(st.props.children)}else He=nk(M,st.props.value),He&&St&&(bt=st.props.children);return y.cloneElement(st,{"aria-selected":He?"true":"false",onClick:we(st),onKeyUp:Ye=>{Ye.key===" "&&Ye.preventDefault(),st.props.onKeyUp&&st.props.onKeyUp(Ye)},role:"option",selected:He,value:void 0,"data-value":st.props.value})});St&&(w?Ke.length===0?Ge=null:Ge=Ke.reduce((st,He,Ye)=>(st.push(He),Ye<Ke.length-1&&st.push(", "),st),[]):Ge=bt);let qt=Ae;!i&&Pe&&ke&&(qt=Q.clientWidth);let wt;typeof U<"u"?wt=U:wt=d?null:0;const lt=B.id||(g?`mui-component-select-${g}`:void 0),gt={...t,variant:V,value:M,open:ye,error:h},kt=hZ(gt),dt={...b.PaperProps,...(jr=b.slotProps)==null?void 0:jr.paper},ir=Ta();return v.jsxs(y.Fragment,{children:[v.jsx(uZ,{as:"div",ref:Y,tabIndex:wt,role:"combobox","aria-controls":ir,"aria-disabled":d?"true":void 0,"aria-expanded":ye?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[x,lt].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:$e,onMouseDown:d||C?null:X,onBlur:De,onFocus:k,...B,ownerState:gt,className:Fe(B.className,kt.select,l),id:lt,children:pZ(Ge)?rk||(rk=v.jsx("span",{className:"notranslate",children:"​"})):Ge}),v.jsx(fZ,{"aria-invalid":h,value:Array.isArray(M)?M.join(","):M,name:g,ref:Ie,"aria-hidden":!0,onChange:xe,tabIndex:-1,disabled:d,className:kt.nativeInput,autoFocus:a,...ee,ownerState:gt}),v.jsx(dZ,{as:p,className:kt.icon,ownerState:gt}),v.jsx(OQ,{id:`menu-${g||""}`,anchorEl:Q,open:ye,onClose:ae,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,MenuListProps:{"aria-labelledby":x,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:ir,...b.MenuListProps},slotProps:{...b.slotProps,paper:{...dt,style:{minWidth:qt,...dt!=null?dt.style:null}}},children:Lt})]})}),vZ=e=>{const{classes:t}=e;return t},ET={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>co(e)&&e!=="variant",slot:"Root"},gZ=ce(Wp,ET)(""),yZ=ce(Cg,ET)(""),bZ=ce(Sg,ET)(""),Nd=y.forwardRef(function(t,r){const n=Pt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=iq,id:d,input:f,inputProps:h,label:p,labelId:m,MenuProps:x,multiple:b=!1,native:w=!1,onClose:g,onOpen:S,open:R,renderValue:T,SelectDisplayProps:k,variant:O="outlined",...E}=n,C=w?BQ:mZ,D=Vo(),B=ql({props:n,muiFormControl:D,states:["variant","error"]}),U=B.variant||O,j={...n,variant:U,classes:i},N=vZ(j),{root:V,...ee}=N,M=f||{standard:v.jsx(gZ,{ownerState:j}),outlined:v.jsx(yZ,{label:p,ownerState:j}),filled:v.jsx(bZ,{ownerState:j})}[U],K=mr(r,Gl(M));return v.jsx(y.Fragment,{children:y.cloneElement(M,{inputComponent:C,inputProps:{children:a,error:B.error,IconComponent:u,variant:U,type:void 0,multiple:b,...w?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:x,onClose:g,onOpen:S,open:R,renderValue:T,SelectDisplayProps:{id:d,...k}},...h,classes:h?so(ee,h.classes):ee,...f?f.props.inputProps:{}},...(b&&w||c)&&U==="outlined"?{notched:!0}:{},ref:K,className:Fe(M.props.className,s,N.root),...!f&&{variant:U},...E})})});Nd.muiName="Select";const wZ=Object.freeze(Object.defineProperty({__proto__:null,default:Nd,getSelectUtilityClasses:bL,selectClasses:Tu},Symbol.toStringTag,{value:"Module"}));function xZ(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=gc();y.useEffect(()=>{if(!o)return;function b(w){w.defaultPrevented||w.key==="Escape"&&(n==null||n(w,"escapeKeyDown"))}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,n]);const s=it((b,w)=>{n==null||n(b,w)}),l=it(b=>{!n||b==null||i.start(b,()=>{s(null,"timeout")})});y.useEffect(()=>(o&&l(t),i.clear),[o,t,l,i]);const c=b=>{n==null||n(b,"clickaway")},u=i.clear,d=y.useCallback(()=>{t!=null&&l(a??t*.5)},[t,a,l]),f=b=>w=>{const g=b.onBlur;g==null||g(w),d()},h=b=>w=>{const g=b.onFocus;g==null||g(w),u()},p=b=>w=>{const g=b.onMouseEnter;g==null||g(w),u()},m=b=>w=>{const g=b.onMouseLeave;g==null||g(w),d()};return y.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[r,o,d,u]),{getRootProps:(b={})=>{const w={...pg(e),...pg(b)};return{role:"presentation",...b,...w,onBlur:f(w),onFocus:h(w),onMouseEnter:p(w),onMouseLeave:m(w)}},onClickAway:c}}function SZ(e){return Qe("MuiSnackbarContent",e)}Ze("MuiSnackbarContent",["root","message","action"]);const CZ=e=>{const{classes:t}=e;return Xe({root:["root"],action:["action"],message:["message"]},SZ,t)},TZ=ce(Ga,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Bt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=eT(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),PZ=ce("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),$Z=ce("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),RZ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert",...l}=n,c=n,u=CZ(c);return v.jsxs(TZ,{role:s,square:!0,elevation:6,className:Fe(u.root,a),ownerState:c,ref:r,...l,children:[v.jsx(PZ,{className:u.message,ownerState:c,children:i}),o?v.jsx($Z,{className:u.action,ownerState:c,children:o}):null]})});function kZ(e){return Qe("MuiSnackbar",e)}Ze("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const IZ=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Le(r.vertical)}${Le(r.horizontal)}`]};return Xe(n,kZ,t)},ok=ce("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Le(r.anchorOrigin.vertical)}${Le(r.anchorOrigin.horizontal)}`]]}})(Bt(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),EZ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiSnackbar"}),o=na(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:h,disableWindowBlurListener:p=!1,message:m,onBlur:x,onClose:b,onFocus:w,onMouseEnter:g,onMouseLeave:S,open:R,resumeHideDuration:T,TransitionComponent:k=zl,transitionDuration:O=a,TransitionProps:{onEnter:E,onExited:C,...D}={},...B}=n,U={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:p,TransitionComponent:k,transitionDuration:O},j=IZ(U),{getRootProps:N,onClickAway:V}=xZ({...U}),[ee,M]=y.useState(!0),K=xr({elementType:ok,getSlotProps:N,externalForwardedProps:B,ownerState:U,additionalProps:{ref:r},className:[j.root,d]}),te=Ie=>{M(!0),C&&C(Ie)},oe=(Ie,Te)=>{M(!1),E&&E(Ie,Te)};return!R&&ee?null:v.jsx(Yq,{onClickAway:V,...f,children:v.jsx(ok,{...K,children:v.jsx(k,{appear:!0,in:R,timeout:O,direction:s==="top"?"down":"up",onEnter:oe,onExited:te,...D,children:u||v.jsx(RZ,{message:m,action:i,...h})})})})});function wL(e){return Qe("MuiTooltip",e)}const Sn=Ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function OZ(e){return Math.round(e*1e5)/1e5}const _Z=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${Le(a.split("-")[0])}`],arrow:["arrow"]};return Xe(i,wL,t)},DZ=ce(xT,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(Bt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Sn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Sn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Sn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Sn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Sn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Sn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Sn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Sn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),MZ=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Le(r.placement.split("-")[0])}`]]}})(Bt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Yt(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,[`.${Sn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Sn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Sn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Sn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${OZ(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Sn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Sn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Sn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Sn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Sn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Sn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Sn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Sn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Sn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Sn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),AZ=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Bt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Yt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let _m=!1;const ak=new Ay;let gf={x:0,y:0};function Dm(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const jZ=y.forwardRef(function(t,r){var wn,uo,Nn;const n=Pt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:x=700,followCursor:b=!1,id:w,leaveDelay:g=0,leaveTouchDelay:S=1500,onClose:R,onOpen:T,open:k,placement:O="bottom",PopperComponent:E,PopperProps:C={},slotProps:D={},slots:B={},title:U,TransitionComponent:j=zl,TransitionProps:N,...V}=n,ee=y.isValidElement(a)?a:v.jsx("span",{children:a}),M=na(),K=lo(),[te,oe]=y.useState(),[Ie,Te]=y.useState(null),ke=y.useRef(!1),pe=f||b,Pe=gc(),Ae=gc(),ge=gc(),G=gc(),[Y,Q]=za({controlled:k,default:!1,name:"Tooltip",state:"open"});let Z=Y;const X=Ta(w),ae=y.useRef(),fe=it(()=>{ae.current!==void 0&&(document.body.style.WebkitUserSelect=ae.current,ae.current=void 0),G.clear()});y.useEffect(()=>fe,[fe]);const xe=Xt=>{ak.clear(),_m=!0,Q(!0),T&&!Z&&T(Xt)},we=it(Xt=>{ak.start(800+g,()=>{_m=!1}),Q(!1),R&&Z&&R(Xt),Pe.start(M.transitions.duration.shortest,()=>{ke.current=!1})}),$e=Xt=>{ke.current&&Xt.type!=="touchstart"||(te&&te.removeAttribute("title"),Ae.clear(),ge.clear(),p||_m&&m?Ae.start(_m?m:p,()=>{xe(Xt)}):xe(Xt))},ye=Xt=>{Ae.clear(),ge.start(g,()=>{we(Xt)})},[,De]=y.useState(!1),Ge=Xt=>{dd(Xt.target)||(De(!1),ye(Xt))},bt=Xt=>{te||oe(Xt.currentTarget),dd(Xt.target)&&(De(!0),$e(Xt))},Ke=Xt=>{ke.current=!0;const qr=ee.props;qr.onTouchStart&&qr.onTouchStart(Xt)},St=Xt=>{Ke(Xt),ge.clear(),Pe.clear(),fe(),ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(x,()=>{document.body.style.WebkitUserSelect=ae.current,$e(Xt)})},Lt=Xt=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(Xt),fe(),ge.start(S,()=>{we(Xt)})};y.useEffect(()=>{if(!Z)return;function Xt(qr){qr.key==="Escape"&&we(qr)}return document.addEventListener("keydown",Xt),()=>{document.removeEventListener("keydown",Xt)}},[we,Z]);const qt=mr(Gl(ee),oe,r);!U&&U!==0&&(Z=!1);const wt=y.useRef(),lt=Xt=>{const qr=ee.props;qr.onMouseMove&&qr.onMouseMove(Xt),gf={x:Xt.clientX,y:Xt.clientY},wt.current&&wt.current.update()},gt={},kt=typeof U=="string";c?(gt.title=!Z&&kt&&!d?U:null,gt["aria-describedby"]=Z?X:null):(gt["aria-label"]=kt?U:null,gt["aria-labelledby"]=Z&&!kt?X:null);const dt={...gt,...V,...ee.props,className:Fe(V.className,ee.props.className),onTouchStart:Ke,ref:qt,...b?{onMouseMove:lt}:{}},ir={};h||(dt.onTouchStart=St,dt.onTouchEnd=Lt),d||(dt.onMouseOver=Dm($e,dt.onMouseOver),dt.onMouseLeave=Dm(ye,dt.onMouseLeave),pe||(ir.onMouseOver=$e,ir.onMouseLeave=ye)),u||(dt.onFocus=Dm(bt,dt.onFocus),dt.onBlur=Dm(Ge,dt.onBlur),pe||(ir.onFocus=bt,ir.onBlur=Ge));const jr=y.useMemo(()=>{var qr;let Xt=[{name:"arrow",enabled:!!Ie,options:{element:Ie,padding:4}}];return(qr=C.popperOptions)!=null&&qr.modifiers&&(Xt=Xt.concat(C.popperOptions.modifiers)),{...C.popperOptions,modifiers:Xt}},[Ie,C]),st={...n,isRtl:K,arrow:o,disableInteractive:pe,placement:O,PopperComponentProp:E,touch:ke.current},He=_Z(st),Ye=B.popper??s.Popper??DZ,Mt=B.transition??s.Transition??j??zl,Ot=B.tooltip??s.Tooltip??MZ,mt=B.arrow??s.Arrow??AZ,dr=Nu(Ye,{...C,...D.popper??l.popper,className:Fe(He.popper,C==null?void 0:C.className,(wn=D.popper??l.popper)==null?void 0:wn.className)},st),cr=Nu(Mt,{...N,...D.transition??l.transition},st),br=Nu(Ot,{...D.tooltip??l.tooltip,className:Fe(He.tooltip,(uo=D.tooltip??l.tooltip)==null?void 0:uo.className)},st),Jr=Nu(mt,{...D.arrow??l.arrow,className:Fe(He.arrow,(Nn=D.arrow??l.arrow)==null?void 0:Nn.className)},st);return v.jsxs(y.Fragment,{children:[y.cloneElement(ee,dt),v.jsx(Ye,{as:E??xT,placement:O,anchorEl:b?{getBoundingClientRect:()=>({top:gf.y,left:gf.x,right:gf.x,bottom:gf.y,width:0,height:0})}:te,popperRef:wt,open:te?Z:!1,id:X,transition:!0,...ir,...dr,popperOptions:jr,children:({TransitionProps:Xt})=>v.jsx(Mt,{timeout:M.transitions.duration.shorter,...Xt,...cr,children:v.jsxs(Ot,{...br,children:[U,o?v.jsx(mt,{...Jr,ref:Te}):null]})})})]})}),LZ=Object.freeze(Object.defineProperty({__proto__:null,default:jZ,getTooltipUtilityClass:wL,tooltipClasses:Sn},Symbol.toStringTag,{value:"Module"})),Tg=L7({createStyledComponent:ce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Pt({props:e,name:"MuiStack"})});function NZ(e){return Qe("MuiTab",e)}const Ja=Ze("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),FZ=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${Le(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Xe(c,NZ,t)},BZ=ce(Zi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Le(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Ja.iconWrapper}`]:t.iconWrapper},{[`& .${Ja.icon}`]:t.icon}]}})(Bt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${Ja.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${Ja.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${Ja.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${Ja.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Ja.selected}`]:{opacity:1},[`&.${Ja.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ja.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ja.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),ik=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:h,onFocus:p,selected:m,selectionFollowsFocus:x,textColor:b="inherit",value:w,wrapped:g=!1,...S}=n,R={...n,disabled:a,disableFocusRipple:i,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:b,wrapped:g},T=FZ(R),k=l&&d&&y.isValidElement(l)?y.cloneElement(l,{className:Fe(T.icon,l.props.className)}):l,O=C=>{!m&&f&&f(C,w),h&&h(C)},E=C=>{x&&!m&&f&&f(C,w),p&&p(C)};return v.jsxs(BZ,{focusRipple:!i,className:Fe(T.root,o),ref:r,role:"tab","aria-selected":m,disabled:a,onClick:O,onFocus:E,ownerState:R,tabIndex:m?0:-1,...S,children:[c==="top"||c==="start"?v.jsxs(y.Fragment,{children:[k,d]}):v.jsxs(y.Fragment,{children:[d,k]}),u]})}),xL=y.createContext();function SL(e){return Qe("MuiTable",e)}const zZ=Ze("MuiTable",["root","stickyHeader"]),VZ=e=>{const{classes:t,stickyHeader:r}=e;return Xe({root:["root",r&&"stickyHeader"]},SL,t)},UZ=ce("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(Bt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),sk="table",OT=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTable"}),{className:o,component:a=sk,padding:i="normal",size:s="medium",stickyHeader:l=!1,...c}=n,u={...n,component:a,padding:i,size:s,stickyHeader:l},d=VZ(u),f=y.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return v.jsx(xL.Provider,{value:f,children:v.jsx(UZ,{as:a,role:a===sk?null:"table",ref:r,className:Fe(d.root,o),ownerState:u,...c})})}),HZ=Object.freeze(Object.defineProperty({__proto__:null,default:OT,getTableUtilityClass:SL,tableClasses:zZ},Symbol.toStringTag,{value:"Module"})),xh=y.createContext();function CL(e){return Qe("MuiTableBody",e)}const WZ=Ze("MuiTableBody",["root"]),GZ=e=>{const{classes:t}=e;return Xe({root:["root"]},CL,t)},KZ=ce("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),qZ={variant:"body"},lk="tbody",_T=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTableBody"}),{className:o,component:a=lk,...i}=n,s={...n,component:a},l=GZ(s);return v.jsx(xh.Provider,{value:qZ,children:v.jsx(KZ,{className:Fe(l.root,o),as:a,ref:r,role:a===lk?null:"rowgroup",ownerState:s,...i})})}),YZ=Object.freeze(Object.defineProperty({__proto__:null,default:_T,getTableBodyUtilityClass:CL,tableBodyClasses:WZ},Symbol.toStringTag,{value:"Module"}));function TL(e){return Qe("MuiTableCell",e)}const PL=Ze("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),XZ=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${Le(n)}`,o!=="normal"&&`padding${Le(o)}`,`size${Le(a)}`]};return Xe(s,TL,t)},QZ=ce("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Le(r.size)}`],r.padding!=="normal"&&t[`padding${Le(r.padding)}`],r.align!=="inherit"&&t[`align${Le(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(Bt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Ac(Yt(e.palette.divider,1),.88):Mc(Yt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${PL.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Zo=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=n,h=y.useContext(xL),p=y.useContext(xh),m=p&&p.variant==="head";let x;i?x=i:x=m?"th":"td";let b=l;x==="td"?b=void 0:!b&&m&&(b="col");const w=d||p&&p.variant,g={...n,align:o,component:x,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&h&&h.stickyHeader,variant:w},S=XZ(g);let R=null;return u&&(R=u==="asc"?"ascending":"descending"),v.jsx(QZ,{as:x,ref:r,className:Fe(S.root,a),"aria-sort":R,scope:b,ownerState:g,...f})}),ZZ=Object.freeze(Object.defineProperty({__proto__:null,default:Zo,getTableCellUtilityClass:TL,tableCellClasses:PL},Symbol.toStringTag,{value:"Module"}));function JZ(e){return Qe("MuiTableContainer",e)}Ze("MuiTableContainer",["root"]);const eJ=e=>{const{classes:t}=e;return Xe({root:["root"]},JZ,t)},tJ=ce("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),$L=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...i}=n,s={...n,component:a},l=eJ(s);return v.jsx(tJ,{ref:r,as:a,className:Fe(l.root,o),ownerState:s,...i})});function RL(e){return Qe("MuiTableFooter",e)}const rJ=Ze("MuiTableFooter",["root"]),nJ=e=>{const{classes:t}=e;return Xe({root:["root"]},RL,t)},oJ=ce("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),aJ={variant:"footer"},ck="tfoot",iJ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTableFooter"}),{className:o,component:a=ck,...i}=n,s={...n,component:a},l=nJ(s);return v.jsx(xh.Provider,{value:aJ,children:v.jsx(oJ,{as:a,className:Fe(l.root,o),ref:r,role:a===ck?null:"rowgroup",ownerState:s,...i})})}),sJ=Object.freeze(Object.defineProperty({__proto__:null,default:iJ,getTableFooterUtilityClass:RL,tableFooterClasses:rJ},Symbol.toStringTag,{value:"Module"}));function kL(e){return Qe("MuiTableHead",e)}const lJ=Ze("MuiTableHead",["root"]),cJ=e=>{const{classes:t}=e;return Xe({root:["root"]},kL,t)},uJ=ce("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),dJ={variant:"head"},uk="thead",DT=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTableHead"}),{className:o,component:a=uk,...i}=n,s={...n,component:a},l=cJ(s);return v.jsx(xh.Provider,{value:dJ,children:v.jsx(uJ,{as:a,className:Fe(l.root,o),ref:r,role:a===uk?null:"rowgroup",ownerState:s,...i})})}),fJ=Object.freeze(Object.defineProperty({__proto__:null,default:DT,getTableHeadUtilityClass:kL,tableHeadClasses:lJ},Symbol.toStringTag,{value:"Module"}));function IL(e){return Qe("MuiToolbar",e)}const pJ=Ze("MuiToolbar",["root","gutters","regular","dense"]),hJ=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Xe({root:["root",!r&&"gutters",n]},IL,t)},mJ=ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Bt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),eb=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular",...l}=n,c={...n,component:a,disableGutters:i,variant:s},u=hJ(c);return v.jsx(mJ,{as:a,className:Fe(u.root,o),ref:r,ownerState:c,...l})}),vJ=Object.freeze(Object.defineProperty({__proto__:null,default:eb,getToolbarUtilityClass:IL,toolbarClasses:pJ},Symbol.toStringTag,{value:"Module"})),EL=pr(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),OL=pr(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),gJ=y.forwardRef(function(t,r){const{backIconButtonProps:n,count:o,disabled:a=!1,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:d,showLastButton:f,slots:h={},slotProps:p={},...m}=t,x=lo(),b=oe=>{l(oe,0)},w=oe=>{l(oe,c-1)},g=oe=>{l(oe,c+1)},S=oe=>{l(oe,Math.max(0,Math.ceil(o/u)-1))},R=h.firstButton??Vn,T=h.lastButton??Vn,k=h.nextButton??Vn,O=h.previousButton??Vn,E=h.firstButtonIcon??qQ,C=h.lastButtonIcon??YQ,D=h.nextButtonIcon??OL,B=h.previousButtonIcon??EL,U=x?T:R,j=x?k:O,N=x?O:k,V=x?R:T,ee=x?p.lastButton:p.firstButton,M=x?p.nextButton:p.previousButton,K=x?p.previousButton:p.nextButton,te=x?p.firstButton:p.lastButton;return v.jsxs("div",{ref:r,...m,children:[d&&v.jsx(U,{onClick:b,disabled:a||c===0,"aria-label":i("first",c),title:i("first",c),...ee,children:x?v.jsx(C,{...p.lastButtonIcon}):v.jsx(E,{...p.firstButtonIcon})}),v.jsx(j,{onClick:w,disabled:a||c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c),...M??n,children:x?v.jsx(D,{...p.nextButtonIcon}):v.jsx(B,{...p.previousButtonIcon})}),v.jsx(N,{onClick:g,disabled:a||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":i("next",c),title:i("next",c),...K??s,children:x?v.jsx(B,{...p.previousButtonIcon}):v.jsx(D,{...p.nextButtonIcon})}),f&&v.jsx(V,{onClick:S,disabled:a||c>=Math.ceil(o/u)-1,"aria-label":i("last",c),title:i("last",c),...te,children:x?v.jsx(E,{...p.firstButtonIcon}):v.jsx(C,{...p.lastButtonIcon})})]})});function _L(e){return Qe("MuiTablePagination",e)}const Xu=Ze("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var dk;const yJ=ce(Zo,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Bt(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),bJ=ce(eb,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Xu.actions}`]:t.actions,...t.toolbar})})(Bt(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Xu.actions}`]:{flexShrink:0,marginLeft:20}}))),wJ=ce("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),xJ=ce("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Bt(({theme:e})=>({...e.typography.body2,flexShrink:0}))),SJ=ce(Nd,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Xu.selectIcon}`]:t.selectIcon,[`& .${Xu.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Xu.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),CJ=ce(Bs,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),TJ=ce("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Bt(({theme:e})=>({...e.typography.body2,flexShrink:0})));function PJ({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function $J(e){return`Go to ${e} page`}const RJ=e=>{const{classes:t}=e;return Xe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},_L,t)},kJ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=gJ,backIconButtonProps:a,className:i,colSpan:s,component:l=Zo,count:c,disabled:u=!1,getItemAriaLabel:d=$J,labelDisplayedRows:f=PJ,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:p,onPageChange:m,onRowsPerPageChange:x,page:b,rowsPerPage:w,rowsPerPageOptions:g=[10,25,50,100],SelectProps:S={},showFirstButton:R=!1,showLastButton:T=!1,slotProps:k={},slots:O={},...E}=n,C=n,D=RJ(C),B=(k==null?void 0:k.select)??S,U=B.native?"option":CJ;let j;(l===Zo||l==="td")&&(j=s||1e3);const N=Ta(B.id),V=Ta(B.labelId),ee=()=>c===-1?(b+1)*w:w===-1?c:Math.min(c,(b+1)*w);return v.jsx(yJ,{colSpan:j,ref:r,as:l,ownerState:C,className:Fe(D.root,i),...E,children:v.jsxs(bJ,{className:D.toolbar,children:[v.jsx(wJ,{className:D.spacer}),g.length>1&&v.jsx(xJ,{className:D.selectLabel,id:V,children:h}),g.length>1&&v.jsx(SJ,{variant:"standard",...!B.variant&&{input:dk||(dk=v.jsx(bh,{}))},value:w,onChange:x,id:N,labelId:V,...B,classes:{...B.classes,root:Fe(D.input,D.selectRoot,(B.classes||{}).root),select:Fe(D.select,(B.classes||{}).select),icon:Fe(D.selectIcon,(B.classes||{}).icon)},disabled:u,children:g.map(M=>y.createElement(U,{...!gd(U)&&{ownerState:C},className:D.menuItem,key:M.label?M.label:M,value:M.value?M.value:M},M.label?M.label:M))}),v.jsx(TJ,{className:D.displayedRows,children:f({from:c===0?0:b*w+1,to:ee(),count:c===-1?-1:c,page:b})}),v.jsx(o,{className:D.actions,backIconButtonProps:a,count:c,nextIconButtonProps:p,onPageChange:m,page:b,rowsPerPage:w,showFirstButton:R,showLastButton:T,slotProps:k.actions,slots:O.actions,getItemAriaLabel:d,disabled:u})]})})}),IJ=Object.freeze(Object.defineProperty({__proto__:null,default:kJ,getTablePaginationUtilityClass:_L,tablePaginationClasses:Xu},Symbol.toStringTag,{value:"Module"}));function DL(e){return Qe("MuiTableRow",e)}const Gx=Ze("MuiTableRow",["root","selected","hover","head","footer"]),EJ=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return Xe({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},DL,t)},OJ=ce("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(Bt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Gx.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yt(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}))`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),fk="tr",cp=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTableRow"}),{className:o,component:a=fk,hover:i=!1,selected:s=!1,...l}=n,c=y.useContext(xh),u={...n,component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=EJ(u);return v.jsx(OJ,{as:a,ref:r,className:Fe(d.root,o),role:a===fk?null:"row",ownerState:u,...l})}),_J=Object.freeze(Object.defineProperty({__proto__:null,default:cp,getTableRowUtilityClass:DL,tableRowClasses:Gx},Symbol.toStringTag,{value:"Module"})),DJ=pr(v.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function ML(e){return Qe("MuiTableSortLabel",e)}const Sv=Ze("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),MJ=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active",`direction${Le(r)}`],icon:["icon",`iconDirection${Le(r)}`]};return Xe(o,ML,t)},AJ=ce(Zi,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(Bt(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Sv.icon}`]:{opacity:.5}},[`&.${Sv.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Sv.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),jJ=ce("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Le(r.direction)}`]]}})(Bt(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),LJ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:l=!1,IconComponent:c=DJ,...u}=n,d={...n,active:o,direction:s,hideSortIcon:l,IconComponent:c},f=MJ(d);return v.jsxs(AJ,{className:Fe(f.root,i),component:"span",disableRipple:!0,ownerState:d,ref:r,...u,children:[a,l&&!o?null:v.jsx(jJ,{as:c,className:Fe(f.icon),ownerState:d})]})}),NJ=Object.freeze(Object.defineProperty({__proto__:null,default:LJ,getTableSortLabelUtilityClass:ML,tableSortLabelClasses:Sv},Symbol.toStringTag,{value:"Module"}));function FJ(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function BJ(e,t,r,n={},o=()=>{}){const{ease:a=FJ,duration:i=300}=n;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=f);const h=Math.min(1,(f-s)/i);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===r?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const zJ={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function VJ(e){const{onChange:t,...r}=e,n=y.useRef(),o=y.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return $n(()=>{const i=Ad(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Ca(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),y.useEffect(()=>{a(),t(n.current)},[t]),v.jsx("div",{style:zJ,ref:o,...r})}function UJ(e){return Qe("MuiTabScrollButton",e)}const HJ=Ze("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),WJ=e=>{const{classes:t,orientation:r,disabled:n}=e;return Xe({root:["root",r,n&&"disabled"]},UJ,t)},GJ=ce(Zi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${HJ.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),KJ=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:i={},direction:s,orientation:l,disabled:c,...u}=n,d=lo(),f={isRtl:d,...n},h=WJ(f),p=a.StartScrollButtonIcon??EL,m=a.EndScrollButtonIcon??OL,x=xr({elementType:p,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),b=xr({elementType:m,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return v.jsx(GJ,{component:"div",className:Fe(h.root,o),ref:r,role:null,ownerState:f,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:s==="left"?v.jsx(p,{...x}):v.jsx(m,{...b})})});function qJ(e){return Qe("MuiTabs",e)}const Cv=Ze("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),pk=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,hk=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Mm=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},YJ=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},qJ,l)},XJ=ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Cv.scrollButtons}`]:t.scrollButtons},{[`& .${Cv.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Bt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Cv.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),QJ=ce("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),ZJ=ce("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),JJ=ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Bt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),eee=ce(VJ)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),mk={},tee=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTabs"}),o=na(),a=lo(),{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:m,orientation:x="horizontal",ScrollButtonComponent:b=KJ,scrollButtons:w="auto",selectionFollowsFocus:g,slots:S={},slotProps:R={},TabIndicatorProps:T={},TabScrollButtonProps:k={},textColor:O="primary",value:E,variant:C="standard",visibleScrollbar:D=!1,...B}=n,U=C==="scrollable",j=x==="vertical",N=j?"scrollTop":"scrollLeft",V=j?"top":"left",ee=j?"bottom":"right",M=j?"clientHeight":"clientWidth",K=j?"height":"width",te={...n,component:f,allowScrollButtonsMobile:h,indicatorColor:p,orientation:x,vertical:j,scrollButtons:w,textColor:O,variant:C,visibleScrollbar:D,fixed:!U,hideScrollbar:U&&!D,scrollableX:U&&!j,scrollableY:U&&j,centered:c&&!U,scrollButtonsHideMobile:!h},oe=YJ(te),Ie=xr({elementType:S.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:te}),Te=xr({elementType:S.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:te}),[ke,pe]=y.useState(!1),[Pe,Ae]=y.useState(mk),[ge,G]=y.useState(!1),[Y,Q]=y.useState(!1),[Z,X]=y.useState(!1),[ae,fe]=y.useState({overflow:"hidden",scrollbarWidth:0}),xe=new Map,we=y.useRef(null),$e=y.useRef(null),ye=()=>{const He=we.current;let Ye;if(He){const Ot=He.getBoundingClientRect();Ye={clientWidth:He.clientWidth,scrollLeft:He.scrollLeft,scrollTop:He.scrollTop,scrollWidth:He.scrollWidth,top:Ot.top,bottom:Ot.bottom,left:Ot.left,right:Ot.right}}let Mt;if(He&&E!==!1){const Ot=$e.current.children;if(Ot.length>0){const mt=Ot[xe.get(E)];Mt=mt?mt.getBoundingClientRect():null}}return{tabsMeta:Ye,tabMeta:Mt}},De=it(()=>{const{tabsMeta:He,tabMeta:Ye}=ye();let Mt=0,Ot;j?(Ot="top",Ye&&He&&(Mt=Ye.top-He.top+He.scrollTop)):(Ot=a?"right":"left",Ye&&He&&(Mt=(a?-1:1)*(Ye[Ot]-He[Ot]+He.scrollLeft)));const mt={[Ot]:Mt,[K]:Ye?Ye[K]:0};if(typeof Pe[Ot]!="number"||typeof Pe[K]!="number")Ae(mt);else{const dr=Math.abs(Pe[Ot]-mt[Ot]),cr=Math.abs(Pe[K]-mt[K]);(dr>=1||cr>=1)&&Ae(mt)}}),Ge=(He,{animation:Ye=!0}={})=>{Ye?BJ(N,we.current,He,{duration:o.transitions.duration.standard}):we.current[N]=He},bt=He=>{let Ye=we.current[N];j?Ye+=He:Ye+=He*(a?-1:1),Ge(Ye)},Ke=()=>{const He=we.current[M];let Ye=0;const Mt=Array.from($e.current.children);for(let Ot=0;Ot<Mt.length;Ot+=1){const mt=Mt[Ot];if(Ye+mt[M]>He){Ot===0&&(Ye=He);break}Ye+=mt[M]}return Ye},St=()=>{bt(-1*Ke())},Lt=()=>{bt(Ke())},qt=y.useCallback(He=>{fe({overflow:null,scrollbarWidth:He})},[]),wt=()=>{const He={};He.scrollbarSizeListener=U?v.jsx(eee,{onChange:qt,className:Fe(oe.scrollableX,oe.hideScrollbar)}):null;const Mt=U&&(w==="auto"&&(ge||Y)||w===!0);return He.scrollButtonStart=Mt?v.jsx(b,{slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ie},orientation:x,direction:a?"right":"left",onClick:St,disabled:!ge,...k,className:Fe(oe.scrollButtons,k.className)}):null,He.scrollButtonEnd=Mt?v.jsx(b,{slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Te},orientation:x,direction:a?"left":"right",onClick:Lt,disabled:!Y,...k,className:Fe(oe.scrollButtons,k.className)}):null,He},lt=it(He=>{const{tabsMeta:Ye,tabMeta:Mt}=ye();if(!(!Mt||!Ye)){if(Mt[V]<Ye[V]){const Ot=Ye[N]+(Mt[V]-Ye[V]);Ge(Ot,{animation:He})}else if(Mt[ee]>Ye[ee]){const Ot=Ye[N]+(Mt[ee]-Ye[ee]);Ge(Ot,{animation:He})}}}),gt=it(()=>{U&&w!==!1&&X(!Z)});y.useEffect(()=>{const He=Ad(()=>{we.current&&De()});let Ye;const Mt=dr=>{dr.forEach(cr=>{cr.removedNodes.forEach(br=>{Ye==null||Ye.unobserve(br)}),cr.addedNodes.forEach(br=>{Ye==null||Ye.observe(br)})}),He(),gt()},Ot=Ca(we.current);Ot.addEventListener("resize",He);let mt;return typeof ResizeObserver<"u"&&(Ye=new ResizeObserver(He),Array.from($e.current.children).forEach(dr=>{Ye.observe(dr)})),typeof MutationObserver<"u"&&(mt=new MutationObserver(Mt),mt.observe($e.current,{childList:!0})),()=>{He.clear(),Ot.removeEventListener("resize",He),mt==null||mt.disconnect(),Ye==null||Ye.disconnect()}},[De,gt]),y.useEffect(()=>{const He=Array.from($e.current.children),Ye=He.length;if(typeof IntersectionObserver<"u"&&Ye>0&&U&&w!==!1){const Mt=He[0],Ot=He[Ye-1],mt={root:we.current,threshold:.99},dr=wn=>{G(!wn[0].isIntersecting)},cr=new IntersectionObserver(dr,mt);cr.observe(Mt);const br=wn=>{Q(!wn[0].isIntersecting)},Jr=new IntersectionObserver(br,mt);return Jr.observe(Ot),()=>{cr.disconnect(),Jr.disconnect()}}},[U,w,Z,u==null?void 0:u.length]),y.useEffect(()=>{pe(!0)},[]),y.useEffect(()=>{De()}),y.useEffect(()=>{lt(mk!==Pe)},[lt,Pe]),y.useImperativeHandle(l,()=>({updateIndicator:De,updateScrollButtons:gt}),[De,gt]);const kt=v.jsx(JJ,{...T,className:Fe(oe.indicator,T.className),ownerState:te,style:{...Pe,...T.style}});let dt=0;const ir=y.Children.map(u,He=>{if(!y.isValidElement(He))return null;const Ye=He.props.value===void 0?dt:He.props.value;xe.set(Ye,dt);const Mt=Ye===E;return dt+=1,y.cloneElement(He,{fullWidth:C==="fullWidth",indicator:Mt&&!ke&&kt,selected:Mt,selectionFollowsFocus:g,onChange:m,textColor:O,value:Ye,...dt===1&&E===!1&&!He.props.tabIndex?{tabIndex:0}:{}})}),jr=He=>{const Ye=$e.current,Mt=Un(Ye).activeElement;if(Mt.getAttribute("role")!=="tab")return;let mt=x==="horizontal"?"ArrowLeft":"ArrowUp",dr=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(mt="ArrowRight",dr="ArrowLeft"),He.key){case mt:He.preventDefault(),Mm(Ye,Mt,hk);break;case dr:He.preventDefault(),Mm(Ye,Mt,pk);break;case"Home":He.preventDefault(),Mm(Ye,null,pk);break;case"End":He.preventDefault(),Mm(Ye,null,hk);break}},st=wt();return v.jsxs(XJ,{className:Fe(oe.root,d),ownerState:te,ref:r,as:f,...B,children:[st.scrollButtonStart,st.scrollbarSizeListener,v.jsxs(QJ,{className:oe.scroller,ownerState:te,style:{overflow:ae.overflow,[j?`margin${a?"Left":"Right"}`:"marginBottom"]:D?void 0:-ae.scrollbarWidth},ref:we,children:[v.jsx(ZJ,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:oe.flexContainer,ownerState:te,onKeyDown:jr,ref:$e,role:"tablist",children:ir}),ke&&kt]}),st.scrollButtonEnd]})});function AL(e){return Qe("MuiTextField",e)}const ree=Ze("MuiTextField",["root"]),nee={standard:Wp,filled:Sg,outlined:Cg},oee=e=>{const{classes:t}=e;return Xe({root:["root"]},AL,t)},aee=ce(Fc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Pg=y.forwardRef(function(t,r){const n=Pt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:p,id:m,InputLabelProps:x,inputProps:b,InputProps:w,inputRef:g,label:S,maxRows:R,minRows:T,multiline:k=!1,name:O,onBlur:E,onChange:C,onFocus:D,placeholder:B,required:U=!1,rows:j,select:N=!1,SelectProps:V,slots:ee={},slotProps:M={},type:K,value:te,variant:oe="outlined",...Ie}=n,Te={...n,autoFocus:a,color:l,disabled:u,error:d,fullWidth:h,multiline:k,required:U,select:N,variant:oe},ke=oee(Te),pe=Ta(m),Pe=p&&pe?`${pe}-helper-text`:void 0,Ae=S&&pe?`${pe}-label`:void 0,ge=nee[oe],G={slots:ee,slotProps:{input:w,inputLabel:x,htmlInput:b,formHelperText:f,select:V,...M}},Y={},Q=G.slotProps.inputLabel;oe==="outlined"&&(Q&&typeof Q.shrink<"u"&&(Y.notched=Q.shrink),Y.label=S),N&&((!V||!V.native)&&(Y.id=void 0),Y["aria-describedby"]=void 0);const[Z,X]=ha("input",{elementType:ge,externalForwardedProps:G,additionalProps:Y,ownerState:Te}),[ae,fe]=ha("inputLabel",{elementType:wh,externalForwardedProps:G,ownerState:Te}),[xe,we]=ha("htmlInput",{elementType:"input",externalForwardedProps:G,ownerState:Te}),[$e,ye]=ha("formHelperText",{elementType:eL,externalForwardedProps:G,ownerState:Te}),[De,Ge]=ha("select",{elementType:Nd,externalForwardedProps:G,ownerState:Te}),bt=v.jsx(Z,{"aria-describedby":Pe,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:h,multiline:k,name:O,rows:j,maxRows:R,minRows:T,type:K,value:te,id:pe,inputRef:g,onBlur:E,onChange:C,onFocus:D,placeholder:B,inputProps:we,slots:{input:ee.htmlInput?xe:void 0},...X});return v.jsxs(aee,{className:Fe(ke.root,s),disabled:u,error:d,fullWidth:h,ref:r,required:U,color:l,variant:oe,ownerState:Te,...Ie,children:[S!=null&&S!==""&&v.jsx(ae,{htmlFor:pe,id:Ae,...fe,children:S}),N?v.jsx(De,{"aria-describedby":Pe,id:pe,labelId:Ae,value:te,input:bt,...Ge,children:i}):bt,p&&v.jsx($e,{id:Pe,...ye,children:p})]})}),iee=Object.freeze(Object.defineProperty({__proto__:null,default:Pg,getTextFieldUtilityClass:AL,textFieldClasses:ree},Symbol.toStringTag,{value:"Module"})),see=pr(v.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree"),lee=pr([v.jsx("path",{d:"m12 2-5.5 9h11z"},"0"),v.jsx("circle",{cx:"17.5",cy:"17.5",r:"4.5"},"1"),v.jsx("path",{d:"M3 13.5h8v8H3z"},"2")],"Category"),cee=pr(v.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),uee=pr(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),dee=pr(v.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.7s2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension"),fee=pr(v.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),jL=pr(v.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login"),LL=pr(v.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),NL=pr(v.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),pee=pr(v.jsx("path",{d:"M14 10H3v2h11zm0-4H3v2h11zM3 16h7v-2H3zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59z"}),"PlaylistRemove"),hee=pr([v.jsx("path",{d:"M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2zM19 19c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11z"},"0"),v.jsx("path",{d:"M9 7h6v2H9zm7 0h2v2h-2zm-7 3h6v2H9zm7 0h2v2h-2z"},"1")],"ReceiptLong"),mee=pr(v.jsx("path",{d:"M3 15h18v-2H3zm0 4h18v-2H3zm0-8h18V9H3zm0-6v2h18V5z"}),"Reorder"),vee=pr(v.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),gee=pr(v.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),yee=pr(v.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart"),vk=pr(v.jsx("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList"),bee=pr([v.jsx("path",{d:"M7 7v2H5V7zm-2 6v-2h2v2zm0 2h2v2H5zm14 2H9v-2h10zm0-4H9v-2h10zm0-4H9V7h10z",opacity:".3"},"0"),v.jsx("path",{d:"M3 5v14h18V5zm4 2v2H5V7zm-2 6v-2h2v2zm0 2h2v2H5zm14 2H9v-2h10zm0-4H9v-2h10zm0-4H9V7h10z"},"1")],"ViewListTwoTone"),wee="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.3,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='196.052px'%20height='84.956px'%20viewBox='0%200%20196.052%2084.956'%20enable-background='new%200%200%20196.052%2084.956'%20xml:space='preserve'%3e%3cg%3e%3cdefs%3e%3crect%20id='SVGID_1_'%20width='196.052'%20height='84.956'/%3e%3c/defs%3e%3cclipPath%20id='SVGID_2_'%3e%3cuse%20xlink:href='%23SVGID_1_'%20overflow='visible'/%3e%3c/clipPath%3e%3cpath%20clip-path='url(%23SVGID_2_)'%20fill='%23E8462B'%20d='M89.187,46.405h-5.19c-2.369,0-3.679,1.109-3.679,2.975%20c0,1.813,1.21,3.022,3.78,3.022c1.814,0,2.973-0.15,4.132-1.26c0.706-0.655,0.957-1.713,0.957-3.326V46.405z%20M89.338,57.493v-2.269%20c-1.764,1.764-3.427,2.521-6.45,2.521c-2.974,0-5.141-0.757-6.703-2.318c-1.411-1.462-2.167-3.578-2.167-5.896%20c0-4.183,2.872-7.609,8.97-7.609h6.198v-1.31c0-2.872-1.41-4.132-4.888-4.132c-2.519,0-3.678,0.605-5.039,2.167l-4.182-4.082%20c2.569-2.822,5.089-3.628,9.473-3.628c7.358,0,11.188,3.124,11.188,9.272v17.286H89.338z'/%3e%3cpath%20clip-path='url(%23SVGID_2_)'%20fill='%23E8462B'%20d='M131.23,57.493V41.619c0-3.578-2.269-4.787-4.334-4.787%20c-2.017,0-4.384,1.209-4.384,4.636v16.025h-6.553V41.619c0-3.578-2.267-4.787-4.333-4.787c-2.065,0-4.385,1.209-4.385,4.787v15.875%20h-6.551V31.238h6.399v2.419c1.715-1.764,4.133-2.721,6.552-2.721c2.923,0,5.291,1.058,6.955,3.326%20c2.217-2.319,4.586-3.326,7.86-3.326c2.62,0,4.989,0.856,6.45,2.318c2.117,2.116,2.873,4.586,2.873,7.458v16.781H131.23z'/%3e%3crect%20x='142.733'%20y='31.238'%20clip-path='url(%23SVGID_2_)'%20fill='%23E8462B'%20width='6.551'%20height='26.255'/%3e%3cpolygon%20clip-path='url(%23SVGID_2_)'%20fill='%23E8462B'%20points='170.697,31.238%20165.406,47.465%20160.065,31.238%20153.161,31.238%20162.836,57.493%20167.977,57.493%20177.602,31.24%20177.602,31.238%20'/%3e%3cpath%20clip-path='url(%23SVGID_2_)'%20fill='%23E8462B'%20d='M69.703,45.854c0.141-1.064,0.221-2.148,0.221-3.251%20c0-1.103-0.08-2.186-0.221-3.251l-5.747-0.892c-0.257-1.147-0.619-2.271-1.086-3.357l4.121-4.096%20c-0.511-0.944-1.083-1.868-1.731-2.76c-0.648-0.892-1.35-1.722-2.09-2.5l-5.168,2.652c-0.437-0.384-0.893-0.753-1.373-1.102%20c-0.484-0.351-0.98-0.673-1.484-0.972l0.926-5.735c-0.968-0.464-1.974-0.875-3.024-1.216c-1.048-0.341-2.104-0.599-3.159-0.794%20l-2.626,5.192c-1.174-0.107-2.352-0.103-3.52,0.007l-2.629-5.199c-1.056,0.195-2.111,0.453-3.16,0.794%20c-1.049,0.341-2.055,0.752-3.023,1.215l0.927,5.743c-1.004,0.593-1.958,1.286-2.851,2.071l-5.175-2.656%20c-0.74,0.778-1.442,1.607-2.09,2.5c-0.649,0.892-1.221,1.816-1.732,2.76l4.126,4.101c-0.472,1.092-0.836,2.214-1.089,3.351%20l-5.748,0.893c-0.142,1.064-0.222,2.148-0.222,3.251c0,1.103,0.08,2.186,0.222,3.251l5.756,0.894%20c0.256,1.145,0.617,2.267,1.082,3.35l-4.127,4.102c0.511,0.944,1.083,1.868,1.732,2.76c0.648,0.893,1.349,1.723,2.09,2.5%20l5.168-2.652c0.441,0.387,0.9,0.759,1.384,1.11c0.48,0.349,0.972,0.669,1.472,0.966l-0.926,5.733%20c0.969,0.464,1.975,0.875,3.024,1.216c1.049,0.342,2.104,0.6,3.16,0.793l2.622-5.185c1.177,0.109,2.357,0.106,3.528-0.004%20l2.624,5.189c1.056-0.194,2.112-0.452,3.16-0.794c1.05-0.341,2.055-0.752,3.024-1.215l-0.925-5.729%20c1.008-0.596,1.965-1.29,2.862-2.079l5.162,2.649c0.74-0.777,1.441-1.607,2.09-2.5c0.648-0.892,1.22-1.815,1.731-2.76l-4.115-4.091%20c0.473-1.096,0.838-2.221,1.093-3.364L69.703,45.854z%20M33.051,48.321c-1.989-4.355-1.65-9.632,1.36-13.775%20c4.445-6.118,13.038-7.479,19.156-3.034c0.435,0.316,0.839,0.658,1.225,1.013l-4.176,3.034l-4.056-5.582l-4.473,3.25l4.056,5.583%20l-0.007,0.005l-12.772,1.245l3.82,5.258L33.051,48.321z%20M56.601,50.668c-4.445,6.118-13.038,7.479-19.156,3.034%20c-0.397-0.289-0.772-0.596-1.129-0.918l4.119-2.992l4.095,5.638l5.135-11.771l3.768,5.186l4.473-3.25l-4.039-5.56l4.147-3.013%20C59.94,41.353,59.582,46.564,56.601,50.668'/%3e%3c/g%3e%3c/svg%3e",FL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20width='81.059502px'%20height='80.056625px'%20viewBox='0%200%2081.059502%2080.056625'%20xml:space='preserve'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%3e%3c/dc:title%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%3e%3cclipPath%20id='clipPath18'%3e%3cpath%20d='m%200,849.563%201960.52,0%20L%201960.52,0%200,0%200,849.563%20z'%20id='path20'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1.25,0,0,-1.25,-16.34525,92.96925)'%20id='g10'%3e%3cg%20transform='scale(0.1,0.1)'%20id='g12'%3e%3cg%20clip-path='url(%23clipPath18)'%20id='g16'%3e%3cpath%20d='m%20566.012,342.883%20c%20-44.453,-61.184%20-130.383,-74.797%20-191.563,-30.344%20-3.969,2.891%20-7.719,5.957%20-11.289,9.18%20l%2041.192,29.922%2040.945,-56.375%2051.351,117.707%2037.684,-51.848%2044.727,32.5%20-40.387,55.598%2041.469,30.132%20c%2019.257,-43.32%2015.679,-95.437%20-14.129,-136.472%20m%20-235.504,23.465%20c%20-19.887,43.554%20-16.5,96.32%2013.601,137.75%2044.45,61.179%20130.383,74.789%20191.559,30.336%204.352,-3.161%208.391,-6.579%2012.254,-10.125%20l%20-41.762,-30.344%20-40.558,55.82%20-44.735,-32.5%2040.563,-55.828%20-0.067,-0.051%20-127.726,-12.449%2038.203,-52.578%20-41.332,-30.031%20z%20m%20366.523,24.668%20c%201.41,10.644%202.207,21.48%202.207,32.511%200,11.028%20-0.797,21.86%20-2.207,32.508%20l%20-57.468,8.922%20c%20-2.571,11.469%20-6.196,22.711%20-10.864,33.57%20l%2041.211,40.961%20c%20-5.109,9.438%20-10.828,18.676%20-17.312,27.598%20-6.481,8.922%20-13.496,17.223%20-20.899,25%20l%20-51.679,-26.52%20c%20-4.372,3.84%20-8.93,7.532%20-13.731,11.02%20-4.84,3.512%20-9.801,6.73%20-14.84,9.719%20l%209.258,57.351%20c%20-9.676,4.641%20-19.734,8.75%20-30.238,12.16%20-10.481,3.407%20-21.039,5.993%20-31.586,7.938%20l%20-26.262,-51.918%20c%20-11.742,1.07%20-23.519,1.031%20-35.199,-0.066%20l%20-26.293,51.984%20c%20-10.559,-1.945%20-21.109,-4.531%20-31.598,-7.938%20-10.492,-3.41%20-20.551,-7.519%20-30.23,-12.148%20l%209.269,-57.434%20c%20-10.039,-5.925%20-19.582,-12.859%20-28.511,-20.707%20l%20-51.746,26.559%20c%20-7.407,-7.777%20-14.422,-16.07%20-20.903,-25%20-6.492,-8.922%20-12.211,-18.16%20-17.32,-27.598%20l%2041.258,-41.011%20c%20-4.715,-10.922%20-8.36,-22.137%20-10.887,-33.512%20l%20-57.481,-8.93%20c%20-1.421,-10.64%20-2.218,-21.48%20-2.218,-32.508%200,-11.031%200.797,-21.855%202.218,-32.511%20l%2057.563,-8.934%20c%202.559,-11.445%206.168,-22.668%2010.82,-33.496%20L%20240.09,307.57%20c%205.109,-9.445%2010.828,-18.683%2017.32,-27.597%206.481,-8.926%2013.488,-17.227%2020.903,-25%20l%2051.675,26.523%20c%204.41,-3.867%209,-7.59%2013.84,-11.105%204.801,-3.485%209.723,-6.688%2014.723,-9.657%20l%20-9.258,-57.336%20c%209.687,-4.636%2019.746,-8.75%2030.238,-12.156%2010.489,-3.418%2021.039,-5.996%2031.598,-7.929%20l%2026.219,51.843%20c%2011.773,-1.093%2023.57,-1.062%2035.285,0.039%20l%2026.238,-51.894%20c%2010.559,1.945%2021.117,4.523%2031.598,7.941%2010.504,3.406%2020.551,7.52%2030.238,12.149%20l%20-9.246,57.285%20c%2010.078,5.957%2019.648,12.898%2028.617,20.789%20l%2051.621,-26.492%20c%207.403,7.773%2014.41,16.074%2020.899,25%206.484,8.914%2012.203,18.152%2017.312,27.597%20l%20-41.148,40.907%20c%204.73,10.957%208.379,22.207%2010.929,33.644%20l%2057.34,8.895'%20id='path30'%20style='fill:%23f03d30;fill-opacity:1;fill-rule:nonzero;stroke:none'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",xee=[{path:"/Belegformular",name:"Receipt Form",icon:v.jsx(hee,{})},{path:"/combinedList",name:"My Payments",icon:v.jsx(mee,{})},{path:"/KstEval",name:"KST | Cost Center Evaluation",icon:v.jsx(yee,{})},{path:"/UncheckedPayments",name:"Open Requests",icon:v.jsx(pee,{})},{path:"/ownList",name:"Own Requests",icon:v.jsx(vk,{})},{path:"/kstResponsibleCreditorList",name:"KST Responsible List",icon:v.jsx(bee,{})},{path:"/creditlist",name:"Credit List",icon:v.jsx(vk,{})},{path:"/GenerateItem",name:"Add Item",icon:v.jsx(lee,{})},{path:"/GenerateLedger",name:"Add Ledger",icon:v.jsx(dee,{})},{path:"/GenerateKst",name:"Add Cost Center | KST",icon:v.jsx(see,{})},{path:"/Onboarding",name:"Onboarding",icon:v.jsx(vee,{})}];function See(){return v.jsx(v.Fragment,{children:v.jsx($T,{children:xee.map((e,t)=>v.jsx(sL,{children:v.jsxs(iQ,{component:rA,to:e.path,children:[v.jsx(gQ,{children:e.icon}),v.jsx(cL,{primary:e.name})]})},t))})})}function Cee({sx:e,toggleDrawer:t,isAuthenticated:r,onLogin:n,onLogout:o}){return v.jsx(xj,{position:"static",sx:e,children:v.jsxs(eb,{children:[v.jsx(Vn,{onClick:t,children:v.jsx(NL,{})}),v.jsx(sr,{variant:"h6",component:"div",sx:{flexGrow:1},children:v.jsx("img",{src:wee,alt:"AMIV Logo",style:{height:"1.5em"}})}),v.jsx(Vn,{children:v.jsx(gee,{})}),r?v.jsx(Vn,{onClick:o,children:v.jsx(LL,{})}):v.jsx(Vn,{onClick:n,children:v.jsx(jL,{})})]})})}function Tee({sx:e,toggleDrawer:t,isAuthenticated:r,onLogin:n,onLogout:o}){return v.jsx(xj,{position:"static",sx:e,children:v.jsxs(eb,{children:[v.jsx(Vn,{onClick:t,children:v.jsx(NL,{})}),v.jsx(sr,{variant:"h6",component:"div",sx:{flexGrow:1},children:v.jsx("img",{src:FL,alt:"AMIV Wheel",style:{height:"1.5em"}})}),r?v.jsx(Vn,{onClick:o,children:v.jsx(LL,{})}):v.jsx(Vn,{onClick:n,children:v.jsx(jL,{})})]})})}function Pee(){const e=na(),t=My(e.breakpoints.up("md")),r=PC(),n=lh(),[o,a]=y.useState(!1),[i,s]=y.useState(!1),l=()=>{a(d=>!d)};y.useEffect(()=>{const d=localStorage.getItem("access_token");s(!!d)},[n]);const c=()=>{window.location.href="http://localhost:8000/api/login"},u=()=>{localStorage.removeItem("access_token"),s(!1),r("/")};return v.jsxs(v.Fragment,{children:[t?v.jsx(Cee,{sx:{display:{sx:"none",md:"block"}},toggleDrawer:l,isAuthenticated:i,onLogin:c,onLogout:u}):v.jsx(Tee,{sx:{display:{sx:"block",md:"none"}},toggleDrawer:l,isAuthenticated:i,onLogin:c,onLogout:u}),v.jsx(ZY,{anchor:t?"left":"bottom",open:o,onClose:l,children:v.jsx(Qn,{sx:{width:"100%"},children:v.jsx(See,{})})}),v.jsx(WV,{})]})}function $ee(){return v.jsx(Pee,{})}function Ree(){const e=tA();let t;return ih(e)?t=e.data.message||e.statusText:e instanceof Error?t=e.message:typeof e=="string"?t=e:t="Unknown error",v.jsxs(Rn,{children:[v.jsxs(Tg,{direction:"row",children:[v.jsx("img",{src:FL,alt:"AMIV-Logo",height:96}),v.jsx(sr,{variant:"h1",component:"h1",children:"Error"})]}),v.jsxs(Tg,{spacing:2,children:[v.jsx(Rq,{variant:"outlined",sx:{padding:2},children:t}),v.jsx(zr,{variant:"outlined",component:rA,to:"/",startIcon:v.jsx(fee,{}),children:"Go home"})]})]})}var kee=/\{[^{}]+\}/g,tb=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},Iee=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Eee=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Oee=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},BL=({allowReserved:e,explode:t,name:r,style:n,value:o})=>{if(!t){let s=(e?o:o.map(l=>encodeURIComponent(l))).join(Eee(n));switch(n){case"label":return`.${s}`;case"matrix":return`;${r}=${s}`;case"simple":return s;default:return`${r}=${s}`}}let a=Iee(n),i=o.map(s=>n==="label"||n==="simple"?e?s:encodeURIComponent(s):tb({allowReserved:e,name:r,value:s})).join(a);return n==="label"||n==="matrix"?a+i:i},zL=({allowReserved:e,explode:t,name:r,style:n,value:o})=>{if(o instanceof Date)return`${r}=${o.toISOString()}`;if(n!=="deepObject"&&!t){let s=[];Object.entries(o).forEach(([c,u])=>{s=[...s,c,e?u:encodeURIComponent(u)]});let l=s.join(",");switch(n){case"form":return`${r}=${l}`;case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;default:return l}}let a=Oee(n),i=Object.entries(o).map(([s,l])=>tb({allowReserved:e,name:n==="deepObject"?`${r}[${s}]`:s,value:l})).join(a);return n==="label"||n==="matrix"?a+i:i},_ee=({path:e,url:t})=>{let r=t,n=t.match(kee);if(n)for(let o of n){let a=!1,i=o.substring(1,o.length-1),s="simple";i.endsWith("*")&&(a=!0,i=i.substring(0,i.length-1)),i.startsWith(".")?(i=i.substring(1),s="label"):i.startsWith(";")&&(i=i.substring(1),s="matrix");let l=e[i];if(l==null)continue;if(Array.isArray(l)){r=r.replace(o,BL({explode:a,name:i,style:s,value:l}));continue}if(typeof l=="object"){r=r.replace(o,zL({explode:a,name:i,style:s,value:l}));continue}if(s==="matrix"){r=r.replace(o,`;${tb({name:i,value:l})}`);continue}let c=encodeURIComponent(s==="label"?`.${l}`:l);r=r.replace(o,c)}return r},VL=({allowReserved:e,array:t,object:r}={})=>n=>{let o=[];if(n&&typeof n=="object")for(let a in n){let i=n[a];if(i!=null){if(Array.isArray(i)){o=[...o,BL({allowReserved:e,explode:!0,name:a,style:"form",value:i,...t})];continue}if(typeof i=="object"){o=[...o,zL({allowReserved:e,explode:!0,name:a,style:"deepObject",value:i,...r})];continue}o=[...o,tb({allowReserved:e,name:a,value:i})]}}return o.join("&")},Dee=e=>{if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>e.startsWith(t)))return"blob";if(e.startsWith("text/"))return"text"}},Mee=({baseUrl:e,path:t,query:r,querySerializer:n,url:o})=>{let a=o.startsWith("/")?o:`/${o}`,i=e+a;t&&(i=_ee({path:t,url:i}));let s=r?n(r):"";return s.startsWith("?")&&(s=s.substring(1)),s&&(i+=`?${s}`),i},gk=(e,t)=>{var n;let r={...e,...t};return(n=r.baseUrl)!=null&&n.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=UL(e.headers,t.headers),r},UL=(...e)=>{let t=new Headers;for(let r of e){if(!r||typeof r!="object")continue;let n=r instanceof Headers?r.entries():Object.entries(r);for(let[o,a]of n)if(a===null)t.delete(o);else if(Array.isArray(a))for(let i of a)t.append(o,i);else a!==void 0&&t.set(o,typeof a=="object"?JSON.stringify(a):a)}return t},o1=class{constructor(){ru(this,"_fns");this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},Aee=()=>({error:new o1,request:new o1,response:new o1}),yk=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):e.append(t,JSON.stringify(r))},jee={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(o=>yk(t,r,o)):yk(t,r,n))}),t}},Lee={bodySerializer:e=>JSON.stringify(e)},Nee=VL({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Fee={"Content-Type":"application/json"},HL=(e={})=>({...Lee,baseUrl:"",fetch:globalThis.fetch,headers:Fee,parseAs:"auto",querySerializer:Nee,...e}),Bee=(e={})=>{let t=gk(HL(),e),r=()=>({...t}),n=i=>(t=gk(t,i),r()),o=Aee(),a=async i=>{let s={...t,...i,headers:UL(t.headers,i.headers)};s.body&&s.bodySerializer&&(s.body=s.bodySerializer(s.body)),s.body||s.headers.delete("Content-Type");let l=Mee({baseUrl:s.baseUrl??"",path:s.path,query:s.query,querySerializer:typeof s.querySerializer=="function"?s.querySerializer:VL(s.querySerializer),url:s.url}),c={redirect:"follow",...s},u=new Request(l,c);for(let x of o.request._fns)u=await x(u,s);let d=s.fetch,f=await d(u);for(let x of o.response._fns)f=await x(f,u,s);let h={request:u,response:f};if(f.ok){if(f.status===204||f.headers.get("Content-Length")==="0")return{data:{},...h};if(s.parseAs==="stream")return{data:f.body,...h};let x=(s.parseAs==="auto"?Dee(f.headers.get("Content-Type")):s.parseAs)??"json",b=await f[x]();return x==="json"&&s.responseTransformer&&(b=await s.responseTransformer(b)),{data:b,...h}}let p=await f.text();try{p=JSON.parse(p)}catch{}let m=p;for(let x of o.error._fns)m=await x(p,f,u,s);if(m=m||{},s.throwOnError)throw m;return{error:m,...h}};return{connect:i=>a({...i,method:"CONNECT"}),delete:i=>a({...i,method:"DELETE"}),get:i=>a({...i,method:"GET"}),getConfig:r,head:i=>a({...i,method:"HEAD"}),interceptors:o,options:i=>a({...i,method:"OPTIONS"}),patch:i=>a({...i,method:"PATCH"}),post:i=>a({...i,method:"POST"}),put:i=>a({...i,method:"PUT"}),request:a,setConfig:n,trace:i=>a({...i,method:"TRACE"})}};const a1={EVENTS:"Events",PRESIDENT:"President",QUAESTOR:"Quaestor"},zee=e=>(e!=null&&e.time_create&&(e.time_create=new Date(e.time_create)),e!=null&&e.time_modified&&(e.time_modified=new Date(e.time_modified)),e),Vee=async e=>(zee(e),e),Uee=e=>(e!=null&&e.time_create&&(e.time_create=new Date(e.time_create)),e!=null&&e.time_modified&&(e.time_modified=new Date(e.time_modified)),e),Hee=async e=>(Uee(e),e),Wee=e=>(e!=null&&e.time_create&&(e.time_create=new Date(e.time_create)),e!=null&&e.time_modified&&(e.time_modified=new Date(e.time_modified)),e),Gee=async e=>(Wee(e),e),Dr=Bee(HL()),Kee=e=>((e==null?void 0:e.client)??Dr).post({...e,url:"/api/items/",responseTransformer:Vee}),WL=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/ledgers/"}),qee=e=>((e==null?void 0:e.client)??Dr).post({...e,url:"/api/ledgers/",responseTransformer:Hee}),GL=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/ksts/"}),Yee=e=>((e==null?void 0:e.client)??Dr).post({...e,url:"/api/ksts/",responseTransformer:Gee}),Xee=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/ksts/kst-responsible"}),Qee=e=>((e==null?void 0:e.client)??Dr).post({...e,url:"/api/internalTransfers/"}),KL=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/internalTransfers/{id}"}),qL=e=>((e==null?void 0:e.client)??Dr).patch({...e,url:"/api/internalTransfers/{id}"}),Zee=e=>((e==null?void 0:e.client)??Dr).post({...e,url:"/api/bills/"}),YL=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/bills/{id}"}),XL=e=>((e==null?void 0:e.client)??Dr).patch({...e,url:"/api/bills/{id}"}),Jee=e=>((e==null?void 0:e.client)??Dr).post({...e,url:"/api/reimbursements/"}),QL=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/reimbursements/{id}"}),ZL=e=>((e==null?void 0:e.client)??Dr).patch({...e,url:"/api/reimbursements/{id}"}),ete=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/creditPayments/"}),tte=e=>((e==null?void 0:e.client)??Dr).post({...e,url:"/api/creditPayments/"}),JL=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/creditPayments/{id}"}),eN=e=>((e==null?void 0:e.client)??Dr).patch({...e,url:"/api/creditPayments/{id}"}),rte=e=>((e==null?void 0:e.client)??Dr).post({...e,...jee,headers:{"Content-Type":null,...e==null?void 0:e.headers},url:"/api/files/upload"}),rb=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/basic-user-info"}),nte=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/is-onboarded"}),ote=e=>((e==null?void 0:e.client)??Dr).post({...e,url:"/api/users/"}),ate=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/combined/responsible"}),tN=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/combined/own"}),rN=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/combined/"}),ite=e=>((e==null?void 0:e.client)??Dr).get({...e,url:"/api/evaluation/"});function ste(){const[e,t]=y.useState([]),[r,n]=y.useState(null),[o,a]=y.useState(!0),i=async()=>{try{a(!0);const l=await rb();if(l.error)console.error("Failed to fetch user info:",l.error),n(null);else{n(l.data);const c=await tN({query:{search:"",sort:"id:desc",limit:5}});c.error?console.error("Error fetching combined payments:",c.error):(console.log("recieved data"),console.log(c.data.items),t(c.data.items),console.log(e))}}catch(l){console.error("Error fetching data:",l),n(null)}finally{a(!1)}};y.useEffect(()=>{i()},[]);const s=()=>{i()};return o?v.jsx(Rn,{sx:{textAlign:"center",padding:2},children:v.jsx(sr,{variant:"h6",children:"Loading..."})}):v.jsxs(Rn,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:2,height:"100vh",textAlign:"center"},children:[v.jsx(Qn,{sx:{marginBottom:4},children:v.jsx(sr,{variant:"h4",sx:{fontWeight:"bold"},children:"Welcome to QTool!"})}),r?v.jsxs(v.Fragment,{children:[v.jsx(Qn,{sx:{width:"100%",maxWidth:"600px",marginBottom:4},children:v.jsxs(xu,{container:!0,spacing:2,justifyContent:"center",children:[v.jsx(xu,{item:!0,xs:6,children:v.jsx(ul,{href:"/Belegformular",underline:"none",children:v.jsx(zr,{variant:"contained",color:"primary",size:"large",sx:{width:"100%"},children:"Reimbursement Request"})})}),v.jsx(xu,{item:!0,xs:6,children:v.jsx(ul,{href:"/Belegformular",underline:"none",children:v.jsx(zr,{variant:"contained",color:"secondary",size:"large",sx:{width:"100%"},children:"Credit Card Form"})})}),v.jsx(xu,{item:!0,xs:6,children:v.jsx(ul,{href:"/CombinedList",underline:"none",children:v.jsx(zr,{variant:"contained",color:"success",size:"large",sx:{width:"100%"},children:"My Requests and Payments"})})}),v.jsx(xu,{item:!0,xs:6,children:v.jsx(ul,{href:"/support",underline:"none",children:v.jsx(zr,{variant:"contained",color:"info",size:"large",sx:{width:"100%"},children:"Settings"})})})]})}),v.jsx(Qn,{sx:{maxWidth:"600px",marginBottom:4},children:v.jsxs(sr,{variant:"body1",children:["For more information, please visit the official QTool documentation linked below. If you face a problem of financial nature, contact the AMIV Finance Team at"," ",v.jsx(ul,{href:"mailto:quaestor@amiv.ethz.ch",underline:"hover",color:"primary",children:"quaestor@amiv.ethz.ch"}),". For technical issues, reach out to the AMIV IT Team at"," ",v.jsx(ul,{href:"mailto:it@amiv.ethz.ch",underline:"hover",color:"primary",children:"it@amiv.ethz.ch"}),"."]})}),v.jsx(Qn,{sx:{marginTop:0},children:v.jsx(ul,{href:"https://wiki.vseth.ethz.ch/x/BQBLHQ",underline:"none",target:"_blank",rel:"noopener noreferrer",children:v.jsx(zr,{variant:"contained",color:"warning",size:"large",sx:{width:"300px"},children:"QTool Documentation"})})}),v.jsxs(Qn,{sx:{marginTop:4,width:"100%",maxWidth:"600px"},children:[v.jsx(sr,{variant:"h6",sx:{marginBottom:2},children:"Latest Requests:"}),v.jsx($L,{component:Ga,children:v.jsxs(OT,{children:[v.jsx(DT,{children:v.jsxs(cp,{children:[v.jsx(Zo,{children:"Name"}),v.jsx(Zo,{children:"Amount"}),v.jsx(Zo,{children:"Kst"}),v.jsx(Zo,{children:"Status"})]})}),v.jsx(_T,{})]})})]})]}):v.jsxs(Qn,{sx:{textAlign:"center"},children:[v.jsx(sr,{variant:"h6",sx:{marginBottom:2},children:"Please log in to access your dashboard. If this is your first time using QTool, please complete the onboarding process after logging in. The onboarding process is mandatory and will unlock the full functionality of QTool."}),v.jsx(ul,{href:"http://localhost:8000/api/login",underline:"none",children:v.jsx(zr,{variant:"contained",color:"primary",size:"large",onClick:s,children:"Log In"})})]})]})}const lte=e=>({palette:{mode:e,...e==="light"?{primary:_R,divider:_R[200]}:{primary:yl,divider:yl[500]}}});function cte({children:e}){const t=My("(prefers-color-scheme: dark)"),r=No.useMemo(()=>jd(lte(t?"dark":"light")),[t]);return v.jsxs(CA,{theme:r,children:[v.jsx(eY,{}),e]})}const ute=()=>(console.log(sessionStorage.getItem("access_token")),sessionStorage.getItem("access_token"));Dr.setConfig({baseUrl:"http://localhost:8000/",headers:{Authorization:"Bearer "+ute()}});Dr.interceptors.response.use(e=>(e.status===200&&console.log(`Request to ${e.url} was successful`),e));Dr.getConfig();const dte=()=>{const e=PC(),t=y.useRef(!1);return y.useEffect(()=>{if(t.current)return;t.current=!0;const n=new URLSearchParams(window.location.search).get("access_token");n?(sessionStorage.setItem("access_token",n),(async()=>{try{Dr.getConfig();const o=await nte({client:Dr});o.error?e("/onboardingQuiz"):o.data?o.data===!0?e("/"):e("/error"):o.data===!1&&e("/onboardingQuiz")}catch(o){console.error("Onboarding check failed:",o),e("/error")}})()):(console.error("No access token found."),e("/error"))},[e]),v.jsx("div",{children:"Processing login..."})};var nN={},yf=function(e){return e&&e.Math===Math&&e},kn=yf(typeof globalThis=="object"&&globalThis)||yf(typeof window=="object"&&window)||yf(typeof self=="object"&&self)||yf(typeof lr=="object"&&lr)||yf(typeof lr=="object"&&lr)||function(){return this}()||Function("return this")(),Vr=function(e){try{return!!e()}catch{return!0}},fte=Vr,Sh=!fte(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),pte=Sh,oN=Function.prototype,bk=oN.apply,wk=oN.call,Ch=typeof Reflect=="object"&&Reflect.apply||(pte?wk.bind(bk):function(){return wk.apply(bk,arguments)}),aN=Sh,iN=Function.prototype,Kx=iN.call,hte=aN&&iN.bind.bind(Kx,Kx),Nr=aN?hte:function(e){return function(){return Kx.apply(e,arguments)}},sN=Nr,mte=sN({}.toString),vte=sN("".slice),tl=function(e){return vte(mte(e),8,-1)},gte=tl,yte=Nr,nb=function(e){if(gte(e)==="Function")return yte(e)},i1=typeof document=="object"&&document.all,Do=typeof i1>"u"&&i1!==void 0?function(e){return typeof e=="function"||e===i1}:function(e){return typeof e=="function"},Th={},bte=Vr,Wn=!bte(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),wte=Sh,Am=Function.prototype.call,Ka=wte?Am.bind(Am):function(){return Am.apply(Am,arguments)},Ph={},lN={}.propertyIsEnumerable,cN=Object.getOwnPropertyDescriptor,xte=cN&&!lN.call({1:2},1);Ph.f=xte?function(t){var r=cN(this,t);return!!r&&r.enumerable}:lN;var Fd=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},Ste=Nr,Cte=Vr,Tte=tl,s1=Object,Pte=Ste("".split),ob=Cte(function(){return!s1("z").propertyIsEnumerable(0)})?function(e){return Tte(e)==="String"?Pte(e,""):s1(e)}:s1,MT=function(e){return e==null},$te=MT,Rte=TypeError,rl=function(e){if($te(e))throw new Rte("Can't call method on "+e);return e},kte=ob,Ite=rl,es=function(e){return kte(Ite(e))},Ete=Do,oa=function(e){return typeof e=="object"?e!==null:Ete(e)},bn={},l1=bn,c1=kn,Ote=Do,xk=function(e){return Ote(e)?e:void 0},$a=function(e,t){return arguments.length<2?xk(l1[e])||xk(c1[e]):l1[e]&&l1[e][t]||c1[e]&&c1[e][t]},_te=Nr,Jn=_te({}.isPrototypeOf),Dte=kn,Sk=Dte.navigator,Ck=Sk&&Sk.userAgent,Bd=Ck?String(Ck):"",uN=kn,u1=Bd,Tk=uN.process,Pk=uN.Deno,$k=Tk&&Tk.versions||Pk&&Pk.version,Rk=$k&&$k.v8,Ui,$g;Rk&&(Ui=Rk.split("."),$g=Ui[0]>0&&Ui[0]<4?1:+(Ui[0]+Ui[1]));!$g&&u1&&(Ui=u1.match(/Edge\/(\d+)/),(!Ui||Ui[1]>=74)&&(Ui=u1.match(/Chrome\/(\d+)/),Ui&&($g=+Ui[1])));var $h=$g,kk=$h,Mte=Vr,Ate=kn,jte=Ate.String,zd=!!Object.getOwnPropertySymbols&&!Mte(function(){var e=Symbol("symbol detection");return!jte(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kk&&kk<41}),Lte=zd,dN=Lte&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Nte=$a,Fte=Do,Bte=Jn,zte=dN,Vte=Object,Rh=zte?function(e){return typeof e=="symbol"}:function(e){var t=Nte("Symbol");return Fte(t)&&Bte(t.prototype,Vte(e))},Ute=String,kh=function(e){try{return Ute(e)}catch{return"Object"}},Hte=Do,Wte=kh,Gte=TypeError,Kc=function(e){if(Hte(e))return e;throw new Gte(Wte(e)+" is not a function")},Kte=Kc,qte=MT,AT=function(e,t){var r=e[t];return qte(r)?void 0:Kte(r)},d1=Ka,f1=Do,p1=oa,Yte=TypeError,Xte=function(e,t){var r,n;if(t==="string"&&f1(r=e.toString)&&!p1(n=d1(r,e))||f1(r=e.valueOf)&&!p1(n=d1(r,e))||t!=="string"&&f1(r=e.toString)&&!p1(n=d1(r,e)))return n;throw new Yte("Can't convert object to primitive value")},fN={exports:{}},Qte=!0,Ik=kn,Zte=Object.defineProperty,Jte=function(e,t){try{Zte(Ik,e,{value:t,configurable:!0,writable:!0})}catch{Ik[e]=t}return t},ere=kn,tre=Jte,Ek="__core-js_shared__",Ok=fN.exports=ere[Ek]||tre(Ek,{});(Ok.versions||(Ok.versions=[])).push({version:"3.39.0",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"});var jT=fN.exports,_k=jT,Vd=function(e,t){return _k[e]||(_k[e]=t||{})},rre=rl,nre=Object,Ra=function(e){return nre(rre(e))},ore=Nr,are=Ra,ire=ore({}.hasOwnProperty),Uo=Object.hasOwn||function(t,r){return ire(are(t),r)},sre=Nr,lre=0,cre=Math.random(),ure=sre(1 .toString),LT=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ure(++lre+cre,36)},dre=kn,fre=Vd,Dk=Uo,pre=LT,hre=zd,mre=dN,Bu=dre.Symbol,h1=fre("wks"),vre=mre?Bu.for||Bu:Bu&&Bu.withoutSetter||pre,Ln=function(e){return Dk(h1,e)||(h1[e]=hre&&Dk(Bu,e)?Bu[e]:vre("Symbol."+e)),h1[e]},gre=Ka,Mk=oa,Ak=Rh,yre=AT,bre=Xte,wre=Ln,xre=TypeError,Sre=wre("toPrimitive"),pN=function(e,t){if(!Mk(e)||Ak(e))return e;var r=yre(e,Sre),n;if(r){if(t===void 0&&(t="default"),n=gre(r,e,t),!Mk(n)||Ak(n))return n;throw new xre("Can't convert object to primitive value")}return t===void 0&&(t="number"),bre(e,t)},Cre=pN,Tre=Rh,NT=function(e){var t=Cre(e,"string");return Tre(t)?t:t+""},Pre=kn,jk=oa,qx=Pre.document,$re=jk(qx)&&jk(qx.createElement),hN=function(e){return $re?qx.createElement(e):{}},Rre=Wn,kre=Vr,Ire=hN,mN=!Rre&&!kre(function(){return Object.defineProperty(Ire("div"),"a",{get:function(){return 7}}).a!==7}),Ere=Wn,Ore=Ka,_re=Ph,Dre=Fd,Mre=es,Are=NT,jre=Uo,Lre=mN,Lk=Object.getOwnPropertyDescriptor;Th.f=Ere?Lk:function(t,r){if(t=Mre(t),r=Are(r),Lre)try{return Lk(t,r)}catch{}if(jre(t,r))return Dre(!Ore(_re.f,t,r),t[r])};var Nre=Vr,Fre=Do,Bre=/#|\.prototype\./,Ih=function(e,t){var r=Vre[zre(e)];return r===Hre?!0:r===Ure?!1:Fre(t)?Nre(t):!!t},zre=Ih.normalize=function(e){return String(e).replace(Bre,".").toLowerCase()},Vre=Ih.data={},Ure=Ih.NATIVE="N",Hre=Ih.POLYFILL="P",Wre=Ih,Nk=nb,Gre=Kc,Kre=Sh,qre=Nk(Nk.bind),Eh=function(e,t){return Gre(e),t===void 0?e:Kre?qre(e,t):function(){return e.apply(t,arguments)}},ts={},Yre=Wn,Xre=Vr,vN=Yre&&Xre(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Qre=oa,Zre=String,Jre=TypeError,Rs=function(e){if(Qre(e))return e;throw new Jre(Zre(e)+" is not an object")},ene=Wn,tne=mN,rne=vN,jm=Rs,Fk=NT,nne=TypeError,m1=Object.defineProperty,one=Object.getOwnPropertyDescriptor,v1="enumerable",g1="configurable",y1="writable";ts.f=ene?rne?function(t,r,n){if(jm(t),r=Fk(r),jm(n),typeof t=="function"&&r==="prototype"&&"value"in n&&y1 in n&&!n[y1]){var o=one(t,r);o&&o[y1]&&(t[r]=n.value,n={configurable:g1 in n?n[g1]:o[g1],enumerable:v1 in n?n[v1]:o[v1],writable:!1})}return m1(t,r,n)}:m1:function(t,r,n){if(jm(t),r=Fk(r),jm(n),tne)try{return m1(t,r,n)}catch{}if("get"in n||"set"in n)throw new nne("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var ane=Wn,ine=ts,sne=Fd,ab=ane?function(e,t,r){return ine.f(e,t,sne(1,r))}:function(e,t,r){return e[t]=r,e},bf=kn,lne=Ch,cne=nb,une=Do,dne=Th.f,fne=Wre,uu=bn,pne=Eh,du=ab,Bk=Uo,hne=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return lne(e,this,arguments)};return t.prototype=e.prototype,t},tr=function(e,t){var r=e.target,n=e.global,o=e.stat,a=e.proto,i=n?bf:o?bf[r]:bf[r]&&bf[r].prototype,s=n?uu:uu[r]||du(uu,r,{})[r],l=s.prototype,c,u,d,f,h,p,m,x,b;for(f in t)c=fne(n?f:r+(o?".":"#")+f,e.forced),u=!c&&i&&Bk(i,f),p=s[f],u&&(e.dontCallGetSet?(b=dne(i,f),m=b&&b.value):m=i[f]),h=u&&m?m:t[f],!(!c&&!a&&typeof p==typeof h)&&(e.bind&&u?x=pne(h,bf):e.wrap&&u?x=hne(h):a&&une(h)?x=cne(h):x=h,(e.sham||h&&h.sham||p&&p.sham)&&du(x,"sham",!0),du(s,f,x),a&&(d=r+"Prototype",Bk(uu,d)||du(uu,d,{}),du(uu[d],f,h),e.real&&l&&(c||!l[f])&&du(l,f,h)))},mne=Nr,qc=mne([].slice),gN=Nr,vne=Kc,gne=oa,yne=Uo,zk=qc,bne=Sh,yN=Function,wne=gN([].concat),xne=gN([].join),b1={},Sne=function(e,t,r){if(!yne(b1,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";b1[t]=yN("C,a","return new C("+xne(n,",")+")")}return b1[t](e,r)},bN=bne?yN.bind:function(t){var r=vne(this),n=r.prototype,o=zk(arguments,1),a=function(){var s=wne(o,zk(arguments));return this instanceof a?Sne(r,s.length,s):r.apply(t,s)};return gne(n)&&(a.prototype=n),a},Cne=Ln,Tne=Cne("toStringTag"),wN={};wN[Tne]="z";var FT=String(wN)==="[object z]",Pne=FT,$ne=Do,Tv=tl,Rne=Ln,kne=Rne("toStringTag"),Ine=Object,Ene=Tv(function(){return arguments}())==="Arguments",One=function(e,t){try{return e[t]}catch{}},Ud=Pne?Tv:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=One(t=Ine(e),kne))=="string"?r:Ene?Tv(t):(n=Tv(t))==="Object"&&$ne(t.callee)?"Arguments":n},_ne=Nr,Dne=Do,Yx=jT,Mne=_ne(Function.toString);Dne(Yx.inspectSource)||(Yx.inspectSource=function(e){return Mne(e)});var Ane=Yx.inspectSource,jne=Nr,Lne=Vr,xN=Do,Nne=Ud,Fne=$a,Bne=Ane,SN=function(){},CN=Fne("Reflect","construct"),BT=/^\s*(?:class|function)\b/,zne=jne(BT.exec),Vne=!BT.test(SN),wf=function(t){if(!xN(t))return!1;try{return CN(SN,[],t),!0}catch{return!1}},TN=function(t){if(!xN(t))return!1;switch(Nne(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Vne||!!zne(BT,Bne(t))}catch{return!0}};TN.sham=!0;var ib=!CN||Lne(function(){var e;return wf(wf.call)||!wf(Object)||!wf(function(){e=!0})||e})?TN:wf,Une=ib,Hne=kh,Wne=TypeError,Gne=function(e){if(Une(e))return e;throw new Wne(Hne(e)+" is not a constructor")},sb={},Kne=Math.ceil,qne=Math.floor,Yne=Math.trunc||function(t){var r=+t;return(r>0?qne:Kne)(r)},Xne=Yne,Oh=function(e){var t=+e;return t!==t||t===0?0:Xne(t)},Qne=Oh,Zne=Math.max,Jne=Math.min,lb=function(e,t){var r=Qne(e);return r<0?Zne(r+t,0):Jne(r,t)},eoe=Oh,toe=Math.min,zT=function(e){var t=eoe(e);return t>0?toe(t,9007199254740991):0},roe=zT,nl=function(e){return roe(e.length)},noe=es,ooe=lb,aoe=nl,Vk=function(e){return function(t,r,n){var o=noe(t),a=aoe(o);if(a===0)return!e&&-1;var i=ooe(n,a),s;if(e&&r!==r){for(;a>i;)if(s=o[i++],s!==s)return!0}else for(;a>i;i++)if((e||i in o)&&o[i]===r)return e||i||0;return!e&&-1}},VT={includes:Vk(!0),indexOf:Vk(!1)},cb={},ioe=Nr,w1=Uo,soe=es,loe=VT.indexOf,coe=cb,Uk=ioe([].push),PN=function(e,t){var r=soe(e),n=0,o=[],a;for(a in r)!w1(coe,a)&&w1(r,a)&&Uk(o,a);for(;t.length>n;)w1(r,a=t[n++])&&(~loe(o,a)||Uk(o,a));return o},UT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],uoe=PN,doe=UT,_h=Object.keys||function(t){return uoe(t,doe)},foe=Wn,poe=vN,hoe=ts,moe=Rs,voe=es,goe=_h;sb.f=foe&&!poe?Object.defineProperties:function(t,r){moe(t);for(var n=voe(r),o=goe(r),a=o.length,i=0,s;a>i;)hoe.f(t,s=o[i++],n[s]);return t};var yoe=$a,boe=yoe("document","documentElement"),woe=Vd,xoe=LT,Hk=woe("keys"),ub=function(e){return Hk[e]||(Hk[e]=xoe(e))},Soe=Rs,Coe=sb,Wk=UT,Toe=cb,Poe=boe,$oe=hN,Roe=ub,Gk=">",Kk="<",Xx="prototype",Qx="script",$N=Roe("IE_PROTO"),x1=function(){},RN=function(e){return Kk+Qx+Gk+e+Kk+"/"+Qx+Gk},qk=function(e){e.write(RN("")),e.close();var t=e.parentWindow.Object;return e=null,t},koe=function(){var e=$oe("iframe"),t="java"+Qx+":",r;return e.style.display="none",Poe.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(RN("document.F=Object")),r.close(),r.F},Lm,Pv=function(){try{Lm=new ActiveXObject("htmlfile")}catch{}Pv=typeof document<"u"?document.domain&&Lm?qk(Lm):koe():qk(Lm);for(var e=Wk.length;e--;)delete Pv[Xx][Wk[e]];return Pv()};Toe[$N]=!0;var Hd=Object.create||function(t,r){var n;return t!==null?(x1[Xx]=Soe(t),n=new x1,x1[Xx]=null,n[$N]=t):n=Pv(),r===void 0?n:Coe.f(n,r)},Ioe=tr,Eoe=$a,S1=Ch,Ooe=bN,Yk=Gne,_oe=Rs,Xk=oa,Doe=Hd,kN=Vr,HT=Eoe("Reflect","construct"),Moe=Object.prototype,Aoe=[].push,IN=kN(function(){function e(){}return!(HT(function(){},[],e)instanceof e)}),EN=!kN(function(){HT(function(){})}),Qk=IN||EN;Ioe({target:"Reflect",stat:!0,forced:Qk,sham:Qk},{construct:function(t,r){Yk(t),_oe(r);var n=arguments.length<3?t:Yk(arguments[2]);if(EN&&!IN)return HT(t,r,n);if(t===n){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var o=[null];return S1(Aoe,o,r),new(S1(Ooe,t,o))}var a=n.prototype,i=Doe(Xk(a)?a:Moe),s=S1(t,i,r);return Xk(s)?s:i}});var joe=bn,Loe=joe.Reflect.construct,Noe=Loe,Foe=Noe,Boe=Foe,zoe=tr,Voe=Ra,ON=_h,Uoe=Vr,Hoe=Uoe(function(){ON(1)});zoe({target:"Object",stat:!0,forced:Hoe},{keys:function(t){return ON(Voe(t))}});var Woe=bn,Goe=Woe.Object.keys,Koe=Goe,qoe=Koe,Yoe=qoe,Xoe=Ud,Qoe=String,Ho=function(e){if(Xoe(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Qoe(e)},db={},Zoe=PN,Joe=UT,eae=Joe.concat("length","prototype");db.f=Object.getOwnPropertyNames||function(t){return Zoe(t,eae)};var _N={},tae=tl,rae=es,DN=db.f,nae=qc,MN=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],oae=function(e){try{return DN(e)}catch{return nae(MN)}};_N.f=function(t){return MN&&tae(t)==="Window"?oae(t):DN(rae(t))};var Dh={};Dh.f=Object.getOwnPropertySymbols;var aae=ab,Yc=function(e,t,r,n){return n&&n.enumerable?e[t]=r:aae(e,t,r),e},iae=ts,WT=function(e,t,r){return iae.f(e,t,r)},Mh={},sae=Ln;Mh.f=sae;var Zk=bn,lae=Uo,cae=Mh,uae=ts.f,In=function(e){var t=Zk.Symbol||(Zk.Symbol={});lae(t,e)||uae(t,e,{value:cae.f(e)})},dae=Ka,fae=$a,pae=Ln,hae=Yc,AN=function(){var e=fae("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=pae("toPrimitive");t&&!t[n]&&hae(t,n,function(o){return dae(r,this)},{arity:1})},mae=FT,vae=Ud,gae=mae?{}.toString:function(){return"[object "+vae(this)+"]"},yae=FT,bae=ts.f,wae=ab,xae=Uo,Sae=gae,Cae=Ln,Jk=Cae("toStringTag"),Yl=function(e,t,r,n){var o=r?e:e&&e.prototype;o&&(xae(o,Jk)||bae(o,Jk,{configurable:!0,value:t}),n&&!yae&&wae(o,"toString",Sae))},Tae=kn,Pae=Do,eI=Tae.WeakMap,$ae=Pae(eI)&&/native code/.test(String(eI)),Rae=$ae,jN=kn,kae=oa,Iae=ab,C1=Uo,T1=jT,Eae=ub,Oae=cb,tI="Object already initialized",Zx=jN.TypeError,_ae=jN.WeakMap,Rg,Gp,kg,Dae=function(e){return kg(e)?Gp(e):Rg(e,{})},Mae=function(e){return function(t){var r;if(!kae(t)||(r=Gp(t)).type!==e)throw new Zx("Incompatible receiver, "+e+" required");return r}};if(Rae||T1.state){var ds=T1.state||(T1.state=new _ae);ds.get=ds.get,ds.has=ds.has,ds.set=ds.set,Rg=function(e,t){if(ds.has(e))throw new Zx(tI);return t.facade=e,ds.set(e,t),t},Gp=function(e){return ds.get(e)||{}},kg=function(e){return ds.has(e)}}else{var fu=Eae("state");Oae[fu]=!0,Rg=function(e,t){if(C1(e,fu))throw new Zx(tI);return t.facade=e,Iae(e,fu,t),t},Gp=function(e){return C1(e,fu)?e[fu]:{}},kg=function(e){return C1(e,fu)}}var Ah={set:Rg,get:Gp,has:kg,enforce:Dae,getterFor:Mae},Aae=tl,Wd=Array.isArray||function(t){return Aae(t)==="Array"},rI=Wd,jae=ib,Lae=oa,Nae=Ln,Fae=Nae("species"),nI=Array,Bae=function(e){var t;return rI(e)&&(t=e.constructor,jae(t)&&(t===nI||rI(t.prototype))?t=void 0:Lae(t)&&(t=t[Fae],t===null&&(t=void 0))),t===void 0?nI:t},zae=Bae,GT=function(e,t){return new(zae(e))(t===0?0:t)},Vae=Eh,Uae=Nr,Hae=ob,Wae=Ra,Gae=nl,Kae=GT,oI=Uae([].push),dl=function(e){var t=e===1,r=e===2,n=e===3,o=e===4,a=e===6,i=e===7,s=e===5||a;return function(l,c,u,d){for(var f=Wae(l),h=Hae(f),p=Gae(h),m=Vae(c,u),x=0,b=d||Kae,w=t?b(l,p):r||i?b(l,0):void 0,g,S;p>x;x++)if((s||x in h)&&(g=h[x],S=m(g,x,f),e))if(t)w[x]=S;else if(S)switch(e){case 3:return!0;case 5:return g;case 6:return x;case 2:oI(w,g)}else switch(e){case 4:return!1;case 7:oI(w,g)}return a?-1:n||o?o:w}},Xc={forEach:dl(0),map:dl(1),filter:dl(2),some:dl(3),every:dl(4),find:dl(5),findIndex:dl(6),filterReject:dl(7)},fb=tr,jh=kn,KT=Ka,qae=Nr,bd=Wn,wd=zd,Yae=Vr,So=Uo,Xae=Jn,Jx=Rs,pb=es,qT=NT,Qae=Ho,eS=Fd,xd=Hd,LN=_h,Zae=db,NN=_N,Jae=Dh,FN=Th,BN=ts,eie=sb,zN=Ph,aI=Yc,tie=WT,YT=Vd,rie=ub,VN=cb,iI=LT,nie=Ln,oie=Mh,aie=In,iie=AN,sie=Yl,UN=Ah,hb=Xc.forEach,fa=rie("hidden"),mb="Symbol",Kp="prototype",lie=UN.set,sI=UN.getterFor(mb),Gi=Object[Kp],Tc=jh.Symbol,zf=Tc&&Tc[Kp],cie=jh.RangeError,uie=jh.TypeError,P1=jh.QObject,HN=FN.f,Pc=BN.f,WN=NN.f,die=zN.f,GN=qae([].push),Zs=YT("symbols"),Lh=YT("op-symbols"),fie=YT("wks"),tS=!P1||!P1[Kp]||!P1[Kp].findChild,KN=function(e,t,r){var n=HN(Gi,t);n&&delete Gi[t],Pc(e,t,r),n&&e!==Gi&&Pc(Gi,t,n)},rS=bd&&Yae(function(){return xd(Pc({},"a",{get:function(){return Pc(this,"a",{value:7}).a}})).a!==7})?KN:Pc,$1=function(e,t){var r=Zs[e]=xd(zf);return lie(r,{type:mb,tag:e,description:t}),bd||(r.description=t),r},vb=function(t,r,n){t===Gi&&vb(Lh,r,n),Jx(t);var o=qT(r);return Jx(n),So(Zs,o)?(n.enumerable?(So(t,fa)&&t[fa][o]&&(t[fa][o]=!1),n=xd(n,{enumerable:eS(0,!1)})):(So(t,fa)||Pc(t,fa,eS(1,xd(null))),t[fa][o]=!0),rS(t,o,n)):Pc(t,o,n)},XT=function(t,r){Jx(t);var n=pb(r),o=LN(n).concat(QN(n));return hb(o,function(a){(!bd||KT(qN,n,a))&&vb(t,a,n[a])}),t},pie=function(t,r){return r===void 0?xd(t):XT(xd(t),r)},qN=function(t){var r=qT(t),n=KT(die,this,r);return this===Gi&&So(Zs,r)&&!So(Lh,r)?!1:n||!So(this,r)||!So(Zs,r)||So(this,fa)&&this[fa][r]?n:!0},YN=function(t,r){var n=pb(t),o=qT(r);if(!(n===Gi&&So(Zs,o)&&!So(Lh,o))){var a=HN(n,o);return a&&So(Zs,o)&&!(So(n,fa)&&n[fa][o])&&(a.enumerable=!0),a}},XN=function(t){var r=WN(pb(t)),n=[];return hb(r,function(o){!So(Zs,o)&&!So(VN,o)&&GN(n,o)}),n},QN=function(e){var t=e===Gi,r=WN(t?Lh:pb(e)),n=[];return hb(r,function(o){So(Zs,o)&&(!t||So(Gi,o))&&GN(n,Zs[o])}),n};wd||(Tc=function(){if(Xae(zf,this))throw new uie("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:Qae(arguments[0]),r=iI(t),n=function(o){var a=this===void 0?jh:this;a===Gi&&KT(n,Lh,o),So(a,fa)&&So(a[fa],r)&&(a[fa][r]=!1);var i=eS(1,o);try{rS(a,r,i)}catch(s){if(!(s instanceof cie))throw s;KN(a,r,i)}};return bd&&tS&&rS(Gi,r,{configurable:!0,set:n}),$1(r,t)},zf=Tc[Kp],aI(zf,"toString",function(){return sI(this).tag}),aI(Tc,"withoutSetter",function(e){return $1(iI(e),e)}),zN.f=qN,BN.f=vb,eie.f=XT,FN.f=YN,Zae.f=NN.f=XN,Jae.f=QN,oie.f=function(e){return $1(nie(e),e)},bd&&tie(zf,"description",{configurable:!0,get:function(){return sI(this).description}}));fb({global:!0,constructor:!0,wrap:!0,forced:!wd,sham:!wd},{Symbol:Tc});hb(LN(fie),function(e){aie(e)});fb({target:mb,stat:!0,forced:!wd},{useSetter:function(){tS=!0},useSimple:function(){tS=!1}});fb({target:"Object",stat:!0,forced:!wd,sham:!bd},{create:pie,defineProperty:vb,defineProperties:XT,getOwnPropertyDescriptor:YN});fb({target:"Object",stat:!0,forced:!wd},{getOwnPropertyNames:XN});iie();sie(Tc,mb);VN[fa]=!0;var hie=zd,ZN=hie&&!!Symbol.for&&!!Symbol.keyFor,mie=tr,vie=$a,gie=Uo,yie=Ho,JN=Vd,bie=ZN,R1=JN("string-to-symbol-registry"),wie=JN("symbol-to-string-registry");mie({target:"Symbol",stat:!0,forced:!bie},{for:function(e){var t=yie(e);if(gie(R1,t))return R1[t];var r=vie("Symbol")(t);return R1[t]=r,wie[r]=t,r}});var xie=tr,Sie=Uo,Cie=Rh,Tie=kh,Pie=Vd,$ie=ZN,lI=Pie("symbol-to-string-registry");xie({target:"Symbol",stat:!0,forced:!$ie},{keyFor:function(t){if(!Cie(t))throw new TypeError(Tie(t)+" is not a symbol");if(Sie(lI,t))return lI[t]}});var Rie=Nr,cI=Wd,kie=Do,uI=tl,Iie=Ho,dI=Rie([].push),Eie=function(e){if(kie(e))return e;if(cI(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];typeof o=="string"?dI(r,o):(typeof o=="number"||uI(o)==="Number"||uI(o)==="String")&&dI(r,Iie(o))}var a=r.length,i=!0;return function(s,l){if(i)return i=!1,l;if(cI(this))return l;for(var c=0;c<a;c++)if(r[c]===s)return l}}},Oie=tr,e5=$a,t5=Ch,_ie=Ka,Nh=Nr,r5=Vr,fI=Do,pI=Rh,n5=qc,Die=Eie,Mie=zd,Aie=String,Al=e5("JSON","stringify"),Nm=Nh(/./.exec),hI=Nh("".charAt),jie=Nh("".charCodeAt),Lie=Nh("".replace),Nie=Nh(1 .toString),Fie=/[\uD800-\uDFFF]/g,mI=/^[\uD800-\uDBFF]$/,vI=/^[\uDC00-\uDFFF]$/,gI=!Mie||r5(function(){var e=e5("Symbol")("stringify detection");return Al([e])!=="[null]"||Al({a:e})!=="{}"||Al(Object(e))!=="{}"}),yI=r5(function(){return Al("\uDF06\uD834")!=='"\\udf06\\ud834"'||Al("\uDEAD")!=='"\\udead"'}),Bie=function(e,t){var r=n5(arguments),n=Die(t);if(!(!fI(n)&&(e===void 0||pI(e))))return r[1]=function(o,a){if(fI(n)&&(a=_ie(n,this,Aie(o),a)),!pI(a))return a},t5(Al,null,r)},zie=function(e,t,r){var n=hI(r,t-1),o=hI(r,t+1);return Nm(mI,e)&&!Nm(vI,o)||Nm(vI,e)&&!Nm(mI,n)?"\\u"+Nie(jie(e,0),16):e};Al&&Oie({target:"JSON",stat:!0,arity:3,forced:gI||yI},{stringify:function(t,r,n){var o=n5(arguments),a=t5(gI?Bie:Al,null,o);return yI&&typeof a=="string"?Lie(a,Fie,zie):a}});var Vie=tr,Uie=zd,Hie=Vr,o5=Dh,Wie=Ra,Gie=!Uie||Hie(function(){o5.f(1)});Vie({target:"Object",stat:!0,forced:Gie},{getOwnPropertySymbols:function(t){var r=o5.f;return r?r(Wie(t)):[]}});var Kie=bn,qie=Kie.Object.getOwnPropertySymbols,Yie=qie,a5=Yie,Xie=a5,i5={exports:{}},Qie=tr,Zie=Vr,Jie=es,s5=Th.f,l5=Wn,ese=!l5||Zie(function(){s5(1)});Qie({target:"Object",stat:!0,forced:ese,sham:!l5},{getOwnPropertyDescriptor:function(t,r){return s5(Jie(t),r)}});var tse=bn,c5=tse.Object,rse=i5.exports=function(t,r){return c5.getOwnPropertyDescriptor(t,r)};c5.getOwnPropertyDescriptor.sham&&(rse.sham=!0);var nse=i5.exports,ose=nse,ase=ose,ise=ase,sse=$a,lse=Nr,cse=db,use=Dh,dse=Rs,fse=lse([].concat),pse=sse("Reflect","ownKeys")||function(t){var r=cse.f(dse(t)),n=use.f;return n?fse(r,n(t)):r},hse=Wn,mse=ts,vse=Fd,Fh=function(e,t,r){hse?mse.f(e,t,vse(0,r)):e[t]=r},gse=tr,yse=Wn,bse=pse,wse=es,xse=Th,Sse=Fh;gse({target:"Object",stat:!0,sham:!yse},{getOwnPropertyDescriptors:function(t){for(var r=wse(t),n=xse.f,o=bse(r),a={},i=0,s,l;o.length>i;)l=n(r,s=o[i++]),l!==void 0&&Sse(a,s,l);return a}});var Cse=bn,Tse=Cse.Object.getOwnPropertyDescriptors,Pse=Tse,$se=Pse,Rse=$se,u5={exports:{}},kse=tr,Ise=Wn,bI=sb.f;kse({target:"Object",stat:!0,forced:Object.defineProperties!==bI,sham:!Ise},{defineProperties:bI});var Ese=bn,d5=Ese.Object,Ose=u5.exports=function(t,r){return d5.defineProperties(t,r)};d5.defineProperties.sham&&(Ose.sham=!0);var _se=u5.exports,Dse=_se,Mse=Dse,Ase=Mse,f5={exports:{}},jse=tr,Lse=Wn,wI=ts.f;jse({target:"Object",stat:!0,forced:Object.defineProperty!==wI,sham:!Lse},{defineProperty:wI});var Nse=bn,p5=Nse.Object,Fse=f5.exports=function(t,r,n){return p5.defineProperty(t,r,n)};p5.defineProperty.sham&&(Fse.sham=!0);var Bse=f5.exports,zse=Bse,h5=zse,Vse=h5,m5={exports:{}},xI=Wn,Use=Nr,Hse=Ka,Wse=Vr,k1=_h,Gse=Dh,Kse=Ph,qse=Ra,Yse=ob,pu=Object.assign,SI=Object.defineProperty,Xse=Use([].concat),v5=!pu||Wse(function(){if(xI&&pu({b:1},pu(SI({},"a",{enumerable:!0,get:function(){SI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),pu({},e)[r]!==7||k1(pu({},t)).join("")!==n})?function(t,r){for(var n=qse(t),o=arguments.length,a=1,i=Gse.f,s=Kse.f;o>a;)for(var l=Yse(arguments[a++]),c=i?Xse(k1(l),i(l)):k1(l),u=c.length,d=0,f;u>d;)f=c[d++],(!xI||Hse(s,l,f))&&(n[f]=l[f]);return n}:pu,Qse=tr,CI=v5;Qse({target:"Object",stat:!0,arity:2,forced:Object.assign!==CI},{assign:CI});var Zse=bn,Jse=Zse.Object.assign,ele=Jse,g5=ele,tle=g5,rle=tle,nle=rle,ole=nle,ale=ole,ile=tr,TI=bN;ile({target:"Function",proto:!0,forced:Function.bind!==TI},{bind:TI});var sle=kn,lle=bn,Po=function(e,t){var r=lle[e+"Prototype"],n=r&&r[t];if(n)return n;var o=sle[e],a=o&&o.prototype;return a&&a[t]},cle=Po,ule=cle("Function","bind"),dle=Jn,fle=ule,I1=Function.prototype,ple=function(e){var t=e.bind;return e===I1||dle(I1,e)&&t===I1.bind?fle:t},hle=ple,y5=hle,mle=y5,vle=mle,gle=vle,yle=gle,QT=yle;(function(e){var t=ale,r=QT;function n(){var o;return e.exports=n=t?r(o=t).call(o):function(a){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var l in s)({}).hasOwnProperty.call(s,l)&&(a[l]=s[l])}return a},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(m5);var ble=m5.exports,b5={exports:{}},w5={exports:{}},wle=tr,xle=Wd;wle({target:"Array",stat:!0},{isArray:xle});var Sle=bn,Cle=Sle.Array.isArray,Tle=Cle,x5=Tle,Ple=x5,$le=Ple,Rle=$le,kle=Rle,S5=kle,C5={exports:{}};(function(e){function t(r,n){(n==null||n>r.length)&&(n=r.length);for(var o=0,a=Array(n);o<n;o++)a[o]=r[o];return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(C5);var T5=C5.exports;(function(e){var t=S5,r=T5;function n(o){if(t(o))return r(o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(w5);var Ile=w5.exports,P5={exports:{}},Ele=TypeError,Ole=9007199254740991,ZT=function(e){if(e>Ole)throw Ele("Maximum allowed index exceeded");return e},_le=Vr,Dle=Ln,Mle=$h,Ale=Dle("species"),Bh=function(e){return Mle>=51||!_le(function(){var t=[],r=t.constructor={};return r[Ale]=function(){return{foo:1}},t[e](Boolean).foo!==1})},jle=tr,Lle=Vr,Nle=Wd,Fle=oa,Ble=Ra,zle=nl,PI=ZT,$I=Fh,Vle=GT,Ule=Bh,Hle=Ln,Wle=$h,$5=Hle("isConcatSpreadable"),Gle=Wle>=51||!Lle(function(){var e=[];return e[$5]=!1,e.concat()[0]!==e}),Kle=function(e){if(!Fle(e))return!1;var t=e[$5];return t!==void 0?!!t:Nle(e)},qle=!Gle||!Ule("concat");jle({target:"Array",proto:!0,arity:1,forced:qle},{concat:function(t){var r=Ble(this),n=Vle(r,0),o=0,a,i,s,l,c;for(a=-1,s=arguments.length;a<s;a++)if(c=a===-1?r:arguments[a],Kle(c))for(l=zle(c),PI(o+l),i=0;i<l;i++,o++)i in c&&$I(n,o,c[i]);else PI(o+1),$I(n,o++,c);return n.length=o,n}});var Yle=In;Yle("asyncIterator");var Xle=In;Xle("hasInstance");var Qle=In;Qle("isConcatSpreadable");var Zle=In;Zle("iterator");var Jle=In;Jle("match");var ece=In;ece("matchAll");var tce=In;tce("replace");var rce=In;rce("search");var nce=In;nce("species");var oce=In;oce("split");var ace=In,ice=AN;ace("toPrimitive");ice();var sce=$a,lce=In,cce=Yl;lce("toStringTag");cce(sce("Symbol"),"Symbol");var uce=In;uce("unscopables");var dce=kn,fce=Yl;fce(dce.JSON,"JSON",!0);var pce=bn,hce=pce.Symbol,Gd={},nS=Wn,mce=Uo,R5=Function.prototype,vce=nS&&Object.getOwnPropertyDescriptor,JT=mce(R5,"name"),gce=JT&&(function(){}).name==="something",yce=JT&&(!nS||nS&&vce(R5,"name").configurable),k5={EXISTS:JT,PROPER:gce,CONFIGURABLE:yce},bce=Vr,I5=!bce(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),wce=Uo,xce=Do,Sce=Ra,Cce=ub,Tce=I5,RI=Cce("IE_PROTO"),oS=Object,Pce=oS.prototype,gb=Tce?oS.getPrototypeOf:function(e){var t=Sce(e);if(wce(t,RI))return t[RI];var r=t.constructor;return xce(r)&&t instanceof r?r.prototype:t instanceof oS?Pce:null},$ce=Vr,Rce=Do,kce=oa,Ice=Hd,kI=gb,Ece=Yc,Oce=Ln,aS=Oce("iterator"),E5=!1,Hs,E1,O1;[].keys&&(O1=[].keys(),"next"in O1?(E1=kI(kI(O1)),E1!==Object.prototype&&(Hs=E1)):E5=!0);var _ce=!kce(Hs)||$ce(function(){var e={};return Hs[aS].call(e)!==e});_ce?Hs={}:Hs=Ice(Hs);Rce(Hs[aS])||Ece(Hs,aS,function(){return this});var O5={IteratorPrototype:Hs,BUGGY_SAFARI_ITERATORS:E5},Dce=O5.IteratorPrototype,Mce=Hd,Ace=Fd,jce=Yl,Lce=Gd,Nce=function(){return this},_5=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Mce(Dce,{next:Ace(+!n,r)}),jce(e,o,!1,!0),Lce[o]=Nce,e},Fce=Nr,Bce=Kc,zce=function(e,t,r){try{return Fce(Bce(Object.getOwnPropertyDescriptor(e,t)[r]))}catch{}},Vce=oa,Uce=function(e){return Vce(e)||e===null},Hce=Uce,Wce=String,Gce=TypeError,Kce=function(e){if(Hce(e))return e;throw new Gce("Can't set "+Wce(e)+" as a prototype")},qce=zce,Yce=oa,Xce=rl,Qce=Kce,Zce=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=qce(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch{}return function(o,a){return Xce(o),Qce(a),Yce(o)&&(e?r(o,a):o.__proto__=a),o}}():void 0),Jce=tr,eue=Ka,D5=k5,tue=_5,rue=gb,nue=Yl,II=Yc,oue=Ln,EI=Gd,M5=O5,aue=D5.PROPER;D5.CONFIGURABLE;M5.IteratorPrototype;var Fm=M5.BUGGY_SAFARI_ITERATORS,_1=oue("iterator"),OI="keys",Bm="values",_I="entries",iue=function(){return this},A5=function(e,t,r,n,o,a,i){tue(r,t,n);var s=function(b){if(b===o&&f)return f;if(!Fm&&b&&b in u)return u[b];switch(b){case OI:return function(){return new r(this,b)};case Bm:return function(){return new r(this,b)};case _I:return function(){return new r(this,b)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,u=e.prototype,d=u[_1]||u["@@iterator"]||o&&u[o],f=!Fm&&d||s(o),h=t==="Array"&&u.entries||d,p,m,x;if(h&&(p=rue(h.call(new e)),p!==Object.prototype&&p.next&&(nue(p,l,!0,!0),EI[l]=iue)),aue&&o===Bm&&d&&d.name!==Bm&&(c=!0,f=function(){return eue(d,this)}),o)if(m={values:s(Bm),keys:a?f:s(OI),entries:s(_I)},i)for(x in m)(Fm||c||!(x in u))&&II(u,x,m[x]);else Jce({target:t,proto:!0,forced:Fm||c},m);return i&&u[_1]!==f&&II(u,_1,f,{name:o}),EI[t]=f,m},eP=function(e,t){return{value:e,done:t}},sue=es,DI=Gd,j5=Ah;ts.f;var lue=A5,zm=eP,L5="Array Iterator",cue=j5.set,uue=j5.getterFor(L5);lue(Array,"Array",function(e,t){cue(this,{type:L5,target:sue(e),index:0,kind:t})},function(){var e=uue(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,zm(void 0,!0);switch(e.kind){case"keys":return zm(r,!1);case"values":return zm(t[r],!1)}return zm([r,t[r]],!1)},"values");DI.Arguments=DI.Array;var due={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},fue=due,pue=kn,hue=Yl,MI=Gd;for(var D1 in fue)hue(pue[D1],D1),MI[D1]=MI.Array;var mue=hce,vue=mue,gue=Ln,yue=ts.f,AI=gue("metadata"),jI=Function.prototype;jI[AI]===void 0&&yue(jI,AI,{value:null});var bue=In;bue("asyncDispose");var wue=In;wue("dispose");var xue=In;xue("metadata");var Sue=vue,Cue=Sue,Tue=$a,Pue=Nr,tP=Tue("Symbol"),$ue=tP.keyFor,Rue=Pue(tP.prototype.valueOf),N5=tP.isRegisteredSymbol||function(t){try{return $ue(Rue(t))!==void 0}catch{return!1}},kue=tr,Iue=N5;kue({target:"Symbol",stat:!0},{isRegisteredSymbol:Iue});var Eue=Vd,F5=$a,Oue=Nr,_ue=Rh,Due=Ln,Ig=F5("Symbol"),LI=Ig.isWellKnownSymbol,B5=F5("Object","getOwnPropertyNames"),Mue=Oue(Ig.prototype.valueOf),NI=Eue("wks");for(var M1=0,FI=B5(Ig),Aue=FI.length;M1<Aue;M1++)try{var BI=FI[M1];_ue(Ig[BI])&&Due(BI)}catch{}var z5=function(t){if(LI&&LI(t))return!0;try{for(var r=Mue(t),n=0,o=B5(NI),a=o.length;n<a;n++)if(NI[o[n]]==r)return!0}catch{}return!1},jue=tr,Lue=z5;jue({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Lue});var Nue=In;Nue("customMatcher");var Fue=In;Fue("observable");var Bue=tr,zue=N5;Bue({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:zue});var Vue=tr,Uue=z5;Vue({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Uue});var Hue=In;Hue("matcher");var Wue=In;Wue("metadataKey");var Gue=In;Gue("patternMatch");var Kue=In;Kue("replaceAll");var que=Cue,Yue=que,rP=Yue,nP=Nr,Xue=Oh,Que=Ho,Zue=rl,Jue=nP("".charAt),zI=nP("".charCodeAt),ede=nP("".slice),VI=function(e){return function(t,r){var n=Que(Zue(t)),o=Xue(r),a=n.length,i,s;return o<0||o>=a?e?"":void 0:(i=zI(n,o),i<55296||i>56319||o+1===a||(s=zI(n,o+1))<56320||s>57343?e?Jue(n,o):i:e?ede(n,o,o+2):(i-55296<<10)+(s-56320)+65536)}},V5={codeAt:VI(!1),charAt:VI(!0)},tde=V5.charAt,rde=Ho,U5=Ah,nde=A5,UI=eP,H5="String Iterator",ode=U5.set,ade=U5.getterFor(H5);nde(String,"String",function(e){ode(this,{type:H5,string:rde(e),index:0})},function(){var t=ade(this),r=t.string,n=t.index,o;return n>=r.length?UI(void 0,!0):(o=tde(r,n),t.index+=o.length,UI(o,!1))});var ide=Ud,HI=AT,sde=MT,lde=Gd,cde=Ln,ude=cde("iterator"),yb=function(e){if(!sde(e))return HI(e,ude)||HI(e,"@@iterator")||lde[ide(e)]},dde=yb,fde=dde,pde=fde,hde=pde,mde=hde,vde=mde,gde=vde,yde=gde,W5=yde,bde=Ka,WI=Rs,wde=AT,xde=function(e,t,r){var n,o;WI(e);try{if(n=wde(e,"return"),!n){if(t==="throw")throw r;return r}n=bde(n,e)}catch(a){o=!0,n=a}if(t==="throw")throw r;if(o)throw n;return WI(n),r},Sde=Rs,Cde=xde,Tde=function(e,t,r,n){try{return n?t(Sde(r)[0],r[1]):t(r)}catch(o){Cde(e,"throw",o)}},Pde=Ln,$de=Gd,Rde=Pde("iterator"),kde=Array.prototype,Ide=function(e){return e!==void 0&&($de.Array===e||kde[Rde]===e)},Ede=Ka,Ode=Kc,_de=Rs,Dde=kh,Mde=yb,Ade=TypeError,G5=function(e,t){var r=arguments.length<2?Mde(e):t;if(Ode(r))return _de(Ede(r,e));throw new Ade(Dde(e)+" is not iterable")},jde=Eh,Lde=Ka,Nde=Ra,Fde=Tde,Bde=Ide,zde=ib,Vde=nl,GI=Fh,Ude=G5,Hde=yb,KI=Array,K5=function(t){var r=Nde(t),n=zde(this),o=arguments.length,a=o>1?arguments[1]:void 0,i=a!==void 0;i&&(a=jde(a,o>2?arguments[2]:void 0));var s=Hde(r),l=0,c,u,d,f,h,p;if(s&&!(this===KI&&Bde(s)))for(u=n?new this:[],f=Ude(r,s),h=f.next;!(d=Lde(h,f)).done;l++)p=i?Fde(f,a,[d.value,l],!0):d.value,GI(u,l,p);else for(c=Vde(r),u=n?new this(c):KI(c);c>l;l++)p=i?a(r[l],l):r[l],GI(u,l,p);return u.length=l,u},Wde=Ln,q5=Wde("iterator"),Y5=!1;try{var Gde=0,qI={next:function(){return{done:!!Gde++}},return:function(){Y5=!0}};qI[q5]=function(){return this},Array.from(qI,function(){throw 2})}catch{}var Kde=function(e,t){try{if(!t&&!Y5)return!1}catch{return!1}var r=!1;try{var n={};n[q5]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},qde=tr,Yde=K5,Xde=Kde,Qde=!Xde(function(e){Array.from(e)});qde({target:"Array",stat:!0,forced:Qde},{from:Yde});var Zde=bn,Jde=Zde.Array.from,efe=Jde,tfe=efe,rfe=tfe,nfe=rfe,ofe=nfe,afe=ofe,X5=afe;(function(e){var t=rP,r=W5,n=X5;function o(a){if(typeof t<"u"&&r(a)!=null||a["@@iterator"]!=null)return n(a)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(P5);var ife=P5.exports,Q5={exports:{}},sfe=tr,YI=Wd,lfe=ib,cfe=oa,XI=lb,ufe=nl,dfe=es,ffe=Fh,pfe=Ln,hfe=Bh,mfe=qc,vfe=hfe("slice"),gfe=pfe("species"),A1=Array,yfe=Math.max;sfe({target:"Array",proto:!0,forced:!vfe},{slice:function(t,r){var n=dfe(this),o=ufe(n),a=XI(t,o),i=XI(r===void 0?o:r,o),s,l,c;if(YI(n)&&(s=n.constructor,lfe(s)&&(s===A1||YI(s.prototype))?s=void 0:cfe(s)&&(s=s[gfe],s===null&&(s=void 0)),s===A1||s===void 0))return mfe(n,a,i);for(l=new(s===void 0?A1:s)(yfe(i-a,0)),c=0;a<i;a++,c++)a in n&&ffe(l,c,n[a]);return l.length=c,l}});var bfe=Po,wfe=bfe("Array","slice"),xfe=Jn,Sfe=wfe,j1=Array.prototype,Cfe=function(e){var t=e.slice;return e===j1||xfe(j1,e)&&t===j1.slice?Sfe:t},Tfe=Cfe,Z5=Tfe,Pfe=Z5,$fe=Pfe,Rfe=$fe,kfe=Rfe,Ife=kfe;(function(e){var t=Ife,r=X5,n=T5;function o(a,i){if(a){var s;if(typeof a=="string")return n(a,i);var l=t(s={}.toString.call(a)).call(s,8,-1);return l==="Object"&&a.constructor&&(l=a.constructor.name),l==="Map"||l==="Set"?r(a):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?n(a,i):void 0}}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(Q5);var J5=Q5.exports,e3={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(e3);var Efe=e3.exports;(function(e){var t=Ile,r=ife,n=J5,o=Efe;function a(i){return t(i)||r(i)||n(i)||o()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(b5);var Ofe=b5.exports,t3={exports:{}},_fe=a5,Dfe=_fe,Mfe=Dfe,Afe=Mfe,jfe=Afe,Lfe=tr,Nfe=VT.includes,Ffe=Vr,Bfe=Ffe(function(){return!Array(1).includes()});Lfe({target:"Array",proto:!0,forced:Bfe},{includes:function(t){return Nfe(this,t,arguments.length>1?arguments[1]:void 0)}});var zfe=Po,Vfe=zfe("Array","includes"),Ufe=oa,Hfe=tl,Wfe=Ln,Gfe=Wfe("match"),Kfe=function(e){var t;return Ufe(e)&&((t=e[Gfe])!==void 0?!!t:Hfe(e)==="RegExp")},qfe=Kfe,Yfe=TypeError,r3=function(e){if(qfe(e))throw new Yfe("The method doesn't accept regular expressions");return e},Xfe=Ln,Qfe=Xfe("match"),n3=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Qfe]=!1,"/./"[e](t)}catch{}}return!1},Zfe=tr,Jfe=Nr,epe=r3,tpe=rl,QI=Ho,rpe=n3,npe=Jfe("".indexOf);Zfe({target:"String",proto:!0,forced:!rpe("includes")},{includes:function(t){return!!~npe(QI(tpe(this)),QI(epe(t)),arguments.length>1?arguments[1]:void 0)}});var ope=Po,ape=ope("String","includes"),ZI=Jn,ipe=Vfe,spe=ape,L1=Array.prototype,N1=String.prototype,lpe=function(e){var t=e.includes;return e===L1||ZI(L1,e)&&t===L1.includes?ipe:typeof e=="string"||e===N1||ZI(N1,e)&&t===N1.includes?spe:t},cpe=lpe,upe=cpe,dpe=upe,fpe=dpe,ppe=fpe,hpe=ppe,o3=hpe,a3={exports:{}};(function(e){var t=o3;function r(n,o){if(n==null)return{};var a={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(t(o).call(o,i))continue;a[i]=n[i]}return a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(a3);var mpe=a3.exports;(function(e){var t=jfe,r=o3,n=mpe;function o(a,i){if(a==null)return{};var s,l,c=n(a,i);if(t){var u=t(a);for(l=0;l<u.length;l++)s=u[l],r(i).call(i,s)||{}.propertyIsEnumerable.call(a,s)&&(c[s]=a[s])}return c}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(t3);var vpe=t3.exports,i3={exports:{}},gpe=Mh,ype=gpe.f("iterator"),bpe=ype,wpe=bpe,xpe=wpe,Spe=xpe,Cpe=Spe,Tpe=Cpe,Ppe=Tpe;(function(e){var t=rP,r=Ppe;function n(o){"@babel/helpers - typeof";return e.exports=n=typeof t=="function"&&typeof r=="symbol"?function(a){return typeof a}:function(a){return a&&typeof t=="function"&&a.constructor===t&&a!==t.prototype?"symbol":typeof a},e.exports.__esModule=!0,e.exports.default=e.exports,n(o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(i3);var bb=i3.exports,s3={exports:{}};(function(e){function t(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(s3);var $pe=s3.exports,l3={exports:{}},Rpe=h5,kpe=Rpe,Ipe=kpe,Epe=Ipe,oP=Epe,c3={exports:{}},u3={exports:{}},Ope=Mh,_pe=Ope.f("toPrimitive"),Dpe=_pe,Mpe=Dpe,Ape=Mpe,jpe=Ape,Lpe=jpe,Npe=Lpe,Fpe=Npe;(function(e){var t=Fpe,r=bb.default;function n(o,a){if(r(o)!="object"||!o)return o;var i=o[t];if(i!==void 0){var s=i.call(o,a||"default");if(r(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(u3);var Bpe=u3.exports;(function(e){var t=bb.default,r=Bpe;function n(o){var a=r(o,"string");return t(a)=="symbol"?a:a+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(c3);var d3=c3.exports;(function(e){var t=oP,r=d3;function n(a,i){for(var s=0;s<i.length;s++){var l=i[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),t(a,r(l.key),l)}}function o(a,i,s){return i&&n(a.prototype,i),s&&n(a,s),t(a,"prototype",{writable:!1}),a}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(l3);var zpe=l3.exports,f3={exports:{}};(function(e){function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(f3);var p3=f3.exports,h3={exports:{}},Vpe=tr,Upe=Wn,Hpe=Hd;Vpe({target:"Object",stat:!0,sham:!Upe},{create:Hpe});var Wpe=bn,Gpe=Wpe.Object,Kpe=function(t,r){return Gpe.create(t,r)},qpe=Kpe,Ype=qpe,Xpe=Ype,Qpe=Xpe,Zpe=Qpe,Jpe=Zpe,ehe=Jpe,m3={exports:{}},the=tr,rhe=Zce;the({target:"Object",stat:!0},{setPrototypeOf:rhe});var nhe=bn,ohe=nhe.Object.setPrototypeOf,ahe=ohe,ihe=ahe,she=ihe,lhe=she,che=lhe,uhe=che,v3=uhe;(function(e){var t=v3,r=QT;function n(o,a){var i;return e.exports=n=t?r(i=t).call(i):function(s,l){return s.__proto__=l,s},e.exports.__esModule=!0,e.exports.default=e.exports,n(o,a)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(m3);var dhe=m3.exports;(function(e){var t=ehe,r=oP,n=dhe;function o(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=t(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),r(a,"prototype",{writable:!1}),i&&n(a,i)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(h3);var fhe=h3.exports,g3={exports:{}};(function(e){var t=bb.default,r=p3;function n(o,a){if(a&&(t(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(g3);var phe=g3.exports,y3={exports:{}},hhe=tr,mhe=Vr,vhe=Ra,b3=gb,ghe=I5,yhe=mhe(function(){b3(1)});hhe({target:"Object",stat:!0,forced:yhe,sham:!ghe},{getPrototypeOf:function(t){return b3(vhe(t))}});var bhe=bn,whe=bhe.Object.getPrototypeOf,xhe=whe,She=xhe,Che=She,The=Che,Phe=The,$he=Phe,Rhe=$he;(function(e){var t=v3,r=QT,n=Rhe;function o(a){var i;return e.exports=o=t?r(i=n).call(i):function(s){return s.__proto__||n(s)},e.exports.__esModule=!0,e.exports.default=e.exports,o(a)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(y3);var khe=y3.exports,w3={exports:{}};(function(e){var t=oP,r=d3;function n(o,a,i){return(a=r(a))in o?t(o,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[a]=i,o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(w3);var Ihe=w3.exports,Ehe=Vr,Kd=function(e,t){var r=[][e];return!!r&&Ehe(function(){r.call(null,t||function(){return 1},1)})},Ohe=tr,_he=nb,Dhe=VT.indexOf,Mhe=Kd,iS=_he([].indexOf),x3=!!iS&&1/iS([1],1,-0)<0,Ahe=x3||!Mhe("indexOf");Ohe({target:"Array",proto:!0,forced:Ahe},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return x3?iS(this,t,r)||0:Dhe(this,t,r)}});var jhe=Po,Lhe=jhe("Array","indexOf"),Nhe=Jn,Fhe=Lhe,F1=Array.prototype,Bhe=function(e){var t=e.indexOf;return e===F1||Nhe(F1,e)&&t===F1.indexOf?Fhe:t},zhe=Bhe,Vhe=zhe,Uhe=Vhe,Hhe=tr,Whe=Xc.map,Ghe=Bh,Khe=Ghe("map");Hhe({target:"Array",proto:!0,forced:!Khe},{map:function(t){return Whe(this,t,arguments.length>1?arguments[1]:void 0)}});var qhe=Po,Yhe=qhe("Array","map"),Xhe=Jn,Qhe=Yhe,B1=Array.prototype,Zhe=function(e){var t=e.map;return e===B1||Xhe(B1,e)&&t===B1.map?Qhe:t},Jhe=Zhe,eme=Jhe,tme=eme,S3=Wn,rme=Vr,C3=Nr,nme=gb,ome=_h,ame=es,ime=Ph.f,T3=C3(ime),sme=C3([].push),lme=S3&&rme(function(){var e=Object.create(null);return e[2]=2,!T3(e,2)}),JI=function(e){return function(t){for(var r=ame(t),n=ome(r),o=lme&&nme(r)===null,a=n.length,i=0,s=[],l;a>i;)l=n[i++],(!S3||(o?l in r:T3(r,l)))&&sme(s,e?[l,r[l]]:r[l]);return s}},P3={entries:JI(!0),values:JI(!1)},cme=tr,ume=P3.values;cme({target:"Object",stat:!0},{values:function(t){return ume(t)}});var dme=bn,fme=dme.Object.values,pme=fme,hme=pme,mme=hme,vme=Xc.forEach,gme=Kd,yme=gme("forEach"),bme=yme?[].forEach:function(t){return vme(this,t,arguments.length>1?arguments[1]:void 0)},wme=tr,eE=bme;wme({target:"Array",proto:!0,forced:[].forEach!==eE},{forEach:eE});var xme=Po,Sme=xme("Array","forEach"),Cme=Sme,Tme=Cme,Pme=Ud,$me=Uo,Rme=Jn,kme=Tme,z1=Array.prototype,Ime={DOMTokenList:!0,NodeList:!0},Eme=function(e){var t=e.forEach;return e===z1||Rme(z1,e)&&t===z1.forEach||$me(Ime,Pme(e))?kme:t},Ome=Eme,_me=x5,Dme=Kc,Mme=Ra,Ame=ob,jme=nl,tE=TypeError,rE="Reduce of empty array with no initial value",nE=function(e){return function(t,r,n,o){var a=Mme(t),i=Ame(a),s=jme(a);if(Dme(r),s===0&&n<2)throw new tE(rE);var l=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(l in i){o=i[l],l+=c;break}if(l+=c,e?l<0:s<=l)throw new tE(rE)}for(;e?l>=0:s>l;l+=c)l in i&&(o=r(o,i[l],l,a));return o}},Lme={left:nE(!1),right:nE(!0)},xf=kn,Nme=Bd,Fme=tl,Vm=function(e){return Nme.slice(0,e.length)===e},$3=function(){return Vm("Bun/")?"BUN":Vm("Cloudflare-Workers")?"CLOUDFLARE":Vm("Deno/")?"DENO":Vm("Node.js/")?"NODE":xf.Bun&&typeof Bun.version=="string"?"BUN":xf.Deno&&typeof Deno.version=="object"?"DENO":Fme(xf.process)==="process"?"NODE":xf.window&&xf.document?"BROWSER":"REST"}(),Bme=$3,zme=Bme==="NODE",Vme=tr,Ume=Lme.left,Hme=Kd,oE=$h,Wme=zme,Gme=!Wme&&oE>79&&oE<83,Kme=Gme||!Hme("reduce");Vme({target:"Array",proto:!0,forced:Kme},{reduce:function(t){var r=arguments.length;return Ume(this,t,r,r>1?arguments[1]:void 0)}});var qme=Po,Yme=qme("Array","reduce"),Xme=Jn,Qme=Yme,V1=Array.prototype,Zme=function(e){var t=e.reduce;return e===V1||Xme(V1,e)&&t===V1.reduce?Qme:t},Jme=Zme,eve=Jme,tve=eve,rve=Wn,nve=Wd,ove=TypeError,ave=Object.getOwnPropertyDescriptor,ive=rve&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),R3=ive?function(e,t){if(nve(e)&&!ave(e,"length").writable)throw new ove("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},aE=kh,sve=TypeError,k3=function(e,t){if(!delete e[t])throw new sve("Cannot delete property "+aE(t)+" of "+aE(e))},lve=tr,cve=Ra,uve=lb,dve=Oh,fve=nl,pve=R3,hve=ZT,mve=GT,vve=Fh,U1=k3,gve=Bh,yve=gve("splice"),bve=Math.max,wve=Math.min;lve({target:"Array",proto:!0,forced:!yve},{splice:function(t,r){var n=cve(this),o=fve(n),a=uve(t,o),i=arguments.length,s,l,c,u,d,f;for(i===0?s=l=0:i===1?(s=0,l=o-a):(s=i-2,l=wve(bve(dve(r),0),o-a)),hve(o+s-l),c=mve(n,l),u=0;u<l;u++)d=a+u,d in n&&vve(c,u,n[d]);if(c.length=l,s<l){for(u=a;u<o-l;u++)d=u+l,f=u+s,d in n?n[f]=n[d]:U1(n,f);for(u=o;u>o-l+s;u--)U1(n,u-1)}else if(s>l)for(u=o-l;u>a;u--)d=u+l-1,f=u+s-1,d in n?n[f]=n[d]:U1(n,f);for(u=0;u<s;u++)n[u+a]=arguments[u+2];return pve(n,o-l+s),c}});var xve=Po,Sve=xve("Array","splice"),Cve=Jn,Tve=Sve,H1=Array.prototype,Pve=function(e){var t=e.splice;return e===H1||Cve(H1,e)&&t===H1.splice?Tve:t},$ve=Pve,Rve=$ve,kve=Rve,iE=qc,Ive=Math.floor,sS=function(e,t){var r=e.length;if(r<8)for(var n=1,o,a;n<r;){for(a=n,o=e[n];a&&t(e[a-1],o)>0;)e[a]=e[--a];a!==n++&&(e[a]=o)}else for(var i=Ive(r/2),s=sS(iE(e,0,i),t),l=sS(iE(e,i),t),c=s.length,u=l.length,d=0,f=0;d<c||f<u;)e[d+f]=d<c&&f<u?t(s[d],l[f])<=0?s[d++]:l[f++]:d<c?s[d++]:l[f++];return e},I3=sS,Eve=Bd,sE=Eve.match(/firefox\/(\d+)/i),Ove=!!sE&&+sE[1],_ve=Bd,Dve=/MSIE|Trident/.test(_ve),Mve=Bd,lE=Mve.match(/AppleWebKit\/(\d+)\./),Ave=!!lE&&+lE[1],jve=tr,E3=Nr,Lve=Kc,Nve=Ra,cE=nl,Fve=k3,uE=Ho,aP=Vr,Bve=I3,zve=Kd,dE=Ove,Vve=Dve,fE=$h,pE=Ave,Tl=[],hE=E3(Tl.sort),Uve=E3(Tl.push),Hve=aP(function(){Tl.sort(void 0)}),Wve=aP(function(){Tl.sort(null)}),Gve=zve("sort"),O3=!aP(function(){if(fE)return fE<70;if(!(dE&&dE>3)){if(Vve)return!0;if(pE)return pE<603;var e="",t,r,n,o;for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)Tl.push({k:r+o,v:n})}for(Tl.sort(function(a,i){return i.v-a.v}),o=0;o<Tl.length;o++)r=Tl[o].k.charAt(0),e.charAt(e.length-1)!==r&&(e+=r);return e!=="DGBEFHACIJK"}}),Kve=Hve||!Wve||!Gve||!O3,qve=function(e){return function(t,r){return r===void 0?-1:t===void 0?1:e!==void 0?+e(t,r)||0:uE(t)>uE(r)?1:-1}};jve({target:"Array",proto:!0,forced:Kve},{sort:function(t){t!==void 0&&Lve(t);var r=Nve(this);if(O3)return t===void 0?hE(r):hE(r,t);var n=[],o=cE(r),a,i;for(i=0;i<o;i++)i in r&&Uve(n,r[i]);for(Bve(n,qve(t)),a=cE(n),i=0;i<a;)r[i]=n[i++];for(;i<o;)Fve(r,i++);return r}});var Yve=Po,Xve=Yve("Array","sort"),Qve=Jn,Zve=Xve,W1=Array.prototype,Jve=function(e){var t=e.sort;return e===W1||Qve(W1,e)&&t===W1.sort?Zve:t},ege=Jve,tge=ege,rge=tge,nge=Po,oge=nge("Array","concat"),age=Jn,ige=oge,G1=Array.prototype,sge=function(e){var t=e.concat;return e===G1||age(G1,e)&&t===G1.concat?ige:t},lge=sge,cge=lge,uge=cge,dge=tr,fge=Xc.findIndex,mE="findIndex",_3=!0;mE in[]&&Array(1)[mE](function(){_3=!1});dge({target:"Array",proto:!0,forced:_3},{findIndex:function(t){return fge(this,t,arguments.length>1?arguments[1]:void 0)}});var pge=Po,hge=pge("Array","findIndex"),mge=Jn,vge=hge,K1=Array.prototype,gge=function(e){var t=e.findIndex;return e===K1||mge(K1,e)&&t===K1.findIndex?vge:t},yge=gge,bge=yge,wge=bge,xge=tr,Sge=Xc.filter,Cge=Bh,Tge=Cge("filter");xge({target:"Array",proto:!0,forced:!Tge},{filter:function(t){return Sge(this,t,arguments.length>1?arguments[1]:void 0)}});var Pge=Po,$ge=Pge("Array","filter"),Rge=Jn,kge=$ge,q1=Array.prototype,Ige=function(e){var t=e.filter;return e===q1||Rge(q1,e)&&t===q1.filter?kge:t},Ege=Ige,Oge=Ege,_ge=Oge,Dge=g5,Mge=y5,Age=tr,jge=Xc.some,Lge=Kd,Nge=Lge("some");Age({target:"Array",proto:!0,forced:!Nge},{some:function(t){return jge(this,t,arguments.length>1?arguments[1]:void 0)}});var Fge=Po,Bge=Fge("Array","some"),zge=Jn,Vge=Bge,Y1=Array.prototype,Uge=function(e){var t=e.some;return e===Y1||zge(Y1,e)&&t===Y1.some?Vge:t},Hge=Uge,Wge=Hge,Gge=Wge,Kge=tr,qge=Xc.every,Yge=Kd,Xge=Yge("every");Kge({target:"Array",proto:!0,forced:!Xge},{every:function(t){return qge(this,t,arguments.length>1?arguments[1]:void 0)}});var Qge=Po,Zge=Qge("Array","every"),Jge=Jn,eye=Zge,X1=Array.prototype,tye=function(e){var t=e.every;return e===X1||Jge(X1,e)&&t===X1.every?eye:t},rye=tye,nye=rye,oye=nye;const aye=Sr(KW),iye=Sr(HZ),sye=Sr(LZ);var jl={};const lye=Sr(TW);var D3={},wb={},M3={},zh={};Object.defineProperty(zh,"__esModule",{value:!0});zh.assert=void 0;function cye(e,t){if(!e)throw new Error(t)}zh.assert=cye;var Vh={};Object.defineProperty(Vh,"__esModule",{value:!0});Vh.typeGuard=void 0;function uye(e,t){return t}Vh.typeGuard=uye;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.classnames=void 0;const t=zh,r=Vh,n=o=>{const a=o.length;let i=0,s="";for(;i<a;i++){const l=o[i];if(l==null)continue;let c;switch(typeof l){case"boolean":break;case"object":{if(Array.isArray(l))c=(0,e.classnames)(l);else{(0,t.assert)(!(0,r.typeGuard)(l,!1)),c="";for(const u in l)l[u]&&u&&(c&&(c+=" "),c+=u)}break}default:c=l}c&&(s&&(s+=" "),s+=c)}return s};e.classnames=n})(M3);var dye=!1,fye=/[A-Z]|^ms/g,pye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,A3=function(t){return t.charCodeAt(1)===45},vE=function(t){return t!=null&&typeof t!="boolean"},Q1=RC(function(e){return A3(e)?e:e.replace(fye,"-$&").toLowerCase()}),gE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(pye,function(n,o,a){return ms={name:o,styles:a,next:ms},o})}return bA[t]!==1&&!A3(t)&&typeof r=="number"&&r!==0?r+"px":r},hye="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function qp(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ms={name:o.name,styles:o.styles,next:ms},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)ms={name:i.name,styles:i.styles,next:ms},i=i.next;var s=a.styles+";";return s}return mye(e,t,r)}case"function":{if(e!==void 0){var l=ms,c=r(e);return ms=l,qp(e,t,c)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function mye(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=qp(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?n+=a+"{"+t[s]+"}":vE(s)&&(n+=Q1(a)+":"+gE(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&dye)throw new Error(hye);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)vE(i[l])&&(n+=Q1(a)+":"+gE(a,i[l])+";");else{var c=qp(e,t,i);switch(a){case"animation":case"animationName":{n+=Q1(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}}return n}var yE=/label:\s*([^\s;{]+)\s*(;|$)/g,ms;function vye(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ms=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=qp(r,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=qp(r,t,e[s]),n){var l=a;o+=l[s]}yE.lastIndex=0;for(var c="",u;(u=yE.exec(o))!==null;)c+="-"+u[1];var d=yA(o)+c;return{name:d,styles:o,next:ms}}const gye=Object.freeze(Object.defineProperty({__proto__:null,serializeStyles:vye},Symbol.toStringTag,{value:"Module"})),yye=Sr(gye);var bye=!0;function wye(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var j3=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||bye===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},xye=function(t,r,n){j3(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};const Sye=Object.freeze(Object.defineProperty({__proto__:null,getRegisteredStyles:wye,insertStyles:xye,registerStyles:j3},Symbol.toStringTag,{value:"Module"})),Cye=Sr(Sye);var xb={};Object.defineProperty(xb,"__esModule",{value:!0});xb.useGuaranteedMemo=void 0;const Tye=y;function Pye(e,t){const r=(0,Tye.useRef)();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((n,o)=>n===t[o]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}xb.useGuaranteedMemo=Pye;var mi={},$ye=function(t,r,n){for(var o=0,a=0;o=a,a=Fa(),o===38&&a===12&&(r[n]=1),!_c(a);)ea();return Dd(t,Bo)},Rye=function(t,r){var n=-1,o=44;do switch(_c(o)){case 0:o===38&&Fa()===12&&(r[n]=1),t[n]+=$ye(Bo-1,r,n);break;case 2:t[n]+=tp(o);break;case 4:if(o===44){t[++n]=Fa()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ch(o)}while(o=ea());return t},kye=function(t,r){return _C(Rye(OC(t),r))},bE=new WeakMap,Iye=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!bE.get(n))&&!o){bE.set(t,!0);for(var a=[],i=kye(r,a),s=n.props,l=0,c=0;l<i.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=a[l]?i[l].replace(/&\f/g,s[u]):s[u]+" "+i[l]}}},Eye=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function L3(e,t){switch(oA(e,t)){case 5103:return Ft+"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 Ft+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ft+e+Fl+e+Lr+e+e;case 6828:case 4268:return Ft+e+Lr+e+e;case 6165:return Ft+e+Lr+"flex-"+e+e;case 5187:return Ft+e+Wt(e,/(\w+).+(:[^]+)/,Ft+"box-$1$2"+Lr+"flex-$1$2")+e;case 5443:return Ft+e+Lr+"flex-item-"+Wt(e,/flex-|-self/,"")+e;case 4675:return Ft+e+Lr+"flex-line-pack"+Wt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ft+e+Lr+Wt(e,"shrink","negative")+e;case 5292:return Ft+e+Lr+Wt(e,"basis","preferred-size")+e;case 6060:return Ft+"box-"+Wt(e,"-grow","")+Ft+e+Lr+Wt(e,"grow","positive")+e;case 4554:return Ft+Wt(e,/([^-])(transform)/g,"$1"+Ft+"$2")+e;case 6187:return Wt(Wt(Wt(e,/(zoom-|grab)/,Ft+"$1"),/(image-set)/,Ft+"$1"),e,"")+e;case 5495:case 3959:return Wt(e,/(image-set\([^]*)/,Ft+"$1$`$1");case 4968:return Wt(Wt(e,/(.+:)(flex-)?(.*)/,Ft+"box-pack:$3"+Lr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ft+e+e;case 4095:case 3583:case 4068:case 2532:return Wt(e,/(.+)-inline(.+)/,Ft+"$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(ui(e)-1-t>6)switch(vn(e,t+1)){case 109:if(vn(e,t+4)!==45)break;case 102:return Wt(e,/(.+:)(.+)-([^]+)/,"$1"+Ft+"$2-$3$1"+Fl+(vn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Np(e,"stretch")?L3(Wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(vn(e,t+1)!==115)break;case 6444:switch(vn(e,ui(e)-3-(~Np(e,"!important")&&10))){case 107:return Wt(e,":",":"+Ft)+e;case 101:return Wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ft+(vn(e,14)===45?"inline-":"")+"box$3$1"+Ft+"$2$3$1"+Lr+"$2box$3")+e}break;case 5936:switch(vn(e,t+11)){case 114:return Ft+e+Lr+Wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ft+e+Lr+Wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ft+e+Lr+Wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ft+e+Lr+e+e}return e}var Oye=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case uy:t.return=L3(t.value,t.length);break;case IC:return Ss([gs(t,{value:Wt(t.value,"@","@"+Ft)})],o);case cy:if(t.length)return sA(t.props,function(a){switch(iA(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ss([gs(t,{props:[Wt(a,/:(read-\w+)/,":"+Fl+"$1")]})],o);case"::placeholder":return Ss([gs(t,{props:[Wt(a,/:(plac\w+)/,":"+Ft+"input-$1")]}),gs(t,{props:[Wt(a,/:(plac\w+)/,":"+Fl+"$1")]}),gs(t,{props:[Wt(a,/:(plac\w+)/,Lr+"input-$1")]})],o)}return""})}},_ye=[Oye],Dye=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||_ye,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),b=1;b<x.length;b++)a[x[b]]=!0;s.push(m)});var l,c=[Iye,Eye];{var u,d=[uA,fA(function(m){u.insert(m)})],f=dA(c.concat(o,d)),h=function(x){return Ss(cA(x),f)};l=function(x,b,w,g){u=w,h(x?x+"{"+b.styles+"}":b.styles),g&&(p.inserted[b.name]=!0)}}var p={key:r,sheet:new kC({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return p.sheet.hydrate(s),p};const Mye=Object.freeze(Object.defineProperty({__proto__:null,default:Dye},Symbol.toStringTag,{value:"Module"})),Aye=Sr(Mye);var jye=lr&&lr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Lye=lr&&lr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Nye=lr&&lr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&jye(t,e,r);return Lye(t,e),t},Fye=lr&&lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mi,"__esModule",{value:!0});mi.TssCacheProvider=mi.useTssEmotionCache=mi.getTssDefaultEmotionCache=mi.getDoExistsTssDefaultEmotionCacheMemoizedValue=void 0;const Eg=Nye(y),Bye=Fye(Aye),{getDoExistsTssDefaultEmotionCacheMemoizedValue:zye,getTssDefaultEmotionCache:N3,reactContext:F3}=(()=>{const e="__tss-react_context",t=Eg.createContext;let r=t["__tss-react_context"];if(r===void 0){const{getTssDefaultEmotionCache:n,getDoExistsTssDefaultEmotionCacheMemoizedValue:o}=(()=>{let a;function i(s){const{doReset:l=!1}=s??{};return l&&(a=void 0),a===void 0&&(a=(0,Bye.default)({key:"tss"})),a}return{getTssDefaultEmotionCache:i,getDoExistsTssDefaultEmotionCacheMemoizedValue:()=>a!==void 0}})();r={getTssDefaultEmotionCache:n,getDoExistsTssDefaultEmotionCacheMemoizedValue:o,reactContext:(0,Eg.createContext)(void 0)},Object.defineProperty(t,e,{configurable:!1,enumerable:!1,writable:!1,value:r})}return r})();mi.getDoExistsTssDefaultEmotionCacheMemoizedValue=zye;mi.getTssDefaultEmotionCache=N3;function Vye(){const e=(0,Eg.useContext)(F3);return e??N3()}mi.useTssEmotionCache=Vye;function Uye(e){const{children:t,value:r}=e;return Eg.default.createElement(F3.Provider,{value:r},t)}mi.TssCacheProvider=Uye;var Sb={};Object.defineProperty(Sb,"__esModule",{value:!0});Sb.matchCSSObject=void 0;function Hye(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)}Sb.matchCSSObject=Hye;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.useCssAndCx=e.createCssAndCx=void 0;const t=M3,r=yye,n=Cye,o=xb,a=mi,i=Sb;e.createCssAndCx=(()=>{function c(d,f,h){const p=[],m=(0,n.getRegisteredStyles)(d,p,h);return p.length<2?h:m+f(p)}function u(d){const{cache:f}=d,h=(...m)=>{const x=(0,r.serializeStyles)(m,f.registered);(0,n.insertStyles)(f,x,!1);const b=`${f.key}-${x.name}`;e:{const w=m[0];if(!(0,i.matchCSSObject)(w))break e;l.saveClassNameCSSObjectMapping(f,b,w)}return b};return{css:h,cx:(...m)=>{const x=(0,t.classnames)(m),b=l.fixClassName(f,x,h);return c(f.registered,h,b)}}}return{createCssAndCx:u}})().createCssAndCx;function s(){const c=(0,a.useTssEmotionCache)(),{css:u,cx:d}=(0,o.useGuaranteedMemo)(()=>(0,e.createCssAndCx)({cache:c}),[c]);return{css:u,cx:d}}e.useCssAndCx=s;const l=(()=>{const c=new WeakMap;return{saveClassNameCSSObjectMapping:(u,d,f)=>{let h=c.get(u);h===void 0&&(h=new Map,c.set(u,h)),h.set(d,f)},fixClassName:(()=>{function u(d){let f=!1;return d.map(([h,p])=>{if(p===void 0)return h;let m;if(f)m={"&&":p};else{m=h;for(const x in p)if(x.startsWith("@media")){f=!0;break}}return m})}return(d,f,h)=>{const p=c.get(d);return(0,t.classnames)(u(f.split(" ").map(m=>[m,p==null?void 0:p.get(m)])).map(m=>typeof m=="string"?m:h(m)))}})()}})()})(wb);var Bc={},Uh={};Object.defineProperty(Uh,"__esModule",{value:!0});Uh.objectKeys=void 0;function Wye(e){return Object.keys(e)}Uh.objectKeys=Wye;var Hh={};Object.defineProperty(Hh,"__esModule",{value:!0});Hh.getDependencyArrayRef=void 0;function Gye(e){if(!(e instanceof Object)||typeof e=="function")return e;const t=[];for(const r in e){const n=e[r],o=typeof n;if(!(o==="string"||o==="number"&&!isNaN(n)||o==="boolean"||n===void 0||n===null))return e;t.push(`${r}:${o}_${n}`)}return"xSqLiJdLMd9s"+t.join("|")}Hh.getDependencyArrayRef=Gye;Object.defineProperty(Bc,"__esModule",{value:!0});Bc.useMergedClasses=Bc.mergeClasses=void 0;const wE=Uh,Kye=Hh,qye=wb,Yye=y;function B3(e,t,r){if(!(t instanceof Object))return e;const n={};return(0,wE.objectKeys)(e).forEach(o=>n[o]=r(e[o],t[o])),(0,wE.objectKeys)(t).forEach(o=>{if(o in e)return;const a=t[o];typeof a=="string"&&(n[o]=a)}),n}Bc.mergeClasses=B3;function Xye(e,t){const{cx:r}=(0,qye.useCssAndCx)();return(0,Yye.useMemo)(()=>B3(e,t,r),[e,(0,Kye.getDependencyArrayRef)(t),r])}Bc.useMergedClasses=Xye;var Wh={},Cb={};Object.defineProperty(Cb,"__esModule",{value:!0});Cb.objectFromEntries=void 0;Cb.objectFromEntries=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach(r=>{const[n,o]=e[r];t[n]=o}),t};Object.defineProperty(Wh,"__esModule",{value:!0});Wh.createMakeStyles=void 0;const Um=y,Qye=Cb,xE=Uh,SE=wb,Hm=Hh,Zye=Vh,Jye=mi,ebe=zh,CE=Bc;let tbe=0;function rbe(e){const{useTheme:t}=e;function r(o){const{name:a,uniqId:i=tbe++}=o??{},s=typeof a!="object"?a:Object.keys(a)[0];return function(l){const c=typeof l=="function"?l:()=>l;return function(d,f){var h,p;const m=t(),{css:x,cx:b}=(0,SE.useCssAndCx)(),w=(0,Jye.useTssEmotionCache)();let g=(0,Um.useMemo)(()=>{const R={},T=typeof Proxy<"u"&&new Proxy({},{get:(E,C)=>(typeof C=="symbol"&&(0,ebe.assert)(!1),R[C]=`${w.key}-${i}${s!==void 0?`-${s}`:""}-${C}-ref`)}),k=c(m,d,T||{}),O=(0,Qye.objectFromEntries)((0,xE.objectKeys)(k).map(E=>{const C=k[E];return C.label||(C.label=`${s!==void 0?`${s}-`:""}${E}`),[E,`${x(C)}${(0,Zye.typeGuard)(E,E in R)?` ${R[E]}`:""}`]}));return(0,xE.objectKeys)(R).forEach(E=>{E in O||(O[E]=R[E])}),O},[w,x,b,m,(0,Hm.getDependencyArrayRef)(d)]);const S=f==null?void 0:f.props.classes;g=(0,Um.useMemo)(()=>(0,CE.mergeClasses)(g,S,b),[g,(0,Hm.getDependencyArrayRef)(S),b]);{let R;try{R=s!==void 0?(p=(h=m.components)===null||h===void 0?void 0:h[s])===null||p===void 0?void 0:p.styleOverrides:void 0}catch{}const T=(0,Um.useMemo)(()=>{if(!R)return;const k={};for(const O in R){const E=R[O];E instanceof Object&&(k[O]=x(typeof E=="function"?E(Object.assign({theme:m,ownerState:f==null?void 0:f.ownerState},f==null?void 0:f.props)):E))}return k},[R===void 0?void 0:JSON.stringify(R),(0,Hm.getDependencyArrayRef)(f==null?void 0:f.props),(0,Hm.getDependencyArrayRef)(f==null?void 0:f.ownerState),x]);g=(0,Um.useMemo)(()=>(0,CE.mergeClasses)(g,T,b),[g,T,b])}return{classes:g,theme:m,css:x,cx:b}}}}function n(){const o=t(),{css:a,cx:i}=(0,SE.useCssAndCx)();return{theme:o,css:a,cx:i}}return{makeStyles:r,useStyles:n}}Wh.createMakeStyles=rbe;var Tb={},Pb={};Object.defineProperty(Pb,"__esModule",{value:!0});Pb.capitalize=void 0;function nbe(e){return e.charAt(0).toUpperCase()+e.slice(1)}Pb.capitalize=nbe;var obe=lr&&lr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),abe=lr&&lr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ibe=lr&&lr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&obe(t,e,r);return abe(t,e),t},TE=lr&&lr.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};Object.defineProperty(Tb,"__esModule",{value:!0});Tb.createWithStyles=void 0;const Z1=ibe(y),sbe=Wh,lbe=Pb;function cbe(e){const{useTheme:t}=e,{makeStyles:r}=(0,sbe.createMakeStyles)({useTheme:t});function n(o,a,i){const s=typeof o=="string"?(()=>{const d=o,f=function(h){var{children:p}=h,m=TE(h,["children"]);return(0,Z1.createElement)(d,m,p)};return Object.defineProperty(f,"name",{value:(0,lbe.capitalize)(d)}),f})():o,l=(()=>{const{name:d}=s;return typeof d=="string"?d:void 0})(),c=r(i)(typeof a=="function"?(d,f,h)=>PE(a(d,f,h)):PE(a)),u=(0,Z1.forwardRef)(function(d,f){const{className:h,classes:p}=d,m=TE(d,["className","classes"]),{classes:x,cx:b}=c(d,{props:d});return Z1.default.createElement(s,Object.assign({ref:f,className:b(x.root,h)},typeof o=="string"?{}:{classes:x},m))});return l!==void 0&&Object.defineProperty(u,"name",{value:`${l}WithStyles`}),u}return{withStyles:n}}Tb.createWithStyles=cbe;function PE(e){const t={},r={};return Object.keys(e).forEach(n=>(n.startsWith("@media")?r:t)[n]=e[n]),Object.keys(r).forEach(n=>{const o=r[n];Object.keys(o).forEach(a=>{var i;return t[a]=Object.assign(Object.assign({},(i=t[a])!==null&&i!==void 0?i:{}),{[n]:o[a]})})}),t}const z3=Sr(bU);var $b={},ube=lr&&lr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),dbe=lr&&lr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),fbe=lr&&lr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&ube(t,e,r);return dbe(t,e),t},pbe=lr&&lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($b,"__esModule",{value:!0});$b.GlobalStyles=void 0;const hbe=pbe(y),$E=fbe(z3);function mbe(e){const{styles:t}=e;return hbe.default.createElement($E.Global,{styles:$E.css(t)})}$b.GlobalStyles=mbe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMakeAndWithStyles=e.TssCacheProvider=e.getTssDefaultEmotionCache=e.GlobalStyles=e.keyframes=e.createWithStyles=e.createMakeStyles=e.useMergedClasses=e.useCssAndCx=void 0;var t=wb;Object.defineProperty(e,"useCssAndCx",{enumerable:!0,get:function(){return t.useCssAndCx}});var r=Bc;Object.defineProperty(e,"useMergedClasses",{enumerable:!0,get:function(){return r.useMergedClasses}});const n=Wh;Object.defineProperty(e,"createMakeStyles",{enumerable:!0,get:function(){return n.createMakeStyles}});const o=Tb;Object.defineProperty(e,"createWithStyles",{enumerable:!0,get:function(){return o.createWithStyles}});var a=z3;Object.defineProperty(e,"keyframes",{enumerable:!0,get:function(){return a.keyframes}});var i=$b;Object.defineProperty(e,"GlobalStyles",{enumerable:!0,get:function(){return i.GlobalStyles}});var s=mi;Object.defineProperty(e,"getTssDefaultEmotionCache",{enumerable:!0,get:function(){return s.getTssDefaultEmotionCache}}),Object.defineProperty(e,"TssCacheProvider",{enumerable:!0,get:function(){return s.TssCacheProvider}});function l(c){return Object.assign(Object.assign({},(0,n.createMakeStyles)(c)),(0,o.createWithStyles)(c))}e.createMakeAndWithStyles=l})(D3);var Wm;Object.defineProperty(jl,"__esModule",{value:!0});jl.useStyles=jl.withStyles=jl.makeStyles=void 0;const vbe=lye,gbe=D3;Wm=(0,gbe.createMakeAndWithStyles)({useTheme:vbe.useTheme}),jl.makeStyles=Wm.makeStyles,jl.withStyles=Wm.withStyles,jl.useStyles=Wm.useStyles;function V3(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=V3(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function RE(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=V3(e))&&(n&&(n+=" "),n+=t);return n}const ybe=Object.freeze(Object.defineProperty({__proto__:null,clsx:RE,default:RE},Symbol.toStringTag,{value:"Module"})),bbe=Sr(ybe);var U3=9007199254740991,wbe="[object Arguments]",xbe="[object Function]",Sbe="[object GeneratorFunction]",Cbe=/^(?:0|[1-9]\d*)$/;function Tbe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Pbe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function $be(e,t){return function(r){return e(t(r))}}var Rb=Object.prototype,kb=Rb.hasOwnProperty,H3=Rb.toString,Rbe=Rb.propertyIsEnumerable,kbe=$be(Object.keys,Object),kE=Math.max;function Ibe(e,t){var r=Nbe(e)||Lbe(e)?Pbe(e.length,String):[],n=r.length,o=!!n;for(var a in e)kb.call(e,a)&&!(o&&(a=="length"||W3(a,n)))&&r.push(a);return r}function Ebe(e,t,r){var n=e[t];(!(kb.call(e,t)&&G3(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Obe(e){if(!jbe(e))return kbe(e);var t=[];for(var r in Object(e))kb.call(e,r)&&r!="constructor"&&t.push(r);return t}function _be(e,t){return t=kE(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,o=kE(r.length-t,0),a=Array(o);++n<o;)a[n]=r[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=r[n];return i[t]=a,Tbe(e,this,i)}}function Dbe(e,t,r,n){r||(r={});for(var o=-1,a=t.length;++o<a;){var i=t[o],s=n?n(r[i],e[i],i,r,e):void 0;Ebe(r,i,s===void 0?e[i]:s)}return r}function Mbe(e){return _be(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Abe(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t})}function W3(e,t){return t=t??U3,!!t&&(typeof e=="number"||Cbe.test(e))&&e>-1&&e%1==0&&e<t}function Abe(e,t,r){if(!K3(r))return!1;var n=typeof t;return(n=="number"?iP(r)&&W3(t,r.length):n=="string"&&t in r)?G3(r[t],e):!1}function jbe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Rb;return e===r}function G3(e,t){return e===t||e!==e&&t!==t}function Lbe(e){return Fbe(e)&&kb.call(e,"callee")&&(!Rbe.call(e,"callee")||H3.call(e)==wbe)}var Nbe=Array.isArray;function iP(e){return e!=null&&zbe(e.length)&&!Bbe(e)}function Fbe(e){return Vbe(e)&&iP(e)}function Bbe(e){var t=K3(e)?H3.call(e):"";return t==xbe||t==Sbe}function zbe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=U3}function K3(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Vbe(e){return!!e&&typeof e=="object"}var Ube=Mbe(function(e,t,r,n){Dbe(t,Hbe(t),e,n)});function Hbe(e){return iP(e)?Ibe(e):Obe(e)}var Wbe=Ube,Og={exports:{}};Og.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object GeneratorFunction]",f="[object Map]",h="[object Number]",p="[object Object]",m="[object Promise]",x="[object RegExp]",b="[object Set]",w="[object String]",g="[object Symbol]",S="[object WeakMap]",R="[object ArrayBuffer]",T="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",E="[object Int8Array]",C="[object Int16Array]",D="[object Int32Array]",B="[object Uint8Array]",U="[object Uint8ClampedArray]",j="[object Uint16Array]",N="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,ee=/\w*$/,M=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,te={};te[a]=te[i]=te[R]=te[T]=te[s]=te[l]=te[k]=te[O]=te[E]=te[C]=te[D]=te[f]=te[h]=te[p]=te[x]=te[b]=te[w]=te[g]=te[B]=te[U]=te[j]=te[N]=!0,te[c]=te[u]=te[S]=!1;var oe=typeof lr=="object"&&lr&&lr.Object===Object&&lr,Ie=typeof self=="object"&&self&&self.Object===Object&&self,Te=oe||Ie||Function("return this")(),ke=t&&!t.nodeType&&t,pe=ke&&!0&&e&&!e.nodeType&&e,Pe=pe&&pe.exports===ke;function Ae($,P){return $.set(P[0],P[1]),$}function ge($,P){return $.add(P),$}function G($,P){for(var A=-1,J=$?$.length:0;++A<J&&P($[A],A,$)!==!1;);return $}function Y($,P){for(var A=-1,J=P.length,We=$.length;++A<J;)$[We+A]=P[A];return $}function Q($,P,A,J){for(var We=-1,Je=$?$.length:0;++We<Je;)A=P(A,$[We],We,$);return A}function Z($,P){for(var A=-1,J=Array($);++A<$;)J[A]=P(A);return J}function X($,P){return $==null?void 0:$[P]}function ae($){var P=!1;if($!=null&&typeof $.toString!="function")try{P=!!($+"")}catch{}return P}function fe($){var P=-1,A=Array($.size);return $.forEach(function(J,We){A[++P]=[We,J]}),A}function xe($,P){return function(A){return $(P(A))}}function we($){var P=-1,A=Array($.size);return $.forEach(function(J){A[++P]=J}),A}var $e=Array.prototype,ye=Function.prototype,De=Object.prototype,Ge=Te["__core-js_shared__"],bt=function(){var $=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),Ke=ye.toString,St=De.hasOwnProperty,Lt=De.toString,qt=RegExp("^"+Ke.call(St).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Pe?Te.Buffer:void 0,lt=Te.Symbol,gt=Te.Uint8Array,kt=xe(Object.getPrototypeOf,Object),dt=Object.create,ir=De.propertyIsEnumerable,jr=$e.splice,st=Object.getOwnPropertySymbols,He=wt?wt.isBuffer:void 0,Ye=xe(Object.keys,Object),Mt=Er(Te,"DataView"),Ot=Er(Te,"Map"),mt=Er(Te,"Promise"),dr=Er(Te,"Set"),cr=Er(Te,"WeakMap"),br=Er(Object,"create"),Jr=Ur(Mt),wn=Ur(Ot),uo=Ur(mt),Nn=Ur(dr),Xt=Ur(cr),qr=lt?lt.prototype:void 0,Gn=qr?qr.valueOf:void 0;function ie($){var P=-1,A=$?$.length:0;for(this.clear();++P<A;){var J=$[P];this.set(J[0],J[1])}}function ve(){this.__data__=br?br(null):{}}function _e($){return this.has($)&&delete this.__data__[$]}function qe($){var P=this.__data__;if(br){var A=P[$];return A===n?void 0:A}return St.call(P,$)?P[$]:void 0}function ct($){var P=this.__data__;return br?P[$]!==void 0:St.call(P,$)}function ft($,P){var A=this.__data__;return A[$]=br&&P===void 0?n:P,this}ie.prototype.clear=ve,ie.prototype.delete=_e,ie.prototype.get=qe,ie.prototype.has=ct,ie.prototype.set=ft;function Ct($){var P=-1,A=$?$.length:0;for(this.clear();++P<A;){var J=$[P];this.set(J[0],J[1])}}function vt(){this.__data__=[]}function yt($){var P=this.__data__,A=Vt(P,$);if(A<0)return!1;var J=P.length-1;return A==J?P.pop():jr.call(P,A,1),!0}function pt($){var P=this.__data__,A=Vt(P,$);return A<0?void 0:P[A][1]}function Oe($){return Vt(this.__data__,$)>-1}function nt($,P){var A=this.__data__,J=Vt(A,$);return J<0?A.push([$,P]):A[J][1]=P,this}Ct.prototype.clear=vt,Ct.prototype.delete=yt,Ct.prototype.get=pt,Ct.prototype.has=Oe,Ct.prototype.set=nt;function zt($){var P=-1,A=$?$.length:0;for(this.clear();++P<A;){var J=$[P];this.set(J[0],J[1])}}function kr(){this.__data__={hash:new ie,map:new(Ot||Ct),string:new ie}}function rr($){return mo(this,$).delete($)}function nr($){return mo(this,$).get($)}function Ir($){return mo(this,$).has($)}function eo($,P){return mo(this,$).set($,P),this}zt.prototype.clear=kr,zt.prototype.delete=rr,zt.prototype.get=nr,zt.prototype.has=Ir,zt.prototype.set=eo;function vr($){this.__data__=new Ct($)}function an(){this.__data__=new Ct}function Cr($){return this.__data__.delete($)}function Kn($){return this.__data__.get($)}function En($){return this.__data__.has($)}function en($,P){var A=this.__data__;if(A instanceof Ct){var J=A.__data__;if(!Ot||J.length<r-1)return J.push([$,P]),this;A=this.__data__=new zt(J)}return A.set($,P),this}vr.prototype.clear=an,vr.prototype.delete=Cr,vr.prototype.get=Kn,vr.prototype.has=En,vr.prototype.set=en;function ut($,P){var A=Go($)||Mo($)?Z($.length,String):[],J=A.length,We=!!J;for(var Je in $)St.call($,Je)&&!(We&&(Je=="length"||Is(Je,J)))&&A.push(Je);return A}function On($,P,A){var J=$[P];(!(St.call($,P)&&ro(J,A))||A===void 0&&!(P in $))&&($[P]=A)}function Vt($,P){for(var A=$.length;A--;)if(ro($[A][0],P))return A;return-1}function Qt($,P){return $&&Ia(P,qo(P),$)}function Ee($,P,A,J,We,Je,It){var At;if(J&&(At=Je?J($,We,Je,It):J($)),At!==void 0)return At;if(!Ro($))return $;var Gt=Go($);if(Gt){if(At=Oi($),!P)return aa($,At)}else{var Ut=un($),gr=Ut==u||Ut==d;if(oo($))return fo($,P);if(Ut==p||Ut==a||gr&&!Je){if(ae($))return Je?$:{};if(At=to(gr?{}:$),!P)return os($,Qt(At,$))}else{if(!te[Ut])return Je?$:{};At=ks($,Ut,Ee,P)}}It||(It=new vr);var _r=It.get($);if(_r)return _r;if(It.set($,At),!Gt)var Hr=A?Ei($):qo($);return G(Hr||$,function(Tr,rn){Hr&&(rn=Tr,Tr=$[rn]),On(At,rn,Ee(Tr,P,A,J,rn,$,It))}),At}function Fr($){return Ro($)?dt($):{}}function xt($,P,A){var J=P($);return Go($)?J:Y(J,A($))}function $o($){return Lt.call($)}function ur($){if(!Ro($)||he($))return!1;var P=vo($)||ae($)?qt:M;return P.test(Ur($))}function Yr($){if(!qa($))return Ye($);var P=[];for(var A in Object($))St.call($,A)&&A!="constructor"&&P.push(A);return P}function fo($,P){if(P)return $.slice();var A=new $.constructor($.length);return $.copy(A),A}function cn($){var P=new $.constructor($.byteLength);return new gt(P).set(new gt($)),P}function po($,P){var A=P?cn($.buffer):$.buffer;return new $.constructor(A,$.byteOffset,$.byteLength)}function tn($,P,A){var J=P?A(fe($),!0):fe($);return Q(J,Ae,new $.constructor)}function ns($){var P=new $.constructor($.source,ee.exec($));return P.lastIndex=$.lastIndex,P}function Or($,P,A){var J=P?A(we($),!0):we($);return Q(J,ge,new $.constructor)}function ho($){return Gn?Object(Gn.call($)):{}}function Fn($,P){var A=P?cn($.buffer):$.buffer;return new $.constructor(A,$.byteOffset,$.length)}function aa($,P){var A=-1,J=$.length;for(P||(P=Array(J));++A<J;)P[A]=$[A];return P}function Ia($,P,A,J){A||(A={});for(var We=-1,Je=P.length;++We<Je;){var It=P[We],At=void 0;On(A,It,At===void 0?$[It]:At)}return A}function os($,P){return Ia($,Wo($),P)}function Ei($){return xt($,qo,Wo)}function mo($,P){var A=$.__data__;return ne(P)?A[typeof P=="string"?"string":"hash"]:A.map}function Er($,P){var A=X($,P);return ur(A)?A:void 0}var Wo=st?xe(st,Object):as,un=$o;(Mt&&un(new Mt(new ArrayBuffer(1)))!=T||Ot&&un(new Ot)!=f||mt&&un(mt.resolve())!=m||dr&&un(new dr)!=b||cr&&un(new cr)!=S)&&(un=function($){var P=Lt.call($),A=P==p?$.constructor:void 0,J=A?Ur(A):void 0;if(J)switch(J){case Jr:return T;case wn:return f;case uo:return m;case Nn:return b;case Xt:return S}return P});function Oi($){var P=$.length,A=$.constructor(P);return P&&typeof $[0]=="string"&&St.call($,"index")&&(A.index=$.index,A.input=$.input),A}function to($){return typeof $.constructor=="function"&&!qa($)?Fr(kt($)):{}}function ks($,P,A,J){var We=$.constructor;switch(P){case R:return cn($);case s:case l:return new We(+$);case T:return po($,J);case k:case O:case E:case C:case D:case B:case U:case j:case N:return Fn($,J);case f:return tn($,J,A);case h:case w:return new We($);case x:return ns($);case b:return Or($,J,A);case g:return ho($)}}function Is($,P){return P=P??o,!!P&&(typeof $=="number"||K.test($))&&$>-1&&$%1==0&&$<P}function ne($){var P=typeof $;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?$!=="__proto__":$===null}function he($){return!!bt&&bt in $}function qa($){var P=$&&$.constructor,A=typeof P=="function"&&P.prototype||De;return $===A}function Ur($){if($!=null){try{return Ke.call($)}catch{}try{return $+""}catch{}}return""}function Ya($){return Ee($,!0,!0)}function ro($,P){return $===P||$!==$&&P!==P}function Mo($){return dn($)&&St.call($,"callee")&&(!ir.call($,"callee")||Lt.call($)==a)}var Go=Array.isArray;function no($){return $!=null&&Xa($.length)&&!vo($)}function dn($){return Ko($)&&no($)}var oo=He||_i;function vo($){var P=Ro($)?Lt.call($):"";return P==u||P==d}function Xa($){return typeof $=="number"&&$>-1&&$%1==0&&$<=o}function Ro($){var P=typeof $;return!!$&&(P=="object"||P=="function")}function Ko($){return!!$&&typeof $=="object"}function qo($){return no($)?ut($):Yr($)}function as(){return[]}function _i(){return!1}e.exports=Ya})(Og,Og.exports);var Gbe=Og.exports,_g={exports:{}};_g.exports;(function(e,t){var r=200,n="Expected a function",o="__lodash_hash_undefined__",a=1,i=2,s=1/0,l=9007199254740991,c=17976931348623157e292,u=NaN,d="[object Arguments]",f="[object Array]",h="[object Boolean]",p="[object Date]",m="[object Error]",x="[object Function]",b="[object GeneratorFunction]",w="[object Map]",g="[object Number]",S="[object Object]",R="[object Promise]",T="[object RegExp]",k="[object Set]",O="[object String]",E="[object Symbol]",C="[object WeakMap]",D="[object ArrayBuffer]",B="[object DataView]",U="[object Float32Array]",j="[object Float64Array]",N="[object Int8Array]",V="[object Int16Array]",ee="[object Int32Array]",M="[object Uint8Array]",K="[object Uint8ClampedArray]",te="[object Uint16Array]",oe="[object Uint32Array]",Ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,ke=/^\./,pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Ae=/^\s+|\s+$/g,ge=/\\(\\)?/g,G=/^[-+]0x[0-9a-f]+$/i,Y=/^0b[01]+$/i,Q=/^\[object .+?Constructor\]$/,Z=/^0o[0-7]+$/i,X=/^(?:0|[1-9]\d*)$/,ae={};ae[U]=ae[j]=ae[N]=ae[V]=ae[ee]=ae[M]=ae[K]=ae[te]=ae[oe]=!0,ae[d]=ae[f]=ae[D]=ae[h]=ae[B]=ae[p]=ae[m]=ae[x]=ae[w]=ae[g]=ae[S]=ae[T]=ae[k]=ae[O]=ae[C]=!1;var fe=parseInt,xe=typeof lr=="object"&&lr&&lr.Object===Object&&lr,we=typeof self=="object"&&self&&self.Object===Object&&self,$e=xe||we||Function("return this")(),ye=t&&!t.nodeType&&t,De=ye&&!0&&e&&!e.nodeType&&e,Ge=De&&De.exports===ye,bt=Ge&&xe.process,Ke=function(){try{return bt&&bt.binding("util")}catch{}}(),St=Ke&&Ke.isTypedArray;function Lt(L,re){for(var Be=-1,rt=L?L.length:0;++Be<rt;)if(re(L[Be],Be,L))return!0;return!1}function qt(L,re,Be,rt){for(var Jt=L.length,_t=Be+-1;++_t<Jt;)if(re(L[_t],_t,L))return _t;return-1}function wt(L){return function(re){return re==null?void 0:re[L]}}function lt(L,re){for(var Be=-1,rt=Array(L);++Be<L;)rt[Be]=re(Be);return rt}function gt(L){return function(re){return L(re)}}function kt(L,re){return L==null?void 0:L[re]}function dt(L){var re=!1;if(L!=null&&typeof L.toString!="function")try{re=!!(L+"")}catch{}return re}function ir(L){var re=-1,Be=Array(L.size);return L.forEach(function(rt,Jt){Be[++re]=[Jt,rt]}),Be}function jr(L,re){return function(Be){return L(re(Be))}}function st(L){var re=-1,Be=Array(L.size);return L.forEach(function(rt){Be[++re]=rt}),Be}var He=Array.prototype,Ye=Function.prototype,Mt=Object.prototype,Ot=$e["__core-js_shared__"],mt=function(){var L=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),dr=Ye.toString,cr=Mt.hasOwnProperty,br=Mt.toString,Jr=RegExp("^"+dr.call(cr).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wn=$e.Symbol,uo=$e.Uint8Array,Nn=Mt.propertyIsEnumerable,Xt=He.splice,qr=jr(Object.keys,Object),Gn=Math.max,ie=oo($e,"DataView"),ve=oo($e,"Map"),_e=oo($e,"Promise"),qe=oo($e,"Set"),ct=oo($e,"WeakMap"),ft=oo(Object,"create"),Ct=We(ie),vt=We(ve),yt=We(_e),pt=We(qe),Oe=We(ct),nt=wn?wn.prototype:void 0,zt=nt?nt.valueOf:void 0,kr=nt?nt.toString:void 0;function rr(L){var re=-1,Be=L?L.length:0;for(this.clear();++re<Be;){var rt=L[re];this.set(rt[0],rt[1])}}function nr(){this.__data__=ft?ft(null):{}}function Ir(L){return this.has(L)&&delete this.__data__[L]}function eo(L){var re=this.__data__;if(ft){var Be=re[L];return Be===o?void 0:Be}return cr.call(re,L)?re[L]:void 0}function vr(L){var re=this.__data__;return ft?re[L]!==void 0:cr.call(re,L)}function an(L,re){var Be=this.__data__;return Be[L]=ft&&re===void 0?o:re,this}rr.prototype.clear=nr,rr.prototype.delete=Ir,rr.prototype.get=eo,rr.prototype.has=vr,rr.prototype.set=an;function Cr(L){var re=-1,Be=L?L.length:0;for(this.clear();++re<Be;){var rt=L[re];this.set(rt[0],rt[1])}}function Kn(){this.__data__=[]}function En(L){var re=this.__data__,Be=aa(re,L);if(Be<0)return!1;var rt=re.length-1;return Be==rt?re.pop():Xt.call(re,Be,1),!0}function en(L){var re=this.__data__,Be=aa(re,L);return Be<0?void 0:re[Be][1]}function ut(L){return aa(this.__data__,L)>-1}function On(L,re){var Be=this.__data__,rt=aa(Be,L);return rt<0?Be.push([L,re]):Be[rt][1]=re,this}Cr.prototype.clear=Kn,Cr.prototype.delete=En,Cr.prototype.get=en,Cr.prototype.has=ut,Cr.prototype.set=On;function Vt(L){var re=-1,Be=L?L.length:0;for(this.clear();++re<Be;){var rt=L[re];this.set(rt[0],rt[1])}}function Qt(){this.__data__={hash:new rr,map:new(ve||Cr),string:new rr}}function Ee(L){return no(this,L).delete(L)}function Fr(L){return no(this,L).get(L)}function xt(L){return no(this,L).has(L)}function $o(L,re){return no(this,L).set(L,re),this}Vt.prototype.clear=Qt,Vt.prototype.delete=Ee,Vt.prototype.get=Fr,Vt.prototype.has=xt,Vt.prototype.set=$o;function ur(L){var re=-1,Be=L?L.length:0;for(this.__data__=new Vt;++re<Be;)this.add(L[re])}function Yr(L){return this.__data__.set(L,o),this}function fo(L){return this.__data__.has(L)}ur.prototype.add=ur.prototype.push=Yr,ur.prototype.has=fo;function cn(L){this.__data__=new Cr(L)}function po(){this.__data__=new Cr}function tn(L){return this.__data__.delete(L)}function ns(L){return this.__data__.get(L)}function Or(L){return this.__data__.has(L)}function ho(L,re){var Be=this.__data__;if(Be instanceof Cr){var rt=Be.__data__;if(!ve||rt.length<r-1)return rt.push([L,re]),this;Be=this.__data__=new Vt(rt)}return Be.set(L,re),this}cn.prototype.clear=po,cn.prototype.delete=tn,cn.prototype.get=ns,cn.prototype.has=Or,cn.prototype.set=ho;function Fn(L,re){var Be=gr(L)||Ut(L)?lt(L.length,String):[],rt=Be.length,Jt=!!rt;for(var _t in L)cr.call(L,_t)&&!(Jt&&(_t=="length"||Ro(_t,rt)))&&Be.push(_t);return Be}function aa(L,re){for(var Be=L.length;Be--;)if(Gt(L[Be][0],re))return Be;return-1}function Ia(L,re){re=Ko(re,L)?[re]:Ur(re);for(var Be=0,rt=re.length;L!=null&&Be<rt;)L=L[J(re[Be++])];return Be&&Be==rt?L:void 0}function os(L){return br.call(L)}function Ei(L,re){return L!=null&&re in Object(L)}function mo(L,re,Be,rt,Jt){return L===re?!0:L==null||re==null||!_n(L)&&!ko(re)?L!==L&&re!==re:Er(L,re,mo,Be,rt,Jt)}function Er(L,re,Be,rt,Jt,_t){var yr=gr(L),Dn=gr(re),Bn=f,go=f;yr||(Bn=vo(L),Bn=Bn==d?S:Bn),Dn||(go=vo(re),go=go==d?S:go);var Io=Bn==S&&!dt(L),yo=go==S&&!dt(re),bo=Bn==go;if(bo&&!Io)return _t||(_t=new cn),yr||Di(L)?ro(L,re,Be,rt,Jt,_t):Mo(L,re,Bn,Be,rt,Jt,_t);if(!(Jt&i)){var sa=Io&&cr.call(L,"__wrapped__"),la=yo&&cr.call(re,"__wrapped__");if(sa||la){var Ea=sa?L.value():L,qn=la?re.value():re;return _t||(_t=new cn),Be(Ea,qn,rt,Jt,_t)}}return bo?(_t||(_t=new cn),Go(L,re,Be,rt,Jt,_t)):!1}function Wo(L,re,Be,rt){var Jt=Be.length,_t=Jt;if(L==null)return!_t;for(L=Object(L);Jt--;){var yr=Be[Jt];if(yr[2]?yr[1]!==L[yr[0]]:!(yr[0]in L))return!1}for(;++Jt<_t;){yr=Be[Jt];var Dn=yr[0],Bn=L[Dn],go=yr[1];if(yr[2]){if(Bn===void 0&&!(Dn in L))return!1}else{var Io=new cn,yo;if(!(yo===void 0?mo(go,Bn,rt,a|i,Io):yo))return!1}}return!0}function un(L){if(!_n(L)||as(L))return!1;var re=Tr(L)||dt(L)?Jr:Q;return re.test(We(L))}function Oi(L){return ko(L)&&rn(L.length)&&!!ae[br.call(L)]}function to(L){return typeof L=="function"?L:L==null?n0:typeof L=="object"?gr(L)?ne(L[0],L[1]):Is(L):o0(L)}function ks(L){if(!_i(L))return qr(L);var re=[];for(var Be in Object(L))cr.call(L,Be)&&Be!="constructor"&&re.push(Be);return re}function Is(L){var re=dn(L);return re.length==1&&re[0][2]?P(re[0][0],re[0][1]):function(Be){return Be===L||Wo(Be,L,re)}}function ne(L,re){return Ko(L)&&$(re)?P(J(L),re):function(Be){var rt=Zh(Be,L);return rt===void 0&&rt===re?r0(Be,L):mo(re,rt,void 0,a|i)}}function he(L){return function(re){return Ia(re,L)}}function qa(L){if(typeof L=="string")return L;if(ia(L))return kr?kr.call(L):"";var re=L+"";return re=="0"&&1/L==-s?"-0":re}function Ur(L){return gr(L)?L:A(L)}function Ya(L){return function(re,Be,rt){var Jt=Object(re);if(!_r(re)){var _t=to(Be);re=eu(re),Be=function(Dn){return _t(Jt[Dn],Dn,Jt)}}var yr=L(re,Be,rt);return yr>-1?Jt[_t?re[yr]:yr]:void 0}}function ro(L,re,Be,rt,Jt,_t){var yr=Jt&i,Dn=L.length,Bn=re.length;if(Dn!=Bn&&!(yr&&Bn>Dn))return!1;var go=_t.get(L);if(go&&_t.get(re))return go==re;var Io=-1,yo=!0,bo=Jt&a?new ur:void 0;for(_t.set(L,re),_t.set(re,L);++Io<Dn;){var sa=L[Io],la=re[Io];if(rt)var Ea=yr?rt(la,sa,Io,re,L,_t):rt(sa,la,Io,L,re,_t);if(Ea!==void 0){if(Ea)continue;yo=!1;break}if(bo){if(!Lt(re,function(qn,is){if(!bo.has(is)&&(sa===qn||Be(sa,qn,rt,Jt,_t)))return bo.add(is)})){yo=!1;break}}else if(!(sa===la||Be(sa,la,rt,Jt,_t))){yo=!1;break}}return _t.delete(L),_t.delete(re),yo}function Mo(L,re,Be,rt,Jt,_t,yr){switch(Be){case B:if(L.byteLength!=re.byteLength||L.byteOffset!=re.byteOffset)return!1;L=L.buffer,re=re.buffer;case D:return!(L.byteLength!=re.byteLength||!rt(new uo(L),new uo(re)));case h:case p:case g:return Gt(+L,+re);case m:return L.name==re.name&&L.message==re.message;case T:case O:return L==re+"";case w:var Dn=ir;case k:var Bn=_t&i;if(Dn||(Dn=st),L.size!=re.size&&!Bn)return!1;var go=yr.get(L);if(go)return go==re;_t|=a,yr.set(L,re);var Io=ro(Dn(L),Dn(re),rt,Jt,_t,yr);return yr.delete(L),Io;case E:if(zt)return zt.call(L)==zt.call(re)}return!1}function Go(L,re,Be,rt,Jt,_t){var yr=Jt&i,Dn=eu(L),Bn=Dn.length,go=eu(re),Io=go.length;if(Bn!=Io&&!yr)return!1;for(var yo=Bn;yo--;){var bo=Dn[yo];if(!(yr?bo in re:cr.call(re,bo)))return!1}var sa=_t.get(L);if(sa&&_t.get(re))return sa==re;var la=!0;_t.set(L,re),_t.set(re,L);for(var Ea=yr;++yo<Bn;){bo=Dn[yo];var qn=L[bo],is=re[bo];if(rt)var Jh=yr?rt(is,qn,bo,re,L,_t):rt(qn,is,bo,L,re,_t);if(!(Jh===void 0?qn===is||Be(qn,is,rt,Jt,_t):Jh)){la=!1;break}Ea||(Ea=bo=="constructor")}if(la&&!Ea){var Ql=L.constructor,ss=re.constructor;Ql!=ss&&"constructor"in L&&"constructor"in re&&!(typeof Ql=="function"&&Ql instanceof Ql&&typeof ss=="function"&&ss instanceof ss)&&(la=!1)}return _t.delete(L),_t.delete(re),la}function no(L,re){var Be=L.__data__;return qo(re)?Be[typeof re=="string"?"string":"hash"]:Be.map}function dn(L){for(var re=eu(L),Be=re.length;Be--;){var rt=re[Be],Jt=L[rt];re[Be]=[rt,Jt,$(Jt)]}return re}function oo(L,re){var Be=kt(L,re);return un(Be)?Be:void 0}var vo=os;(ie&&vo(new ie(new ArrayBuffer(1)))!=B||ve&&vo(new ve)!=w||_e&&vo(_e.resolve())!=R||qe&&vo(new qe)!=k||ct&&vo(new ct)!=C)&&(vo=function(L){var re=br.call(L),Be=re==S?L.constructor:void 0,rt=Be?We(Be):void 0;if(rt)switch(rt){case Ct:return B;case vt:return w;case yt:return R;case pt:return k;case Oe:return C}return re});function Xa(L,re,Be){re=Ko(re,L)?[re]:Ur(re);for(var rt,Jt=-1,yr=re.length;++Jt<yr;){var _t=J(re[Jt]);if(!(rt=L!=null&&Be(L,_t)))break;L=L[_t]}if(rt)return rt;var yr=L?L.length:0;return!!yr&&rn(yr)&&Ro(_t,yr)&&(gr(L)||Ut(L))}function Ro(L,re){return re=re??l,!!re&&(typeof L=="number"||X.test(L))&&L>-1&&L%1==0&&L<re}function Ko(L,re){if(gr(L))return!1;var Be=typeof L;return Be=="number"||Be=="symbol"||Be=="boolean"||L==null||ia(L)?!0:Te.test(L)||!Ie.test(L)||re!=null&&L in Object(re)}function qo(L){var re=typeof L;return re=="string"||re=="number"||re=="symbol"||re=="boolean"?L!=="__proto__":L===null}function as(L){return!!mt&&mt in L}function _i(L){var re=L&&L.constructor,Be=typeof re=="function"&&re.prototype||Mt;return L===Be}function $(L){return L===L&&!_n(L)}function P(L,re){return function(Be){return Be==null?!1:Be[L]===re&&(re!==void 0||L in Object(Be))}}var A=At(function(L){L=Qd(L);var re=[];return ke.test(L)&&re.push(""),L.replace(pe,function(Be,rt,Jt,_t){re.push(Jt?_t.replace(ge,"$1"):rt||Be)}),re});function J(L){if(typeof L=="string"||ia(L))return L;var re=L+"";return re=="0"&&1/L==-s?"-0":re}function We(L){if(L!=null){try{return dr.call(L)}catch{}try{return L+""}catch{}}return""}function Je(L,re,Be){var rt=L?L.length:0;if(!rt)return-1;var Jt=Be==null?0:il(Be);return Jt<0&&(Jt=Gn(rt+Jt,0)),qt(L,to(re),Jt)}var It=Ya(Je);function At(L,re){if(typeof L!="function"||re&&typeof re!="function")throw new TypeError(n);var Be=function(){var rt=arguments,Jt=re?re.apply(this,rt):rt[0],_t=Be.cache;if(_t.has(Jt))return _t.get(Jt);var yr=L.apply(this,rt);return Be.cache=_t.set(Jt,yr),yr};return Be.cache=new(At.Cache||Vt),Be}At.Cache=Vt;function Gt(L,re){return L===re||L!==L&&re!==re}function Ut(L){return Hr(L)&&cr.call(L,"callee")&&(!Nn.call(L,"callee")||br.call(L)==d)}var gr=Array.isArray;function _r(L){return L!=null&&rn(L.length)&&!Tr(L)}function Hr(L){return ko(L)&&_r(L)}function Tr(L){var re=_n(L)?br.call(L):"";return re==x||re==b}function rn(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=l}function _n(L){var re=typeof L;return!!L&&(re=="object"||re=="function")}function ko(L){return!!L&&typeof L=="object"}function ia(L){return typeof L=="symbol"||ko(L)&&br.call(L)==E}var Di=St?gt(St):Oi;function al(L){if(!L)return L===0?L:0;if(L=Qh(L),L===s||L===-s){var re=L<0?-1:1;return re*c}return L===L?L:0}function il(L){var re=al(L),Be=re%1;return re===re?Be?re-Be:re:0}function Qh(L){if(typeof L=="number")return L;if(ia(L))return u;if(_n(L)){var re=typeof L.valueOf=="function"?L.valueOf():L;L=_n(re)?re+"":re}if(typeof L!="string")return L===0?L:+L;L=L.replace(Ae,"");var Be=Y.test(L);return Be||Z.test(L)?fe(L.slice(2),Be?2:8):G.test(L)?u:+L}function Qd(L){return L==null?"":qa(L)}function Zh(L,re,Be){var rt=L==null?void 0:Ia(L,re);return rt===void 0?Be:rt}function r0(L,re){return L!=null&&Xa(L,re,Ei)}function eu(L){return _r(L)?Fn(L):ks(L)}function n0(L){return L}function o0(L){return Ko(L)?wt(J(L)):he(L)}e.exports=It})(_g,_g.exports);var Kbe=_g.exports,Dg={exports:{}};Dg.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=1,a=2,i=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",x="[object Number]",b="[object Null]",w="[object Object]",g="[object Promise]",S="[object Proxy]",R="[object RegExp]",T="[object Set]",k="[object String]",O="[object Symbol]",E="[object Undefined]",C="[object WeakMap]",D="[object ArrayBuffer]",B="[object DataView]",U="[object Float32Array]",j="[object Float64Array]",N="[object Int8Array]",V="[object Int16Array]",ee="[object Int32Array]",M="[object Uint8Array]",K="[object Uint8ClampedArray]",te="[object Uint16Array]",oe="[object Uint32Array]",Ie=/[\\^$.*+?()[\]{}|]/g,Te=/^\[object .+?Constructor\]$/,ke=/^(?:0|[1-9]\d*)$/,pe={};pe[U]=pe[j]=pe[N]=pe[V]=pe[ee]=pe[M]=pe[K]=pe[te]=pe[oe]=!0,pe[s]=pe[l]=pe[D]=pe[u]=pe[B]=pe[d]=pe[f]=pe[h]=pe[m]=pe[x]=pe[w]=pe[R]=pe[T]=pe[k]=pe[C]=!1;var Pe=typeof lr=="object"&&lr&&lr.Object===Object&&lr,Ae=typeof self=="object"&&self&&self.Object===Object&&self,ge=Pe||Ae||Function("return this")(),G=t&&!t.nodeType&&t,Y=G&&!0&&e&&!e.nodeType&&e,Q=Y&&Y.exports===G,Z=Q&&Pe.process,X=function(){try{return Z&&Z.binding&&Z.binding("util")}catch{}}(),ae=X&&X.isTypedArray;function fe($,P){for(var A=-1,J=$==null?0:$.length,We=0,Je=[];++A<J;){var It=$[A];P(It,A,$)&&(Je[We++]=It)}return Je}function xe($,P){for(var A=-1,J=P.length,We=$.length;++A<J;)$[We+A]=P[A];return $}function we($,P){for(var A=-1,J=$==null?0:$.length;++A<J;)if(P($[A],A,$))return!0;return!1}function $e($,P){for(var A=-1,J=Array($);++A<$;)J[A]=P(A);return J}function ye($){return function(P){return $(P)}}function De($,P){return $.has(P)}function Ge($,P){return $==null?void 0:$[P]}function bt($){var P=-1,A=Array($.size);return $.forEach(function(J,We){A[++P]=[We,J]}),A}function Ke($,P){return function(A){return $(P(A))}}function St($){var P=-1,A=Array($.size);return $.forEach(function(J){A[++P]=J}),A}var Lt=Array.prototype,qt=Function.prototype,wt=Object.prototype,lt=ge["__core-js_shared__"],gt=qt.toString,kt=wt.hasOwnProperty,dt=function(){var $=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),ir=wt.toString,jr=RegExp("^"+gt.call(kt).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),st=Q?ge.Buffer:void 0,He=ge.Symbol,Ye=ge.Uint8Array,Mt=wt.propertyIsEnumerable,Ot=Lt.splice,mt=He?He.toStringTag:void 0,dr=Object.getOwnPropertySymbols,cr=st?st.isBuffer:void 0,br=Ke(Object.keys,Object),Jr=Wo(ge,"DataView"),wn=Wo(ge,"Map"),uo=Wo(ge,"Promise"),Nn=Wo(ge,"Set"),Xt=Wo(ge,"WeakMap"),qr=Wo(Object,"create"),Gn=Ur(Jr),ie=Ur(wn),ve=Ur(uo),_e=Ur(Nn),qe=Ur(Xt),ct=He?He.prototype:void 0,ft=ct?ct.valueOf:void 0;function Ct($){var P=-1,A=$==null?0:$.length;for(this.clear();++P<A;){var J=$[P];this.set(J[0],J[1])}}function vt(){this.__data__=qr?qr(null):{},this.size=0}function yt($){var P=this.has($)&&delete this.__data__[$];return this.size-=P?1:0,P}function pt($){var P=this.__data__;if(qr){var A=P[$];return A===n?void 0:A}return kt.call(P,$)?P[$]:void 0}function Oe($){var P=this.__data__;return qr?P[$]!==void 0:kt.call(P,$)}function nt($,P){var A=this.__data__;return this.size+=this.has($)?0:1,A[$]=qr&&P===void 0?n:P,this}Ct.prototype.clear=vt,Ct.prototype.delete=yt,Ct.prototype.get=pt,Ct.prototype.has=Oe,Ct.prototype.set=nt;function zt($){var P=-1,A=$==null?0:$.length;for(this.clear();++P<A;){var J=$[P];this.set(J[0],J[1])}}function kr(){this.__data__=[],this.size=0}function rr($){var P=this.__data__,A=fo(P,$);if(A<0)return!1;var J=P.length-1;return A==J?P.pop():Ot.call(P,A,1),--this.size,!0}function nr($){var P=this.__data__,A=fo(P,$);return A<0?void 0:P[A][1]}function Ir($){return fo(this.__data__,$)>-1}function eo($,P){var A=this.__data__,J=fo(A,$);return J<0?(++this.size,A.push([$,P])):A[J][1]=P,this}zt.prototype.clear=kr,zt.prototype.delete=rr,zt.prototype.get=nr,zt.prototype.has=Ir,zt.prototype.set=eo;function vr($){var P=-1,A=$==null?0:$.length;for(this.clear();++P<A;){var J=$[P];this.set(J[0],J[1])}}function an(){this.size=0,this.__data__={hash:new Ct,map:new(wn||zt),string:new Ct}}function Cr($){var P=Er(this,$).delete($);return this.size-=P?1:0,P}function Kn($){return Er(this,$).get($)}function En($){return Er(this,$).has($)}function en($,P){var A=Er(this,$),J=A.size;return A.set($,P),this.size+=A.size==J?0:1,this}vr.prototype.clear=an,vr.prototype.delete=Cr,vr.prototype.get=Kn,vr.prototype.has=En,vr.prototype.set=en;function ut($){var P=-1,A=$==null?0:$.length;for(this.__data__=new vr;++P<A;)this.add($[P])}function On($){return this.__data__.set($,n),this}function Vt($){return this.__data__.has($)}ut.prototype.add=ut.prototype.push=On,ut.prototype.has=Vt;function Qt($){var P=this.__data__=new zt($);this.size=P.size}function Ee(){this.__data__=new zt,this.size=0}function Fr($){var P=this.__data__,A=P.delete($);return this.size=P.size,A}function xt($){return this.__data__.get($)}function $o($){return this.__data__.has($)}function ur($,P){var A=this.__data__;if(A instanceof zt){var J=A.__data__;if(!wn||J.length<r-1)return J.push([$,P]),this.size=++A.size,this;A=this.__data__=new vr(J)}return A.set($,P),this.size=A.size,this}Qt.prototype.clear=Ee,Qt.prototype.delete=Fr,Qt.prototype.get=xt,Qt.prototype.has=$o,Qt.prototype.set=ur;function Yr($,P){var A=Mo($),J=!A&&ro($),We=!A&&!J&&no($),Je=!A&&!J&&!We&&Ko($),It=A||J||We||Je,At=It?$e($.length,String):[],Gt=At.length;for(var Ut in $)kt.call($,Ut)&&!(It&&(Ut=="length"||We&&(Ut=="offset"||Ut=="parent")||Je&&(Ut=="buffer"||Ut=="byteLength"||Ut=="byteOffset")||ks(Ut,Gt)))&&At.push(Ut);return At}function fo($,P){for(var A=$.length;A--;)if(Ya($[A][0],P))return A;return-1}function cn($,P,A){var J=P($);return Mo($)?J:xe(J,A($))}function po($){return $==null?$===void 0?E:b:mt&&mt in Object($)?un($):qa($)}function tn($){return Ro($)&&po($)==s}function ns($,P,A,J,We){return $===P?!0:$==null||P==null||!Ro($)&&!Ro(P)?$!==$&&P!==P:Or($,P,A,J,ns,We)}function Or($,P,A,J,We,Je){var It=Mo($),At=Mo(P),Gt=It?l:to($),Ut=At?l:to(P);Gt=Gt==s?w:Gt,Ut=Ut==s?w:Ut;var gr=Gt==w,_r=Ut==w,Hr=Gt==Ut;if(Hr&&no($)){if(!no(P))return!1;It=!0,gr=!1}if(Hr&&!gr)return Je||(Je=new Qt),It||Ko($)?Ia($,P,A,J,We,Je):os($,P,Gt,A,J,We,Je);if(!(A&o)){var Tr=gr&&kt.call($,"__wrapped__"),rn=_r&&kt.call(P,"__wrapped__");if(Tr||rn){var _n=Tr?$.value():$,ko=rn?P.value():P;return Je||(Je=new Qt),We(_n,ko,A,J,Je)}}return Hr?(Je||(Je=new Qt),Ei($,P,A,J,We,Je)):!1}function ho($){if(!Xa($)||ne($))return!1;var P=oo($)?jr:Te;return P.test(Ur($))}function Fn($){return Ro($)&&vo($.length)&&!!pe[po($)]}function aa($){if(!he($))return br($);var P=[];for(var A in Object($))kt.call($,A)&&A!="constructor"&&P.push(A);return P}function Ia($,P,A,J,We,Je){var It=A&o,At=$.length,Gt=P.length;if(At!=Gt&&!(It&&Gt>At))return!1;var Ut=Je.get($);if(Ut&&Je.get(P))return Ut==P;var gr=-1,_r=!0,Hr=A&a?new ut:void 0;for(Je.set($,P),Je.set(P,$);++gr<At;){var Tr=$[gr],rn=P[gr];if(J)var _n=It?J(rn,Tr,gr,P,$,Je):J(Tr,rn,gr,$,P,Je);if(_n!==void 0){if(_n)continue;_r=!1;break}if(Hr){if(!we(P,function(ko,ia){if(!De(Hr,ia)&&(Tr===ko||We(Tr,ko,A,J,Je)))return Hr.push(ia)})){_r=!1;break}}else if(!(Tr===rn||We(Tr,rn,A,J,Je))){_r=!1;break}}return Je.delete($),Je.delete(P),_r}function os($,P,A,J,We,Je,It){switch(A){case B:if($.byteLength!=P.byteLength||$.byteOffset!=P.byteOffset)return!1;$=$.buffer,P=P.buffer;case D:return!($.byteLength!=P.byteLength||!Je(new Ye($),new Ye(P)));case u:case d:case x:return Ya(+$,+P);case f:return $.name==P.name&&$.message==P.message;case R:case k:return $==P+"";case m:var At=bt;case T:var Gt=J&o;if(At||(At=St),$.size!=P.size&&!Gt)return!1;var Ut=It.get($);if(Ut)return Ut==P;J|=a,It.set($,P);var gr=Ia(At($),At(P),J,We,Je,It);return It.delete($),gr;case O:if(ft)return ft.call($)==ft.call(P)}return!1}function Ei($,P,A,J,We,Je){var It=A&o,At=mo($),Gt=At.length,Ut=mo(P),gr=Ut.length;if(Gt!=gr&&!It)return!1;for(var _r=Gt;_r--;){var Hr=At[_r];if(!(It?Hr in P:kt.call(P,Hr)))return!1}var Tr=Je.get($);if(Tr&&Je.get(P))return Tr==P;var rn=!0;Je.set($,P),Je.set(P,$);for(var _n=It;++_r<Gt;){Hr=At[_r];var ko=$[Hr],ia=P[Hr];if(J)var Di=It?J(ia,ko,Hr,P,$,Je):J(ko,ia,Hr,$,P,Je);if(!(Di===void 0?ko===ia||We(ko,ia,A,J,Je):Di)){rn=!1;break}_n||(_n=Hr=="constructor")}if(rn&&!_n){var al=$.constructor,il=P.constructor;al!=il&&"constructor"in $&&"constructor"in P&&!(typeof al=="function"&&al instanceof al&&typeof il=="function"&&il instanceof il)&&(rn=!1)}return Je.delete($),Je.delete(P),rn}function mo($){return cn($,qo,Oi)}function Er($,P){var A=$.__data__;return Is(P)?A[typeof P=="string"?"string":"hash"]:A.map}function Wo($,P){var A=Ge($,P);return ho(A)?A:void 0}function un($){var P=kt.call($,mt),A=$[mt];try{$[mt]=void 0;var J=!0}catch{}var We=ir.call($);return J&&(P?$[mt]=A:delete $[mt]),We}var Oi=dr?function($){return $==null?[]:($=Object($),fe(dr($),function(P){return Mt.call($,P)}))}:as,to=po;(Jr&&to(new Jr(new ArrayBuffer(1)))!=B||wn&&to(new wn)!=m||uo&&to(uo.resolve())!=g||Nn&&to(new Nn)!=T||Xt&&to(new Xt)!=C)&&(to=function($){var P=po($),A=P==w?$.constructor:void 0,J=A?Ur(A):"";if(J)switch(J){case Gn:return B;case ie:return m;case ve:return g;case _e:return T;case qe:return C}return P});function ks($,P){return P=P??i,!!P&&(typeof $=="number"||ke.test($))&&$>-1&&$%1==0&&$<P}function Is($){var P=typeof $;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?$!=="__proto__":$===null}function ne($){return!!dt&&dt in $}function he($){var P=$&&$.constructor,A=typeof P=="function"&&P.prototype||wt;return $===A}function qa($){return ir.call($)}function Ur($){if($!=null){try{return gt.call($)}catch{}try{return $+""}catch{}}return""}function Ya($,P){return $===P||$!==$&&P!==P}var ro=tn(function(){return arguments}())?tn:function($){return Ro($)&&kt.call($,"callee")&&!Mt.call($,"callee")},Mo=Array.isArray;function Go($){return $!=null&&vo($.length)&&!oo($)}var no=cr||_i;function dn($,P){return ns($,P)}function oo($){if(!Xa($))return!1;var P=po($);return P==h||P==p||P==c||P==S}function vo($){return typeof $=="number"&&$>-1&&$%1==0&&$<=i}function Xa($){var P=typeof $;return $!=null&&(P=="object"||P=="function")}function Ro($){return $!=null&&typeof $=="object"}var Ko=ae?ye(ae):Fn;function qo($){return Go($)?Yr($):aa($)}function as(){return[]}function _i(){return!1}e.exports=dn})(Dg,Dg.exports);var qbe=Dg.exports;function Ybe(e){return e===void 0}var Xbe=Ybe,Mg={exports:{}};Mg.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,a=16,i=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",x="[object Number]",b="[object Null]",w="[object Object]",g="[object Proxy]",S="[object RegExp]",R="[object Set]",T="[object String]",k="[object Undefined]",O="[object WeakMap]",E="[object ArrayBuffer]",C="[object DataView]",D="[object Float32Array]",B="[object Float64Array]",U="[object Int8Array]",j="[object Int16Array]",N="[object Int32Array]",V="[object Uint8Array]",ee="[object Uint8ClampedArray]",M="[object Uint16Array]",K="[object Uint32Array]",te=/[\\^$.*+?()[\]{}|]/g,oe=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,Te={};Te[D]=Te[B]=Te[U]=Te[j]=Te[N]=Te[V]=Te[ee]=Te[M]=Te[K]=!0,Te[s]=Te[l]=Te[E]=Te[u]=Te[C]=Te[d]=Te[f]=Te[h]=Te[m]=Te[x]=Te[w]=Te[S]=Te[R]=Te[T]=Te[O]=!1;var ke=typeof lr=="object"&&lr&&lr.Object===Object&&lr,pe=typeof self=="object"&&self&&self.Object===Object&&self,Pe=ke||pe||Function("return this")(),Ae=t&&!t.nodeType&&t,ge=Ae&&!0&&e&&!e.nodeType&&e,G=ge&&ge.exports===Ae,Y=G&&ke.process,Q=function(){try{var P=ge&&ge.require&&ge.require("util").types;return P||Y&&Y.binding&&Y.binding("util")}catch{}}(),Z=Q&&Q.isTypedArray;function X(P,A,J){switch(J.length){case 0:return P.call(A);case 1:return P.call(A,J[0]);case 2:return P.call(A,J[0],J[1]);case 3:return P.call(A,J[0],J[1],J[2])}return P.apply(A,J)}function ae(P,A){for(var J=-1,We=Array(P);++J<P;)We[J]=A(J);return We}function fe(P){return function(A){return P(A)}}function xe(P,A){return P==null?void 0:P[A]}function we(P,A){return function(J){return P(A(J))}}var $e=Array.prototype,ye=Function.prototype,De=Object.prototype,Ge=Pe["__core-js_shared__"],bt=ye.toString,Ke=De.hasOwnProperty,St=function(){var P=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}(),Lt=De.toString,qt=bt.call(Object),wt=RegExp("^"+bt.call(Ke).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lt=G?Pe.Buffer:void 0,gt=Pe.Symbol,kt=Pe.Uint8Array;lt&<.allocUnsafe;var dt=we(Object.getPrototypeOf,Object),ir=Object.create,jr=De.propertyIsEnumerable,st=$e.splice,He=gt?gt.toStringTag:void 0,Ye=function(){try{var P=ho(Object,"defineProperty");return P({},"",{}),P}catch{}}(),Mt=lt?lt.isBuffer:void 0,Ot=Math.max,mt=Date.now,dr=ho(Pe,"Map"),cr=ho(Object,"create"),br=function(){function P(){}return function(A){if(!dn(A))return{};if(ir)return ir(A);P.prototype=A;var J=new P;return P.prototype=void 0,J}}();function Jr(P){var A=-1,J=P==null?0:P.length;for(this.clear();++A<J;){var We=P[A];this.set(We[0],We[1])}}function wn(){this.__data__=cr?cr(null):{},this.size=0}function uo(P){var A=this.has(P)&&delete this.__data__[P];return this.size-=A?1:0,A}function Nn(P){var A=this.__data__;if(cr){var J=A[P];return J===n?void 0:J}return Ke.call(A,P)?A[P]:void 0}function Xt(P){var A=this.__data__;return cr?A[P]!==void 0:Ke.call(A,P)}function qr(P,A){var J=this.__data__;return this.size+=this.has(P)?0:1,J[P]=cr&&A===void 0?n:A,this}Jr.prototype.clear=wn,Jr.prototype.delete=uo,Jr.prototype.get=Nn,Jr.prototype.has=Xt,Jr.prototype.set=qr;function Gn(P){var A=-1,J=P==null?0:P.length;for(this.clear();++A<J;){var We=P[A];this.set(We[0],We[1])}}function ie(){this.__data__=[],this.size=0}function ve(P){var A=this.__data__,J=Cr(A,P);if(J<0)return!1;var We=A.length-1;return J==We?A.pop():st.call(A,J,1),--this.size,!0}function _e(P){var A=this.__data__,J=Cr(A,P);return J<0?void 0:A[J][1]}function qe(P){return Cr(this.__data__,P)>-1}function ct(P,A){var J=this.__data__,We=Cr(J,P);return We<0?(++this.size,J.push([P,A])):J[We][1]=A,this}Gn.prototype.clear=ie,Gn.prototype.delete=ve,Gn.prototype.get=_e,Gn.prototype.has=qe,Gn.prototype.set=ct;function ft(P){var A=-1,J=P==null?0:P.length;for(this.clear();++A<J;){var We=P[A];this.set(We[0],We[1])}}function Ct(){this.size=0,this.__data__={hash:new Jr,map:new(dr||Gn),string:new Jr}}function vt(P){var A=Or(this,P).delete(P);return this.size-=A?1:0,A}function yt(P){return Or(this,P).get(P)}function pt(P){return Or(this,P).has(P)}function Oe(P,A){var J=Or(this,P),We=J.size;return J.set(P,A),this.size+=J.size==We?0:1,this}ft.prototype.clear=Ct,ft.prototype.delete=vt,ft.prototype.get=yt,ft.prototype.has=pt,ft.prototype.set=Oe;function nt(P){var A=this.__data__=new Gn(P);this.size=A.size}function zt(){this.__data__=new Gn,this.size=0}function kr(P){var A=this.__data__,J=A.delete(P);return this.size=A.size,J}function rr(P){return this.__data__.get(P)}function nr(P){return this.__data__.has(P)}function Ir(P,A){var J=this.__data__;if(J instanceof Gn){var We=J.__data__;if(!dr||We.length<r-1)return We.push([P,A]),this.size=++J.size,this;J=this.__data__=new ft(We)}return J.set(P,A),this.size=J.size,this}nt.prototype.clear=zt,nt.prototype.delete=kr,nt.prototype.get=rr,nt.prototype.has=nr,nt.prototype.set=Ir;function eo(P,A){var J=Ur(P),We=!J&&qa(P),Je=!J&&!We&&Mo(P),It=!J&&!We&&!Je&&Xa(P),At=J||We||Je||It,Gt=At?ae(P.length,String):[],Ut=Gt.length;for(var gr in P)At&&(gr=="length"||Je&&(gr=="offset"||gr=="parent")||It&&(gr=="buffer"||gr=="byteLength"||gr=="byteOffset")||Ia(gr,Ut))||Gt.push(gr);return Gt}function vr(P,A,J){(J!==void 0&&!he(P[A],J)||J===void 0&&!(A in P))&&Kn(P,A,J)}function an(P,A,J){var We=P[A];(!(Ke.call(P,A)&&he(We,J))||J===void 0&&!(A in P))&&Kn(P,A,J)}function Cr(P,A){for(var J=P.length;J--;)if(he(P[J][0],A))return J;return-1}function Kn(P,A,J){A=="__proto__"&&Ye?Ye(P,A,{configurable:!0,enumerable:!0,value:J,writable:!0}):P[A]=J}var En=ns();function en(P){return P==null?P===void 0?k:b:He&&He in Object(P)?Fn(P):un(P)}function ut(P){return oo(P)&&en(P)==s}function On(P){if(!dn(P)||mo(P))return!1;var A=Go(P)?wt:oe;return A.test(ne(P))}function Vt(P){return oo(P)&&no(P.length)&&!!Te[en(P)]}function Qt(P){if(!dn(P))return Wo(P);var A=Er(P),J=[];for(var We in P)We=="constructor"&&(A||!Ke.call(P,We))||J.push(We);return J}function Ee(P,A,J,We,Je){P!==A&&En(A,function(It,At){if(Je||(Je=new nt),dn(It))Fr(P,A,At,J,Ee,We,Je);else{var Gt=We?We(to(P,At),It,At+"",P,A,Je):void 0;Gt===void 0&&(Gt=It),vr(P,At,Gt)}},Ko)}function Fr(P,A,J,We,Je,It,At){var Gt=to(P,J),Ut=to(A,J),gr=At.get(Ut);if(gr){vr(P,J,gr);return}var _r=It?It(Gt,Ut,J+"",P,A,At):void 0,Hr=_r===void 0;if(Hr){var Tr=Ur(Ut),rn=!Tr&&Mo(Ut),_n=!Tr&&!rn&&Xa(Ut);_r=Ut,Tr||rn||_n?Ur(Gt)?_r=Gt:ro(Gt)?_r=cn(Gt):rn?(Hr=!1,_r=ur(Ut)):_n?(Hr=!1,_r=fo(Ut)):_r=[]:vo(Ut)||qa(Ut)?(_r=Gt,qa(Gt)?_r=Ro(Gt):(!dn(Gt)||Go(Gt))&&(_r=aa(Ut))):Hr=!1}Hr&&(At.set(Ut,_r),Je(_r,Ut,We,It,At),At.delete(Ut)),vr(P,J,_r)}function xt(P,A){return ks(Oi(P,A,_i),P+"")}var $o=Ye?function(P,A){return Ye(P,"toString",{configurable:!0,enumerable:!1,value:as(A),writable:!0})}:_i;function ur(P,A){return P.slice()}function Yr(P){var A=new P.constructor(P.byteLength);return new kt(A).set(new kt(P)),A}function fo(P,A){var J=Yr(P.buffer);return new P.constructor(J,P.byteOffset,P.length)}function cn(P,A){var J=-1,We=P.length;for(A||(A=Array(We));++J<We;)A[J]=P[J];return A}function po(P,A,J,We){var Je=!J;J||(J={});for(var It=-1,At=A.length;++It<At;){var Gt=A[It],Ut=void 0;Ut===void 0&&(Ut=P[Gt]),Je?Kn(J,Gt,Ut):an(J,Gt,Ut)}return J}function tn(P){return xt(function(A,J){var We=-1,Je=J.length,It=Je>1?J[Je-1]:void 0,At=Je>2?J[2]:void 0;for(It=P.length>3&&typeof It=="function"?(Je--,It):void 0,At&&os(J[0],J[1],At)&&(It=Je<3?void 0:It,Je=1),A=Object(A);++We<Je;){var Gt=J[We];Gt&&P(A,Gt,We,It)}return A})}function ns(P){return function(A,J,We){for(var Je=-1,It=Object(A),At=We(A),Gt=At.length;Gt--;){var Ut=At[++Je];if(J(It[Ut],Ut,It)===!1)break}return A}}function Or(P,A){var J=P.__data__;return Ei(A)?J[typeof A=="string"?"string":"hash"]:J.map}function ho(P,A){var J=xe(P,A);return On(J)?J:void 0}function Fn(P){var A=Ke.call(P,He),J=P[He];try{P[He]=void 0;var We=!0}catch{}var Je=Lt.call(P);return We&&(A?P[He]=J:delete P[He]),Je}function aa(P){return typeof P.constructor=="function"&&!Er(P)?br(dt(P)):{}}function Ia(P,A){var J=typeof P;return A=A??i,!!A&&(J=="number"||J!="symbol"&&Ie.test(P))&&P>-1&&P%1==0&&P<A}function os(P,A,J){if(!dn(J))return!1;var We=typeof A;return(We=="number"?Ya(J)&&Ia(A,J.length):We=="string"&&A in J)?he(J[A],P):!1}function Ei(P){var A=typeof P;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?P!=="__proto__":P===null}function mo(P){return!!St&&St in P}function Er(P){var A=P&&P.constructor,J=typeof A=="function"&&A.prototype||De;return P===J}function Wo(P){var A=[];if(P!=null)for(var J in Object(P))A.push(J);return A}function un(P){return Lt.call(P)}function Oi(P,A,J){return A=Ot(A===void 0?P.length-1:A,0),function(){for(var We=arguments,Je=-1,It=Ot(We.length-A,0),At=Array(It);++Je<It;)At[Je]=We[A+Je];Je=-1;for(var Gt=Array(A+1);++Je<A;)Gt[Je]=We[Je];return Gt[A]=J(At),X(P,this,Gt)}}function to(P,A){if(!(A==="constructor"&&typeof P[A]=="function")&&A!="__proto__")return P[A]}var ks=Is($o);function Is(P){var A=0,J=0;return function(){var We=mt(),Je=a-(We-J);if(J=We,Je>0){if(++A>=o)return arguments[0]}else A=0;return P.apply(void 0,arguments)}}function ne(P){if(P!=null){try{return bt.call(P)}catch{}try{return P+""}catch{}}return""}function he(P,A){return P===A||P!==P&&A!==A}var qa=ut(function(){return arguments}())?ut:function(P){return oo(P)&&Ke.call(P,"callee")&&!jr.call(P,"callee")},Ur=Array.isArray;function Ya(P){return P!=null&&no(P.length)&&!Go(P)}function ro(P){return oo(P)&&Ya(P)}var Mo=Mt||$;function Go(P){if(!dn(P))return!1;var A=en(P);return A==h||A==p||A==c||A==g}function no(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=i}function dn(P){var A=typeof P;return P!=null&&(A=="object"||A=="function")}function oo(P){return P!=null&&typeof P=="object"}function vo(P){if(!oo(P)||en(P)!=w)return!1;var A=dt(P);if(A===null)return!0;var J=Ke.call(A,"constructor")&&A.constructor;return typeof J=="function"&&J instanceof J&&bt.call(J)==qt}var Xa=Z?fe(Z):Vt;function Ro(P){return po(P,Ko(P))}function Ko(P){return Ya(P)?eo(P):Qt(P)}var qo=tn(function(P,A,J){Ee(P,A,J)});function as(P){return function(){return P}}function _i(P){return P}function $(){return!1}e.exports=qo})(Mg,Mg.exports);var Qbe=Mg.exports,Zbe=tr,Jbe=nb,e0e=zT,IE=Ho,t0e=r3,r0e=rl,n0e=n3,o0e=Jbe("".slice),a0e=Math.min,i0e=n0e("startsWith");Zbe({target:"String",proto:!0,forced:!i0e},{startsWith:function(t){var r=IE(r0e(this));t0e(t);var n=e0e(a0e(arguments.length>1?arguments[1]:void 0,r.length)),o=IE(t);return o0e(r,n,n+o.length)===o}});var s0e=Po,l0e=s0e("String","startsWith"),c0e=Jn,u0e=l0e,J1=String.prototype,d0e=function(e){var t=e.startsWith;return typeof e=="string"||e===J1||c0e(J1,e)&&t===J1.startsWith?u0e:t},f0e=d0e,p0e=f0e,h0e=p0e;const m0e=Sr(kG),v0e=Sr(YZ);var g0e=Z5;const y0e=Sr(ZZ),b0e=Sr(_J),w0e=Sr(Bq),x0e=Sr(pG);var Ib={},q3={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(q3);var rs=q3.exports,Ri={};const S0e=Sr(OW);(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=S0e})(Ri);var C0e=rs.default;Object.defineProperty(Ib,"__esModule",{value:!0});Ib.default=void 0;var T0e=C0e(Ri),P0e=v;Ib.default=(0,T0e.default)((0,P0e.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight");var Eb={},$0e=rs.default;Object.defineProperty(Eb,"__esModule",{value:!0});Eb.default=void 0;var R0e=$0e(Ri),k0e=v;Eb.default=(0,R0e.default)((0,k0e.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");var sP=` +\v\f\r    â€â€‚         âŸã€€\u2028\u2029\uFEFF`,I0e=Nr,E0e=rl,O0e=Ho,lS=sP,EE=I0e("".replace),_0e=RegExp("^["+lS+"]+"),D0e=RegExp("(^|[^"+lS+"])["+lS+"]+$"),ew=function(e){return function(t){var r=O0e(E0e(t));return e&1&&(r=EE(r,_0e,"")),e&2&&(r=EE(r,D0e,"$1")),r}},Y3={start:ew(1),end:ew(2),trim:ew(3)},M0e=k5.PROPER,A0e=Vr,OE=sP,_E="â€‹Â…á Ž",j0e=function(e){return A0e(function(){return!!OE[e]()||_E[e]()!==_E||M0e&&OE[e].name!==e})},L0e=tr,N0e=Y3.trim,F0e=j0e;L0e({target:"String",proto:!0,forced:F0e("trim")},{trim:function(){return N0e(this)}});var B0e=Po,z0e=B0e("String","trim"),V0e=Jn,U0e=z0e,tw=String.prototype,H0e=function(e){var t=e.trim;return typeof e=="string"||e===tw||V0e(tw,e)&&t===tw.trim?U0e:t},W0e=H0e,G0e=W0e,K0e=G0e,q0e=tr,Y0e=Nr,X0e=lb,Q0e=RangeError,DE=String.fromCharCode,ME=String.fromCodePoint,Z0e=Y0e([].join),J0e=!!ME&&ME.length!==1;q0e({target:"String",stat:!0,arity:1,forced:J0e},{fromCodePoint:function(t){for(var r=[],n=arguments.length,o=0,a;n>o;){if(a=+arguments[o++],X0e(a,1114111)!==a)throw new Q0e(a+" is not a valid code point");r[o]=a<65536?DE(a):DE(((a-=65536)>>10)+55296,a%1024+56320)}return Z0e(r,"")}});var AE=kn,e1e=Wn,t1e=Object.getOwnPropertyDescriptor,r1e=function(e){if(!e1e)return AE[e];var t=t1e(AE,e);return t&&t.value},n1e=Vr,o1e=Ln,a1e=Wn,jE=Qte,i1e=o1e("iterator"),Ob=!n1e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach(function(o,a){t.delete("b"),n+=a+o}),r.delete("a",2),r.delete("b",void 0),jE&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(jE||!a1e)||!t.sort||e.href!=="https://a/c%20d?a=1&c=3"||t.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!t[i1e]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://теÑÑ‚").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||n!=="a1c3"||new URL("https://x",void 0).host!=="x"}),s1e=Yc,l1e=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:s1e(e,n,t[n],r);return e},c1e=Jn,u1e=TypeError,X3=function(e,t){if(c1e(t,e))return e;throw new u1e("Incorrect invocation")},d1e=TypeError,Gh=function(e,t){if(e<t)throw new d1e("Not enough arguments");return e},cS=tr,Q3=kn,lP=r1e,f1e=$a,Gm=Ka,Ji=Nr,up=Wn,Z3=Ob,J3=Yc,p1e=WT,h1e=l1e,m1e=Yl,v1e=_5,cP=Ah,eF=X3,rw=Do,g1e=Uo,y1e=Eh,b1e=Ud,w1e=Rs,tF=oa,Xo=Ho,x1e=Hd,LE=Fd,NE=G5,S1e=yb,Km=eP,hu=Gh,C1e=Ln,T1e=I3,P1e=C1e("iterator"),qd="URLSearchParams",rF=qd+"Iterator",nF=cP.set,ii=cP.getterFor(qd),$1e=cP.getterFor(rF),FE=lP("fetch"),Ag=lP("Request"),dp=lP("Headers"),nw=Ag&&Ag.prototype,BE=dp&&dp.prototype,R1e=Q3.TypeError,k1e=Q3.encodeURIComponent,I1e=String.fromCharCode,E1e=f1e("String","fromCodePoint"),O1e=parseInt,$v=Ji("".charAt),zE=Ji([].join),Pl=Ji([].push),oF=Ji("".replace),_1e=Ji([].shift),VE=Ji([].splice),UE=Ji("".split),aF=Ji("".slice),D1e=Ji(/./.exec),M1e=/\+/g,ow="�",A1e=/^[0-9a-f]+$/i,HE=function(e,t){var r=aF(e,t,t+2);return D1e(A1e,r)?O1e(r,16):NaN},j1e=function(e){for(var t=0,r=128;r>0&&e&r;r>>=1)t++;return t},L1e=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(e[0]&31)<<6|e[1]&63;break;case 3:t=(e[0]&15)<<12|(e[1]&63)<<6|e[2]&63;break;case 4:t=(e[0]&7)<<18|(e[1]&63)<<12|(e[2]&63)<<6|e[3]&63;break}return t>1114111?null:t},WE=function(e){e=oF(e,M1e," ");for(var t=e.length,r="",n=0;n<t;){var o=$v(e,n);if(o==="%"){if($v(e,n+1)==="%"||n+3>t){r+="%",n++;continue}var a=HE(e,n+1);if(a!==a){r+=o,n++;continue}n+=2;var i=j1e(a);if(i===0)o=I1e(a);else{if(i===1||i>4){r+=ow,n++;continue}for(var s=[a],l=1;l<i&&(n++,!(n+3>t||$v(e,n)!=="%"));){var c=HE(e,n+1);if(c!==c){n+=3;break}if(c>191||c<128)break;Pl(s,c),n+=2,l++}if(s.length!==i){r+=ow;continue}var u=L1e(s);u===null?r+=ow:o=E1e(u)}}r+=o,n++}return r},N1e=/[!'()~]|%20/g,F1e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},B1e=function(e){return F1e[e]},GE=function(e){return oF(k1e(e),N1e,B1e)},aw=v1e(function(t,r){nF(this,{type:rF,target:ii(t).entries,index:0,kind:r})},qd,function(){var t=$1e(this),r=t.target,n=t.index++;if(!r||n>=r.length)return t.target=null,Km(void 0,!0);var o=r[n];switch(t.kind){case"keys":return Km(o.key,!1);case"values":return Km(o.value,!1)}return Km([o.key,o.value],!1)},!0),iF=function(e){this.entries=[],this.url=null,e!==void 0&&(tF(e)?this.parseObject(e):this.parseQuery(typeof e=="string"?$v(e,0)==="?"?aF(e,1):e:Xo(e)))};iF.prototype={type:qd,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t=this.entries,r=S1e(e),n,o,a,i,s,l,c;if(r)for(n=NE(e,r),o=n.next;!(a=Gm(o,n)).done;){if(i=NE(w1e(a.value)),s=i.next,(l=Gm(s,i)).done||(c=Gm(s,i)).done||!Gm(s,i).done)throw new R1e("Expected sequence with length 2");Pl(t,{key:Xo(l.value),value:Xo(c.value)})}else for(var u in e)g1e(e,u)&&Pl(t,{key:u,value:Xo(e[u])})},parseQuery:function(e){if(e)for(var t=this.entries,r=UE(e,"&"),n=0,o,a;n<r.length;)o=r[n++],o.length&&(a=UE(o,"="),Pl(t,{key:WE(_1e(a)),value:WE(zE(a,"="))}))},serialize:function(){for(var e=this.entries,t=[],r=0,n;r<e.length;)n=e[r++],Pl(t,GE(n.key)+"="+GE(n.value));return zE(t,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var _b=function(){eF(this,Sd);var t=arguments.length>0?arguments[0]:void 0,r=nF(this,new iF(t));up||(this.size=r.entries.length)},Sd=_b.prototype;h1e(Sd,{append:function(t,r){var n=ii(this);hu(arguments.length,2),Pl(n.entries,{key:Xo(t),value:Xo(r)}),up||this.length++,n.updateURL()},delete:function(e){for(var t=ii(this),r=hu(arguments.length,1),n=t.entries,o=Xo(e),a=r<2?void 0:arguments[1],i=a===void 0?a:Xo(a),s=0;s<n.length;){var l=n[s];if(l.key===o&&(i===void 0||l.value===i)){if(VE(n,s,1),i!==void 0)break}else s++}up||(this.size=n.length),t.updateURL()},get:function(t){var r=ii(this).entries;hu(arguments.length,1);for(var n=Xo(t),o=0;o<r.length;o++)if(r[o].key===n)return r[o].value;return null},getAll:function(t){var r=ii(this).entries;hu(arguments.length,1);for(var n=Xo(t),o=[],a=0;a<r.length;a++)r[a].key===n&&Pl(o,r[a].value);return o},has:function(t){for(var r=ii(this).entries,n=hu(arguments.length,1),o=Xo(t),a=n<2?void 0:arguments[1],i=a===void 0?a:Xo(a),s=0;s<r.length;){var l=r[s++];if(l.key===o&&(i===void 0||l.value===i))return!0}return!1},set:function(t,r){var n=ii(this);hu(arguments.length,1);for(var o=n.entries,a=!1,i=Xo(t),s=Xo(r),l=0,c;l<o.length;l++)c=o[l],c.key===i&&(a?VE(o,l--,1):(a=!0,c.value=s));a||Pl(o,{key:i,value:s}),up||(this.size=o.length),n.updateURL()},sort:function(){var t=ii(this);T1e(t.entries,function(r,n){return r.key>n.key?1:-1}),t.updateURL()},forEach:function(t){for(var r=ii(this).entries,n=y1e(t,arguments.length>1?arguments[1]:void 0),o=0,a;o<r.length;)a=r[o++],n(a.value,a.key,this)},keys:function(){return new aw(this,"keys")},values:function(){return new aw(this,"values")},entries:function(){return new aw(this,"entries")}},{enumerable:!0});J3(Sd,P1e,Sd.entries,{name:"entries"});J3(Sd,"toString",function(){return ii(this).serialize()},{enumerable:!0});up&&p1e(Sd,"size",{get:function(){return ii(this).entries.length},configurable:!0,enumerable:!0});m1e(_b,qd);cS({global:!0,constructor:!0,forced:!Z3},{URLSearchParams:_b});if(!Z3&&rw(dp)){var z1e=Ji(BE.has),V1e=Ji(BE.set),KE=function(e){if(tF(e)){var t=e.body,r;if(b1e(t)===qd)return r=e.headers?new dp(e.headers):new dp,z1e(r,"content-type")||V1e(r,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),x1e(e,{body:LE(0,Xo(t)),headers:LE(0,r)})}return e};if(rw(FE)&&cS({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return FE(t,arguments.length>1?KE(arguments[1]):{})}}),rw(Ag)){var iw=function(t){return eF(this,nw),new Ag(t,arguments.length>1?KE(arguments[1]):{})};nw.constructor=iw,iw.prototype=nw,cS({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:iw})}}var U1e={URLSearchParams:_b,getState:ii},Qc=Nr,sw=2147483647,fp=36,sF=1,uS=26,H1e=38,W1e=700,G1e=72,K1e=128,q1e="-",Y1e=/[^\0-\u007E]/,lF=/[.\u3002\uFF0E\uFF61]/g,qE="Overflow: input needs wider integers to process",lw=fp-sF,YE=RangeError,X1e=Qc(lF.exec),zu=Math.floor,cw=String.fromCharCode,XE=Qc("".charCodeAt),cF=Qc([].join),$l=Qc([].push),Q1e=Qc("".replace),Z1e=Qc("".split),J1e=Qc("".toLowerCase),ewe=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=XE(e,r++);if(o>=55296&&o<=56319&&r<n){var a=XE(e,r++);(a&64512)===56320?$l(t,((o&1023)<<10)+(a&1023)+65536):($l(t,o),r--)}else $l(t,o)}return t},QE=function(e){return e+22+75*(e<26)},twe=function(e,t,r){var n=0;for(e=r?zu(e/W1e):e>>1,e+=zu(e/t);e>lw*uS>>1;)e=zu(e/lw),n+=fp;return zu(n+(lw+1)*e/(e+H1e))},rwe=function(e){var t=[];e=ewe(e);var r=e.length,n=K1e,o=0,a=G1e,i,s;for(i=0;i<e.length;i++)s=e[i],s<128&&$l(t,cw(s));var l=t.length,c=l;for(l&&$l(t,q1e);c<r;){var u=sw;for(i=0;i<e.length;i++)s=e[i],s>=n&&s<u&&(u=s);var d=c+1;if(u-n>zu((sw-o)/d))throw new YE(qE);for(o+=(u-n)*d,n=u,i=0;i<e.length;i++){if(s=e[i],s<n&&++o>sw)throw new YE(qE);if(s===n){for(var f=o,h=fp;;){var p=h<=a?sF:h>=a+uS?uS:h-a;if(f<p)break;var m=f-p,x=fp-p;$l(t,cw(QE(p+m%x))),f=zu(m/x),h+=fp}$l(t,cw(QE(f))),a=twe(o,d,c===l),o=0,c++}}o++,n++}return cF(t,"")},nwe=function(e){var t=[],r=Z1e(Q1e(J1e(e),lF,"."),"."),n,o;for(n=0;n<r.length;n++)o=r[n],$l(t,X1e(Y1e,o)?"xn--"+rwe(o):o);return cF(t,".")},owe=tr,uP=Wn,awe=Ob,dP=kn,ZE=Eh,ki=Nr,jg=Yc,ei=WT,iwe=X3,dS=Uo,fP=v5,mu=K5,ji=qc,swe=V5.codeAt,lwe=nwe,As=Ho,cwe=Yl,uwe=Gh,uF=U1e,dF=Ah,dwe=dF.set,Lg=dF.getterFor("URL"),fwe=uF.URLSearchParams,pwe=uF.getState,Sf=dP.URL,fS=dP.TypeError,Ng=dP.parseInt,hwe=Math.floor,JE=Math.pow,fi=ki("".charAt),Wi=ki(/./.exec),Vf=ki([].join),mwe=ki(1 .toString),vwe=ki([].pop),Pu=ki([].push),uw=ki("".replace),gwe=ki([].shift),ywe=ki("".split),pp=ki("".slice),Fg=ki("".toLowerCase),bwe=ki([].unshift),wwe="Invalid authority",dw="Invalid scheme",tc="Invalid host",eO="Invalid port",fF=/[a-z]/i,xwe=/[\d+-.a-z]/i,pS=/\d/,Swe=/^0x/i,Cwe=/^[0-7]+$/,Twe=/^\d+$/,pF=/^[\da-f]+$/i,Pwe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,$we=/[\0\t\n\r #/:<>?@[\\\]^|]/,Rwe=/^[\u0000-\u0020]+/,kwe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Iwe=/[\t\n\r]/g,ti,Ewe=function(e){var t=ywe(e,"."),r,n,o,a,i,s,l;if(t.length&&t[t.length-1]===""&&t.length--,r=t.length,r>4)return e;for(n=[],o=0;o<r;o++){if(a=t[o],a==="")return e;if(i=10,a.length>1&&fi(a,0)==="0"&&(i=Wi(Swe,a)?16:8,a=pp(a,i===8?1:2)),a==="")s=0;else{if(!Wi(i===10?Twe:i===8?Cwe:pF,a))return e;s=Ng(a,i)}Pu(n,s)}for(o=0;o<r;o++)if(s=n[o],o===r-1){if(s>=JE(256,5-r))return null}else if(s>255)return null;for(l=vwe(n),o=0;o<n.length;o++)l+=n[o]*JE(256,3-o);return l},Owe=function(e){var t=[0,0,0,0,0,0,0,0],r=0,n=null,o=0,a,i,s,l,c,u,d,f=function(){return fi(e,o)};if(f()===":"){if(fi(e,1)!==":")return;o+=2,r++,n=r}for(;f();){if(r===8)return;if(f()===":"){if(n!==null)return;o++,r++,n=r;continue}for(a=i=0;i<4&&Wi(pF,f());)a=a*16+Ng(f(),16),o++,i++;if(f()==="."){if(i===0||(o-=i,r>6))return;for(s=0;f();){if(l=null,s>0)if(f()==="."&&s<4)o++;else return;if(!Wi(pS,f()))return;for(;Wi(pS,f());){if(c=Ng(f(),10),l===null)l=c;else{if(l===0)return;l=l*10+c}if(l>255)return;o++}t[r]=t[r]*256+l,s++,(s===2||s===4)&&r++}if(s!==4)return;break}else if(f()===":"){if(o++,!f())return}else if(f())return;t[r++]=a}if(n!==null)for(u=r-n,r=7;r!==0&&u>0;)d=t[r],t[r--]=t[n+u-1],t[n+--u]=d;else if(r!==8)return;return t},_we=function(e){for(var t=null,r=1,n=null,o=0,a=0;a<8;a++)e[a]!==0?(o>r&&(t=n,r=o),n=null,o=0):(n===null&&(n=a),++o);return o>r?n:t},Cf=function(e){var t,r,n,o;if(typeof e=="number"){for(t=[],r=0;r<4;r++)bwe(t,e%256),e=hwe(e/256);return Vf(t,".")}if(typeof e=="object"){for(t="",n=_we(e),r=0;r<8;r++)o&&e[r]===0||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=mwe(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Rv={},hF=fP({},Rv,{" ":1,'"':1,"<":1,">":1,"`":1}),mF=fP({},hF,{"#":1,"?":1,"{":1,"}":1}),fw=fP({},mF,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fl=function(e,t){var r=swe(e,0);return r>32&&r<127&&!dS(t,e)?e:encodeURIComponent(e)},qm={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Uf=function(e,t){var r;return e.length===2&&Wi(fF,fi(e,0))&&((r=fi(e,1))===":"||!t&&r==="|")},tO=function(e){var t;return e.length>1&&Uf(pp(e,0,2))&&(e.length===2||(t=fi(e,2))==="/"||t==="\\"||t==="?"||t==="#")},Dwe=function(e){return e==="."||Fg(e)==="%2e"},Mwe=function(e){return e=Fg(e),e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"},pw={},rO={},hw={},nO={},oO={},mw={},aO={},iO={},Ym={},Xm={},vw={},gw={},yw={},bw={},sO={},ww={},vu={},fs={},lO={},rc={},Ms={},pP=function(e,t,r){var n=As(e),o,a,i;if(t){if(a=this.parse(n),a)throw new fS(a);this.searchParams=null}else{if(r!==void 0&&(o=new pP(r,!0)),a=this.parse(n,null,o),a)throw new fS(a);i=pwe(new fwe),i.bindURL(this),this.searchParams=i}};pP.prototype={type:"URL",parse:function(e,t,r){var n=this,o=t||pw,a=0,i="",s=!1,l=!1,c=!1,u,d,f,h;for(e=As(e),t||(n.scheme="",n.username="",n.password="",n.host=null,n.port=null,n.path=[],n.query=null,n.fragment=null,n.cannotBeABaseURL=!1,e=uw(e,Rwe,""),e=uw(e,kwe,"$1")),e=uw(e,Iwe,""),u=mu(e);a<=u.length;){switch(d=u[a],o){case pw:if(d&&Wi(fF,d))i+=Fg(d),o=rO;else{if(t)return dw;o=hw;continue}break;case rO:if(d&&(Wi(xwe,d)||d==="+"||d==="-"||d==="."))i+=Fg(d);else if(d===":"){if(t&&(n.isSpecial()!==dS(qm,i)||i==="file"&&(n.includesCredentials()||n.port!==null)||n.scheme==="file"&&!n.host))return;if(n.scheme=i,t){n.isSpecial()&&qm[n.scheme]===n.port&&(n.port=null);return}i="",n.scheme==="file"?o=bw:n.isSpecial()&&r&&r.scheme===n.scheme?o=nO:n.isSpecial()?o=iO:u[a+1]==="/"?(o=oO,a++):(n.cannotBeABaseURL=!0,Pu(n.path,""),o=lO)}else{if(t)return dw;i="",o=hw,a=0;continue}break;case hw:if(!r||r.cannotBeABaseURL&&d!=="#")return dw;if(r.cannotBeABaseURL&&d==="#"){n.scheme=r.scheme,n.path=ji(r.path),n.query=r.query,n.fragment="",n.cannotBeABaseURL=!0,o=Ms;break}o=r.scheme==="file"?bw:mw;continue;case nO:if(d==="/"&&u[a+1]==="/")o=Ym,a++;else{o=mw;continue}break;case oO:if(d==="/"){o=Xm;break}else{o=fs;continue}case mw:if(n.scheme=r.scheme,d===ti)n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=ji(r.path),n.query=r.query;else if(d==="/"||d==="\\"&&n.isSpecial())o=aO;else if(d==="?")n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=ji(r.path),n.query="",o=rc;else if(d==="#")n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=ji(r.path),n.query=r.query,n.fragment="",o=Ms;else{n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=ji(r.path),n.path.length--,o=fs;continue}break;case aO:if(n.isSpecial()&&(d==="/"||d==="\\"))o=Ym;else if(d==="/")o=Xm;else{n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,o=fs;continue}break;case iO:if(o=Ym,d!=="/"||fi(i,a+1)!=="/")continue;a++;break;case Ym:if(d!=="/"&&d!=="\\"){o=Xm;continue}break;case Xm:if(d==="@"){s&&(i="%40"+i),s=!0,f=mu(i);for(var p=0;p<f.length;p++){var m=f[p];if(m===":"&&!c){c=!0;continue}var x=fl(m,fw);c?n.password+=x:n.username+=x}i=""}else if(d===ti||d==="/"||d==="?"||d==="#"||d==="\\"&&n.isSpecial()){if(s&&i==="")return wwe;a-=mu(i).length+1,i="",o=vw}else i+=d;break;case vw:case gw:if(t&&n.scheme==="file"){o=ww;continue}else if(d===":"&&!l){if(i==="")return tc;if(h=n.parseHost(i),h)return h;if(i="",o=yw,t===gw)return}else if(d===ti||d==="/"||d==="?"||d==="#"||d==="\\"&&n.isSpecial()){if(n.isSpecial()&&i==="")return tc;if(t&&i===""&&(n.includesCredentials()||n.port!==null))return;if(h=n.parseHost(i),h)return h;if(i="",o=vu,t)return;continue}else d==="["?l=!0:d==="]"&&(l=!1),i+=d;break;case yw:if(Wi(pS,d))i+=d;else if(d===ti||d==="/"||d==="?"||d==="#"||d==="\\"&&n.isSpecial()||t){if(i!==""){var b=Ng(i,10);if(b>65535)return eO;n.port=n.isSpecial()&&b===qm[n.scheme]?null:b,i=""}if(t)return;o=vu;continue}else return eO;break;case bw:if(n.scheme="file",d==="/"||d==="\\")o=sO;else if(r&&r.scheme==="file")switch(d){case ti:n.host=r.host,n.path=ji(r.path),n.query=r.query;break;case"?":n.host=r.host,n.path=ji(r.path),n.query="",o=rc;break;case"#":n.host=r.host,n.path=ji(r.path),n.query=r.query,n.fragment="",o=Ms;break;default:tO(Vf(ji(u,a),""))||(n.host=r.host,n.path=ji(r.path),n.shortenPath()),o=fs;continue}else{o=fs;continue}break;case sO:if(d==="/"||d==="\\"){o=ww;break}r&&r.scheme==="file"&&!tO(Vf(ji(u,a),""))&&(Uf(r.path[0],!0)?Pu(n.path,r.path[0]):n.host=r.host),o=fs;continue;case ww:if(d===ti||d==="/"||d==="\\"||d==="?"||d==="#"){if(!t&&Uf(i))o=fs;else if(i===""){if(n.host="",t)return;o=vu}else{if(h=n.parseHost(i),h)return h;if(n.host==="localhost"&&(n.host=""),t)return;i="",o=vu}continue}else i+=d;break;case vu:if(n.isSpecial()){if(o=fs,d!=="/"&&d!=="\\")continue}else if(!t&&d==="?")n.query="",o=rc;else if(!t&&d==="#")n.fragment="",o=Ms;else if(d!==ti&&(o=fs,d!=="/"))continue;break;case fs:if(d===ti||d==="/"||d==="\\"&&n.isSpecial()||!t&&(d==="?"||d==="#")){if(Mwe(i)?(n.shortenPath(),d!=="/"&&!(d==="\\"&&n.isSpecial())&&Pu(n.path,"")):Dwe(i)?d!=="/"&&!(d==="\\"&&n.isSpecial())&&Pu(n.path,""):(n.scheme==="file"&&!n.path.length&&Uf(i)&&(n.host&&(n.host=""),i=fi(i,0)+":"),Pu(n.path,i)),i="",n.scheme==="file"&&(d===ti||d==="?"||d==="#"))for(;n.path.length>1&&n.path[0]==="";)gwe(n.path);d==="?"?(n.query="",o=rc):d==="#"&&(n.fragment="",o=Ms)}else i+=fl(d,mF);break;case lO:d==="?"?(n.query="",o=rc):d==="#"?(n.fragment="",o=Ms):d!==ti&&(n.path[0]+=fl(d,Rv));break;case rc:!t&&d==="#"?(n.fragment="",o=Ms):d!==ti&&(d==="'"&&n.isSpecial()?n.query+="%27":d==="#"?n.query+="%23":n.query+=fl(d,Rv));break;case Ms:d!==ti&&(n.fragment+=fl(d,hF));break}a++}},parseHost:function(e){var t,r,n;if(fi(e,0)==="["){if(fi(e,e.length-1)!=="]"||(t=Owe(pp(e,1,-1)),!t))return tc;this.host=t}else if(this.isSpecial()){if(e=lwe(e),Wi(Pwe,e)||(t=Ewe(e),t===null))return tc;this.host=t}else{if(Wi($we,e))return tc;for(t="",r=mu(e),n=0;n<r.length;n++)t+=fl(r[n],Rv);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return dS(qm,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;t&&(this.scheme!=="file"||t!==1||!Uf(e[0],!0))&&e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,a=e.port,i=e.path,s=e.query,l=e.fragment,c=t+":";return o!==null?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Cf(o),a!==null&&(c+=":"+a)):t==="file"&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+Vf(i,"/"):"",s!==null&&(c+="?"+s),l!==null&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw new fS(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e==="blob")try{return new Cd(e.path[0]).origin}catch{return"null"}return e==="file"||!this.isSpecial()?"null":e+"://"+Cf(this.host)+(t!==null?":"+t:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(As(e)+":",pw)},getUsername:function(){return this.username},setUsername:function(e){var t=mu(As(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=fl(t[r],fw)}},getPassword:function(){return this.password},setPassword:function(e){var t=mu(As(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=fl(t[r],fw)}},getHost:function(){var e=this.host,t=this.port;return e===null?"":t===null?Cf(e):Cf(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,vw)},getHostname:function(){var e=this.host;return e===null?"":Cf(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,gw)},getPort:function(){var e=this.port;return e===null?"":As(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=As(e),e===""?this.port=null:this.parse(e,yw))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Vf(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,vu))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=As(e),e===""?this.query=null:(fi(e,0)==="?"&&(e=pp(e,1)),this.query="",this.parse(e,rc)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){if(e=As(e),e===""){this.fragment=null;return}fi(e,0)==="#"&&(e=pp(e,1)),this.fragment="",this.parse(e,Ms)},update:function(){this.query=this.searchParams.serialize()||null}};var Cd=function(t){var r=iwe(this,Yo),n=uwe(arguments.length,1)>1?arguments[1]:void 0,o=dwe(r,new pP(t,!1,n));uP||(r.href=o.serialize(),r.origin=o.getOrigin(),r.protocol=o.getProtocol(),r.username=o.getUsername(),r.password=o.getPassword(),r.host=o.getHost(),r.hostname=o.getHostname(),r.port=o.getPort(),r.pathname=o.getPathname(),r.search=o.getSearch(),r.searchParams=o.getSearchParams(),r.hash=o.getHash())},Yo=Cd.prototype,ri=function(e,t){return{get:function(){return Lg(this)[e]()},set:t&&function(r){return Lg(this)[t](r)},configurable:!0,enumerable:!0}};uP&&(ei(Yo,"href",ri("serialize","setHref")),ei(Yo,"origin",ri("getOrigin")),ei(Yo,"protocol",ri("getProtocol","setProtocol")),ei(Yo,"username",ri("getUsername","setUsername")),ei(Yo,"password",ri("getPassword","setPassword")),ei(Yo,"host",ri("getHost","setHost")),ei(Yo,"hostname",ri("getHostname","setHostname")),ei(Yo,"port",ri("getPort","setPort")),ei(Yo,"pathname",ri("getPathname","setPathname")),ei(Yo,"search",ri("getSearch","setSearch")),ei(Yo,"searchParams",ri("getSearchParams")),ei(Yo,"hash",ri("getHash","setHash")));jg(Yo,"toJSON",function(){return Lg(this).serialize()},{enumerable:!0});jg(Yo,"toString",function(){return Lg(this).serialize()},{enumerable:!0});if(Sf){var cO=Sf.createObjectURL,uO=Sf.revokeObjectURL;cO&&jg(Cd,"createObjectURL",ZE(cO,Sf)),uO&&jg(Cd,"revokeObjectURL",ZE(uO,Sf))}cwe(Cd,"URL");owe({global:!0,constructor:!0,forced:!awe,sham:!uP},{URL:Cd});var Awe=tr,jwe=$a,vF=Vr,Lwe=Gh,dO=Ho,Nwe=Ob,hP=jwe("URL"),Fwe=Nwe&&vF(function(){hP.canParse()}),Bwe=vF(function(){return hP.canParse.length!==1});Awe({target:"URL",stat:!0,forced:!Fwe||Bwe},{canParse:function(t){var r=Lwe(arguments.length,1),n=dO(t),o=r<2||arguments[1]===void 0?void 0:dO(arguments[1]);try{return!!new hP(n,o)}catch{return!1}}});var zwe=tr,Vwe=$a,Uwe=Gh,fO=Ho,Hwe=Ob,Wwe=Vwe("URL");zwe({target:"URL",stat:!0,forced:!Hwe},{parse:function(t){var r=Uwe(arguments.length,1),n=fO(t),o=r<2||arguments[1]===void 0?void 0:fO(arguments[1]);try{return new Wwe(n,o)}catch{return null}}});var Gwe=bn,Kwe=Gwe.URL,qwe=Kwe,Ywe=qwe,Xwe=Ywe;const Qwe=Sr(yq),Zwe=Sr(aX),Jwe=Sr(cX),exe=Sr(pX),txe=Sr(_X),rxe=Sr(NX),nxe=Sr(GX),oxe=Sr(wQ),axe=Sr(AQ),ixe=Sr(wZ),sxe=Sr(iee),lxe=Sr(QK),cxe=Sr(sJ),uxe=Sr(IJ);var gF=kn,dxe=Vr,fxe=Nr,pxe=Ho,hxe=Y3.trim,pO=sP,hp=gF.parseInt,hO=gF.Symbol,mO=hO&&hO.iterator,yF=/^[+-]?0x/i,mxe=fxe(yF.exec),vxe=hp(pO+"08")!==8||hp(pO+"0x16")!==22||mO&&!dxe(function(){hp(Object(mO))}),gxe=vxe?function(t,r){var n=hxe(pxe(t));return hp(n,r>>>0||(mxe(yF,n)?16:10))}:hp,yxe=tr,vO=gxe;yxe({global:!0,forced:parseInt!==vO},{parseInt:vO});var bxe=bn,wxe=bxe.parseInt,xxe=wxe,Sxe=xxe,Cxe=Sxe;const Txe=Sr(nq),Pxe=Sr(vJ);var bF={exports:{}},wF={exports:{}};(function(e){var t=S5;function r(n){if(t(n))return n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(wF);var $xe=wF.exports,xF={exports:{}},Rxe=tr,kxe=Ra,Ixe=nl,Exe=R3,Oxe=ZT,_xe=Vr,Dxe=_xe(function(){return[].push.call({length:4294967296},1)!==4294967297}),Mxe=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},Axe=Dxe||!Mxe();Rxe({target:"Array",proto:!0,arity:1,forced:Axe},{push:function(t){var r=kxe(this),n=Ixe(r),o=arguments.length;Oxe(n+o);for(var a=0;a<o;a++)r[n]=arguments[a],n++;return Exe(r,n),n}});var jxe=Po,Lxe=jxe("Array","push"),Nxe=Jn,Fxe=Lxe,xw=Array.prototype,Bxe=function(e){var t=e.push;return e===xw||Nxe(xw,e)&&t===xw.push?Fxe:t},zxe=Bxe,Vxe=zxe,Uxe=Vxe,Hxe=Uxe,Wxe=Hxe,Gxe=Wxe,Kxe=Gxe;(function(e){var t=rP,r=W5,n=Kxe;function o(a,i){var s=a==null?null:typeof t<"u"&&r(a)||a["@@iterator"];if(s!=null){var l,c,u,d,f=[],h=!0,p=!1;try{if(u=(s=s.call(a)).next,i===0){if(Object(s)!==s)return;h=!1}else for(;!(h=(l=u.call(s)).done)&&(n(f).call(f,l.value),f.length!==i);h=!0);}catch(m){p=!0,c=m}finally{try{if(!h&&s.return!=null&&(d=s.return(),Object(d)!==d))return}finally{if(p)throw c}}return f}}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(xF);var qxe=xF.exports,SF={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(SF);var Yxe=SF.exports;(function(e){var t=$xe,r=qxe,n=J5,o=Yxe;function a(i,s){return t(i)||r(i,s)||n(i,s)||o()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(bF);var Xxe=bF.exports;const Qxe=Sr(fJ);var CF=kn,Zxe=Ch,Jxe=Do,eSe=$3,tSe=Bd,rSe=qc,nSe=Gh,oSe=CF.Function,aSe=/MSIE .\./.test(tSe)||eSe==="BUN"&&function(){var e=CF.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),TF=function(e,t){var r=t?2:1;return aSe?function(n,o){var a=nSe(arguments.length,1)>r,i=Jxe(n)?n:oSe(n),s=a?rSe(arguments,r):[],l=a?function(){Zxe(i,this,s)}:i;return t?e(l,o):e(l)}:e},iSe=tr,PF=kn,sSe=TF,gO=sSe(PF.setInterval,!0);iSe({global:!0,bind:!0,forced:PF.setInterval!==gO},{setInterval:gO});var lSe=tr,$F=kn,cSe=TF,yO=cSe($F.setTimeout,!0);lSe({global:!0,bind:!0,forced:$F.setTimeout!==yO},{setTimeout:yO});var uSe=bn,dSe=uSe.setTimeout,fSe=dSe,Db={},pSe=rs.default;Object.defineProperty(Db,"__esModule",{value:!0});Db.default=void 0;var hSe=pSe(Ri),mSe=v;Db.default=(0,hSe.default)((0,mSe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help");const vSe=Sr(NJ);var gSe=tr,ySe=P3.entries;gSe({target:"Object",stat:!0},{entries:function(t){return ySe(t)}});var bSe=bn,wSe=bSe.Object.entries,xSe=wSe,SSe=xSe,CSe=SSe,pi;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(pi||(pi={}));function ni(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var bO=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Sw=function(){return Math.random().toString(36).substring(7).split("").join(".")},wO={INIT:"@@redux/INIT"+Sw(),REPLACE:"@@redux/REPLACE"+Sw(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Sw()}};function TSe(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function RF(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ni(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ni(1));return r(RF)(e,t)}if(typeof e!="function")throw new Error(ni(2));var o=e,a=t,i=[],s=i,l=!1;function c(){s===i&&(s=i.slice())}function u(){if(l)throw new Error(ni(3));return a}function d(m){if(typeof m!="function")throw new Error(ni(4));if(l)throw new Error(ni(5));var x=!0;return c(),s.push(m),function(){if(x){if(l)throw new Error(ni(6));x=!1,c();var w=s.indexOf(m);s.splice(w,1),i=null}}}function f(m){if(!TSe(m))throw new Error(ni(7));if(typeof m.type>"u")throw new Error(ni(8));if(l)throw new Error(ni(9));try{l=!0,a=o(a,m)}finally{l=!1}for(var x=i=s,b=0;b<x.length;b++){var w=x[b];w()}return m}function h(m){if(typeof m!="function")throw new Error(ni(10));o=m,f({type:wO.REPLACE})}function p(){var m,x=d;return m={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(ni(11));function g(){w.next&&w.next(u())}g();var S=x(g);return{unsubscribe:S}}},m[bO]=function(){return this},m}return f({type:wO.INIT}),n={dispatch:f,subscribe:d,getState:u,replaceReducer:h},n[bO]=p,n}function Nt(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(!e){var a;if(t===void 0)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;a=new Error(t.replace(/%s/g,function(){return n[i++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}}var mP="dnd-core/INIT_COORDS",Mb="dnd-core/BEGIN_DRAG",vP="dnd-core/PUBLISH_DRAG_SOURCE",Ab="dnd-core/HOVER",jb="dnd-core/DROP",Lb="dnd-core/END_DRAG";function xO(e,t){return{type:mP,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function kv(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kv=function(r){return typeof r}:kv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kv(e)}function PSe(e,t,r){return t.split(".").reduce(function(n,o){return n&&n[o]?n[o]:r||null},e)}function $Se(e,t){return e.filter(function(r){return r!==t})}function kF(e){return kv(e)==="object"}function RSe(e,t){var r=new Map,n=function(i){r.set(i,r.has(i)?r.get(i)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach(function(a,i){a===1&&o.push(i)}),o}function kSe(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var ISe={type:mP,payload:{clientOffset:null,sourceClientOffset:null}};function ESe(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},o=n.publishSource,a=o===void 0?!0:o,i=n.clientOffset,s=n.getSourceClientOffset,l=e.getMonitor(),c=e.getRegistry();e.dispatch(xO(i)),OSe(r,l,c);var u=MSe(r,l);if(u===null){e.dispatch(ISe);return}var d=null;if(i){if(!s)throw new Error("getSourceClientOffset must be defined");_Se(s),d=s(u)}e.dispatch(xO(i,d));var f=c.getSource(u),h=f.beginDrag(l,u);DSe(h),c.pinSource(u);var p=c.getSourceType(u);return{type:Mb,payload:{itemType:p,item:h,sourceId:u,clientOffset:i||null,sourceClientOffset:d||null,isSourcePublic:!!a}}}}function OSe(e,t,r){Nt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){Nt(r.getSource(n),"Expected sourceIds to be registered.")})}function _Se(e){Nt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function DSe(e){Nt(kF(e),"Item must be an object.")}function MSe(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ASe(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:vP}}}function hS(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function jSe(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.clientOffset;LSe(r);var a=r.slice(0),i=e.getMonitor(),s=e.getRegistry();NSe(a,i,s);var l=i.getItemType();return FSe(a,s,l),BSe(a,i,s),{type:Ab,payload:{targetIds:a,clientOffset:o||null}}}}function LSe(e){Nt(Array.isArray(e),"Expected targetIds to be an array.")}function NSe(e,t,r){Nt(t.isDragging(),"Cannot call hover while not dragging."),Nt(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];Nt(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var a=r.getTarget(o);Nt(a,"Expected targetIds to be registered.")}}function FSe(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n],a=t.getTargetType(o);hS(a,r)||e.splice(n,1)}}function BSe(e,t,r){e.forEach(function(n){var o=r.getTarget(n);o.hover(t,n)})}function SO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function CO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){zSe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zSe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VSe(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),o=e.getRegistry();USe(n);var a=GSe(n);a.forEach(function(i,s){var l=HSe(i,s,o,n),c={type:jb,payload:{dropResult:CO(CO({},r),l)}};e.dispatch(c)})}}function USe(e){Nt(e.isDragging(),"Cannot call drop while not dragging."),Nt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function HSe(e,t,r,n){var o=r.getTarget(e),a=o?o.drop(n,e):void 0;return WSe(a),typeof a>"u"&&(a=t===0?{}:n.getDropResult()),a}function WSe(e){Nt(typeof e>"u"||kF(e),"Drop result must either be an object or undefined.")}function GSe(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function KSe(e){return function(){var r=e.getMonitor(),n=e.getRegistry();qSe(r);var o=r.getSourceId();if(o!=null){var a=n.getSource(o,!0);a.endDrag(r,o),n.unpinSource()}return{type:Lb}}}function qSe(e){Nt(e.isDragging(),"Cannot call endDrag while not dragging.")}function YSe(e){return{beginDrag:ESe(e),publishDragSource:ASe(e),hover:jSe(e),drop:VSe(e),endDrag:KSe(e)}}var XSe=function(t,r){return t===r};function QSe(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function ZSe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:XSe;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function PO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){JSe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JSe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $O={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function eCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$O,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case mP:case Mb:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ab:return QSe(e.clientOffset,r.clientOffset)?e:PO(PO({},e),{},{clientOffset:r.clientOffset});case Lb:case jb:return $O;default:return e}}var gP="dnd-core/ADD_SOURCE",yP="dnd-core/ADD_TARGET",bP="dnd-core/REMOVE_SOURCE",Nb="dnd-core/REMOVE_TARGET";function tCe(e){return{type:gP,payload:{sourceId:e}}}function rCe(e){return{type:yP,payload:{targetId:e}}}function nCe(e){return{type:bP,payload:{sourceId:e}}}function oCe(e){return{type:Nb,payload:{targetId:e}}}function RO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(r),!0).forEach(function(n){aCe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aCe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var iCe={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function sCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iCe,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case Mb:return oi(oi({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case vP:return oi(oi({},e),{},{isSourcePublic:!0});case Ab:return oi(oi({},e),{},{targetIds:r.targetIds});case Nb:return e.targetIds.indexOf(r.targetId)===-1?e:oi(oi({},e),{},{targetIds:$Se(e.targetIds,r.targetId)});case jb:return oi(oi({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Lb:return oi(oi({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function lCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case gP:case yP:return e+1;case bP:case Nb:return e-1;default:return e}}var Bg=[],wP=[];Bg.__IS_NONE__=!0;wP.__IS_ALL__=!0;function cCe(e,t){if(e===Bg)return!1;if(e===wP||typeof t>"u")return!0;var r=kSe(t,e);return r.length>0}function uCe(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ab:break;case gP:case yP:case Nb:case bP:return Bg;case Mb:case vP:case Lb:case jb:default:return wP}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,o=t.prevTargetIds,a=o===void 0?[]:o,i=RSe(n,a),s=i.length>0||!ZSe(n,a);if(!s)return Bg;var l=a[a.length-1],c=n[n.length-1];return l!==c&&(l&&i.push(l),c&&i.push(c)),i}function dCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function IO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){fCe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fCe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:uCe(e.dirtyHandlerIds,{type:t.type,payload:IO(IO({},t.payload),{},{prevTargetIds:PSe(e,"dragOperation.targetIds",[])})}),dragOffset:eCe(e.dragOffset,t),refCount:lCe(e.refCount,t),dragOperation:sCe(e.dragOperation,t),stateId:dCe(e.stateId)}}function hCe(e,t){return{x:e.x+t.x,y:e.y+t.y}}function IF(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mCe(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:IF(hCe(t,n),r)}function vCe(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:IF(t,r)}function gCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yCe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bCe(e,t,r){return t&&yCe(e.prototype,t),e}var wCe=function(){function e(t,r){gCe(this,e),this.store=t,this.registry=r}return bCe(e,[{key:"subscribeToStateChange",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},a=o.handlerIds;Nt(typeof r=="function","listener must be a function."),Nt(typeof a>"u"||Array.isArray(a),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,s=function(){var c=n.store.getState(),u=c.stateId;try{var d=u===i||u===i+1&&!cCe(c.dirtyHandlerIds,a);d||r()}finally{i=u}};return this.store.subscribe(s)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;Nt(typeof r=="function","listener must be a function.");var o=this.store.getState().dragOffset,a=function(){var s=n.store.getState().dragOffset;s!==o&&(o=s,r())};return this.store.subscribe(a)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return Nt(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(Nt(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var o=this.registry.getTargetType(r),a=this.getItemType();return hS(o,a)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(Nt(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var o=this.registry.getSourceType(r),a=this.getItemType();return o!==a?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var o=n.shallow;if(!this.isDragging())return!1;var a=this.registry.getTargetType(r),i=this.getItemType();if(i&&!hS(a,i))return!1;var s=this.getTargetIds();if(!s.length)return!1;var l=s.indexOf(r);return o?l===s.length-1:l>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return mCe(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return vCe(this.store.getState().dragOffset)}}]),e}(),xCe=0;function SCe(){return xCe++}function Iv(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Iv=function(r){return typeof r}:Iv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Iv(e)}function CCe(e){Nt(typeof e.canDrag=="function","Expected canDrag to be a function."),Nt(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Nt(typeof e.endDrag=="function","Expected endDrag to be a function.")}function TCe(e){Nt(typeof e.canDrop=="function","Expected canDrop to be a function."),Nt(typeof e.hover=="function","Expected hover to be a function."),Nt(typeof e.drop=="function","Expected beginDrag to be a function.")}function mS(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return mS(r,!1)});return}Nt(typeof e=="string"||Iv(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const EO=typeof global<"u"?global:self,EF=EO.MutationObserver||EO.WebKitMutationObserver;function OF(e){return function(){const r=setTimeout(o,0),n=setInterval(o,50);function o(){clearTimeout(r),clearInterval(n),e()}}}function PCe(e){let t=1;const r=new EF(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const $Ce=typeof EF=="function"?PCe:OF;class RCe{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,o=t.length-this.index;n<o;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=$Ce(this.flush),this.requestErrorThrow=OF(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class kCe{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class ICe{create(t){const r=this.freeTasks,n=r.length?r.pop():new kCe(this.onError,o=>r[r.length]=o);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const _F=new RCe,ECe=new ICe(_F.registerPendingError);function OCe(e){_F.enqueueTask(ECe.create(e))}function _Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DCe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function MCe(e,t,r){return t&&DCe(e.prototype,t),e}function ACe(e,t){return FCe(e)||NCe(e,t)||LCe(e,t)||jCe()}function jCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LCe(e,t){if(e){if(typeof e=="string")return OO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OO(e,t)}}function OO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NCe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function FCe(e){if(Array.isArray(e))return e}function BCe(e){var t=SCe().toString();switch(e){case pi.SOURCE:return"S".concat(t);case pi.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function _O(e){switch(e[0]){case"S":return pi.SOURCE;case"T":return pi.TARGET;default:Nt(!1,"Cannot parse handler ID: ".concat(e))}}function DO(e,t){var r=e.entries(),n=!1;do{var o=r.next(),a=o.done,i=ACe(o.value,2),s=i[1];if(s===t)return!0;n=!!a}while(!n);return!1}var zCe=function(){function e(t){_Ce(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}return MCe(e,[{key:"addSource",value:function(r,n){mS(r),CCe(n);var o=this.addHandler(pi.SOURCE,r,n);return this.store.dispatch(tCe(o)),o}},{key:"addTarget",value:function(r,n){mS(r,!0),TCe(n);var o=this.addHandler(pi.TARGET,r,n);return this.store.dispatch(rCe(o)),o}},{key:"containsHandler",value:function(r){return DO(this.dragSources,r)||DO(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Nt(this.isSourceId(r),"Expected a valid source ID.");var o=n&&r===this.pinnedSourceId,a=o?this.pinnedSource:this.dragSources.get(r);return a}},{key:"getTarget",value:function(r){return Nt(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return Nt(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return Nt(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=_O(r);return n===pi.SOURCE}},{key:"isTargetId",value:function(r){var n=_O(r);return n===pi.TARGET}},{key:"removeSource",value:function(r){var n=this;Nt(this.getSource(r),"Expected an existing source."),this.store.dispatch(nCe(r)),OCe(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){Nt(this.getTarget(r),"Expected an existing target."),this.store.dispatch(oCe(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);Nt(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){Nt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,o){var a=BCe(r);return this.types.set(a,n),r===pi.SOURCE?this.dragSources.set(a,o):r===pi.TARGET&&this.dropTargets.set(a,o),a}}]),e}();function VCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UCe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function HCe(e,t,r){return t&&UCe(e.prototype,t),e}function WCe(e){var t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return RF(pCe,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var GCe=function(){function e(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;VCe(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var o=t.store.getState().refCount>0;t.backend&&(o&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!o&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=WCe(r);this.store=n,this.monitor=new wCe(n,new zCe(n)),n.subscribe(this.handleRefCountChange)}return HCe(e,[{key:"receiveBackend",value:function(r){this.backend=r}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var r=this,n=this.store.dispatch;function o(i){return function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=i.apply(r,l);typeof u<"u"&&n(u)}}var a=YSe(this);return Object.keys(a).reduce(function(i,s){var l=a[s];return i[s]=o(l),i},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),e}();function KCe(e,t,r,n){var o=new GCe(n),a=e(o,t,r);return o.receiveBackend(a),o}var Kh=y.createContext({dragDropManager:void 0});function DF(e,t,r,n){return{dragDropManager:KCe(e,t,r,n)}}function qCe(e,t){return ZCe(e)||QCe(e,t)||XCe(e,t)||YCe()}function YCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XCe(e,t){if(e){if(typeof e=="string")return MO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MO(e,t)}}function MO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QCe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function ZCe(e){if(Array.isArray(e))return e}function JCe(e,t){if(e==null)return{};var r=eTe(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eTe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Cw=0,MF=y.memo(function(e){var t=e.children,r=JCe(e,["children"]),n=tTe(r),o=qCe(n,2),a=o[0],i=o[1];return y.useEffect(function(){return i&&Cw++,function(){if(i&&(Cw--,Cw===0)){var s=AF();s[Ev]=null}}},[]),y.createElement(Kh.Provider,{value:a},t)});MF.displayName="DndProvider";function tTe(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,!1]}var r=rTe(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[r,n]}var Ev=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function rTe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AF(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;return o[Ev]||(o[Ev]=DF(e,t,r,n)),o[Ev]}function AF(){return typeof global<"u"?global:window}var jF=y.memo(function(e){var t=e.connect,r=e.src;return y.useEffect(function(){if(!(typeof Image>"u")){var n=!1,o=new Image;return o.src=r,o.onload=function(){t(o),n=!0},function(){n&&t(null)}}}),null});jF.displayName="DragPreviewImage";var zc=typeof window<"u"?y.useLayoutEffect:y.useEffect;function Ts(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var c=a[l];if(!s(c))return!1;var u=e[c],d=t[c];if(o=r?r.call(n,u,d,c):void 0,o===!1||o===void 0&&u!==d)return!1}return!0}function nTe(e,t){return sTe(e)||iTe(e,t)||aTe(e,t)||oTe()}function oTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aTe(e,t){if(e){if(typeof e=="string")return AO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return AO(e,t)}}function AO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iTe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function sTe(e){if(Array.isArray(e))return e}function LF(e,t,r){var n=y.useState(function(){return t(e)}),o=nTe(n,2),a=o[0],i=o[1],s=y.useCallback(function(){var l=t(e);Ts(a,l)||(i(l),r&&r())},[a,e,r]);return zc(s,[]),[a,s]}function lTe(e,t){return fTe(e)||dTe(e,t)||uTe(e,t)||cTe()}function cTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uTe(e,t){if(e){if(typeof e=="string")return jO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jO(e,t)}}function jO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dTe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function fTe(e){if(Array.isArray(e))return e}function NF(e,t,r){var n=LF(e,t,r),o=lTe(n,2),a=o[0],i=o[1];return zc(function(){var l=e.getHandlerId();if(l!=null)return e.subscribeToStateChange(i,{handlerIds:[l]})},[e,i]),a}function FF(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}function BF(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}function Yd(){var e=y.useContext(Kh),t=e.dragDropManager;return Nt(t!=null,"Expected drag drop context"),t}function pTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hTe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mTe(e,t,r){return t&&hTe(e.prototype,t),e}var Tw=!1,Pw=!1,zF=function(){function e(t){pTe(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}return mTe(e,[{key:"receiveHandlerId",value:function(r){this.sourceId=r}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Nt(!Tw,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Tw=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Tw=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Nt(!Pw,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Pw=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Pw=!1}}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"isDraggingSource",value:function(r){return this.internalMonitor.isDraggingSource(r)}},{key:"isOverTarget",value:function(r,n){return this.internalMonitor.isOverTarget(r,n)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(r){return this.internalMonitor.subscribeToOffsetChange(r)}},{key:"canDragSource",value:function(r){return this.internalMonitor.canDragSource(r)}},{key:"canDropOnTarget",value:function(r){return this.internalMonitor.canDropOnTarget(r)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}();function LO(e,t){typeof e=="function"?e(t):e.current=t}function vTe(e,t){var r=e.ref;return Nt(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?y.cloneElement(e,{ref:function(o){LO(r,o),LO(t,o)}}):y.cloneElement(e,{ref:t})}function gTe(e){if(typeof e.type!="string"){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function yTe(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!y.isValidElement(t)){var n=t;return e(n,r),n}var o=t;gTe(o);var a=r?function(i){return e(i,r)}:e;return vTe(o,a)}}function VF(e){var t={};return Object.keys(e).forEach(function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=yTe(n);t[r]=function(){return o}}}),t}function Ov(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ov=function(r){return typeof r}:Ov=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ov(e)}function vS(e){return e!==null&&Ov(e)==="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wTe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xTe(e,t,r){return t&&wTe(e.prototype,t),e}var UF=function(){function e(t){var r=this;bTe(this,e),this.hooks=VF({dragSource:function(o,a){r.clearDragSource(),r.dragSourceOptions=a||null,vS(o)?r.dragSourceRef=o:r.dragSourceNode=o,r.reconnectDragSource()},dragPreview:function(o,a){r.clearDragPreview(),r.dragPreviewOptions=a||null,vS(o)?r.dragPreviewRef=o:r.dragPreviewNode=o,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}return xTe(e,[{key:"receiveHandlerId",value:function(r){this.handlerId!==r&&(this.handlerId=r,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var r=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(n&&this.disconnectDragSource(),!!this.handlerId){if(!r){this.lastConnectedDragSource=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=r,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,r,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var r=this.dragPreview,n=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Ts(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Ts(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(r){this.dragSourceOptionsInternal=r}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(r){this.dragPreviewOptionsInternal=r}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}]),e}();function STe(e,t){return $Te(e)||PTe(e,t)||TTe(e,t)||CTe()}function CTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TTe(e,t){if(e){if(typeof e=="string")return NO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NO(e,t)}}function NO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PTe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function $Te(e){if(Array.isArray(e))return e}function _v(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_v=function(r){return typeof r}:_v=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_v(e)}function RTe(){var e=Yd(),t=y.useMemo(function(){return new zF(e)},[e]),r=y.useMemo(function(){return new UF(e.getBackend())},[e]);return[t,r]}function kTe(e,t,r){var n=Yd(),o=y.useMemo(function(){return{beginDrag:function(){var i=e.current,s=i.begin,l=i.item;if(s){var c=s(t);return Nt(c==null||_v(c)==="object","dragSpec.begin() must either return an object, undefined, or null"),c||l||{}}return l||{}},canDrag:function(){return typeof e.current.canDrag=="boolean"?e.current.canDrag:typeof e.current.canDrag=="function"?e.current.canDrag(t):!0},isDragging:function(i,s){var l=e.current.isDragging;return l?l(t):s===i.getSourceId()},endDrag:function(){var i=e.current.end;i&&i(t.getItem(),t),r.reconnect()}}},[]);zc(function(){var i=BF(e.current.item.type,o,n),s=STe(i,2),l=s[0],c=s[1];return t.receiveHandlerId(l),r.receiveHandlerId(l),c},[])}function ITe(e,t){return DTe(e)||_Te(e,t)||OTe(e,t)||ETe()}function ETe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OTe(e,t){if(e){if(typeof e=="string")return FO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FO(e,t)}}function FO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _Te(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function DTe(e){if(Array.isArray(e))return e}function MTe(e){var t=y.useRef(e);t.current=e,Nt(e.item!=null,"item must be defined"),Nt(e.item.type!=null,"item type must be defined");var r=RTe(),n=ITe(r,2),o=n[0],a=n[1];kTe(t,o,a);var i=NF(o,t.current.collect||function(){return{}},function(){return a.reconnect()}),s=y.useMemo(function(){return a.hooks.dragSource()},[a]),l=y.useMemo(function(){return a.hooks.dragPreview()},[a]);return zc(function(){a.dragSourceOptions=t.current.options||null,a.reconnect()},[a]),zc(function(){a.dragPreviewOptions=t.current.previewOptions||null,a.reconnect()},[a]),[i,s,l]}function ATe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jTe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function LTe(e,t,r){return t&&jTe(e.prototype,t),e}var HF=function(){function e(t){var r=this;ATe(this,e),this.hooks=VF({dropTarget:function(o,a){r.clearDropTarget(),r.dropTargetOptions=a,vS(o)?r.dropTargetRef=o:r.dropTargetNode=o,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}return LTe(e,[{key:"reconnect",value:function(){var r=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();r&&this.disconnectDropTarget();var n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(r){r!==this.handlerId&&(this.handlerId=r,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Ts(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(r){this.dropTargetOptionsInternal=r}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}]),e}();function NTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FTe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function BTe(e,t,r){return t&&FTe(e.prototype,t),e}var $w=!1,WF=function(){function e(t){NTe(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}return BTe(e,[{key:"receiveHandlerId",value:function(r){this.targetId=r}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Nt(!$w,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return $w=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{$w=!1}}},{key:"isOver",value:function(r){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,r):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}();function zTe(e,t){return WTe(e)||HTe(e,t)||UTe(e,t)||VTe()}function VTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UTe(e,t){if(e){if(typeof e=="string")return BO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BO(e,t)}}function BO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HTe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function WTe(e){if(Array.isArray(e))return e}function GTe(){var e=Yd(),t=y.useMemo(function(){return new WF(e)},[e]),r=y.useMemo(function(){return new HF(e.getBackend())},[e]);return[t,r]}function KTe(e,t,r){var n=Yd(),o=y.useMemo(function(){return{canDrop:function(){var i=e.current.canDrop;return i?i(t.getItem(),t):!0},hover:function(){var i=e.current.hover;i&&i(t.getItem(),t)},drop:function(){var i=e.current.drop;if(i)return i(t.getItem(),t)}}},[t]);zc(function(){var i=FF(e.current.accept,o,n),s=zTe(i,2),l=s[0],c=s[1];return t.receiveHandlerId(l),r.receiveHandlerId(l),c},[t,r])}function qTe(e,t){return ZTe(e)||QTe(e,t)||XTe(e,t)||YTe()}function YTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XTe(e,t){if(e){if(typeof e=="string")return zO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zO(e,t)}}function zO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QTe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function ZTe(e){if(Array.isArray(e))return e}function JTe(e){var t=y.useRef(e);t.current=e,Nt(e.accept!=null,"accept must be defined");var r=GTe(),n=qTe(r,2),o=n[0],a=n[1];KTe(t,o,a);var i=NF(o,t.current.collect||function(){return{}},function(){return a.reconnect()}),s=y.useMemo(function(){return a.hooks.dropTarget()},[a]);return zc(function(){a.dropTargetOptions=e.options||null,a.reconnect()},[e.options]),[i,s]}function ePe(e,t){return oPe(e)||nPe(e,t)||rPe(e,t)||tPe()}function tPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rPe(e,t){if(e){if(typeof e=="string")return VO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VO(e,t)}}function VO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nPe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function oPe(e){if(Array.isArray(e))return e}function aPe(e){var t=Yd(),r=t.getMonitor(),n=LF(r,e),o=ePe(n,2),a=o[0],i=o[1];return y.useEffect(function(){return r.subscribeToOffsetChange(i)}),y.useEffect(function(){return r.subscribeToStateChange(i)}),a}function Dv(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dv=function(r){return typeof r}:Dv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Dv(e)}function UO(e){return typeof e=="function"}function HO(){}function iPe(e){return Dv(e)==="object"&&e!==null}function Yp(e){if(!iPe(e))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function GF(e){var t=e.current;return t==null?null:t.decoratedRef?t.decoratedRef.current:t}function sPe(e){return e&&e.prototype&&typeof e.prototype.render=="function"}function lPe(e){var t,r=e;return(r==null||(t=r.$$typeof)===null||t===void 0?void 0:t.toString())==="Symbol(react.forward_ref)"}function KF(e){return sPe(e)||lPe(e)}function xP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function SP(e,t,r){return t&&WO(e.prototype,t),r&&WO(e,r),e}var GO=function(){var e=function(){function t(r){xP(this,t),this.isDisposed=!1,this.action=UO(r)?r:HO}return SP(t,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(n){return!!(n&&UO(n.dispose))}},{key:"_fixup",value:function(n){return t.isDisposable(n)?n:t.empty}},{key:"create",value:function(n){return new t(n)}}]),t}();return e.empty={dispose:HO},e}(),cPe=function(){function e(){xP(this,e),this.isDisposed=!1;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.disposables=r}return SP(e,[{key:"add",value:function(r){this.isDisposed?r.dispose():this.disposables.push(r)}},{key:"remove",value:function(r){var n=!1;if(!this.isDisposed){var o=this.disposables.indexOf(r);o!==-1&&(n=!0,this.disposables.splice(o,1),r.dispose())}return n}},{key:"clear",value:function(){if(!this.isDisposed){for(var r=this.disposables.length,n=new Array(r),o=0;o<r;o++)n[o]=this.disposables[o];this.disposables=[];for(var a=0;a<r;a++)n[a].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var r=this.disposables.length,n=new Array(r),o=0;o<r;o++)n[o]=this.disposables[o];this.disposables=[];for(var a=0;a<r;a++)n[a].dispose()}}}]),e}(),KO=function(){function e(){xP(this,e),this.isDisposed=!1}return SP(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(r){var n=this.isDisposed;if(!n){var o=this.current;this.current=r,o&&o.dispose()}n&&r&&r.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var r=this.current;this.current=void 0,r&&r.dispose()}}}]),e}();function Mv(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mv=function(r){return typeof r}:Mv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mv(e)}function uPe(e,t){return hPe(e)||pPe(e,t)||fPe(e,t)||dPe()}function dPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fPe(e,t){if(e){if(typeof e=="string")return qO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qO(e,t)}}function qO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pPe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function hPe(e){if(Array.isArray(e))return e}function mPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vPe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gPe(e,t,r){return t&&vPe(e.prototype,t),e}function yPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gS(e,t)}function gS(e,t){return gS=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},gS(e,t)}function bPe(e){var t=SPe();return function(){var n=zg(e),o;if(t){var a=zg(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return wPe(this,o)}}function wPe(e,t){return t&&(Mv(t)==="object"||typeof t=="function")?t:xPe(e)}function xPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SPe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function zg(e){return zg=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},zg(e)}function qF(e){var t=e.DecoratedComponent,r=e.createHandler,n=e.createMonitor,o=e.createConnector,a=e.registerHandler,i=e.containerDisplayName,s=e.getType,l=e.collect,c=e.options,u=c.arePropsEqual,d=u===void 0?Ts:u,f=t,h=t.displayName||t.name||"Component",p=function(){var m=function(x){yPe(w,x);var b=bPe(w);function w(g){var S;return mPe(this,w),S=b.call(this,g),S.decoratedRef=y.createRef(),S.handleChange=function(){var R=S.getCurrentState();Ts(R,S.state)||S.setState(R)},S.disposable=new KO,S.receiveProps(g),S.dispose(),S}return gPe(w,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Nt(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(S,R){return!d(S,this.props)||!Ts(R,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new KO,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(S){d(this.props,S)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(S){this.handler&&(this.handler.receiveProps(S),this.receiveType(s(S)))}},{key:"receiveType",value:function(S){if(!(!this.handlerMonitor||!this.manager||!this.handlerConnector)&&S!==this.currentType){this.currentType=S;var R=a(S,this.handler,this.manager),T=uPe(R,2),k=T[0],O=T[1];this.handlerId=k,this.handlerMonitor.receiveHandlerId(k),this.handlerConnector.receiveHandlerId(k);var E=this.manager.getMonitor(),C=E.subscribeToStateChange(this.handleChange,{handlerIds:[k]});this.disposable.setDisposable(new cPe(new GO(C),new GO(O)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){if(!this.handlerConnector)return{};var S=l(this.handlerConnector.hooks,this.handlerMonitor,this.props);return S}},{key:"render",value:function(){var S=this;return y.createElement(Kh.Consumer,null,function(R){var T=R.dragDropManager;return S.receiveDragDropManager(T),typeof requestAnimationFrame<"u"&&requestAnimationFrame(function(){var k;return(k=S.handlerConnector)===null||k===void 0?void 0:k.reconnect()}),y.createElement(f,Object.assign({},S.props,S.getCurrentState(),{ref:KF(f)?S.decoratedRef:null}))})}},{key:"receiveDragDropManager",value:function(S){this.manager===void 0&&(Nt(S!==void 0,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",h,h),S!==void 0&&(this.manager=S,this.handlerMonitor=n(S),this.handlerConnector=o(S.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}]),w}(y.Component);return m.DecoratedComponent=t,m.displayName="".concat(i,"(").concat(h,")"),m}();return FC(p,t)}function Av(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Av=function(r){return typeof r}:Av=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Av(e)}function CP(e,t){return typeof e=="string"||Av(e)==="symbol"||!!t&&Array.isArray(e)&&e.every(function(r){return CP(r,!1)})}function CPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TPe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function PPe(e,t,r){return t&&TPe(e.prototype,t),e}var YO=["canDrag","beginDrag","isDragging","endDrag"],$Pe=["beginDrag"],RPe=function(){function e(t,r,n){var o=this;CPe(this,e),this.props=null,this.beginDrag=function(){if(o.props){var a=o.spec.beginDrag(o.props,o.monitor,o.ref.current);return a}},this.spec=t,this.monitor=r,this.ref=n}return PPe(e,[{key:"receiveProps",value:function(r){this.props=r}},{key:"canDrag",value:function(){return this.props?this.spec.canDrag?this.spec.canDrag(this.props,this.monitor):!0:!1}},{key:"isDragging",value:function(r,n){return this.props?this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):n===r.getSourceId():!1}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,GF(this.ref))}}]),e}();function kPe(e){return Object.keys(e).forEach(function(t){Nt(YO.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',YO.join(", "),t),Nt(typeof e[t]=="function","Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),$Pe.forEach(function(t){Nt(typeof e[t]=="function","Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),function(r,n){return new RPe(e,r,n)}}function IPe(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=e;typeof e!="function"&&(Nt(CP(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),Nt(Yp(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var a=kPe(t);return Nt(typeof r=="function",'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),Nt(Yp(n),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),function(s){return qF({containerDisplayName:"DragSource",createHandler:a,registerHandler:BF,createConnector:function(c){return new UF(c)},createMonitor:function(c){return new zF(c)},DecoratedComponent:s,getType:o,collect:r,options:n})}}function EPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OPe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _Pe(e,t,r){return t&&OPe(e.prototype,t),e}var XO=["canDrop","hover","drop"],DPe=function(){function e(t,r,n){EPe(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}return _Pe(e,[{key:"receiveProps",value:function(r){this.props=r}},{key:"receiveMonitor",value:function(r){this.monitor=r}},{key:"canDrop",value:function(){return this.spec.canDrop?this.spec.canDrop(this.props,this.monitor):!0}},{key:"hover",value:function(){!this.spec.hover||!this.props||this.spec.hover(this.props,this.monitor,GF(this.ref))}},{key:"drop",value:function(){if(this.spec.drop){var r=this.spec.drop(this.props,this.monitor,this.ref.current);return r}}}]),e}();function MPe(e){return Object.keys(e).forEach(function(t){Nt(XO.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',XO.join(", "),t),Nt(typeof e[t]=="function","Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])}),function(r,n){return new DPe(e,r,n)}}function APe(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=e;typeof e!="function"&&(Nt(CP(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),Nt(Yp(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var a=MPe(t);return Nt(typeof r=="function",'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),Nt(Yp(n),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),function(s){return qF({containerDisplayName:"DropTarget",createHandler:a,registerHandler:FF,createMonitor:function(c){return new WF(c)},createConnector:function(c){return new HF(c)},DecoratedComponent:s,getType:o,collect:r,options:n})}}function mp(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mp=function(r){return typeof r}:mp=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mp(e)}function jPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LPe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function NPe(e,t,r){return t&&LPe(e.prototype,t),e}function FPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yS(e,t)}function yS(e,t){return yS=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},yS(e,t)}function BPe(e){var t=UPe();return function(){var n=Vg(e),o;if(t){var a=Vg(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return zPe(this,o)}}function zPe(e,t){return t&&(mp(t)==="object"||typeof t=="function")?t:VPe(e)}function VPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UPe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Vg(e){return Vg=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vg(e)}function HPe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Nt(typeof e=="function",'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),Nt(Yp(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var o=n,a=t.arePropsEqual,i=a===void 0?Ts:a,s=o.displayName||o.name||"Component",l=function(){var c=function(u){FPe(f,u);var d=BPe(f);function f(){var h;return jPe(this,f),h=d.apply(this,arguments),h.isCurrentlyMounted=!1,h.ref=y.createRef(),h.handleChange=function(){if(h.isCurrentlyMounted){var p=h.getCurrentState();Ts(p,h.state)||h.setState(p)}},h}return NPe(f,[{key:"getDecoratedComponentInstance",value:function(){return Nt(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(p,m){return!i(p,this.props)||!Ts(m,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var p=this;return y.createElement(Kh.Consumer,null,function(m){var x=m.dragDropManager;return x===void 0||(p.receiveDragDropManager(x),!p.isCurrentlyMounted)?null:y.createElement(o,Object.assign({},p.props,p.state,{ref:KF(o)?p.ref:null}))})}},{key:"receiveDragDropManager",value:function(p){if(this.manager===void 0){this.manager=p,Nt(mp(p)==="object","Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",s,s);var m=this.manager.getMonitor();this.unsubscribeFromOffsetChange=m.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=m.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var p=this.manager.getMonitor();return e(p,this.props)}}]),f}(y.Component);return c.displayName="DragLayer(".concat(s,")"),c.DecoratedComponent=n,c}();return FC(l,n)}}const WPe=Object.freeze(Object.defineProperty({__proto__:null,DndContext:Kh,DndProvider:MF,DragLayer:HPe,DragPreviewImage:jF,DragSource:IPe,DropTarget:APe,createDndContext:DF,useDrag:MTe,useDragDropManager:Yd,useDragLayer:aPe,useDrop:JTe},Symbol.toStringTag,{value:"Module"})),GPe=Sr(WPe),KPe=Sr(CQ);var Fb={},qPe=rs.default;Object.defineProperty(Fb,"__esModule",{value:!0});var YF=Fb.default=void 0,YPe=qPe(Ri),XPe=v;YF=Fb.default=(0,YPe.default)((0,XPe.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");const QPe=Sr(MX);var Bb={},ZPe=rs.default;Object.defineProperty(Bb,"__esModule",{value:!0});Bb.default=void 0;var JPe=ZPe(Ri),e$e=v;Bb.default=(0,JPe.default)((0,e$e.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var zb={},t$e=rs.default;Object.defineProperty(zb,"__esModule",{value:!0});zb.default=void 0;var r$e=t$e(Ri),n$e=v;zb.default=(0,r$e.default)((0,n$e.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var Vb={},o$e=rs.default;Object.defineProperty(Vb,"__esModule",{value:!0});Vb.default=void 0;var a$e=o$e(Ri),i$e=v;Vb.default=(0,a$e.default)((0,i$e.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.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var Ub={},s$e=rs.default;Object.defineProperty(Ub,"__esModule",{value:!0});Ub.default=void 0;var l$e=s$e(Ri),c$e=v;Ub.default=(0,l$e.default)((0,c$e.jsx)("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3m-3 11H8v-5h8zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m-1-9H6v4h12z"}),"Print");var Hb={},u$e=rs.default;Object.defineProperty(Hb,"__esModule",{value:!0});Hb.default=void 0;var d$e=u$e(Ri),f$e=v;Hb.default=(0,d$e.default)((0,f$e.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn");var Wb={},p$e=rs.default;Object.defineProperty(Wb,"__esModule",{value:!0});Wb.default=void 0;var h$e=p$e(Ri),m$e=v;Wb.default=(0,h$e.default)((0,m$e.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var XF={exports:{}};(function(e,t){(function(r,n){e.exports=n(y,ah)})(typeof self<"u"?self:lr,function(r,n){return function(){var o={328:function(l,c,u){Object.defineProperty(c,"__esModule",{value:!0}),c.PrintContextConsumer=c.PrintContext=void 0;var d=u(496),f=Object.prototype.hasOwnProperty.call(d,"createContext");c.PrintContext=f?d.createContext({}):null,c.PrintContextConsumer=c.PrintContext?c.PrintContext.Consumer:function(){return null}},428:function(l,c,u){Object.defineProperty(c,"__esModule",{value:!0}),c.ReactToPrint=void 0;var d=u(316),f=u(496),h=u(190),p=u(328),m=u(940),x=function(b){function w(){var g=b.apply(this,d.__spreadArray([],d.__read(arguments),!1))||this;return g.startPrint=function(S){var R=g.props,T=R.onAfterPrint,k=R.onPrintError,O=R.print,E=R.documentTitle;setTimeout(function(){var C,D;if(S.contentWindow)if(S.contentWindow.focus(),O)O(S).then(function(){return T==null?void 0:T()}).then(function(){return g.handleRemoveIframe()}).catch(function(j){k?k("print",j):g.logMessages(["An error was thrown by the specified `print` function"])});else{if(S.contentWindow.print){var B=(D=(C=S.contentDocument)===null||C===void 0?void 0:C.title)!==null&&D!==void 0?D:"",U=S.ownerDocument.title;E&&(S.ownerDocument.title=E,S.contentDocument&&(S.contentDocument.title=E)),S.contentWindow.print(),E&&(S.ownerDocument.title=U,S.contentDocument&&(S.contentDocument.title=B))}else g.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);T==null||T(),g.handleRemoveIframe()}else g.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},g.triggerPrint=function(S){var R=g.props,T=R.onBeforePrint,k=R.onPrintError;if(T){var O=T();O&&typeof O.then=="function"?O.then(function(){g.startPrint(S)}).catch(function(E){k&&k("onBeforePrint",E)}):g.startPrint(S)}else g.startPrint(S)},g.handlePrint=function(S){var R=g.props,T=R.bodyClass,k=R.content,O=R.copyStyles,E=R.fonts,C=R.pageStyle,D=R.nonce,B=typeof S=="function"?S():null;if(B&&typeof k=="function"&&g.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),B||typeof k!="function"||(B=k()),B!==void 0)if(B!==null){var U=document.createElement("iframe");U.width="".concat(document.documentElement.clientWidth,"px"),U.height="".concat(document.documentElement.clientHeight,"px"),U.style.position="absolute",U.style.top="-".concat(document.documentElement.clientHeight+100,"px"),U.style.left="-".concat(document.documentElement.clientWidth+100,"px"),U.id="printWindow",U.srcdoc="<!DOCTYPE html>";var j=(0,h.findDOMNode)(B);if(j){var N=j.cloneNode(!0),V=N instanceof Text,ee=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),M=V?[]:N.querySelectorAll("img"),K=V?[]:N.querySelectorAll("video"),te=E?E.length:0;g.numResourcesToLoad=ee.length+M.length+K.length+te,g.resourcesLoaded=[],g.resourcesErrored=[];var oe=function(Ie,Te){g.resourcesLoaded.includes(Ie)?g.logMessages(["Tried to mark a resource that has already been handled",Ie],"debug"):(Te?(g.logMessages(d.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],d.__read(Te),!1)),g.resourcesErrored.push(Ie)):g.resourcesLoaded.push(Ie),g.resourcesLoaded.length+g.resourcesErrored.length===g.numResourcesToLoad&&g.triggerPrint(U))};U.onload=function(){var Ie,Te,ke,pe;U.onload=null;var Pe=U.contentDocument||((Te=U.contentWindow)===null||Te===void 0?void 0:Te.document);if(Pe){Pe.body.appendChild(N),E&&(!((ke=U.contentDocument)===null||ke===void 0)&&ke.fonts&&(!((pe=U.contentWindow)===null||pe===void 0)&&pe.FontFace)?E.forEach(function(lt){var gt=new FontFace(lt.family,lt.source,{weight:lt.weight,style:lt.style});U.contentDocument.fonts.add(gt),gt.loaded.then(function(){oe(gt)}).catch(function(kt){oe(gt,["Failed loading the font:",gt,"Load error:",kt])})}):(E.forEach(function(lt){return oe(lt)}),g.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var Ae=typeof C=="function"?C():C;if(typeof Ae!="string")g.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof Ae,'". Styles from `pageStyle` will not be applied.')]);else{var ge=Pe.createElement("style");D&&(ge.setAttribute("nonce",D),Pe.head.setAttribute("nonce",D)),ge.appendChild(Pe.createTextNode(Ae)),Pe.head.appendChild(ge)}if(T&&(Ie=Pe.body.classList).add.apply(Ie,d.__spreadArray([],d.__read(T.split(" ")),!1)),!V){for(var G=V?[]:j.querySelectorAll("canvas"),Y=Pe.querySelectorAll("canvas"),Q=0;Q<G.length;++Q){var Z=G[Q],X=Y[Q].getContext("2d");X&&X.drawImage(Z,0,0)}var ae=function(lt){var gt=M[lt],kt=gt.getAttribute("src");if(kt){var dt=new Image;dt.onload=function(){return oe(gt)},dt.onerror=function(ir,jr,st,He,Ye){return oe(gt,["Error loading <img>",gt,"Error",Ye])},dt.src=kt}else oe(gt,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',gt])};for(Q=0;Q<M.length;Q++)ae(Q);var fe=function(lt){var gt=K[lt];gt.preload="auto";var kt=gt.getAttribute("poster");if(kt){var dt=new Image;dt.onload=function(){return oe(gt)},dt.onerror=function(ir,jr,st,He,Ye){return oe(gt,["Error loading video poster",kt,"for video",gt,"Error:",Ye])},dt.src=kt}else gt.readyState>=2?oe(gt):(gt.onloadeddata=function(){return oe(gt)},gt.onerror=function(ir,jr,st,He,Ye){return oe(gt,["Error loading video",gt,"Error",Ye])},gt.onstalled=function(){return oe(gt,["Loading video stalled, skipping",gt])})};for(Q=0;Q<K.length;Q++)fe(Q);var xe="input",we=j.querySelectorAll(xe),$e=Pe.querySelectorAll(xe);for(Q=0;Q<we.length;Q++)$e[Q].value=we[Q].value;var ye="input[type=checkbox],input[type=radio]",De=j.querySelectorAll(ye),Ge=Pe.querySelectorAll(ye);for(Q=0;Q<De.length;Q++)Ge[Q].checked=De[Q].checked;var bt="select",Ke=j.querySelectorAll(bt),St=Pe.querySelectorAll(bt);for(Q=0;Q<Ke.length;Q++)St[Q].value=Ke[Q].value}if(O)for(var Lt=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),qt=function(lt,gt){var kt=Lt[lt];if(kt.tagName.toLowerCase()==="style"){var dt=Pe.createElement(kt.tagName),ir=kt.sheet;if(ir){var jr="";try{for(var st=ir.cssRules.length,He=0;He<st;++He)typeof ir.cssRules[He].cssText=="string"&&(jr+="".concat(ir.cssRules[He].cssText,`\r +`))}catch{g.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",kt],"warning")}dt.setAttribute("id","react-to-print-".concat(lt)),D&&dt.setAttribute("nonce",D),dt.appendChild(Pe.createTextNode(jr)),Pe.head.appendChild(dt)}}else if(kt.getAttribute("href"))if(kt.hasAttribute("disabled"))g.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",kt],"warning"),oe(kt);else{for(var Ye=Pe.createElement(kt.tagName),Mt=(He=0,kt.attributes.length);He<Mt;++He){var Ot=kt.attributes[He];Ot&&Ye.setAttribute(Ot.nodeName,Ot.nodeValue||"")}Ye.onload=function(){return oe(Ye)},Ye.onerror=function(mt,dr,cr,br,Jr){return oe(Ye,["Failed to load",Ye,"Error:",Jr])},D&&Ye.setAttribute("nonce",D),Pe.head.appendChild(Ye)}else g.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",kt],"warning"),oe(kt)},wt=(Q=0,Lt.length);Q<wt;++Q)qt(Q)}g.numResourcesToLoad!==0&&O||g.triggerPrint(U)},g.handleRemoveIframe(!0),document.body.appendChild(U)}else g.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else g.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else g.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},g.handleRemoveIframe=function(S){var R=g.props.removeAfterPrint;if(S||R){var T=document.getElementById("printWindow");T&&document.body.removeChild(T)}},g.logMessages=function(S,R){R===void 0&&(R="error"),g.props.suppressErrors||(R==="error"?console.error(S):R==="warning"?console.warn(S):R==="debug"&&console.debug(S))},g}return d.__extends(w,b),w.prototype.handleClick=function(g,S){var R=this,T=this.props,k=T.onBeforeGetContent,O=T.onPrintError;if(k){var E=k();E&&typeof E.then=="function"?E.then(function(){return R.handlePrint(S)}).catch(function(C){O&&O("onBeforeGetContent",C)}):this.handlePrint(S)}else this.handlePrint(S)},w.prototype.render=function(){var g=this.props,S=g.children,R=g.trigger;if(R)return f.cloneElement(R(),{onClick:this.handleClick.bind(this)});if(!p.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var T={handlePrint:this.handleClick.bind(this)};return f.createElement(p.PrintContext.Provider,{value:T},S)},w.defaultProps=m.defaultProps,w}(f.Component);c.ReactToPrint=x},940:function(l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.defaultProps=void 0,c.defaultProps={copyStyles:!0,pageStyle:` + @page { + /* Remove browser default header (title) and footer (url) */ + margin: 0; + } + @media print { + body { + /* Tell browsers to print background colors */ + -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */ + color-adjust: exact; /* Firefox */ + } + } + `,removeAfterPrint:!1,suppressErrors:!1}},892:function(l,c,u){Object.defineProperty(c,"__esModule",{value:!0}),c.useReactToPrint=void 0;var d=u(316),f=u(496),h=u(428),p=u(940),m=u(860),x=Object.prototype.hasOwnProperty.call(f,"useMemo")&&Object.prototype.hasOwnProperty.call(f,"useCallback");c.useReactToPrint=function(b){if(!x)return b.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var w=f.useMemo(function(){return new h.ReactToPrint(d.__assign(d.__assign({},p.defaultProps),b))},[b]);return f.useCallback(function(g,S){return(0,m.wrapCallbackWithArgs)(w,w.handleClick,S)(g)},[w])}},860:function(l,c,u){Object.defineProperty(c,"__esModule",{value:!0}),c.wrapCallbackWithArgs=void 0;var d=u(316);c.wrapCallbackWithArgs=function(f,h){for(var p=[],m=2;m<arguments.length;m++)p[m-2]=arguments[m];return function(){for(var x=[],b=0;b<arguments.length;b++)x[b]=arguments[b];return h.apply(f,d.__spreadArray(d.__spreadArray([],d.__read(x),!1),d.__read(p),!1))}}},496:function(l){l.exports=r},190:function(l){l.exports=n},316:function(l,c,u){u.r(c),u.d(c,{__addDisposableResource:function(){return Pe},__assign:function(){return h},__asyncDelegator:function(){return ee},__asyncGenerator:function(){return V},__asyncValues:function(){return M},__await:function(){return N},__awaiter:function(){return T},__classPrivateFieldGet:function(){return Te},__classPrivateFieldIn:function(){return pe},__classPrivateFieldSet:function(){return ke},__createBinding:function(){return O},__decorate:function(){return m},__disposeResources:function(){return ge},__esDecorate:function(){return b},__exportStar:function(){return E},__extends:function(){return f},__generator:function(){return k},__importDefault:function(){return Ie},__importStar:function(){return oe},__makeTemplateObject:function(){return K},__metadata:function(){return R},__param:function(){return x},__propKey:function(){return g},__read:function(){return D},__rest:function(){return p},__runInitializers:function(){return w},__setFunctionName:function(){return S},__spread:function(){return B},__spreadArray:function(){return j},__spreadArrays:function(){return U},__values:function(){return C}});var d=function(G,Y){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,Z){Q.__proto__=Z}||function(Q,Z){for(var X in Z)Object.prototype.hasOwnProperty.call(Z,X)&&(Q[X]=Z[X])},d(G,Y)};function f(G,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Class extends value "+String(Y)+" is not a constructor or null");function Q(){this.constructor=G}d(G,Y),G.prototype=Y===null?Object.create(Y):(Q.prototype=Y.prototype,new Q)}var h=function(){return h=Object.assign||function(G){for(var Y,Q=1,Z=arguments.length;Q<Z;Q++)for(var X in Y=arguments[Q])Object.prototype.hasOwnProperty.call(Y,X)&&(G[X]=Y[X]);return G},h.apply(this,arguments)};function p(G,Y){var Q={};for(var Z in G)Object.prototype.hasOwnProperty.call(G,Z)&&Y.indexOf(Z)<0&&(Q[Z]=G[Z]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function"){var X=0;for(Z=Object.getOwnPropertySymbols(G);X<Z.length;X++)Y.indexOf(Z[X])<0&&Object.prototype.propertyIsEnumerable.call(G,Z[X])&&(Q[Z[X]]=G[Z[X]])}return Q}function m(G,Y,Q,Z){var X,ae=arguments.length,fe=ae<3?Y:Z===null?Z=Object.getOwnPropertyDescriptor(Y,Q):Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")fe=Reflect.decorate(G,Y,Q,Z);else for(var xe=G.length-1;xe>=0;xe--)(X=G[xe])&&(fe=(ae<3?X(fe):ae>3?X(Y,Q,fe):X(Y,Q))||fe);return ae>3&&fe&&Object.defineProperty(Y,Q,fe),fe}function x(G,Y){return function(Q,Z){Y(Q,Z,G)}}function b(G,Y,Q,Z,X,ae){function fe(qt){if(qt!==void 0&&typeof qt!="function")throw new TypeError("Function expected");return qt}for(var xe,we=Z.kind,$e=we==="getter"?"get":we==="setter"?"set":"value",ye=!Y&&G?Z.static?G:G.prototype:null,De=Y||(ye?Object.getOwnPropertyDescriptor(ye,Z.name):{}),Ge=!1,bt=Q.length-1;bt>=0;bt--){var Ke={};for(var St in Z)Ke[St]=St==="access"?{}:Z[St];for(var St in Z.access)Ke.access[St]=Z.access[St];Ke.addInitializer=function(qt){if(Ge)throw new TypeError("Cannot add initializers after decoration has completed");ae.push(fe(qt||null))};var Lt=(0,Q[bt])(we==="accessor"?{get:De.get,set:De.set}:De[$e],Ke);if(we==="accessor"){if(Lt===void 0)continue;if(Lt===null||typeof Lt!="object")throw new TypeError("Object expected");(xe=fe(Lt.get))&&(De.get=xe),(xe=fe(Lt.set))&&(De.set=xe),(xe=fe(Lt.init))&&X.unshift(xe)}else(xe=fe(Lt))&&(we==="field"?X.unshift(xe):De[$e]=xe)}ye&&Object.defineProperty(ye,Z.name,De),Ge=!0}function w(G,Y,Q){for(var Z=arguments.length>2,X=0;X<Y.length;X++)Q=Z?Y[X].call(G,Q):Y[X].call(G);return Z?Q:void 0}function g(G){return typeof G=="symbol"?G:"".concat(G)}function S(G,Y,Q){return typeof Y=="symbol"&&(Y=Y.description?"[".concat(Y.description,"]"):""),Object.defineProperty(G,"name",{configurable:!0,value:Q?"".concat(Q," ",Y):Y})}function R(G,Y){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(G,Y)}function T(G,Y,Q,Z){return new(Q||(Q=Promise))(function(X,ae){function fe($e){try{we(Z.next($e))}catch(ye){ae(ye)}}function xe($e){try{we(Z.throw($e))}catch(ye){ae(ye)}}function we($e){var ye;$e.done?X($e.value):(ye=$e.value,ye instanceof Q?ye:new Q(function(De){De(ye)})).then(fe,xe)}we((Z=Z.apply(G,Y||[])).next())})}function k(G,Y){var Q,Z,X,ae,fe={label:0,sent:function(){if(1&X[0])throw X[1];return X[1]},trys:[],ops:[]};return ae={next:xe(0),throw:xe(1),return:xe(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function xe(we){return function($e){return function(ye){if(Q)throw new TypeError("Generator is already executing.");for(;ae&&(ae=0,ye[0]&&(fe=0)),fe;)try{if(Q=1,Z&&(X=2&ye[0]?Z.return:ye[0]?Z.throw||((X=Z.return)&&X.call(Z),0):Z.next)&&!(X=X.call(Z,ye[1])).done)return X;switch(Z=0,X&&(ye=[2&ye[0],X.value]),ye[0]){case 0:case 1:X=ye;break;case 4:return fe.label++,{value:ye[1],done:!1};case 5:fe.label++,Z=ye[1],ye=[0];continue;case 7:ye=fe.ops.pop(),fe.trys.pop();continue;default:if(!((X=(X=fe.trys).length>0&&X[X.length-1])||ye[0]!==6&&ye[0]!==2)){fe=0;continue}if(ye[0]===3&&(!X||ye[1]>X[0]&&ye[1]<X[3])){fe.label=ye[1];break}if(ye[0]===6&&fe.label<X[1]){fe.label=X[1],X=ye;break}if(X&&fe.label<X[2]){fe.label=X[2],fe.ops.push(ye);break}X[2]&&fe.ops.pop(),fe.trys.pop();continue}ye=Y.call(G,fe)}catch(De){ye=[6,De],Z=0}finally{Q=X=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([we,$e])}}}var O=Object.create?function(G,Y,Q,Z){Z===void 0&&(Z=Q);var X=Object.getOwnPropertyDescriptor(Y,Q);X&&!("get"in X?!Y.__esModule:X.writable||X.configurable)||(X={enumerable:!0,get:function(){return Y[Q]}}),Object.defineProperty(G,Z,X)}:function(G,Y,Q,Z){Z===void 0&&(Z=Q),G[Z]=Y[Q]};function E(G,Y){for(var Q in G)Q==="default"||Object.prototype.hasOwnProperty.call(Y,Q)||O(Y,G,Q)}function C(G){var Y=typeof Symbol=="function"&&Symbol.iterator,Q=Y&&G[Y],Z=0;if(Q)return Q.call(G);if(G&&typeof G.length=="number")return{next:function(){return G&&Z>=G.length&&(G=void 0),{value:G&&G[Z++],done:!G}}};throw new TypeError(Y?"Object is not iterable.":"Symbol.iterator is not defined.")}function D(G,Y){var Q=typeof Symbol=="function"&&G[Symbol.iterator];if(!Q)return G;var Z,X,ae=Q.call(G),fe=[];try{for(;(Y===void 0||Y-- >0)&&!(Z=ae.next()).done;)fe.push(Z.value)}catch(xe){X={error:xe}}finally{try{Z&&!Z.done&&(Q=ae.return)&&Q.call(ae)}finally{if(X)throw X.error}}return fe}function B(){for(var G=[],Y=0;Y<arguments.length;Y++)G=G.concat(D(arguments[Y]));return G}function U(){for(var G=0,Y=0,Q=arguments.length;Y<Q;Y++)G+=arguments[Y].length;var Z=Array(G),X=0;for(Y=0;Y<Q;Y++)for(var ae=arguments[Y],fe=0,xe=ae.length;fe<xe;fe++,X++)Z[X]=ae[fe];return Z}function j(G,Y,Q){if(Q||arguments.length===2)for(var Z,X=0,ae=Y.length;X<ae;X++)!Z&&X in Y||(Z||(Z=Array.prototype.slice.call(Y,0,X)),Z[X]=Y[X]);return G.concat(Z||Array.prototype.slice.call(Y))}function N(G){return this instanceof N?(this.v=G,this):new N(G)}function V(G,Y,Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z,X=Q.apply(G,Y||[]),ae=[];return Z={},fe("next"),fe("throw"),fe("return"),Z[Symbol.asyncIterator]=function(){return this},Z;function fe(De){X[De]&&(Z[De]=function(Ge){return new Promise(function(bt,Ke){ae.push([De,Ge,bt,Ke])>1||xe(De,Ge)})})}function xe(De,Ge){try{(bt=X[De](Ge)).value instanceof N?Promise.resolve(bt.value.v).then(we,$e):ye(ae[0][2],bt)}catch(Ke){ye(ae[0][3],Ke)}var bt}function we(De){xe("next",De)}function $e(De){xe("throw",De)}function ye(De,Ge){De(Ge),ae.shift(),ae.length&&xe(ae[0][0],ae[0][1])}}function ee(G){var Y,Q;return Y={},Z("next"),Z("throw",function(X){throw X}),Z("return"),Y[Symbol.iterator]=function(){return this},Y;function Z(X,ae){Y[X]=G[X]?function(fe){return(Q=!Q)?{value:N(G[X](fe)),done:!1}:ae?ae(fe):fe}:ae}}function M(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Y,Q=G[Symbol.asyncIterator];return Q?Q.call(G):(G=C(G),Y={},Z("next"),Z("throw"),Z("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function Z(X){Y[X]=G[X]&&function(ae){return new Promise(function(fe,xe){(function(we,$e,ye,De){Promise.resolve(De).then(function(Ge){we({value:Ge,done:ye})},$e)})(fe,xe,(ae=G[X](ae)).done,ae.value)})}}}function K(G,Y){return Object.defineProperty?Object.defineProperty(G,"raw",{value:Y}):G.raw=Y,G}var te=Object.create?function(G,Y){Object.defineProperty(G,"default",{enumerable:!0,value:Y})}:function(G,Y){G.default=Y};function oe(G){if(G&&G.__esModule)return G;var Y={};if(G!=null)for(var Q in G)Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q)&&O(Y,G,Q);return te(Y,G),Y}function Ie(G){return G&&G.__esModule?G:{default:G}}function Te(G,Y,Q,Z){if(Q==="a"&&!Z)throw new TypeError("Private accessor was defined without a getter");if(typeof Y=="function"?G!==Y||!Z:!Y.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Q==="m"?Z:Q==="a"?Z.call(G):Z?Z.value:Y.get(G)}function ke(G,Y,Q,Z,X){if(Z==="m")throw new TypeError("Private method is not writable");if(Z==="a"&&!X)throw new TypeError("Private accessor was defined without a setter");if(typeof Y=="function"?G!==Y||!X:!Y.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Z==="a"?X.call(G,Q):X?X.value=Q:Y.set(G,Q),Q}function pe(G,Y){if(Y===null||typeof Y!="object"&&typeof Y!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof G=="function"?Y===G:G.has(Y)}function Pe(G,Y,Q){if(Y!=null){if(typeof Y!="object"&&typeof Y!="function")throw new TypeError("Object expected.");var Z;if(Q){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Z=Y[Symbol.asyncDispose]}if(Z===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Z=Y[Symbol.dispose]}if(typeof Z!="function")throw new TypeError("Object not disposable.");G.stack.push({value:Y,dispose:Z,async:Q})}else Q&&G.stack.push({async:!0});return Y}var Ae=typeof SuppressedError=="function"?SuppressedError:function(G,Y,Q){var Z=new Error(Q);return Z.name="SuppressedError",Z.error=G,Z.suppressed=Y,Z};function ge(G){function Y(Q){G.error=G.hasError?new Ae(Q,G.error,"An error was suppressed during disposal."):Q,G.hasError=!0}return function Q(){for(;G.stack.length;){var Z=G.stack.pop();try{var X=Z.dispose&&Z.dispose.call(Z.value);if(Z.async)return Promise.resolve(X).then(Q,function(ae){return Y(ae),Q()})}catch(ae){Y(ae)}}if(G.hasError)throw G.error}()}c.default={__extends:f,__assign:h,__rest:p,__decorate:m,__param:x,__metadata:R,__awaiter:T,__generator:k,__createBinding:O,__exportStar:E,__values:C,__read:D,__spread:B,__spreadArrays:U,__spreadArray:j,__await:N,__asyncGenerator:V,__asyncDelegator:ee,__asyncValues:M,__makeTemplateObject:K,__importStar:oe,__importDefault:Ie,__classPrivateFieldGet:Te,__classPrivateFieldSet:ke,__classPrivateFieldIn:pe,__addDisposableResource:Pe,__disposeResources:ge}}},a={};function i(l){var c=a[l];if(c!==void 0)return c.exports;var u=a[l]={exports:{}};return o[l](u,u.exports,i),u.exports}i.d=function(l,c){for(var u in c)i.o(c,u)&&!i.o(l,u)&&Object.defineProperty(l,u,{enumerable:!0,get:c[u]})},i.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},i.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var s={};return function(){var l=s;Object.defineProperty(l,"__esModule",{value:!0}),l.useReactToPrint=l.ReactToPrint=l.PrintContextConsumer=void 0;var c=i(328);Object.defineProperty(l,"PrintContextConsumer",{enumerable:!0,get:function(){return c.PrintContextConsumer}});var u=i(428);Object.defineProperty(l,"ReactToPrint",{enumerable:!0,get:function(){return u.ReactToPrint}});var d=i(892);Object.defineProperty(l,"useReactToPrint",{enumerable:!0,get:function(){return d.useReactToPrint}});var f=i(428);l.default=f.ReactToPrint}(),s}()})})(XF);var v$e=XF.exports,Gb={},g$e=rs.default;Object.defineProperty(Gb,"__esModule",{value:!0});Gb.default=void 0;var y$e=g$e(Ri),b$e=v;Gb.default=(0,y$e.default)((0,b$e.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");function QF(e){var t=null,r=function(){return t==null&&(t=e()),t};return r}function w$e(e,t){return e.filter(function(r){return r!==t})}function x$e(e,t){var r=new Set,n=function(i){return r.add(i)};e.forEach(n),t.forEach(n);var o=[];return r.forEach(function(a){return o.push(a)}),o}function S$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C$e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T$e(e,t,r){return t&&C$e(e.prototype,t),e}var P$e=function(){function e(t){S$e(this,e),this.entered=[],this.isNodeInDocument=t}return T$e(e,[{key:"enter",value:function(r){var n=this,o=this.entered.length,a=function(s){return n.isNodeInDocument(s)&&(!s.contains||s.contains(r))};return this.entered=x$e(this.entered.filter(a),[r]),o===0&&this.entered.length>0}},{key:"leave",value:function(r){var n=this.entered.length;return this.entered=w$e(this.entered.filter(this.isNodeInDocument),r),n>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),e}(),ZF=QF(function(){return/firefox/i.test(navigator.userAgent)}),JF=QF(function(){return!!window.safari});function $$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R$e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k$e(e,t,r){return t&&R$e(e.prototype,t),e}var QO=function(){function e(t,r){$$e(this,e);for(var n=t.length,o=[],a=0;a<n;a++)o.push(a);o.sort(function(O,E){return t[O]<t[E]?-1:1});for(var i=[],s=[],l,c,u=0;u<n-1;u++)l=t[u+1]-t[u],c=r[u+1]-r[u],i.push(l),s.push(c/l);for(var d=[s[0]],f=0;f<i.length-1;f++){var h=s[f],p=s[f+1];if(h*p<=0)d.push(0);else{l=i[f];var m=i[f+1],x=l+m;d.push(3*x/((x+m)/h+(x+l)/p))}}d.push(s[s.length-1]);for(var b=[],w=[],g,S=0;S<d.length-1;S++){g=s[S];var R=d[S],T=1/i[S],k=R+d[S+1]-g-g;b.push((g-R-k)*T),w.push(k*T*T)}this.xs=t,this.ys=r,this.c1s=d,this.c2s=b,this.c3s=w}return k$e(e,[{key:"interpolate",value:function(r){var n=this.xs,o=this.ys,a=this.c1s,i=this.c2s,s=this.c3s,l=n.length-1;if(r===n[l])return o[l];for(var c=0,u=s.length-1,d;c<=u;){d=Math.floor(.5*(c+u));var f=n[d];if(f<r)c=d+1;else if(f>r)u=d-1;else return o[d]}l=Math.max(0,u);var h=r-n[l],p=h*h;return o[l]+a[l]*h+i[l]*p+s[l]*h*p}}]),e}(),I$e=1;function e4(e){var t=e.nodeType===I$e?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top,o=r.left;return{x:o,y:n}}function Qm(e){return{x:e.clientX,y:e.clientY}}function E$e(e){var t;return e.nodeName==="IMG"&&(ZF()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function O$e(e,t,r,n){var o=e?t.width:r,a=e?t.height:n;return JF()&&e&&(a/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:a}}function _$e(e,t,r,n,o){var a=E$e(t),i=a?e:t,s=e4(i),l={x:r.x-s.x,y:r.y-s.y},c=e.offsetWidth,u=e.offsetHeight,d=n.anchorX,f=n.anchorY,h=O$e(a,t,c,u),p=h.dragPreviewWidth,m=h.dragPreviewHeight,x=function(){var k=new QO([0,.5,1],[l.y,l.y/u*m,l.y+m-u]),O=k.interpolate(f);return JF()&&a&&(O+=(window.devicePixelRatio-1)*m),O},b=function(){var k=new QO([0,.5,1],[l.x,l.x/c*p,l.x+p-c]);return k.interpolate(d)},w=o.offsetX,g=o.offsetY,S=w===0||w,R=g===0||g;return{x:S?w:b(),y:R?g:x()}}var t4="__NATIVE_FILE__",r4="__NATIVE_URL__",n4="__NATIVE_TEXT__";const bS=Object.freeze(Object.defineProperty({__proto__:null,FILE:t4,TEXT:n4,URL:r4},Symbol.toStringTag,{value:"Module"}));function ZO(e,t,r){var n=t.reduce(function(o,a){return o||e.getData(a)},"");return n??r}var Tf;function Rw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wS=(Tf={},Rw(Tf,t4,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items}},matchesTypes:["Files"]}),Rw(Tf,r4,{exposeProperties:{urls:function(t,r){return ZO(t,r,"").split(` +`)}},matchesTypes:["Url","text/uri-list"]}),Rw(Tf,n4,{exposeProperties:{text:function(t,r){return ZO(t,r,"")}},matchesTypes:["Text","text/plain"]}),Tf);function D$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M$e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A$e(e,t,r){return t&&M$e(e.prototype,t),e}var j$e=function(){function e(t){D$e(this,e),this.config=t,this.item={},this.initializeExposedProperties()}return A$e(e,[{key:"initializeExposedProperties",value:function(){var r=this;Object.keys(this.config.exposeProperties).forEach(function(n){Object.defineProperty(r.item,n,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(n,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(r){var n=this;if(r){var o={};Object.keys(this.config.exposeProperties).forEach(function(a){o[a]={value:n.config.exposeProperties[a](r,n.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,o)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(r,n){return n===r.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();function L$e(e,t){var r=new j$e(wS[e]);return r.loadDataTransfer(t),r}function JO(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(wS).filter(function(r){var n=wS[r].matchesTypes;return n.some(function(o){return t.indexOf(o)>-1})})[0]||null}function N$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F$e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function B$e(e,t,r){return t&&F$e(e.prototype,t),e}var z$e=function(){function e(t){N$e(this,e),this.globalContext=t}return B$e(e,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){if(this.window)return this.window.document}}]),e}();function e_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function t_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(r),!0).forEach(function(n){V$e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V$e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H$e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function W$e(e,t,r){return t&&H$e(e.prototype,t),e}var G$e=function(){function e(t,r){var n=this;U$e(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(o){var a=n.sourceNodes.get(o);return a&&e4(a)||null},this.endDragNativeItem=function(){n.isDraggingNativeItem()&&(n.actions.endDrag(),n.currentNativeHandle&&n.registry.removeSource(n.currentNativeHandle),n.currentNativeHandle=null,n.currentNativeSource=null)},this.isNodeInDocument=function(o){return!!(o&&n.document&&n.document.body&&document.body.contains(o))},this.endDragIfSourceWasRemovedFromDOM=function(){var o=n.currentDragSourceNode;n.isNodeInDocument(o)||n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragStartCapture=function(){n.clearCurrentDragSourceNode(),n.dragStartSourceIds=[]},this.handleTopDragStart=function(o){if(!o.defaultPrevented){var a=n.dragStartSourceIds;n.dragStartSourceIds=null;var i=Qm(o);n.monitor.isDragging()&&n.actions.endDrag(),n.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:n.getSourceClientOffset,clientOffset:i});var s=o.dataTransfer,l=JO(s);if(n.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var c=n.monitor.getSourceId(),u=n.sourceNodes.get(c),d=n.sourcePreviewNodes.get(c)||u;if(d){var f=n.getCurrentSourcePreviewNodeOptions(),h=f.anchorX,p=f.anchorY,m=f.offsetX,x=f.offsetY,b={anchorX:h,anchorY:p},w={offsetX:m,offsetY:x},g=_$e(u,d,i,b,w);s.setDragImage(d,g.x,g.y)}}try{s==null||s.setData("application/json",{})}catch{}n.setCurrentDragSourceNode(o.target);var S=n.getCurrentSourcePreviewNodeOptions(),R=S.captureDraggingState;R?n.actions.publishDragSource():setTimeout(function(){return n.actions.publishDragSource()},0)}else if(l)n.beginDragNativeItem(l);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}},this.handleTopDragEndCapture=function(){n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragEnterCapture=function(o){n.dragEnterTargetIds=[];var a=n.enterLeaveCounter.enter(o.target);if(!(!a||n.monitor.isDragging())){var i=o.dataTransfer,s=JO(i);s&&n.beginDragNativeItem(s,i)}},this.handleTopDragEnter=function(o){var a=n.dragEnterTargetIds;if(n.dragEnterTargetIds=[],!!n.monitor.isDragging()){n.altKeyPressed=o.altKey,ZF()||n.actions.hover(a,{clientOffset:Qm(o)});var i=a.some(function(s){return n.monitor.canDropOnTarget(s)});i&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=n.getCurrentDropEffect()))}},this.handleTopDragOverCapture=function(){n.dragOverTargetIds=[]},this.handleTopDragOver=function(o){var a=n.dragOverTargetIds;if(n.dragOverTargetIds=[],!n.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}n.altKeyPressed=o.altKey,n.actions.hover(a||[],{clientOffset:Qm(o)});var i=(a||[]).some(function(s){return n.monitor.canDropOnTarget(s)});i?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=n.getCurrentDropEffect())):n.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(o){n.isDraggingNativeItem()&&o.preventDefault();var a=n.enterLeaveCounter.leave(o.target);a&&n.isDraggingNativeItem()&&n.endDragNativeItem()},this.handleTopDropCapture=function(o){if(n.dropTargetIds=[],o.preventDefault(),n.isDraggingNativeItem()){var a;(a=n.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}n.enterLeaveCounter.reset()},this.handleTopDrop=function(o){var a=n.dropTargetIds;n.dropTargetIds=[],n.actions.hover(a,{clientOffset:Qm(o)}),n.actions.drop({dropEffect:n.getCurrentDropEffect()}),n.isDraggingNativeItem()?n.endDragNativeItem():n.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(o){var a=o.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(o.preventDefault(),a.dragDrop()))},this.options=new z$e(r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new P$e(this.isNodeInDocument)}return W$e(e,[{key:"profile",value:function(){var r,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}},{key:"setup",value:function(){if(this.window!==void 0){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){this.window!==void 0&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(r,n,o){var a=this;return this.sourcePreviewNodeOptions.set(r,o),this.sourcePreviewNodes.set(r,n),function(){a.sourcePreviewNodes.delete(r),a.sourcePreviewNodeOptions.delete(r)}}},{key:"connectDragSource",value:function(r,n,o){var a=this;this.sourceNodes.set(r,n),this.sourceNodeOptions.set(r,o);var i=function(c){return a.handleDragStart(c,r)},s=function(c){return a.handleSelectStart(c)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",s),function(){a.sourceNodes.delete(r),a.sourceNodeOptions.delete(r),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",s),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(r,n){var o=this,a=function(c){return o.handleDragEnter(c,r)},i=function(c){return o.handleDragOver(c,r)},s=function(c){return o.handleDrop(c,r)};return n.addEventListener("dragenter",a),n.addEventListener("dragover",i),n.addEventListener("drop",s),function(){n.removeEventListener("dragenter",a),n.removeEventListener("dragover",i),n.removeEventListener("drop",s)}}},{key:"addEventListeners",value:function(r){r.addEventListener&&(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(r){r.removeEventListener&&(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(r);return t_({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(r);return t_({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}},{key:"isDraggingNativeItem",value:function(){var r=this.monitor.getItemType();return Object.keys(bS).some(function(n){return bS[n]===r})}},{key:"beginDragNativeItem",value:function(r,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=L$e(r,n),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(r){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;var o=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){return n.window&&n.window.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)},o)}},{key:"clearCurrentDragSourceNode",value:function(){return this.currentDragSourceNode?(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0):!1}},{key:"handleDragStart",value:function(r,n){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(r,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(r,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(r,n){this.dropTargetIds.unshift(n)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}]),e}(),Zm;function K$e(){return Zm||(Zm=new Image,Zm.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Zm}var q$e=function(t,r){return new G$e(t,r)};const Y$e=Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:q$e,NativeTypes:bS,getEmptyImage:K$e},Symbol.toStringTag,{value:"Module"})),X$e=Sr(Y$e);var Q$e=Oh,Z$e=Ho,J$e=rl,eRe=RangeError,tRe=function(t){var r=Z$e(J$e(this)),n="",o=Q$e(t);if(o<0||o===1/0)throw new eRe("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(r+=r))o&1&&(n+=r);return n},o4=Nr,rRe=zT,r_=Ho,nRe=tRe,oRe=rl,aRe=o4(nRe),iRe=o4("".slice),sRe=Math.ceil,n_=function(e){return function(t,r,n){var o=r_(oRe(t)),a=rRe(r),i=o.length,s=n===void 0?" ":r_(n),l,c;return a<=i||s===""?o:(l=a-i,c=aRe(s,sRe(l/s.length)),c.length>l&&(c=iRe(c,0,l)),e?o+c:c+o)}},lRe={start:n_(!1),end:n_(!0)},Xl=Nr,o_=Vr,nc=lRe.start,cRe=RangeError,uRe=isFinite,dRe=Math.abs,ol=Date.prototype,kw=ol.toISOString,fRe=Xl(ol.getTime),pRe=Xl(ol.getUTCDate),hRe=Xl(ol.getUTCFullYear),mRe=Xl(ol.getUTCHours),vRe=Xl(ol.getUTCMilliseconds),gRe=Xl(ol.getUTCMinutes),yRe=Xl(ol.getUTCMonth),bRe=Xl(ol.getUTCSeconds),wRe=o_(function(){return kw.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!o_(function(){kw.call(new Date(NaN))})?function(){if(!uRe(fRe(this)))throw new cRe("Invalid time value");var t=this,r=hRe(t),n=vRe(t),o=r<0?"-":r>9999?"+":"";return o+nc(dRe(r),o?6:4,0)+"-"+nc(yRe(t)+1,2,0)+"-"+nc(pRe(t),2,0)+"T"+nc(mRe(t),2,0)+":"+nc(gRe(t),2,0)+":"+nc(bRe(t),2,0)+"."+nc(n,3,0)+"Z"}:kw,xRe=tr,a4=Ka,SRe=Ra,CRe=pN,TRe=wRe,PRe=tl,$Re=Vr,RRe=$Re(function(){return new Date(NaN).toJSON()!==null||a4(Date.prototype.toJSON,{toISOString:function(){return 1}})!==1});xRe({target:"Date",proto:!0,forced:RRe},{toJSON:function(t){var r=SRe(this),n=CRe(r,"number");return typeof n=="number"&&!isFinite(n)?null:!("toISOString"in r)&&PRe(r)==="Date"?a4(TRe,r):r.toISOString()}});var xS=bn,kRe=Ch;xS.JSON||(xS.JSON={stringify:JSON.stringify});var IRe=function(t,r,n){return kRe(xS.JSON.stringify,null,arguments)},ERe=IRe,ORe=ERe,_Re=ORe;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Boe,r=Yoe,n=Xie,o=ise,a=Rse,i=Ase,s=Vse,l=ble,c=Ofe,u=vpe,d=bb,f=$pe,h=zpe,p=p3,m=fhe,x=phe,b=khe,w=Ihe,g=Uhe,S=tme,R=mme,T=Ome,k=_me,O=tve,E=kve,C=rge,D=uge,B=wge,U=_ge,j=Dge,N=Mge,V=Gge,ee=oye,M=aye,K=iye,te=sye,oe=jl,Ie=bbe,Te=Wbe,ke=Gbe,pe=Kbe,Pe=qbe,Ae=Xbe,ge=Qbe,G=kA,Y=y,Q=h0e,Z=m0e,X=v0e,ae=g0e,fe=y0e,xe=b0e,we=w0e,$e=x0e,ye=Ib,De=Eb,Ge=K0e,bt=Xwe,Ke=Qwe,St=Zwe,Lt=Jwe,qt=exe,wt=txe,lt=rxe,gt=nxe,kt=oxe,dt=axe,ir=ixe,jr=sxe,st=lxe,He=cxe,Ye=uxe,Mt=Cxe,Ot=Txe,mt=Pxe,dr=Xxe,cr=Qxe,br=fSe,Jr=Db,wn=vSe,uo=CSe,Nn=GPe,Xt=KPe,qr=Fb,Gn=QPe,ie=Bb,ve=zb,_e=Vb,qe=Ub,ct=Hb,ft=Wb,Ct=v$e,vt=Gb,yt=X$e,pt=_Re;function Oe(F){return F&&typeof F=="object"&&"default"in F?F:{default:F}}var nt=Oe(t),zt=Oe(r),kr=Oe(n),rr=Oe(o),nr=Oe(a),Ir=Oe(i),eo=Oe(s),vr=Oe(l),an=Oe(c),Cr=Oe(u),Kn=Oe(d),En=Oe(f),en=Oe(h),ut=Oe(p),On=Oe(m),Vt=Oe(x),Qt=Oe(b),Ee=Oe(w),Fr=Oe(g),xt=Oe(S),$o=Oe(R),ur=Oe(T),Yr=Oe(k),fo=Oe(O),cn=Oe(E),po=Oe(C),tn=Oe(D),ns=Oe(B),Or=Oe(U),ho=Oe(j),Fn=Oe(N),aa=Oe(V),Ia=Oe(ee),os=Oe(M),Ei=Oe(K),mo=Oe(te),Er=Oe(Ie),Wo=Oe(Te),un=Oe(ke),Oi=Oe(pe),to=Oe(Pe),ks=Oe(Ae),Is=Oe(ge),ne=Oe(G),he=Oe(Y),qa=Oe(Q),Ur=Oe(Z),Ya=Oe(X),ro=Oe(ae),Mo=Oe(fe),Go=Oe(xe),no=Oe(we),dn=Oe($e),oo=Oe(ye),vo=Oe(De),Xa=Oe(Ge),Ro=Oe(bt),Ko=Oe(Ke),qo=Oe(St),as=Oe(Lt),_i=Oe(qt),$=Oe(wt),P=Oe(lt),A=Oe(gt),J=Oe(kt),We=Oe(dt),Je=Oe(ir),It=Oe(jr),At=Oe(st),Gt=Oe(He),Ut=Oe(Ye),gr=Oe(Mt),_r=Oe(Ot),Hr=Oe(mt),Tr=Oe(dr),rn=Oe(cr),_n=Oe(br),ko=Oe(Jr),ia=Oe(wn),Di=Oe(uo),al=Oe(Xt),il=Oe(qr),Qh=Oe(Gn),Qd=Oe(ie),Zh=Oe(ve),r0=Oe(_e),eu=Oe(qe),n0=Oe(ct),o0=Oe(ft),L=Oe(Ct),re=Oe(vt),Be=Oe(pt),rt=["children","colIndex","columnHeader","options","dataIndex","rowIndex","className","print","tableId"],Jt=oe.makeStyles({name:"MUIDataTableBodyCell"})(function(F){return{root:{},cellHide:{display:"none"},simpleHeader:Ee.default({},F.breakpoints.down("sm"),{display:"inline-block",fontWeight:"bold",width:"100%",boxSizing:"border-box"}),simpleCell:Ee.default({},F.breakpoints.down("sm"),{display:"inline-block",width:"100%",boxSizing:"border-box"}),stackedHeader:{verticalAlign:"top"},stackedCommon:Ee.default({},F.breakpoints.down("md"),{display:"inline-block",fontSize:"16px",height:"auto",width:"calc(50%)",boxSizing:"border-box","&:last-child":{borderBottom:"none"},"&:nth-last-of-type(2)":{borderBottom:"none"}}),stackedCommonAlways:{display:"inline-block",fontSize:"16px",height:"auto",width:"calc(50%)",boxSizing:"border-box","&:last-child":{borderBottom:"none"},"&:nth-last-of-type(2)":{borderBottom:"none"}},stackedParent:Ee.default({},F.breakpoints.down("md"),{display:"inline-block",fontSize:"16px",height:"auto",width:"calc(100%)",boxSizing:"border-box"}),stackedParentAlways:{display:"inline-block",fontSize:"16px",height:"auto",width:"calc(100%)",boxSizing:"border-box"},cellStackedSmall:Ee.default({},F.breakpoints.down("md"),{width:"50%",boxSizing:"border-box"}),responsiveStackedSmall:Ee.default({},F.breakpoints.down("md"),{width:"50%",boxSizing:"border-box"}),responsiveStackedSmallParent:Ee.default({},F.breakpoints.down("md"),{width:"100%",boxSizing:"border-box"})}});function _t(F){var ue,de,z,_,I=Jt().classes,be=F.children,W=F.colIndex,q=F.columnHeader,H=F.options,se=F.dataIndex,me=F.rowIndex,Se=F.className,Ne=F.print,ze=F.tableId,Ce=Cr.default(F,rt),je=H.onCellClick,Me=Y.useCallback(function(ht){je(be,{colIndex:W,rowIndex:me,dataIndex:se,event:ht})},[je,be,W,me,se]),Ue={};je&&(Ue.onClick=Me);var tt,at=[he.default.createElement("div",{key:1,className:Er.default((ue={lastColumn:W===2},Ee.default(ue,I.root,!0),Ee.default(ue,I.cellHide,!0),Ee.default(ue,I.stackedHeader,!0),Ee.default(ue,I.stackedCommon,H.responsive==="vertical"||H.responsive==="stacked"||H.responsive==="stackedFullWidth"),Ee.default(ue,I.stackedCommonAlways,H.responsive==="verticalAlways"),Ee.default(ue,I.cellStackedSmall,H.responsive==="stacked"||H.responsive==="stackedFullWidth"&&(H.setTableProps().padding==="none"||H.setTableProps().size==="small")),Ee.default(ue,I.simpleHeader,H.responsive==="simple"),Ee.default(ue,"datatables-noprint",!Ne),ue),Se)},q),he.default.createElement("div",{key:2,className:Er.default((de={},Ee.default(de,I.root,!0),Ee.default(de,I.stackedCommon,H.responsive==="vertical"||H.responsive==="stacked"||H.responsive==="stackedFullWidth"),Ee.default(de,I.stackedCommonAlways,H.responsive==="verticalAlways"),Ee.default(de,I.responsiveStackedSmall,H.responsive==="stacked"||H.responsive==="stackedFullWidth"&&(H.setTableProps().padding==="none"||H.setTableProps().size==="small")),Ee.default(de,I.simpleCell,H.responsive==="simple"),Ee.default(de,"datatables-noprint",!Ne),de),Se)},typeof be=="function"?be(se,me):be)];return tt=Fr.default(z=["standard","scrollMaxHeight","scrollFullHeight","scrollFullHeightFullWidth"]).call(z,H.responsive)!==-1?ro.default(at).call(at,1,2):at,he.default.createElement(Mo.default,vr.default({},Ue,{"data-colindex":W,"data-tableid":ze,className:Er.default((_={},Ee.default(_,I.root,!0),Ee.default(_,I.stackedParent,H.responsive==="vertical"||H.responsive==="stacked"||H.responsive==="stackedFullWidth"),Ee.default(_,I.stackedParentAlways,H.responsive==="verticalAlways"),Ee.default(_,I.responsiveStackedSmallParent,H.responsive==="vertical"||H.responsive==="stacked"||H.responsive==="stackedFullWidth"&&(H.setTableProps().padding==="none"||H.setTableProps().size==="small")),Ee.default(_,I.simpleCell,H.responsive==="simple"),Ee.default(_,"datatables-noprint",!Ne),_),Se)},Ce),tt)}var yr=["classes","options","rowSelected","onClick","className","isRowSelectable"];function Dn(F){var ue=Bn();return function(){var de,z=Qt.default(F);if(ue){var _=Qt.default(this).constructor;de=nt.default(z,arguments,_)}else de=z.apply(this,arguments);return Vt.default(this,de)}}function Bn(){if(typeof Reflect>"u"||!nt.default||nt.default.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(nt.default(Boolean,[],function(){})),!0}catch{return!1}}var go=function(F){return{root:{"&.Mui-selected":{backgroundColor:F.palette.action.selected},"&.mui-row-selected":{backgroundColor:F.palette.action.selected}},hoverCursor:{cursor:"pointer"},responsiveStacked:Ee.default({},F.breakpoints.down("md"),{borderTop:"solid 2px rgba(0, 0, 0, 0.15)",borderBottom:"solid 2px rgba(0, 0, 0, 0.15)",padding:0,margin:0}),responsiveSimple:Ee.default({},F.breakpoints.down("sm"),{borderTop:"solid 2px rgba(0, 0, 0, 0.15)",borderBottom:"solid 2px rgba(0, 0, 0, 0.15)",padding:0,margin:0})}},Io=function(F){On.default(de,F);var ue=Dn(de);function de(){return En.default(this,de),ue.apply(this,arguments)}return en.default(de,[{key:"render",value:function(){var z,_=this.props,I=_.classes,be=_.options,W=_.rowSelected,q=_.onClick,H=_.className,se=_.isRowSelectable,me=Cr.default(_,yr),Se={};return q&&(Se.onClick=q),he.default.createElement(Go.default,vr.default({hover:!!be.rowHover},Se,{className:Er.default((z={},Ee.default(z,I.root,!0),Ee.default(z,I.hover,be.rowHover),Ee.default(z,I.hoverCursor,be.selectableRowsOnClick&&se||be.expandableRowsOnClick),Ee.default(z,I.responsiveSimple,be.responsive==="simple"),Ee.default(z,I.responsiveStacked,be.responsive==="vertical"||be.responsive==="stacked"||be.responsive==="stackedFullWidth"),Ee.default(z,"mui-row-selected",W),z),H),selected:W},me),this.props.children)}}]),de}(he.default.Component);Ee.default(Io,"propTypes",{options:ne.default.object.isRequired,onClick:ne.default.func,rowSelected:ne.default.bool,classes:ne.default.object});var yo=oe.withStyles(Io,go,{name:"MUIDataTableBodyRow"}),bo=function(F){var ue=F.areAllRowsExpanded,de=F.buttonClass,z=F.expandableRowsHeader,_=F.expandedRows,I=F.iconClass,be=F.iconIndeterminateClass,W=F.isHeaderCell,q=F.onExpand;return he.default.createElement(he.default.Fragment,null,W&&!ue()&&ue&&_.data.length>0?he.default.createElement(dn.default,{onClick:q,style:{padding:0},disabled:z===!1,className:de},he.default.createElement(vo.default,{id:"expandable-button",className:be})):he.default.createElement(dn.default,{onClick:q,style:{padding:0},disabled:z===!1,className:de},he.default.createElement(oo.default,{id:"expandable-button",className:I})))},sa=["fixedHeader","fixedSelectColumn","isHeaderCell","expandableOn","selectableOn","isRowExpanded","onExpand","isRowSelectable","selectableRowsHeader","hideExpandButton","expandableRowsHeader","expandedRows","areAllRowsExpanded","selectableRowsHideCheckboxes","setHeadCellRef","dataIndex","components"],la=oe.makeStyles({name:"MUIDataTableSelectCell"})(function(F){return{root:{"@media print":{display:"none"}},fixedHeader:{position:"sticky",top:"0px",zIndex:100},fixedLeft:{position:"sticky",left:"0px",zIndex:100},icon:{cursor:"pointer",transition:"transform 0.25s"},expanded:{transform:"rotate(90deg)"},hide:{visibility:"hidden"},headerCell:{zIndex:110,backgroundColor:F.palette.background.paper},expandDisabled:{},checkboxRoot:{},checked:{},disabled:{}}}),Ea=function(F){var ue,de,z,_=F.fixedHeader,I=F.fixedSelectColumn,be=F.isHeaderCell,W=be!==void 0&&be,q=F.expandableOn,H=q!==void 0&&q,se=F.selectableOn,me=se===void 0?"none":se,Se=F.isRowExpanded,Ne=Se!==void 0&&Se,ze=F.onExpand,Ce=F.isRowSelectable,je=F.selectableRowsHeader,Me=F.hideExpandButton,Ue=F.expandableRowsHeader,tt=F.expandedRows,at=F.areAllRowsExpanded,ht=at===void 0?function(){return!1}:at,Ht=F.selectableRowsHideCheckboxes,jt=F.setHeadCellRef,or=F.dataIndex,$t=F.components,Br=$t===void 0?{}:$t,fr=Cr.default(F,sa),er=la().classes,Xr=Br.Checkbox||no.default,Kt=Br.ExpandButton||bo;if(H===!1&&(me==="none"||Ht===!0))return null;var xn=Er.default((Ee.default(ue={},er.root,!0),Ee.default(ue,er.fixedHeader,_&&W),Ee.default(ue,er.fixedLeft,I),Ee.default(ue,er.headerCell,W),ue)),sn=Er.default(Ee.default({},er.expandDisabled,Me)),ar=Er.default((Ee.default(de={},er.icon,!0),Ee.default(de,er.hide,W&&!Ue),Ee.default(de,er.expanded,Ne||W&&ht()),de)),Dt=Er.default((Ee.default(z={},er.icon,!0),Ee.default(z,er.hide,W&&!Ue),z)),ot={};return jt&&(ot.ref=function(Tt){jt(0,0,Tt)}),he.default.createElement(Mo.default,vr.default({className:xn,padding:"checkbox"},ot),he.default.createElement("div",{style:{display:"flex",alignItems:"center"}},H&&he.default.createElement(Kt,{isHeaderCell:W,areAllRowsExpanded:ht,expandedRows:tt,onExpand:ze,expandableRowsHeader:Ue,buttonClass:sn,iconIndeterminateClass:Dt,iconClass:ar,dataIndex:or}),me!=="none"&&Ht!==!0&&(!W||me==="multiple"&&je!==!1?he.default.createElement(Xr,vr.default({classes:{root:er.checkboxRoot,checked:er.checked,disabled:er.disabled},"data-description":W?"row-select-header":"row-select","data-index":or||null,color:"primary",disabled:!Ce},fr)):null)))};Ea.propTypes={checked:ne.default.bool.isRequired,fixedHeader:ne.default.bool,onChange:ne.default.func,classes:ne.default.object,expandableOn:ne.default.bool,hideExpandButton:ne.default.bool,selectableOn:ne.default.string,isRowSelectable:ne.default.bool};function qn(F){return fo.default(F).call(F,function(ue,de){return ue[de.dataIndex]=!0,ue},{})}function is(F){return typeof F=="string"?F.replace(/^\+|^\-|^\=|^\@/g,"'$&"):F}function Jh(F){var ue=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],de=typeof ue=="function"?ue:console.warn;ue&&de("Deprecation Notice: ".concat(F))}function Ql(F){var ue=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],de=typeof ue=="function"?ue:console.warn;ue&&de("".concat(F))}function ss(F,ue,de){var z=F<=ue?1:Math.ceil(F/ue);return de>=z?z-1:de}function BP(){return Intl?new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare:function(F,ue){return F.localeCompare(ue)}}function iB(F){return function(ue,de){var z=ue.data===null||ue.data===void 0?"":ue.data,_=de.data===null||de.data===void 0?"":de.data;return(typeof z.localeCompare=="function"?z.localeCompare(_):z-_)*(F==="asc"?1:-1)}}function sB(F,ue,de){var z,_,I=function(se){return typeof se=="string"?se.replace(/\"/g,'""'):se},be=function(se){var me;return ro.default(me=fo.default(se).call(se,function(Se,Ne){return Ne.download?Se+'"'+is(I(Ne.label||Ne.name))+'"'+de.downloadOptions.separator:Se},"")).call(me,0,-1)+`\r +`},W=be(F),q=function(se){var me;return se.length?Xa.default(me=fo.default(se).call(se,function(Se,Ne){var ze,Ce;return Se+'"'+xt.default(ze=Or.default(Ce=Ne.data).call(Ce,function(je,Me){return F[Me].download})).call(ze,function(je){return is(I(je))}).join('"'+de.downloadOptions.separator+'"')+`"\r +`},"")).call(me):""},H=q(ue);return de.onDownload?de.onDownload(be,q,F,ue):Xa.default(z=tn.default(_="".concat(W)).call(_,H)).call(z)}function lB(F,ue){var de=new Blob([F],{type:"text/csv"});if(navigator&&navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(de,ue);else{var z="data:text/csv;charset=utf-8,".concat(F),_=Ro.default||window.webkitURL,I=_.createObjectURL===void 0?z:_.createObjectURL(de),be=document.createElement("a");be.setAttribute("href",I),be.setAttribute("download",ue),document.body.appendChild(be),be.click(),document.body.removeChild(be)}}function cB(F,ue,de,z){var _=sB(F,ue,de);de.onDownload&&_===!1||z(_,de.downloadOptions.filename)}function uB(F){var ue=dB();return function(){var de,z=Qt.default(F);if(ue){var _=Qt.default(this).constructor;de=nt.default(z,arguments,_)}else de=z.apply(this,arguments);return Vt.default(this,de)}}function dB(){if(typeof Reflect>"u"||!nt.default||nt.default.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(nt.default(Boolean,[],function(){})),!0}catch{return!1}}var fB=function(F){return{root:{},emptyTitle:{textAlign:"center"},lastStackedCell:Ee.default({},F.breakpoints.down("md"),{"& td:last-child":{borderBottom:"none"}}),lastSimpleCell:Ee.default({},F.breakpoints.down("sm"),{"& td:last-child":{borderBottom:"none"}})}},a0=function(F){On.default(de,F);var ue=uB(de);function de(){var z,_;En.default(this,de);for(var I=arguments.length,be=new Array(I),W=0;W<I;W++)be[W]=arguments[W];return _=ue.call.apply(ue,tn.default(z=[this]).call(z,be)),Ee.default(ut.default(_),"handleRowSelect",function(q,H){var se=!(!H||!H.nativeEvent)&&H.nativeEvent.shiftKey,me=[],Se=_.props.previousSelectedRow;if(se&&Se&&Se.index<_.props.data.length){var Ne,ze=Se.index,Ce=un.default(_.props.selectedRows),je=_.props.data[q.index].dataIndex;Or.default(Ne=Ce.data).call(Ne,function(Ue){return Ue.dataIndex===je}).length===0&&(Ce.data.push({index:q.index,dataIndex:je}),Ce.lookup[je]=!0);for(var Me=function(){var Ue=_.props.data[ze].dataIndex;if(_.isRowSelectable(Ue,Ce)){var tt,at={index:ze,dataIndex:Ue};Or.default(tt=Ce.data).call(tt,function(ht){return ht.dataIndex===Ue}).length===0&&(Ce.data.push(at),Ce.lookup[Ue]=!0),me.push(at)}ze=q.index>ze?ze+1:ze-1};ze!==q.index;)Me()}_.props.selectRowUpdate("cell",q,me)}),Ee.default(ut.default(_),"handleRowClick",function(q,H,se){var me;if(!(se.target.id==="expandable-button"||se.target.nodeName==="path"&&se.target.parentNode.id==="expandable-button"||se.target.id&&qa.default(me=se.target.id).call(me,"MUIDataTableSelectCell"))){if(_.props.options.selectableRowsOnClick&&_.props.options.selectableRows!=="none"&&_.isRowSelectable(H.dataIndex,_.props.selectedRows)){var Se={index:H.rowIndex,dataIndex:H.dataIndex};_.handleRowSelect(Se,se)}if(_.props.options.expandableRowsOnClick&&_.props.options.expandableRows&&_.isRowExpandable(H.dataIndex,_.props.expandedRows)){var Ne={index:H.rowIndex,dataIndex:H.dataIndex};_.props.toggleExpandRow(Ne)}_.props.options.selectableRowsOnClick||_.props.options.onRowClick&&_.props.options.onRowClick(q,H,se)}}),Ee.default(ut.default(_),"processRow",function(q,H){for(var se=[],me=0;me<q.length;me++)se.push({value:q[H[me]],index:H[me]});return se}),_}return en.default(de,[{key:"buildRows",value:function(){var z=this.props,_=z.data,I=z.page,be=z.rowsPerPage,W=z.count;if(this.props.options.serverSide)return _.length?_:null;var q=[],H=ss(W,be,I),se=H===0?0:H*be,me=Math.min(W,(H+1)*be);I>H&&console.warn("Current page is out of range, using the highest page that is in range instead.");for(var Se=se;Se<W&&Se<me;Se++)_[Se]!==void 0&&q.push(_[Se]);return q.length?q:null}},{key:"getRowIndex",value:function(z){var _=this.props,I=_.page,be=_.rowsPerPage;return _.options.serverSide?z:(I===0?0:I*be)+z}},{key:"isRowSelected",value:function(z){var _=this.props.selectedRows;return!(!_.lookup||!_.lookup[z])}},{key:"isRowExpanded",value:function(z){var _=this.props.expandedRows;return!(!_.lookup||!_.lookup[z])}},{key:"isRowSelectable",value:function(z,_){var I=this.props.options;return _=_||this.props.selectedRows,!I.isRowSelectable||I.isRowSelectable(z,_)}},{key:"isRowExpandable",value:function(z){var _=this.props,I=_.options,be=_.expandedRows;return!I.isRowExpandable||I.isRowExpandable(z,be)}},{key:"render",value:function(){var z,_=this,I=this.props,be=I.classes,W=I.columns,q=I.toggleExpandRow,H=I.options,se=I.columnOrder,me=se===void 0?xt.default(z=this.props.columns).call(z,function(Me,Ue){return Ue}):se,Se=I.components,Ne=Se===void 0?{}:Se,ze=I.tableId,Ce=this.buildRows(),je=Or.default(W).call(W,function(Me){return Me.display==="true"}).length;return he.default.createElement(Ya.default,null,Ce&&Ce.length>0?xt.default(Ce).call(Ce,function(Me,Ue){var tt,at,ht,Ht,jt,or=Me.data,$t=Me.dataIndex;if(H.customRowRender)return H.customRowRender(or,$t,Ue);var Br=H.selectableRows!=="none"&&_.isRowSelected($t),fr=_.isRowSelectable($t),er=H.setRowProps&&H.setRowProps(or,$t,Ue)||{},Xr=_.processRow(or,me);return he.default.createElement(he.default.Fragment,{key:Ue},he.default.createElement(yo,vr.default({},er,{options:H,rowSelected:Br,isRowSelectable:fr,onClick:Fn.default(tt=_.handleRowClick).call(tt,null,or,{rowIndex:Ue,dataIndex:$t}),className:Er.default((at={},Ee.default(at,be.lastStackedCell,H.responsive==="vertical"||H.responsive==="stacked"||H.responsive==="stackedFullWidth"),Ee.default(at,be.lastSimpleCell,H.responsive==="simple"),Ee.default(at,er.className,er.className),at)),"data-testid":"MUIDataTableBodyRow-"+$t,id:tn.default(ht="MUIDataTableBodyRow-".concat(ze,"-")).call(ht,$t)}),he.default.createElement(Ea,{onChange:Fn.default(Ht=_.handleRowSelect).call(Ht,null,{index:_.getRowIndex(Ue),dataIndex:$t}),onExpand:Fn.default(q).call(q,null,{index:_.getRowIndex(Ue),dataIndex:$t}),fixedHeader:H.fixedHeader,fixedSelectColumn:H.fixedSelectColumn,checked:Br,expandableOn:H.expandableRows,hideExpandButton:!_.isRowExpandable($t)&&H.expandableRows,selectableOn:H.selectableRows,selectableRowsHideCheckboxes:H.selectableRowsHideCheckboxes,isRowExpanded:_.isRowExpanded($t),isRowSelectable:fr,dataIndex:$t,id:tn.default(jt="MUIDataTableSelectCell-".concat(ze,"-")).call(jt,$t),components:Ne}),xt.default(Xr).call(Xr,function(Kt){var xn;return W[Kt.index].display==="true"&&he.default.createElement(_t,vr.default({},W[Kt.index].setCellProps&&W[Kt.index].setCellProps(Kt.value,$t,Kt.index)||{},{"data-testid":tn.default(xn="MuiDataTableBodyCell-".concat(Kt.index,"-")).call(xn,Ue),dataIndex:$t,rowIndex:Ue,colIndex:Kt.index,columnHeader:W[Kt.index].label,print:W[Kt.index].print,options:H,tableId:ze,key:Kt.index}),Kt.value)})),_.isRowExpanded($t)&&H.renderExpandableRow(or,{rowIndex:Ue,dataIndex:$t}))}):he.default.createElement(yo,{options:H},he.default.createElement(_t,{colSpan:H.selectableRows!=="none"||H.expandableRows?je+1:je,options:H,colIndex:0,rowIndex:0},he.default.createElement(Ur.default,{variant:"body1",className:be.emptyTitle,component:"div"},H.textLabels.body.noMatch))))}}]),de}(he.default.Component);Ee.default(a0,"propTypes",{data:ne.default.array.isRequired,count:ne.default.number.isRequired,columns:ne.default.array.isRequired,options:ne.default.object.isRequired,filterList:ne.default.array,onRowClick:ne.default.func,expandedRows:ne.default.object,selectedRows:ne.default.object,selectRowUpdate:ne.default.func,previousSelectedRow:ne.default.object,searchText:ne.default.string,toggleExpandRow:ne.default.func,classes:ne.default.object}),Ee.default(a0,"defaultProps",{toggleExpandRow:function(){}});var i0=oe.withStyles(a0,fB,{name:"MUIDataTableBody"});function pB(F){var ue=hB();return function(){var de,z=Qt.default(F);if(ue){var _=Qt.default(this).constructor;de=nt.default(z,arguments,_)}else de=z.apply(this,arguments);return Vt.default(this,de)}}function hB(){if(typeof Reflect>"u"||!nt.default||nt.default.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(nt.default(Boolean,[],function(){})),!0}catch{return!1}}var mB=function(F){return{root:{backgroundColor:F.palette.background.default,padding:"24px 24px 36px 24px",fontFamily:"Roboto"},header:{flex:"0 0 auto",marginBottom:"16px",width:"100%",display:"flex",justifyContent:"space-between"},title:{display:"inline-block",marginLeft:"7px",color:F.palette.text.primary,fontSize:"14px",fontWeight:500},noMargin:{marginLeft:"0px"},reset:{alignSelf:"left"},resetLink:{marginLeft:"16px",fontSize:"12px",cursor:"pointer"},filtersSelected:{alignSelf:"right"},checkboxListTitle:{marginLeft:"7px",marginBottom:"8px",fontSize:"14px",color:F.palette.text.secondary,textAlign:"left",fontWeight:500},checkboxFormGroup:{marginTop:"8px"},checkboxFormControl:{margin:"0px"},checkboxFormControlLabel:{fontSize:"15px",marginLeft:"8px",color:F.palette.text.primary},checkboxIcon:{width:"32px",height:"32px"},checkbox:{},checked:{},gridListTile:{marginTop:"16px"}}},zP=function(F){On.default(de,F);var ue=pB(de);function de(z){var _;return En.default(this,de),_=ue.call(this,z),Ee.default(ut.default(_),"filterUpdate",function(I,be,W,q,H){var se,me=ro.default(se=_.state.filterList).call(se,0);_.props.updateFilterByType(me,I,be,q,H),_.setState({filterList:me})}),Ee.default(ut.default(_),"handleCheckboxChange",function(I,be,W){_.filterUpdate(I,be,W,"checkbox"),_.props.options.confirmFilters!==!0&&_.props.onFilterUpdate(I,be,W,"checkbox")}),Ee.default(ut.default(_),"handleDropdownChange",function(I,be,W){var q=Or.default(_.props.options.textLabels).all,H=I.target.value===q?[]:[I.target.value];_.filterUpdate(be,H,W,"dropdown"),_.props.options.confirmFilters!==!0&&_.props.onFilterUpdate(be,H,W,"dropdown")}),Ee.default(ut.default(_),"handleMultiselectChange",function(I,be,W){_.filterUpdate(I,be,W,"multiselect"),_.props.options.confirmFilters!==!0&&_.props.onFilterUpdate(I,be,W,"multiselect")}),Ee.default(ut.default(_),"handleTextFieldChange",function(I,be,W){_.filterUpdate(be,I.target.value,W,"textField"),_.props.options.confirmFilters!==!0&&_.props.onFilterUpdate(be,I.target.value,W,"textField")}),Ee.default(ut.default(_),"handleCustomChange",function(I,be,W){_.filterUpdate(be,I,W.name,W.filterType),_.props.options.confirmFilters!==!0&&_.props.onFilterUpdate(be,I,W.name,W.filterType)}),Ee.default(ut.default(_),"applyFilters",function(){var I;return ur.default(I=_.state.filterList).call(I,function(be,W){_.props.onFilterUpdate(W,be,_.props.columns[W],"custom")}),_.props.handleClose(),_.props.options.onFilterConfirm&&_.props.options.onFilterConfirm(_.state.filterList),_.state.filterList}),Ee.default(ut.default(_),"resetFilters",function(){var I;_.setState({filterList:xt.default(I=_.props.columns).call(I,function(){return[]})}),_.props.options.confirmFilters!==!0&&_.props.onFilterReset()}),_.state={filterList:un.default(z.filterList)},_}return en.default(de,[{key:"renderCheckbox",value:function(z,_){var I,be=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},q=W.Checkbox||no.default,H=this.props,se=H.classes,me=H.filterData,Se=this.state.filterList,Ne=z.filterOptions&&z.filterOptions.renderValue?z.filterOptions.renderValue:function(ze){return ze};return he.default.createElement($.default,{item:!0,key:_,xs:6},he.default.createElement(_i.default,null,he.default.createElement($.default,{item:!0,xs:12},he.default.createElement(Ur.default,{variant:"body2",className:se.checkboxListTitle},z.label)),he.default.createElement($.default,{container:!0},xt.default(I=me[_]).call(I,function(ze,Ce){var je,Me;return he.default.createElement($.default,{item:!0,key:Ce},he.default.createElement(as.default,{key:Ce,classes:{root:se.checkboxFormControl,label:se.checkboxFormControlLabel},control:he.default.createElement(q,{"data-description":"table-filter",color:"primary",className:se.checkboxIcon,onChange:Fn.default(je=be.handleCheckboxChange).call(je,null,_,ze,z.name),checked:Fr.default(Me=Se[_]).call(Me,ze)>=0,classes:{root:se.checkbox,checked:se.checked},value:ze!=null?ze.toString():""}),label:Ne(ze)}))}))))}},{key:"renderSelect",value:function(z,_){var I,be=this,W=this.props,q=W.classes,H=W.filterData,se=W.options,me=this.state.filterList,Se=Or.default(se.textLabels),Ne=z.filterOptions&&z.filterOptions.renderValue?z.filterOptions.renderValue:function(Ce){return Ce!=null?Ce.toString():""},ze=(z.filterOptions&&z.filterOptions.fullWidth)===!0?12:6;return he.default.createElement($.default,{item:!0,key:_,xs:ze,classes:{"grid-xs-12":q.gridListTile,"grid-xs-6":q.gridListTile}},he.default.createElement(qo.default,{key:_,variant:"standard",fullWidth:!0},he.default.createElement(A.default,{htmlFor:z.name},z.label),he.default.createElement(Je.default,{fullWidth:!0,value:me[_].length?me[_].toString():Se.all,name:z.name,onChange:function(Ce){return be.handleDropdownChange(Ce,_,z.name)},input:he.default.createElement(P.default,{name:z.name,id:z.name})},he.default.createElement(We.default,{value:Se.all,key:0},Se.all),xt.default(I=H[_]).call(I,function(Ce,je){return he.default.createElement(We.default,{value:Ce,key:je+1},Ne(Ce))}))))}},{key:"renderTextField",value:function(z,_){var I=this,be=this.props.classes,W=this.state.filterList;z.filterOptions&&z.filterOptions.renderValue&&console.warn("Custom renderValue not supported for textField filters");var q=(z.filterOptions&&z.filterOptions.fullWidth)===!0?12:6;return he.default.createElement($.default,{item:!0,key:_,xs:q,classes:{"grid-xs-12":be.gridListTile,"grid-xs-6":be.gridListTile}},he.default.createElement(qo.default,{key:_,fullWidth:!0},he.default.createElement(It.default,{fullWidth:!0,variant:"standard",label:z.label,value:W[_].toString()||"","data-testid":"filtertextfield-"+z.name,onChange:function(H){return I.handleTextFieldChange(H,_,z.name)}})))}},{key:"renderMultiselect",value:function(z,_){var I,be=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},q=W.Checkbox||no.default,H=this.props,se=H.classes,me=H.filterData,Se=this.state.filterList,Ne=z.filterOptions&&z.filterOptions.renderValue?z.filterOptions.renderValue:function(Ce){return Ce},ze=(z.filterOptions&&z.filterOptions.fullWidth)===!0?12:6;return he.default.createElement($.default,{item:!0,key:_,xs:ze,classes:{"grid-xs-12":se.gridListTile,"grid-xs-6":se.gridListTile}},he.default.createElement(qo.default,{key:_,variant:"standard",fullWidth:!0},he.default.createElement(A.default,{htmlFor:z.name},z.label),he.default.createElement(Je.default,{multiple:!0,fullWidth:!0,value:Se[_]||[],renderValue:function(Ce){return xt.default(Ce).call(Ce,Ne).join(", ")},name:z.name,onChange:function(Ce){return be.handleMultiselectChange(_,Ce.target.value,z.name)},input:he.default.createElement(P.default,{name:z.name,id:z.name})},xt.default(I=me[_]).call(I,function(Ce,je){var Me;return he.default.createElement(We.default,{value:Ce,key:je+1},he.default.createElement(q,{"data-description":"table-filter",color:"primary",checked:Fr.default(Me=Se[_]).call(Me,Ce)>=0,value:Ce!=null?Ce.toString():"",className:se.checkboxIcon,classes:{root:se.checkbox,checked:se.checked}}),he.default.createElement(J.default,{primary:Ne(Ce)}))}))))}},{key:"renderCustomField",value:function(z,_){var I=this.props,be=I.classes,W=I.filterData,q=I.options,H=this.state.filterList,se=(z.filterOptions&&z.filterOptions.fullWidth)===!0?12:6,me=z.filterOptions&&z.filterOptions.display||q.filterOptions&&q.filterOptions.display;if(me)return z.filterListOptions&&z.filterListOptions.renderValue&&console.warning('"renderValue" is ignored for custom filter fields'),he.default.createElement($.default,{item:!0,key:_,xs:se,classes:{"grid-xs-12":be.gridListTile,"grid-xs-6":be.gridListTile}},he.default.createElement(qo.default,{key:_,fullWidth:!0},me(H,this.handleCustomChange,_,z,W)));console.error('Property "display" is required when using custom filter type.')}},{key:"render",value:function(){var z=this,_=this.props,I=_.classes,be=_.columns,W=_.options,q=_.customFooter,H=_.filterList,se=_.components,me=se===void 0?{}:se,Se=Or.default(W.textLabels);return he.default.createElement("div",{className:I.root},he.default.createElement("div",{className:I.header},he.default.createElement("div",{className:I.reset},he.default.createElement(Ur.default,{variant:"body2",className:Er.default(Ee.default({},I.title,!0))},Se.title),he.default.createElement(Ko.default,{color:"primary",className:I.resetLink,tabIndex:0,"aria-label":Se.reset,"data-testid":"filterReset-button",onClick:this.resetFilters},Se.reset)),he.default.createElement("div",{className:I.filtersSelected})),he.default.createElement($.default,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:4},xt.default(be).call(be,function(Ne,ze){if(Or.default(Ne)){var Ce=Ne.filterType||W.filterType;return Ce==="checkbox"?z.renderCheckbox(Ne,ze,me):Ce==="multiselect"?z.renderMultiselect(Ne,ze,me):Ce==="textField"?z.renderTextField(Ne,ze):Ce==="custom"?z.renderCustomField(Ne,ze):z.renderSelect(Ne,ze)}})),q?q(H,this.applyFilters):"")}}]),de}(he.default.Component);Ee.default(zP,"propTypes",{filterData:ne.default.array.isRequired,filterList:ne.default.array.isRequired,options:ne.default.object.isRequired,onFilterUpdate:ne.default.func,onFilterReset:ne.default.func,classes:ne.default.object});var s0=oe.withStyles(zP,mB,{name:"MUIDataTableFilter"}),VP=function(F){var ue=F.label,de=F.onDelete,z=F.className,_=F.filterProps;return(_=_||{}).className&&(z=Er.default(z,_.className)),he.default.createElement(At.default,vr.default({label:ue,onDelete:de,className:z},_))};VP.propTypes={label:ne.default.node,onDelete:ne.default.func.isRequired,className:ne.default.string.isRequired};var vB=oe.makeStyles({name:"MUIDataTableFilterList"})(function(){return{root:{display:"flex",justifyContent:"left",flexWrap:"wrap",margin:"0px 16px 0px 16px"},chip:{margin:"8px 8px 0px 0px"}}}),em=function(F){var ue=F.options,de=F.filterList,z=F.filterUpdate,_=F.filterListRenderers,I=F.columnNames,be=F.serverSideFilterList,W=F.customFilterListUpdate,q=F.ItemComponent,H=q===void 0?VP:q,se=vB().classes,me=ue.serverSide,Se=function(Ce,je,Me,Ue){var tt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,at=je;Yr.default(at)&&at.length===0&&(at=de[Ce]),z(Ce,je,Me,Ue,tt,function(ht){ue.onFilterChipClose&&ue.onFilterChipClose(Ce,at,ht)})},Ne=function(Ce,je,Me,Ue,tt){var at;return at=tt?W[je]?"custom":"chip":I[je].filterType,he.default.createElement(H,{label:Ce,key:Me,onDelete:function(){return Se(je,Ue[Me]||[],I[je].name,at,W[je])},className:se.chip,itemKey:Me,index:je,data:Ue,columnNames:I,filterProps:ue.setFilterChipProps?ue.setFilterChipProps(je,I[je].name,Ue[Me]||[]):{}})},ze=function(Ce){return xt.default(Ce).call(Ce,function(je,Me){if(I[Me].filterType==="custom"&&Ce[Me].length){var Ue=_[Me](je);return Yr.default(Ue)?xt.default(Ue).call(Ue,function(tt,at){return Ne(tt,Me,at,je,!0)}):Ne(Ue,Me,Me,je,!1)}return xt.default(je).call(je,function(tt,at){return function(ht,Ht,jt){return he.default.createElement(H,{label:_[ht](Ht),key:jt,onDelete:function(){return Se(ht,Ht,I[ht].name,"chip")},className:se.chip,itemKey:jt,index:ht,data:Ht,columnNames:I,filterProps:ue.setFilterChipProps?ue.setFilterChipProps(ht,I[ht].name,Ht):{}})}(Me,tt,at)})})};return he.default.createElement("div",{className:se.root},ze(me&&be?be:de))};em.propTypes={filterList:ne.default.array.isRequired,filterListRenderers:ne.default.array.isRequired,columnNames:ne.default.arrayOf(ne.default.oneOfType([ne.default.string,ne.default.shape({name:ne.default.string.isRequired,filterType:ne.default.string})])).isRequired,onFilterUpdate:ne.default.func,ItemComponent:ne.default.any};var gB=oe.makeStyles({name:"MUIDataTableJumpToPage"})(function(F){return{root:{color:F.palette.text.primary},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingTop:6,paddingBottom:7,paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right",fontSize:F.typography.pxToRem(14)},selectIcon:{},input:{color:"inhert",fontSize:"inhert",flexShrink:0}}});function UP(F){for(var ue=gB().classes,de=F.count,z=F.textLabels,_=F.rowsPerPage,I=F.page,be=(F.changePage,z.pagination.jumpToPage),W=[],q=Math.min(1e3,ss(de,_,1e6)),H=0;H<=q;H++)W.push(H);var se=We.default;return he.default.createElement(Hr.default,{style:{display:"flex",minHeight:"52px",alignItems:"center"},className:ue.root},he.default.createElement(Ur.default,{color:"inherit",variant:"body2",className:ue.caption},be),he.default.createElement(Je.default,{classes:{select:ue.select,icon:ue.selectIcon},input:he.default.createElement(_r.default,{className:Er.default(ue.input,ue.selectRoot)}),value:ss(de,_,I),onChange:function(me){F.changePage(gr.default(me.target.value,10))},style:{marginRight:0}},xt.default(W).call(W,function(me){return he.default.createElement(se,{className:ue.menuItem,key:me,value:me},me+1)})))}UP.propTypes={count:ne.default.number.isRequired,page:ne.default.number.isRequired,rowsPerPage:ne.default.number.isRequired,textLabels:ne.default.object.isRequired};var yB=oe.makeStyles({name:"MUIDataTablePagination"})(function(F){return{root:{},tableCellContainer:{padding:"0px 24px 0px 24px"},navContainer:{display:"flex",justifyContent:"flex-end"},toolbar:{},selectRoot:{},"@media screen and (max-width: 400px)":{toolbar:{"& span:nth-of-type(2)":{display:"none"}},selectRoot:{marginRight:"8px"}}}});function l0(F){var ue=yB().classes,de=F.count,z=F.options,_=F.rowsPerPage,I=F.page,be=z.textLabels.pagination;return he.default.createElement(Gt.default,null,he.default.createElement(Go.default,null,he.default.createElement(Mo.default,{colSpan:"1000",className:ue.tableCellContainer},he.default.createElement("div",{className:ue.navContainer},z.jumpToPage?he.default.createElement(UP,{count:de,page:I,rowsPerPage:_,textLabels:z.textLabels,changePage:F.changePage,changeRowsPerPage:F.changeRowsPerPage}):null,he.default.createElement(Ut.default,{component:"div",className:ue.root,classes:{caption:ue.caption,toolbar:ue.toolbar,selectRoot:ue.selectRoot},count:de,rowsPerPage:_,page:ss(de,_,I),labelRowsPerPage:be.rowsPerPage,labelDisplayedRows:function(W){var q,H,se,me=W.from,Se=W.to,Ne=W.count;return tn.default(q=tn.default(H=tn.default(se="".concat(me,"-")).call(se,Se," ")).call(H,be.displayRows," ")).call(q,Ne)},backIconButtonProps:{id:"pagination-back","data-testid":"pagination-back","aria-label":be.previous,title:be.previous||""},nextIconButtonProps:{id:"pagination-next","data-testid":"pagination-next","aria-label":be.next,title:be.next||""},SelectProps:{id:"pagination-input",SelectDisplayProps:{id:"pagination-rows","data-testid":"pagination-rows"},MenuProps:{id:"pagination-menu","data-testid":"pagination-menu",MenuListProps:{id:"pagination-menu-list","data-testid":"pagination-menu-list"}}},rowsPerPageOptions:z.rowsPerPageOptions,onPageChange:function(W,q){F.changePage(q)},onRowsPerPageChange:function(W){F.changeRowsPerPage(W.target.value)}})))))}l0.propTypes={count:ne.default.number.isRequired,options:ne.default.object.isRequired,page:ne.default.number.isRequired,rowsPerPage:ne.default.number.isRequired,changeRowsPerPage:ne.default.func.isRequired};var bB=oe.makeStyles({name:"MUIDataTableFooter"})(function(){return{root:{"@media print":{display:"none"}}}}),tm=function(F){var ue=F.options,de=F.rowCount,z=F.page,_=F.rowsPerPage,I=F.changeRowsPerPage,be=F.changePage,W=bB().classes,q=ue.customFooter,H=ue.pagination,se=H===void 0||H;return q?he.default.createElement(Ei.default,{className:W.root},ue.customFooter(de,z,_,I,be,ue.textLabels.pagination)):se?he.default.createElement(Ei.default,{className:W.root},he.default.createElement(l0,{count:de,page:z,rowsPerPage:_,changeRowsPerPage:I,changePage:be,component:"div",options:ue})):null};tm.propTypes={rowCount:ne.default.number.isRequired,options:ne.default.shape({customFooter:ne.default.func,pagination:ne.default.bool,textLabels:ne.default.shape({pagination:ne.default.object})}),page:ne.default.number.isRequired,rowsPerPage:ne.default.number.isRequired,changeRowsPerPage:ne.default.func.isRequired,changePage:ne.default.func.isRequired};var HP=function(F,ue,de){var z=[],_=F[0]?F[0]:null;if(_===null){_={offsetLeft:1/0};var I=Di.default(F);ur.default(I).call(I,function(H,se){var me=Tr.default(H,2),Se=(me[0],me[1]);Se&&Se.offsetLeft<_.offsetLeft&&(_=Se)}),_.offsetLeft===1/0&&(_={offsetParent:0,offsetWidth:0,offsetLeft:0})}for(var be=0,W=0,q=_.offsetParent;q&&(W=W+(q.offsetLeft||0)-(q.scrollLeft||0),q=q.offsetParent,!(++be>1e3)););return F[0]&&(z[0]={left:W+_.offsetLeft,width:_.offsetWidth,columnIndex:null,ref:_}),ur.default(ue).call(ue,function(H,se){var me=F[H+1],Se=z.length-1;if(!de[H]||de[H].display==="true"){var Ne=Se!==-1?z[Se].left+z[Se].width:W+_.offsetLeft;z.push({left:Ne,width:me.offsetWidth,columnIndex:H,ref:me})}}),z},wB=function(F,ue,de){var z=ro.default(F).call(F),_=Fr.default(z).call(z,ue),I=Fr.default(z).call(z,de);if(_!==-1&&I!==-1){var be,W,q=z[_];z=tn.default(be=[]).call(be,an.default(ro.default(z).call(z,0,_)),an.default(ro.default(z).call(z,_+1))),z=tn.default(W=[]).call(W,an.default(ro.default(z).call(z,0,I)),[q],an.default(ro.default(z).call(z,I)))}return z},xB=function(F){F.item;var ue=F.mon,de=F.index,z=F.headCellRefs,_=F.updateColumnOrder,I=F.columnOrder,be=F.transitionTime,W=be===void 0?300:be,q=F.tableRef,H=F.tableId,se=F.timers,me=F.columns,Se=ue.getItem().colIndex;if(z===ue.getItem().headCellRefs&&Se!==de){for(var Ne=wB(I,ue.getItem().colIndex,de),ze=HP(z,Ne,me),Ce=ue.getClientOffset().x,je=-1,Me=0;Me<ze.length;Me++)if(Ce>ze[Me].left&&Ce<ze[Me].left+ze[Me].width){je=ze[Me].columnIndex;break}if(je===ue.getItem().colIndex){clearTimeout(se.columnShift);var Ue=HP(z,I,me),tt=[];ur.default(ze).call(ze,function(Kt){tt[Kt.columnIndex]=Kt.left}),ur.default(Ue).call(Ue,function(Kt){tt[Kt.columnIndex]=tt[Kt.columnIndex]-Kt.left});for(var at=1;at<I.length;at++){var ht=I[at];me[ht]&&me[ht].display!=="true"||(z[at]&&(z[at].style.transition="280ms"),z[at]&&(z[at].style.transform="translateX("+tt[at-1]+"px)"))}for(var Ht=[],jt=[],or=0;or<I.length;or++){for(var $t=q?q.querySelectorAll('[data-colindex="'+or+'"][data-tableid="'+H+'"]'):[],Br=0;Br<$t.length;Br++)$t[Br].style.transition=W+"ms",$t[Br].style.transform="translateX("+tt[or]+"px)",Ht.push($t[Br]);for(var fr=q?q.querySelectorAll('[data-divider-index="'+(or+1)+'"][data-tableid="'+H+'"]'):[],er=0;er<fr.length;er++)fr[er].style.transition=W+"ms",fr[er].style.transform="translateX("+tt[I[or]]+"px)",jt.push(fr[er])}var Xr=ue.getItem().colIndex;se.columnShift=_n.default(function(){ur.default(Ht).call(Ht,function(Kt){Kt.style.transition="0s",Kt.style.transform="translateX(0)"}),ur.default(jt).call(jt,function(Kt){Kt.style.transition="0s",Kt.style.transform="translateX(0)"}),_(Ne,Xr,de)},W)}}},SB=function(F){var ue=Nn.useDrop({accept:"HEADER",drop:_,hover:function(I,be){return xB(ho.default({},F,{item:I,mon:be}))},collect:function(I){return{isOver:!!I.isOver(),canDrop:!!I.canDrop()}}}),de=Tr.default(ue,2),z=de[0],_=(z.isOver,z.canDrop,de[1]);return[_]},CB=["className"];function WP(F,ue){var de=zt.default(F);if(kr.default){var z=kr.default(F);ue&&(z=Or.default(z).call(z,function(_){return rr.default(F,_).enumerable})),de.push.apply(de,z)}return de}function TB(F){for(var ue=1;ue<arguments.length;ue++){var de,z,_=arguments[ue]!=null?arguments[ue]:{};ue%2?ur.default(de=WP(Object(_),!0)).call(de,function(I){Ee.default(F,I,_[I])}):nr.default?Ir.default(F,nr.default(_)):ur.default(z=WP(Object(_))).call(z,function(I){eo.default(F,I,rr.default(_,I))})}return F}var PB=oe.makeStyles({name:"MUIDataTableHeadCell"})(function(F){return{root:{},fixedHeader:{position:"sticky",top:"0px",zIndex:100,backgroundColor:F.palette.background.paper},tooltip:{cursor:"pointer"},mypopper:{"&[data-x-out-of-boundaries]":{display:"none"}},data:{display:"inline-block"},sortAction:{display:"flex",cursor:"pointer"},dragCursor:{cursor:"grab"},sortLabelRoot:{height:"20px"},sortActive:{color:F.palette.text.primary},toolButton:{textTransform:"none",marginLeft:"-8px",minWidth:0,marginRight:"8px",paddingLeft:"8px",paddingRight:"8px"},contentWrapper:{display:"flex",alignItems:"center"},hintIconAlone:{marginTop:"-3px",marginLeft:"3px"},hintIconWithSortIcon:{marginTop:"-3px"}}}),c0=function(F){var ue,de,z=F.cellHeaderProps,_=z===void 0?{}:z,I=F.children,be=F.colPosition,W=F.column,q=F.columns,H=F.columnOrder,se=H===void 0?[]:H,me=F.components,Se=me===void 0?{}:me,Ne=F.draggableHeadCellRefs,ze=F.draggingHook,Ce=F.hint,je=F.index,Me=F.options,Ue=F.print,tt=F.setCellRef,at=po.default(F),ht=F.sortDirection,Ht=F.tableRef,jt=F.tableId,or=F.timers,$t=F.toggleSort,Br=F.updateColumnOrder,fr=Y.useState(!1),er=Tr.default(fr,2),Xr=er[0],Kt=er[1],xn=Y.useState(!1),sn=Tr.default(xn,2),ar=sn[0],Dt=sn[1],ot=PB().classes,Tt=Tr.default(ze||[],2),Mr=Tt[0],_a=Tt[1],Za=_.className,Es=Cr.default(_,CB),Mi=Se.Tooltip||mo.default,ca=ht!=="none"&&ht!==void 0,Zl=ht!=="none"&&ht,Os=function(){return!!ze&&Me.draggableColumns&&Me.draggableColumns.enabled&&W.draggable!==!1},Jl=TB({classes:{root:ot.sortLabelRoot},tabIndex:-1,active:ca,hideSortIcon:!0},Zl?{direction:ht}:{}),Zd=Nn.useDrag({item:{type:"HEADER",colIndex:je,headCellRefs:Ne},begin:function(Da){return _n.default(function(){Dt(!1),Kt(!1),_a(!0)},0),null},end:function(Da,ef){_a(!1)},collect:function(Da){return{opacity:Da.isDragging()?1:0}}}),Jd=Tr.default(Zd,3),am=(Jd[0].opacity,Jd[1]),y0=(Jd[2],SB({drop:function(Da,ef){Kt(!1),Dt(!1),_a(!1)},index:je,headCellRefs:Ne,updateColumnOrder:Br,columnOrder:se,columns:q,transitionTime:Me.draggableColumns?Me.draggableColumns.transitionTime:300,tableRef:Ht?Ht():null,tableId:jt||"none",timers:or})),tu=Tr.default(y0,1)[0],_s=Er.default((Ee.default(ue={},ot.root,!0),Ee.default(ue,ot.fixedHeader,Me.fixedHeader),Ee.default(ue,"datatables-noprint",!Ue),Ee.default(ue,Za,Za),ue));return he.default.createElement(Mo.default,vr.default({ref:function(Da){tu&&tu(Da),tt&&tt(je+1,be+1,Da)},className:_s,scope:"col",sortDirection:Zl,"data-colindex":je,"data-tableid":jt,onMouseDown:function(){Kt(!1)}},Es),po.default(Me)&&at?he.default.createElement("span",{className:ot.contentWrapper},he.default.createElement(Mi,{title:Mr?"":Me.textLabels?Me.textLabels.body.columnHeaderTooltip?Me.textLabels.body.columnHeaderTooltip(W):Me.textLabels.body.toolTip:"",placement:"bottom",open:Xr,onOpen:function(){return Kt(!Mr)},onClose:function(){return Kt(!1)},classes:{tooltip:ot.tooltip,popper:ot.mypopper}},he.default.createElement(Ko.default,{variant:"",onKeyUp:function(Da){return Da.key==="Enter"&&$t(je),!1},onClick:function(){$t(je)},className:ot.toolButton,"data-testid":"headcol-".concat(je),ref:Os()?am:null},he.default.createElement("div",{className:ot.sortAction},he.default.createElement("div",{className:Er.default((de={},Ee.default(de,ot.data,!0),Ee.default(de,ot.sortActive,ca),Ee.default(de,ot.dragCursor,Os()),de))},I),he.default.createElement("div",{className:ot.sortAction},he.default.createElement(ia.default,Jl))))),Ce&&he.default.createElement(Mi,{title:Ce},he.default.createElement(ko.default,{className:ca?ot.hintIconWithSortIcon:ot.hintIconAlone,fontSize:"small"}))):he.default.createElement("div",{className:Ce?ot.sortAction:null,ref:Os()?am:null},I,Ce&&he.default.createElement(Mi,{title:Ce,placement:"bottom-end",open:ar,onOpen:function(){return Kt(!1),void Dt(!0)},onClose:function(){return Dt(!1)},classes:{tooltip:ot.tooltip,popper:ot.mypopper},enterDelay:300},he.default.createElement(ko.default,{className:ot.hintIconAlone,fontSize:"small"}))))};c0.propTypes={options:ne.default.object.isRequired,sortDirection:ne.default.oneOf(["asc","desc","none"]),toggleSort:ne.default.func.isRequired,sort:ne.default.bool.isRequired,hint:ne.default.string,print:ne.default.bool.isRequired,column:ne.default.object,components:ne.default.object};var $B=oe.makeStyles({name:"MUIDataTableHeadRow"})(function(){return{root:{}}}),u0=function(F){var ue=F.children,de=$B().classes;return he.default.createElement(Go.default,{className:Er.default(Ee.default({},de.root,!0))},ue)};u0.propTypes={children:ne.default.node};function GP(F,ue){var de=zt.default(F);if(kr.default){var z=kr.default(F);ue&&(z=Or.default(z).call(z,function(_){return rr.default(F,_).enumerable})),de.push.apply(de,z)}return de}function d0(F){for(var ue=1;ue<arguments.length;ue++){var de,z,_=arguments[ue]!=null?arguments[ue]:{};ue%2?ur.default(de=GP(Object(_),!0)).call(de,function(I){Ee.default(F,I,_[I])}):nr.default?Ir.default(F,nr.default(_)):ur.default(z=GP(Object(_))).call(z,function(I){eo.default(F,I,rr.default(_,I))})}return F}var RB=oe.makeStyles({name:"MUIDataTableHead"})(function(F){return{main:{},responsiveStacked:Ee.default({},F.breakpoints.down("md"),{display:"none"}),responsiveStackedAlways:{display:"none"},responsiveSimple:Ee.default({},F.breakpoints.down("sm"),{display:"none"})}}),f0=function(F){var ue,de=F.columnOrder,z=de===void 0?null:de,_=F.columns,I=F.components,be=I===void 0?{}:I,W=F.count,q=F.data,H=F.draggableHeadCellRefs,se=F.expandedRows,me=F.options,Se=F.selectedRows,Ne=F.selectRowUpdate,ze=F.setCellRef,Ce=F.sortOrder,je=Ce===void 0?{}:Ce,Me=F.tableRef,Ue=F.tableId,tt=F.timers,at=F.toggleAllExpandableRows,ht=F.toggleSort,Ht=F.updateColumnOrder,jt=RB().classes;z===null&&(z=_?xt.default(_).call(_,function(ot,Tt){return Tt}):[]);var or=Y.useState(!1),$t=Tr.default(or,2),Br=$t[0],fr=$t[1],er=function(ot){ht(ot)},Xr=function(){Ne("head",null)},Kt=Se&&Se.data.length||0,xn=Kt>0&&Kt<W,sn=Kt>0&&Kt>=W;if(me.disableToolbarSelect===!0||me.selectToolbarPlacement==="none"||me.selectToolbarPlacement==="above")if(sn){for(var ar=0;ar<q.length;ar++)if(!Se.lookup[q[ar].dataIndex]){sn=!1,xn=!0;break}}else Kt>W&&(xn=!0);var Dt=xt.default(z).call(z,function(ot,Tt){return{column:_[ot],index:ot,colPos:Tt}});return he.default.createElement(rn.default,{className:Er.default((ue={},Ee.default(ue,jt.responsiveStacked,me.responsive==="vertical"||me.responsive==="stacked"||me.responsive==="stackedFullWidth"),Ee.default(ue,jt.responsiveStackedAlways,me.responsive==="verticalAlways"),Ee.default(ue,jt.responsiveSimple,me.responsive==="simple"),Ee.default(ue,jt.main,!0),ue))},he.default.createElement(u0,null,he.default.createElement(Ea,{setHeadCellRef:ze,onChange:Fn.default(Xr).call(Xr,null),indeterminate:xn,checked:sn,isHeaderCell:!0,expandedRows:se,expandableRowsHeader:me.expandableRowsHeader,expandableOn:me.expandableRows,selectableOn:me.selectableRows,fixedHeader:me.fixedHeader,fixedSelectColumn:me.fixedSelectColumn,selectableRowsHeader:me.selectableRowsHeader,selectableRowsHideCheckboxes:me.selectableRowsHideCheckboxes,onExpand:at,isRowSelectable:!0,components:be}),xt.default(Dt).call(Dt,function(ot){var Tt=ot.column,Mr=ot.index,_a=ot.colPos;return Tt.display==="true"&&(Tt.customHeadRender?Tt.customHeadRender(d0({index:Mr},Tt),er,je):he.default.createElement(c0,{cellHeaderProps:_[Mr].setCellHeaderProps&&_[Mr].setCellHeaderProps(d0({index:Mr},Tt))||{},key:Mr,index:Mr,colPosition:_a,type:"cell",setCellRef:ze,sort:po.default(Tt),sortDirection:Tt.name===je.name?je.direction:"none",toggleSort:er,hint:Tt.hint,print:Tt.print,options:me,column:Tt,columns:_,updateColumnOrder:Ht,columnOrder:z,timers:tt,draggingHook:[Br,fr],draggableHeadCellRefs:H,tableRef:Me,tableId:Ue,components:be},Tt.customHeadLabelRender?Tt.customHeadLabelRender(d0({index:Mr,colPos:_a},Tt)):Tt.label))})))};function KP(F,ue){var de=zt.default(F);if(kr.default){var z=kr.default(F);ue&&(z=Or.default(z).call(z,function(_){return rr.default(F,_).enumerable})),de.push.apply(de,z)}return de}function rm(F){for(var ue=1;ue<arguments.length;ue++){var de,z,_=arguments[ue]!=null?arguments[ue]:{};ue%2?ur.default(de=KP(Object(_),!0)).call(de,function(I){Ee.default(F,I,_[I])}):nr.default?Ir.default(F,nr.default(_)):ur.default(z=KP(Object(_))).call(z,function(I){eo.default(F,I,rr.default(_,I))})}return F}function kB(F){var ue=IB();return function(){var de,z=Qt.default(F);if(ue){var _=Qt.default(this).constructor;de=nt.default(z,arguments,_)}else de=z.apply(this,arguments);return Vt.default(this,de)}}function IB(){if(typeof Reflect>"u"||!nt.default||nt.default.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(nt.default(Boolean,[],function(){})),!0}catch{return!1}}var EB={root:{position:"absolute"},resizer:{position:"absolute",width:"1px",height:"100%",left:"100px",cursor:"ew-resize",border:"0.1px solid rgba(224, 224, 224, 1)"}};function qP(F){for(var ue=0,de=0,z=F.offsetParent;z&&(de=de+(z.offsetLeft||0)-(z.scrollLeft||0),z=z.offsetParent,!(++ue>1e3)););return de}var YP=function(F){On.default(de,F);var ue=kB(de);function de(){var z,_;En.default(this,de);for(var I=arguments.length,be=new Array(I),W=0;W<I;W++)be[W]=arguments[W];return _=ue.call.apply(ue,tn.default(z=[this]).call(z,be)),Ee.default(ut.default(_),"state",{resizeCoords:{},priorPosition:{},tableWidth:"100%",tableHeight:"100%"}),Ee.default(ut.default(_),"handleResize",function(){window.innerWidth!==_.windowWidth&&(_.windowWidth=window.innerWidth,_.setDividers())}),Ee.default(ut.default(_),"setCellRefs",function(q,H){_.cellsRef=q,_.tableRef=H,_.setDividers()}),Ee.default(ut.default(_),"setDividers",function(){var q=_.tableRef,H=q.getBoundingClientRect(),se=H.width,me=H.height,Se=_.state.resizeCoords;for(var Ne in Se)delete Se[Ne];var ze=qP(q),Ce=Di.default(_.cellsRef),je=Or.default(Ce).call(Ce,function(Me,Ue){return Ue+1<Ce.length});ur.default(je).call(je,function(Me,Ue){var tt=Tr.default(Me,2),at=tt[0],ht=tt[1];if(ht){var Ht=ht.getBoundingClientRect().left;Ht=(Ht||0)-ze,window.getComputedStyle(ht,null),Se[at]={left:Ht+ht.offsetWidth}}}),_.setState({tableWidth:se,tableHeight:me,resizeCoords:Se},_.updateWidths)}),Ee.default(ut.default(_),"updateWidths",function(){var q,H=0,se=_.state,me=se.resizeCoords,Se=se.tableWidth;ur.default(q=Di.default(me)).call(q,function(Ne){var ze=Tr.default(Ne,2),Ce=ze[0],je=ze[1],Me=Number((je.left-H)/Se*100);Kn.default(_.props.resizableColumns)==="object"&&_.props.resizableColumns.roundWidthPercentages&&(Me=Me.toFixed(2)),H=je.left;var Ue=_.cellsRef[Ce];Ue&&(Ue.style.width=Me+"%")})}),Ee.default(ut.default(_),"onResizeStart",function(q,H){var se=_.tableRef,me=se.style.width,Se=0;se.style.width="1px";var Ne=Di.default(_.cellsRef);ur.default(Ne).call(Ne,function(ze,Ce){var je=Tr.default(ze,2),Me=je[0],Ue=je[1],tt=Ue?Ue.getBoundingClientRect():{width:0,left:0};_.minWidths[Me]=tt.width,Se=Math.max(Me,Se)}),se.style.width=me,_.setState({isResize:!0,id:q,lastColumn:Se})}),Ee.default(ut.default(_),"onResizeMove",function(q,H){var se=_.state,me=se.isResize,Se=se.resizeCoords,Ne=se.lastColumn,ze=_.minWidths[q],Ce=_.minWidths[function(Dt){for(var ot=Dt+1,Tt=0;Se[ot]===void 0&&Tt<20;)ot++,Tt++;return ot}(gr.default(q,10))]||_.minWidths[q],je=gr.default(q,10),Me=(Di.default(_.cellsRef),_.tableRef),Ue=Me.getBoundingClientRect(),tt=Ue.width,at=Ue.height,ht=_.props.options.selectableRows,Ht=qP(Me),jt=function(Dt){for(var ot=Dt+1,Tt=0;Se[ot]===void 0&&Tt<20;)ot++,Tt++;return Se[ot]},or=function(Dt){for(var ot=Dt-1;Se[ot]===void 0&&ot>=0;)ot--;return Se[ot]};if(me){var $t=H.clientX-Ht,Br=function(Dt,ot,Tt){return Dt>ot-Tt?ot-Tt:Dt},fr=function(Dt,ot){return Dt<ot?ot:Dt},er=function(Dt,ot,Tt,Mr){return jt(Tt)===void 0?Dt:Dt>jt(Tt).left-Mr?jt(Tt).left-Mr:Dt},Xr=function(Dt,ot,Tt,Mr){return or(Tt)===void 0?Dt:Dt<or(Tt).left+Mr?or(Tt).left+Mr:Dt},Kt=function(Dt,ot){for(var Tt=1;!Se[Tt]&&Tt<20;)Tt++;return Dt!=="none"&&ot===0||Dt==="none"&&ot===Tt},xn=function(Dt,ot){return Dt===function(Tt){for(var Mr=Tt-1;Se[Mr]===void 0&&Mr>=0;)Mr--;return Mr}(Ne)};Kt(ht,je)&&xn(je)?$t=Br($t=fr($t,ze),tt,Ce):!Kt(ht,je)&&xn(je)?$t=Xr($t=Br($t,tt,Ce),0,je,ze):Kt(ht,je)&&!xn(je)?$t=er($t=fr($t,ze),0,je,Ce):Kt(ht,je)||xn(je)||($t=er($t=Xr($t,0,je,ze),0,je,Ce));var sn=rm(rm({},Se[q]),{},{left:$t}),ar=rm(rm({},Se),{},Ee.default({},q,sn));_.setState({resizeCoords:ar,tableHeight:at},_.updateWidths)}}),Ee.default(ut.default(_),"onResizeEnd",function(q,H){_.setState({isResize:!1,id:null})}),_}return en.default(de,[{key:"componentDidMount",value:function(){var z=this;this.minWidths=[],this.windowWidth=null,this.props.setResizeable(this.setCellRefs),this.props.updateDividers(function(){return z.setState({updateCoords:!0},function(){return z.updateWidths})}),window.addEventListener("resize",this.handleResize,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize,!1)}},{key:"render",value:function(){var z,_=this,I=this.props,be=I.classes,W=I.tableId,q=this.state,H=q.id,se=q.isResize,me=q.resizeCoords,Se=q.tableWidth,Ne=q.tableHeight;return he.default.createElement("div",{className:be.root,style:{width:Se}},xt.default(z=Di.default(me)).call(z,function(ze){var Ce,je,Me,Ue=Tr.default(ze,2),tt=Ue[0],at=Ue[1];return he.default.createElement("div",{"data-divider-index":tt,"data-tableid":W,"aria-hidden":"true",key:tt,onMouseMove:Fn.default(Ce=_.onResizeMove).call(Ce,null,tt),onMouseUp:Fn.default(je=_.onResizeEnd).call(je,null,tt),style:{width:se&&H==tt?Se:"auto",position:"absolute",height:Ne-2,cursor:"ew-resize",zIndex:1e3}},he.default.createElement("div",{"aria-hidden":"true",onMouseDown:Fn.default(Me=_.onResizeStart).call(Me,null,tt),className:be.resizer,style:{left:at.left}}))}))}}]),de}(he.default.Component);Ee.default(YP,"propTypes",{classes:ne.default.object});var p0=oe.withStyles(YP,EB,{name:"MUIDataTableResize"}),OB=["className","trigger","refExit","hide","content"],nm=function(F){F.className;var ue=F.trigger,de=F.refExit,z=F.hide,_=F.content,I=Cr.default(F,OB),be=Y.useState(!1),W=Tr.default(be,2),q=W[0],H=W[1],se=Y.useRef(null);Y.useEffect(function(){q&&typeof z=="boolean"&&z&&H(!1)},[z,q,H]);var me=function(){H(!1)},Se=I.classes.closeIcon;delete I.classes.closeIcon;var Ne={key:"content",onClick:function(ze){ue.props.onClick&&ue.props.onClick(),function(Ce){se.current=Ce.currentTarget,H(!0)}(ze)}};return he.default.createElement(he.default.Fragment,null,he.default.createElement("span",Ne,ue),he.default.createElement(al.default,vr.default({elevation:2,open:q,TransitionProps:{onExited:function(){de&&de()}},onClose:me,anchorEl:se.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},I),he.default.createElement(dn.default,{"aria-label":"Close",onClick:me,className:Se,style:{position:"absolute",right:"4px",top:"4px",zIndex:"1000"}},he.default.createElement(il.default,null)),_))};nm.propTypes={refExit:ne.default.func,trigger:ne.default.node.isRequired,content:ne.default.node.isRequired,hide:ne.default.bool};var _B=oe.makeStyles({name:"MUIDataTableViewCol"})(function(F){return{root:{padding:"16px 24px 16px 24px",fontFamily:"Roboto"},title:{marginLeft:"-7px",marginRight:"24px",fontSize:"14px",color:F.palette.text.secondary,textAlign:"left",fontWeight:500},formGroup:{marginTop:"8px"},formControl:{},checkbox:{padding:"0px",width:"32px",height:"32px"},checkboxRoot:{},checked:{},label:{fontSize:"15px",marginLeft:"8px",color:F.palette.text.primary}}}),h0=function(F){var ue=F.columns,de=F.options,z=F.components,_=z===void 0?{}:z,I=F.onColumnUpdate,be=(F.updateColumns,_B().classes),W=de.textLabels.viewColumns,q=_.Checkbox||no.default;return he.default.createElement(qo.default,{component:"fieldset",className:be.root,"aria-label":W.titleAria},he.default.createElement(Ur.default,{variant:"caption",className:be.title},W.title),he.default.createElement(_i.default,{className:be.formGroup},xt.default(ue).call(ue,function(H,se){return H.display!=="excluded"&&H.viewColumns!==!1&&he.default.createElement(as.default,{key:se,classes:{root:be.formControl,label:be.label},control:he.default.createElement(q,{color:"primary","data-description":"table-view-col",className:be.checkbox,classes:{root:be.checkboxRoot,checked:be.checked},onChange:function(){return function(me){I(me)}(se)},checked:H.display==="true",value:H.name}),label:H.label})})))};h0.propTypes={columns:ne.default.array.isRequired,options:ne.default.object.isRequired,onColumnUpdate:ne.default.func,classes:ne.default.object};var DB=oe.makeStyles({name:"MUIDataTableSearch"})(function(F){return{main:{display:"flex",flex:"1 0 auto",alignItems:"center"},searchIcon:{color:F.palette.text.secondary,marginRight:"8px"},searchText:{flex:"0.8 0"},clearIcon:{"&:hover":{color:F.palette.error.main}}}}),XP=function(F){var ue=F.options,de=F.searchText,z=F.onSearch,_=F.onHide,I=DB().classes,be=ue.searchAlwaysOpen?"hidden":"visible";return he.default.createElement(Qh.default,{appear:!0,in:!0,timeout:300},he.default.createElement("div",{className:I.main},he.default.createElement(Qd.default,{className:I.searchIcon}),he.default.createElement(It.default,vr.default({className:I.searchText,autoFocus:!0,variant:"standard",InputProps:{"data-test-id":ue.textLabels.toolbar.search},inputProps:{"aria-label":ue.textLabels.toolbar.search},value:de||"",onKeyDown:function(W){W.key==="Escape"&&_()},onChange:function(W){z(W.target.value)},fullWidth:!0,placeholder:ue.searchPlaceholder},ue.searchProps?ue.searchProps:{})),he.default.createElement(dn.default,{className:I.clearIcon,style:{visibility:be},onClick:_},he.default.createElement(Zh.default,null))))};function MB(F){var ue=AB();return function(){var de,z=Qt.default(F);if(ue){var _=Qt.default(this).constructor;de=nt.default(z,arguments,_)}else de=z.apply(this,arguments);return Vt.default(this,de)}}function AB(){if(typeof Reflect>"u"||!nt.default||nt.default.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(nt.default(Boolean,[],function(){})),!0}catch{return!1}}var jB=function(F){var ue;return ue={root:{"@media print":{display:"none"}},fullWidthRoot:{},left:{flex:"1 1 auto"},fullWidthLeft:{flex:"1 1 auto"},actions:{flex:"1 1 auto",textAlign:"right"},fullWidthActions:{flex:"1 1 auto",textAlign:"right"},titleRoot:{},titleText:{},fullWidthTitleText:{textAlign:"left"},icon:{"&:hover":{color:F.palette.primary.main}},iconActive:{color:F.palette.primary.main},filterPaper:{maxWidth:"50%"},filterCloseIcon:{position:"absolute",right:0,top:0,zIndex:100},searchIcon:{display:"inline-flex",marginTop:"10px",marginRight:"8px"}},Ee.default(ue,F.breakpoints.down("md"),{titleRoot:{},titleText:{fontSize:"16px"},spacer:{display:"none"},left:{padding:"8px 0px"},actions:{textAlign:"right"}}),Ee.default(ue,F.breakpoints.down("sm"),{root:{display:"block","@media print":{display:"none !important"}},left:{padding:"8px 0px 0px 0px"},titleText:{textAlign:"center"},actions:{textAlign:"center"}}),Ee.default(ue,"@media screen and (max-width: 480px)",{}),ue},om="scrollFullHeightFullWidth",LB=function(F){On.default(de,F);var ue=MB(de);function de(){var z,_;En.default(this,de);for(var I=arguments.length,be=new Array(I),W=0;W<I;W++)be[W]=arguments[W];return _=ue.call.apply(ue,tn.default(z=[this]).call(z,be)),Ee.default(ut.default(_),"state",{iconActive:null,showSearch:!!(_.props.searchText||_.props.options.searchText||_.props.options.searchOpen||_.props.options.searchAlwaysOpen),searchText:_.props.searchText||null}),Ee.default(ut.default(_),"handleCSVDownload",function(){var q=_.props,H=q.data,se=q.displayData,me=q.columns,Se=q.options,Ne=q.columnOrder,ze=[],Ce=[],je=Yr.default(Ne)?ro.default(Ne).call(Ne,0):[];if(je.length===0&&(je=xt.default(me).call(me,function(Ue,tt){return tt})),ur.default(H).call(H,function(Ue){var tt={index:Ue.index,data:[]};ur.default(je).call(je,function(at){tt.data.push(Ue.data[at])}),ze.push(tt)}),ur.default(je).call(je,function(Ue){Ce.push(me[Ue])}),Se.downloadOptions&&Se.downloadOptions.filterOptions){if(Se.downloadOptions.filterOptions.useDisplayedRowsOnly){var Me=xt.default(se).call(se,function(Ue,tt){var at,ht=-1;return Ue.index=tt,{data:xt.default(at=Ue.data).call(at,function(Ht){ht+=1;var jt=Kn.default(Ht)!=="object"||Ht===null||Yr.default(Ht)?Ht:Oi.default(H,function(or){return or.index===Ue.dataIndex}).data[ht];return jt=typeof jt=="function"?Oi.default(H,function(or){return or.index===Ue.dataIndex}).data[ht]:jt})}});ze=[],ur.default(Me).call(Me,function(Ue){var tt={index:Ue.index,data:[]};ur.default(je).call(je,function(at){tt.data.push(Ue.data[at])}),ze.push(tt)})}Se.downloadOptions.filterOptions.useDisplayedColumnsOnly&&(Ce=Or.default(Ce).call(Ce,function(Ue){return Ue.display==="true"}),ze=xt.default(ze).call(ze,function(Ue){var tt;return Ue.data=Or.default(tt=Ue.data).call(tt,function(at,ht){return me[je[ht]].display==="true"}),Ue}))}cB(Ce,ze,Se,lB)}),Ee.default(ut.default(_),"setActiveIcon",function(q){_.setState(function(H){return{showSearch:_.isSearchShown(q),iconActive:q,prevIconActive:H.iconActive}},function(){var H=_.state,se=H.iconActive,me=H.prevIconActive;se==="filter"&&(_.props.setTableAction("onFilterDialogOpen"),_.props.options.onFilterDialogOpen&&_.props.options.onFilterDialogOpen()),se===void 0&&me==="filter"&&(_.props.setTableAction("onFilterDialogClose"),_.props.options.onFilterDialogClose&&_.props.options.onFilterDialogClose())})}),Ee.default(ut.default(_),"isSearchShown",function(q){if(_.props.options.searchAlwaysOpen)return!0;var H=!1;if(_.state.showSearch)if(_.state.searchText)H=!0;else{var se=_.props.options.onSearchClose;_.props.setTableAction("onSearchClose"),se&&se(),H=!1}else q==="search"&&(H=_.showSearch());return H}),Ee.default(ut.default(_),"getActiveIcon",function(q,H){var se=_.state.iconActive===H;if(H==="search"){var me=_.state,Se=me.showSearch,Ne=me.searchText;se=se||Se||Ne}return se?q.iconActive:q.icon}),Ee.default(ut.default(_),"showSearch",function(){return _.props.setTableAction("onSearchOpen"),_.props.options.onSearchOpen&&_.props.options.onSearchOpen(),!0}),Ee.default(ut.default(_),"hideSearch",function(){var q=_.props.options.onSearchClose;_.props.setTableAction("onSearchClose"),q&&q(),_.props.searchClose(),_.setState(function(){return{iconActive:null,showSearch:!1,searchText:null}})}),Ee.default(ut.default(_),"handleSearch",function(q){_.setState({searchText:q}),_.props.searchTextUpdate(q)}),Ee.default(ut.default(_),"handleSearchIconClick",function(){var q=_.state,H=q.showSearch,se=q.searchText;H&&!se?_.hideSearch():_.setActiveIcon("search")}),_}return en.default(de,[{key:"componentDidUpdate",value:function(z){this.props.searchText!==z.searchText&&this.setState({searchText:this.props.searchText})}},{key:"render",value:function(){var z,_,I,be=this,W=this.props,q=W.data,H=W.options,se=W.classes,me=W.columns,Se=W.filterData,Ne=W.filterList,ze=W.filterUpdate,Ce=W.resetFilters,je=W.toggleViewColumn,Me=W.updateColumns,Ue=W.title,tt=W.components,at=tt===void 0?{}:tt,ht=W.updateFilterByType,Ht=at.icons,jt=Ht===void 0?{}:Ht,or=at.Tooltip||mo.default,$t=at.TableViewCol||h0,Br=at.TableFilter||s0,fr=jt.SearchIcon||Qd.default,er=jt.DownloadIcon||r0.default,Xr=jt.PrintIcon||eu.default,Kt=jt.ViewColumnIcon||n0.default,xn=jt.FilterIcon||o0.default,sn=H.textLabels.toolbar,ar=sn.search,Dt=sn.downloadCsv,ot=sn.print,Tt=sn.viewColumns,Mr=sn.filterTable,_a=this.state,Za=_a.showSearch,Es=_a.searchText;return he.default.createElement(Hr.default,{className:H.responsive!==om?se.root:se.fullWidthRoot,role:"toolbar","aria-label":"Table Toolbar"},he.default.createElement("div",{className:H.responsive!==om?se.left:se.fullWidthLeft},Za===!0?H.customSearchRender?H.customSearchRender(Es,this.handleSearch,this.hideSearch,H):he.default.createElement(XP,{searchText:Es,onSearch:this.handleSearch,onHide:this.hideSearch,options:H}):typeof Ue!="string"?Ue:he.default.createElement("div",{className:se.titleRoot,"aria-hidden":"true"},he.default.createElement(Ur.default,{variant:"h6",className:H.responsive!==om?se.titleText:se.fullWidthTitleText},Ue))),he.default.createElement("div",{className:H.responsive!==om?se.actions:se.fullWidthActions},!(H.search===!1||H.search==="false"||H.searchAlwaysOpen===!0)&&he.default.createElement(or,{title:ar,disableFocusListener:!0},he.default.createElement(dn.default,{"aria-label":ar,"data-testid":ar+"-iconButton",ref:function(Mi){return be.searchButton=Mi},classes:{root:this.getActiveIcon(se,"search")},disabled:H.search==="disabled",onClick:this.handleSearchIconClick},he.default.createElement(fr,null))),!(H.download===!1||H.download==="false")&&he.default.createElement(or,{title:Dt},he.default.createElement(dn.default,{"data-testid":Dt.replace(/\s/g,"")+"-iconButton","aria-label":Dt,classes:{root:se.icon},disabled:H.download==="disabled",onClick:this.handleCSVDownload},he.default.createElement(er,null))),!(H.print===!1||H.print==="false")&&he.default.createElement("span",null,he.default.createElement(L.default,{content:function(){return be.props.tableRef()}},he.default.createElement(Ct.PrintContextConsumer,null,function(Mi){var ca=Mi.handlePrint;return he.default.createElement("span",null,he.default.createElement(or,{title:ot},he.default.createElement(dn.default,{"data-testid":ot+"-iconButton","aria-label":ot,disabled:H.print==="disabled",onClick:ca,classes:{root:se.icon}},he.default.createElement(Xr,null))))}))),!(H.viewColumns===!1||H.viewColumns==="false")&&he.default.createElement(nm,{refExit:Fn.default(z=this.setActiveIcon).call(z,null),classes:{closeIcon:se.filterCloseIcon},hide:H.viewColumns==="disabled",trigger:he.default.createElement(or,{title:Tt,disableFocusListener:!0},he.default.createElement(dn.default,{"data-testid":Tt+"-iconButton","aria-label":Tt,classes:{root:this.getActiveIcon(se,"viewcolumns")},disabled:H.viewColumns==="disabled",onClick:Fn.default(_=this.setActiveIcon).call(_,null,"viewcolumns")},he.default.createElement(Kt,null))),content:he.default.createElement($t,{data:q,columns:me,options:H,onColumnUpdate:je,updateColumns:Me,components:at})}),!(Or.default(H)===!1||Or.default(H)==="false")&&he.default.createElement(nm,{refExit:function(){be.setState({hideFilterPopover:!1}),be.setActiveIcon()},hide:this.state.hideFilterPopover||Or.default(H)==="disabled",classes:{paper:se.filterPaper,closeIcon:se.filterCloseIcon},trigger:he.default.createElement(or,{title:Mr,disableFocusListener:!0},he.default.createElement(dn.default,{"data-testid":Mr+"-iconButton","aria-label":Mr,classes:{root:this.getActiveIcon(se,"filter")},disabled:Or.default(H)==="disabled",onClick:Fn.default(I=this.setActiveIcon).call(I,null,"filter")},he.default.createElement(xn,null))),content:he.default.createElement(Br,{customFooter:H.customFilterDialogFooter,columns:me,options:H,filterList:Ne,filterData:Se,onFilterUpdate:ze,onFilterReset:Ce,handleClose:function(){be.setState({hideFilterPopover:!0})},updateFilterByType:ht,components:at})}),H.customToolbar&&H.customToolbar({displayData:this.props.displayData})))}}]),de}(he.default.Component),m0=oe.withStyles(LB,jB,{name:"MUIDataTableToolbar"});function NB(F){var ue=FB();return function(){var de,z=Qt.default(F);if(ue){var _=Qt.default(this).constructor;de=nt.default(z,arguments,_)}else de=z.apply(this,arguments);return Vt.default(this,de)}}function FB(){if(typeof Reflect>"u"||!nt.default||nt.default.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(nt.default(Boolean,[],function(){})),!0}catch{return!1}}var BB=function(F){return{root:{backgroundColor:F.palette.background.default,flex:"1 1 100%",display:"flex",position:"relative",zIndex:120,justifyContent:"space-between",alignItems:"center",paddingTop:typeof F.spacing=="function"?F.spacing(1):F.spacing.unit,paddingBottom:typeof F.spacing=="function"?F.spacing(1):F.spacing.unit,"@media print":{display:"none"}},title:{paddingLeft:"26px"},iconButton:{marginRight:"24px"},deleteIcon:{}}},QP=function(F){On.default(de,F);var ue=NB(de);function de(){var z,_;En.default(this,de);for(var I=arguments.length,be=new Array(I),W=0;W<I;W++)be[W]=arguments[W];return _=ue.call.apply(ue,tn.default(z=[this]).call(z,be)),Ee.default(ut.default(_),"handleCustomSelectedRows",function(q){if(!Yr.default(q))throw new TypeError(`"selectedRows" must be an "array", but it's "`.concat(Kn.default(q),'"'));if(aa.default(q).call(q,function(se){return typeof se!="number"}))throw new TypeError('Array "selectedRows" must contain only numbers');var H=_.props.options;if(q.length>1&&H.selectableRows==="single")throw new Error('Can not select more than one row when "selectableRows" is "single"');_.props.selectRowUpdate("custom",q)}),_}return en.default(de,[{key:"render",value:function(){var z=this.props,_=z.classes,I=z.onRowsDelete,be=z.selectedRows,W=z.options,q=z.displayData,H=z.components,se=H===void 0?{}:H,me=W.textLabels.selectedRows,Se=se.Tooltip||mo.default;return he.default.createElement(os.default,{className:_.root},he.default.createElement("div",null,he.default.createElement(Ur.default,{variant:"subtitle1",className:_.title},be.data.length," ",me.text)),W.customToolbarSelect?W.customToolbarSelect(be,q,this.handleCustomSelectedRows):he.default.createElement(Se,{title:me.delete},he.default.createElement(dn.default,{className:_.iconButton,onClick:I,"aria-label":me.deleteAria},he.default.createElement(re.default,{className:_.deleteIcon}))))}}]),de}(he.default.Component);Ee.default(QP,"propTypes",{options:ne.default.object.isRequired,rowSelected:ne.default.bool,onRowsDelete:ne.default.func,classes:ne.default.object});var v0=oe.withStyles(QP,BB,{name:"MUIDataTableToolbarSelect"}),zB=function(){return{body:{noMatch:"Sorry, no matching records found",toolTip:"Sort"},pagination:{next:"Next Page",previous:"Previous Page",rowsPerPage:"Rows per page:",displayRows:"of",jumpToPage:"Jump to Page:"},toolbar:{search:"Search",downloadCsv:"Download CSV",print:"Print",viewColumns:"View Columns",filterTable:"Filter Table"},filter:{all:"All",title:"FILTERS",reset:"RESET"},viewColumns:{title:"Show Columns",titleAria:"Show/Hide Table Columns"},selectedRows:{text:"row(s) selected",delete:"Delete",deleteAria:"Delete Selected Rows"}}},VB=typeof window<"u"&&window.document!==void 0,UB=function(F){if(VB)return JSON.parse(window.localStorage.getItem(F));F===void 0||console.warn("storageKey support only on browser")},HB=["selectedRows","data","displayData"],WB=function(F,ue){ue.selectedRows,ue.data,ue.displayData;var de=Cr.default(ue,HB);window.localStorage.setItem(F,Be.default(de))},GB=["columns","data","displayData","filterData"];function ZP(F,ue){var de=zt.default(F);if(kr.default){var z=kr.default(F);ue&&(z=Or.default(z).call(z,function(_){return rr.default(F,_).enumerable})),de.push.apply(de,z)}return de}function Oa(F){for(var ue=1;ue<arguments.length;ue++){var de,z,_=arguments[ue]!=null?arguments[ue]:{};ue%2?ur.default(de=ZP(Object(_),!0)).call(de,function(I){Ee.default(F,I,_[I])}):nr.default?Ir.default(F,nr.default(_)):ur.default(z=ZP(Object(_))).call(z,function(I){eo.default(F,I,rr.default(_,I))})}return F}function KB(F){var ue=qB();return function(){var de,z=Qt.default(F);if(ue){var _=Qt.default(this).constructor;de=nt.default(z,arguments,_)}else de=z.apply(this,arguments);return Vt.default(this,de)}}function qB(){if(typeof Reflect>"u"||!nt.default||nt.default.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(nt.default(Boolean,[],function(){})),!0}catch{return!1}}var YB=function(F){return{root:{"& .datatables-noprint":{"@media print":{display:"none"}}},paper:{isolation:"isolate"},paperResponsiveScrollFullHeightFullWidth:{position:"absolute"},tableRoot:{outline:"none"},responsiveBase:{overflow:"auto","@media print":{height:"auto !important"}},responsiveScroll:{overflow:"auto",height:"100%"},responsiveScrollMaxHeight:{overflow:"auto",height:"100%"},responsiveScrollFullHeight:{height:"100%"},responsiveStacked:Ee.default({overflow:"auto"},F.breakpoints.down("md"),{overflow:"hidden"}),responsiveStackedFullWidth:{},caption:{position:"absolute",left:"-3000px"},liveAnnounce:{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}}},sl={INITIAL:1,UPDATE:2},XB=["title","filter","search","print","download","viewColumns","customToolbar"],QB=function(F,ue){return F.title=ue,!ks.default(Oi.default(XB,function(de){return F[de]}))},Qa={REPLACE:"replace",ABOVE:"above",NONE:"none",ALWAYS:"always"},g0=function(F){On.default(de,F);var ue=KB(de);function de(z){var _,I;En.default(this,de),I=ue.call(this,z),Ee.default(ut.default(I),"getDefaultOptions",function(){return{caseSensitive:!1,consoleWarnings:!0,disableToolbarSelect:!1,download:!0,downloadOptions:{filename:"tableDownload.csv",separator:","},draggableColumns:{enabled:!1,transitionTime:300},elevation:4,enableNestedDataAccess:"",expandableRows:!1,expandableRowsHeader:!0,expandableRowsOnClick:!1,filter:!0,filterArrayFullMatch:!0,filterType:"dropdown",fixedHeader:!0,fixedSelectColumn:!0,pagination:!0,print:!0,resizableColumns:!1,responsive:"vertical",rowHover:!0,rowsPerPageOptions:[10,15,100],search:!0,selectableRows:"multiple",selectableRowsHideCheckboxes:!1,selectableRowsOnClick:!1,selectableRowsHeader:!0,serverSide:!1,serverSideFilterList:null,setTableProps:function(){return{}},sort:!0,sortFilterList:!0,tableBodyHeight:"auto",tableBodyMaxHeight:null,sortOrder:{},textLabels:zB(),viewColumns:!0,selectToolbarPlacement:Qa.REPLACE}}),Ee.default(ut.default(I),"warnDep",function(W,q){Jh(W,I.options.consoleWarnings)}),Ee.default(ut.default(I),"warnInfo",function(W,q){Ql(W,I.options.consoleWarnings)}),Ee.default(ut.default(I),"handleOptionDeprecation",function(W){var q,H,se,me;typeof I.options.selectableRows=="boolean"&&(I.warnDep("Using a boolean for selectableRows has been deprecated. Please use string option: multiple | single | none"),I.options.selectableRows=I.options.selectableRows?"multiple":"none"),Fr.default(q=["standard","vertical","verticalAlways","simple"]).call(q,I.options.responsive)===-1&&(Fr.default(se=["scrollMaxHeight","scrollFullHeight","stacked","stackedFullWidth","scrollFullHeightFullWidth","scroll"]).call(se,I.options.responsive)!==-1?I.warnDep(I.options.responsive+" has been deprecated, but will still work in version 3.x. Please use string option: standard | vertical | simple. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md"):I.warnInfo(I.options.responsive+" is not recognized as a valid input for responsive option. Please use string option: standard | vertical | simple. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md")),I.options.onRowsSelect&&I.warnDep("onRowsSelect has been renamed onRowSelectionChange. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md"),I.options.onRowsExpand&&I.warnDep("onRowsExpand has been renamed onRowExpansionChange. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md"),I.options.fixedHeaderOptions&&(I.options.fixedHeaderOptions.yAxis!==void 0&&I.options.fixedHeader===void 0&&(I.options.fixedHeader=I.options.fixedHeaderOptions.yAxis),I.options.fixedHeaderOptions.xAxis!==void 0&&I.options.fixedSelectColumn===void 0&&(I.options.fixedSelectColumn=I.options.fixedHeaderOptions.xAxis),I.warnDep("fixedHeaderOptions will still work but has been deprecated in favor of fixedHeader and fixedSelectColumn. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md")),I.options.serverSideFilterList&&I.warnDep("serverSideFilterList will still work but has been deprecated in favor of the confirmFilters option. See this example for details: https://github.com/gregnb/mui-datatables/blob/master/examples/serverside-filters/index.js More info here: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md"),xt.default(H=W.columns).call(H,function(Se){Se.options&&Se.options.customFilterListRender&&I.warnDep("The customFilterListRender option has been deprecated. It is being replaced by customFilterListOptions.render (Specify customFilterListOptions: { render: Function } in column options.)")}),I.options.disableToolbarSelect===!0&&I.warnDep('disableToolbarSelect has been deprecated but will still work in version 3.x. It is being replaced by "selectToolbarPlacement"="none". More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md'),$o.default&&Fr.default(me=$o.default(Qa)).call(me,I.options.selectToolbarPlacement)===-1&&I.warnDep("Invalid option value for selectToolbarPlacement. Please check the documentation: https://github.com/gregnb/mui-datatables#options")}),Ee.default(ut.default(I),"setTableAction",function(W){typeof I.options.onTableChange=="function"&&I.options.onTableChange(W,I.state),I.options.storageKey&&WB(I.options.storageKey,I.state)}),Ee.default(ut.default(I),"setTableInit",function(W){typeof I.options.onTableInit=="function"&&I.options.onTableInit(W,I.state)}),Ee.default(ut.default(I),"setHeadCellRef",function(W,q,H){I.draggableHeadCellRefs[W]=H,I.resizeHeadCellRefs[q]=H}),Ee.default(ut.default(I),"getTableContentRef",function(){return I.tableContent.current}),Ee.default(ut.default(I),"buildColumns",function(W){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],H=arguments.length>2?arguments[2]:void 0,se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],me=[],Se=[],Ne=[],ze=[];return ur.default(W).call(W,function(Ce,je){var Me={display:"true",empty:!1,filter:!0,sort:!0,print:!0,searchable:!0,download:!0,viewColumns:!0,sortCompare:null,sortThirdClickReset:!1,sortDescFirst:!1};ze.push(je);var Ue=Oa({},Ce.options);Kn.default(Ce)==="object"?(Ue&&(Ue.display!==void 0&&(Ue.display=Ue.display.toString()),(Ue.sortDirection===null||Ue.sortDirection)&&I.warnDep("The sortDirection column field has been deprecated. Please use the sortOrder option on the options object. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md")),Ue.display===void 0&&q[je]&&q[je].name===Ce.name&&q[je].display&&(Ue.display=q[je].display),Me=Oa(Oa({name:Ce.name,label:Ce.label?Ce.label:Ce.name},Me),Ue)):(q[je]&&q[je].display&&(Ue.display=q[je].display),Me=Oa(Oa(Oa({},Me),Ue),{},{name:Ce,label:Ce})),me.push(Me),Se[je]=[],Ne[je]=[]}),Yr.default(H)?ze=H:Yr.default(se)&&Yr.default(W)&&Yr.default(q)&&W.length===q.length&&(ze=se),{columns:me,filterData:Se,filterList:Ne,columnOrder:ze}}),Ee.default(ut.default(I),"transformData",function(W,q){var H=I.options.enableNestedDataAccess;return Yr.default(q[0])?xt.default(q).call(q,function(se){var me=-1;return xt.default(W).call(W,function(Se){return Se.empty||me++,Se.empty?void 0:se[me]})}):xt.default(q).call(q,function(se){return xt.default(W).call(W,function(me){return Se=se,Ne=me.name,fo.default(ze=H?Ne.split(H):Ne.split()).call(ze,function(Ce,je){return Ce?Ce[je]:void 0},Se);var Se,Ne,ze})})}),Ee.default(ut.default(I),"hasSearchText",function(W,q,H){var se=W.toString(),me=q.toString();return H||(me=me.toLowerCase(),se=se.toLowerCase()),Fr.default(se).call(se,me)>=0}),Ee.default(ut.default(I),"updateDataCol",function(W,q,H){I.setState(function(se){var me,Se,Ne=un.default(se.data),ze=un.default(se.filterData),Ce=I.getTableMeta(W,q,W,se.columns[q],se.data,se,se.data),je=se.columns[q].customBodyRender(H,Ce),Me=he.default.isValidElement(je)&&je.props.value?je.props.value:se.data[W][q],Ue=Fr.default(me=ze[q]).call(me,Me);if(cn.default(Se=ze[q]).call(Se,Ue,1,Me),Ne[W].data[q]=H,I.options.sortFilterList){var tt,at=BP();po.default(tt=ze[q]).call(tt,at)}return{data:Ne,filterData:ze,displayData:I.getDisplayData(se.columns,Ne,se.filterList,se.searchText,null,I.props)}})}),Ee.default(ut.default(I),"getTableMeta",function(W,q,H,se,me,Se,Ne){return Se.columns,Se.data,Se.displayData,Se.filterData,{rowIndex:W,columnIndex:q,columnData:se,rowData:H,tableData:me,tableState:Cr.default(Se,GB),currentTableData:Ne}}),Ee.default(ut.default(I),"toggleViewColumn",function(W){I.setState(function(q){var H=un.default(q.columns);return H[W].display=H[W].display==="true"?"false":"true",{columns:H}},function(){I.setTableAction("viewColumnsChange");var q=I.options.onViewColumnsChange||I.options.onColumnViewChange;q&&q(I.state.columns[W].name,I.state.columns[W].display==="true"?"add":"remove")})}),Ee.default(ut.default(I),"updateColumns",function(W){I.setState(function(q){return{columns:W}},function(){I.setTableAction("viewColumnsChange");var q=I.options.onViewColumnsChange||I.options.onColumnViewChange;q&&q(null,"update",W)})}),Ee.default(ut.default(I),"toggleSortColumn",function(W){I.setState(function(q){var H,se=un.default(q.columns),me=q.data,Se=se[W].sortDescFirst?"desc":"asc",Ne=["asc","desc"];if(se[W].sortDescFirst&&(Ne=["desc","asc"]),se[W].sortThirdClickReset&&Ne.push("none"),se[W].name===I.state.sortOrder.name){var ze=Fr.default(Ne).call(Ne,I.state.sortOrder.direction);ze!==-1&&(++ze>=Ne.length&&(ze=0),Se=Ne[ze])}var Ce={name:se[W].name,direction:Se},je=I.getSortDirectionLabel(Ce),Me={columns:se,announceText:tn.default(H="Table now sorted by ".concat(se[W].name," : ")).call(H,je),activeColumn:W};if(I.options.serverSide)Me=Oa(Oa({},Me),{},{data:q.data,displayData:q.displayData,selectedRows:q.selectedRows,sortOrder:Ce});else{var Ue=I.sortTable(me,W,Se,se[W].sortCompare);Me=Oa(Oa({},Me),{},{data:Ue.data,displayData:I.getDisplayData(se,Ue.data,q.filterList,q.searchText,null,I.props),selectedRows:Ue.selectedRows,sortOrder:Ce,previousSelectedRow:null})}return Me},function(){I.setTableAction("sort"),I.options.onColumnSortChange&&I.options.onColumnSortChange(I.state.sortOrder.name,I.state.sortOrder.direction)})}),Ee.default(ut.default(I),"changeRowsPerPage",function(W){var q=I.options.count||I.state.displayData.length;I.setState(function(){return{rowsPerPage:W,page:ss(q,W,I.state.page)}},function(){I.setTableAction("changeRowsPerPage"),I.options.onChangeRowsPerPage&&I.options.onChangeRowsPerPage(I.state.rowsPerPage)})}),Ee.default(ut.default(I),"changePage",function(W){I.setState(function(){return{page:W}},function(){I.setTableAction("changePage"),I.options.onChangePage&&I.options.onChangePage(I.state.page)})}),Ee.default(ut.default(I),"searchClose",function(){I.setState(function(W){return{searchText:null,displayData:I.options.serverSide?W.displayData:I.getDisplayData(W.columns,W.data,W.filterList,null,null,I.props)}},function(){I.setTableAction("search"),I.options.onSearchChange&&I.options.onSearchChange(I.state.searchText)})}),Ee.default(ut.default(I),"searchTextUpdate",function(W){I.setState(function(q){return{searchText:W&&W.length?W:null,page:0,displayData:I.options.serverSide?q.displayData:I.getDisplayData(q.columns,q.data,q.filterList,W,null,I.props)}},function(){I.setTableAction("search"),I.options.onSearchChange&&I.options.onSearchChange(I.state.searchText)})}),Ee.default(ut.default(I),"resetFilters",function(){I.setState(function(W){var q,H=xt.default(q=W.columns).call(q,function(){return[]});return{filterList:H,displayData:I.options.serverSide?W.displayData:I.getDisplayData(W.columns,W.data,H,W.searchText,null,I.props)}},function(){I.setTableAction("resetFilters"),I.options.onFilterChange&&I.options.onFilterChange(null,I.state.filterList,"reset",null)})}),Ee.default(ut.default(I),"updateFilterByType",function(W,q,H,se,me){var Se,Ne,ze,Ce=ns.default(Se=W[q]).call(Se,function(je){return to.default(je,H)});switch(se){case"checkbox":Ce>=0?cn.default(Ne=W[q]).call(Ne,Ce,1):W[q].push(H);break;case"chip":Ce>=0?cn.default(ze=W[q]).call(ze,Ce,1):W[q].push(H);break;case"multiselect":W[q]=H===""?[]:H;break;case"dropdown":W[q]=H;break;case"custom":me?W=me(W,Ce,q):W[q]=H;break;default:W[q]=Ce>=0||H===""?[]:[H]}}),Ee.default(ut.default(I),"filterUpdate",function(W,q,H,se,me,Se){I.setState(function(Ne){var ze=un.default(Ne.filterList);return I.updateFilterByType(ze,W,q,se,me),{page:0,filterList:ze,displayData:I.options.serverSide?Ne.displayData:I.getDisplayData(Ne.columns,Ne.data,ze,Ne.searchText,null,I.props),previousSelectedRow:null}},function(){I.setTableAction("filterChange"),I.options.onFilterChange&&I.options.onFilterChange(H,I.state.filterList,se,W,I.state.displayData),Se&&Se(I.state.filterList)})}),Ee.default(ut.default(I),"toggleAllExpandableRows",function(){var W=an.default(I.state.expandedRows.data),q=I.options.isRowExpandable,H=[];if(W.length>0)for(var se=W.length-1;se>=0;se--){var me=W[se];(!q||q&&q(me.dataIndex,I.state.expandedRows))&&H.push(cn.default(W).call(W,se,1))}else for(var Se=0;Se<I.state.data.length;Se++){var Ne=I.state.data[Se];if((!q||q&&q(Ne.dataIndex,I.state.expandedRows))&&I.state.expandedRows.lookup[Ne.index]!==!0){var ze={index:Se,dataIndex:Ne.index};W.push(ze),H.push(ze)}}I.setState({expandedRows:{lookup:qn(W),data:W}},function(){var Ce;I.setTableAction("expandRow"),I.options.onRowExpansionChange&&I.options.onRowExpansionChange(H,I.state.expandedRows.data,xt.default(Ce=I.state.expandedRows.data).call(Ce,function(je){return je.dataIndex}))})}),Ee.default(ut.default(I),"areAllRowsExpanded",function(){return I.state.expandedRows.data.length===I.state.data.length}),Ee.default(ut.default(I),"updateColumnOrder",function(W,q,H){I.setState(function(se){return{columnOrder:W}},function(){I.setTableAction("columnOrderChange"),I.options.onColumnOrderChange&&I.options.onColumnOrderChange(I.state.columnOrder,q,H)})}),Ee.default(ut.default(I),"selectRowDelete",function(){var W=I.state,q=W.selectedRows,H=W.data,se=W.filterList,me=qn(q.data),Se=Or.default(H).call(H,function(Ne){var ze=Ne.index;return!me[ze]});I.options.onRowsDelete&&I.options.onRowsDelete(q,xt.default(Se).call(Se,function(Ne){return Ne.data}))===!1||I.setTableData({columns:I.props.columns,data:Se,options:{filterList:se}},sl.UPDATE,!0,function(){I.setTableAction("rowDelete")})}),Ee.default(ut.default(I),"toggleExpandRow",function(W){for(var q=W.dataIndex,H=I.options.isRowExpandable,se=I.state.expandedRows,me=an.default(se.data),Se=!1,Ne=!1,ze=[],Ce=0;Ce<me.length;Ce++)if(me[Ce].dataIndex===q){Se=!0;break}Se?(H&&H(q,se)||!H)&&(ze=cn.default(me).call(me,Ce,1),Ne=!0):H&&H(q,se)?me.push(W):H||me.push(W),I.setState({curExpandedRows:Ne?ze:[W],expandedRows:{lookup:qn(me),data:me}},function(){I.setTableAction("rowExpansionChange"),(I.options.onRowExpansionChange||I.options.onRowsExpand)&&(I.options.onRowExpansionChange||I.options.onRowsExpand)(I.state.curExpandedRows,I.state.expandedRows.data)})}),Ee.default(ut.default(I),"selectRowUpdate",function(W,q){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],se=I.options.selectableRows;if(se!=="none"){if(W==="head"){var me=I.options.isRowSelectable;I.setState(function(Ce){var je,Me=Ce.displayData,Ue=Ce.selectedRows,tt=Ce.selectedRows.data.length,at=tt===Me.length||tt<Me.length&&tt>0,ht=fo.default(Me).call(Me,function($t,Br,fr){return(!me||me(Me[fr].dataIndex,Ue))&&$t.push({index:fr,dataIndex:Me[fr].dataIndex}),$t},[]),Ht=an.default(ht),jt=qn(Ht);if(I.options.selectToolbarPlacement===Qa.NONE)if(tt>Me.length)at=!0;else for(var or=0;or<Me.length;or++)jt[Me[or].dataIndex]||(at=!0);return at&&(Ht=Or.default(je=Ce.selectedRows.data).call(je,function($t){var Br=$t.dataIndex;return!jt[Br]}),jt=qn(Ht)),{curSelectedRows:Ht,selectedRows:{data:Ht,lookup:jt},previousSelectedRow:null}},function(){var Ce;if(I.setTableAction("rowSelectionChange"),I.options.onRowSelectionChange)I.options.onRowSelectionChange(I.state.curSelectedRows,I.state.selectedRows.data,xt.default(Ce=I.state.selectedRows.data).call(Ce,function(Me){return Me.dataIndex}));else if(I.options.onRowsSelect){var je;I.options.onRowsSelect(I.state.curSelectedRows,I.state.selectedRows.data,xt.default(je=I.state.selectedRows.data).call(je,function(Me){return Me.dataIndex}))}})}else if(W==="cell")I.setState(function(Ce){for(var je=q.dataIndex,Me=an.default(Ce.selectedRows.data),Ue=-1,tt=0;tt<Me.length;tt++)if(Me[tt].dataIndex===je){Ue=tt;break}if(Ue>=0){if(cn.default(Me).call(Me,Ue,1),H.length>0)for(var at=qn(H),ht=Me.length-1;ht>=0;ht--)at[Me[ht].dataIndex]&&cn.default(Me).call(Me,ht,1)}else if(se==="single")Me=[q];else if(Me.push(q),H.length>0){var Ht=qn(Me);ur.default(H).call(H,function(jt){Ht[jt.dataIndex]||Me.push(jt)})}return{selectedRows:{lookup:qn(Me),data:Me},previousSelectedRow:q}},function(){var Ce;if(I.setTableAction("rowSelectionChange"),I.options.onRowSelectionChange)I.options.onRowSelectionChange([q],I.state.selectedRows.data,xt.default(Ce=I.state.selectedRows.data).call(Ce,function(Me){return Me.dataIndex}));else if(I.options.onRowsSelect){var je;I.options.onRowsSelect([q],I.state.selectedRows.data,xt.default(je=I.state.selectedRows.data).call(je,function(Me){return Me.dataIndex}))}});else if(W==="custom"){var Se=I.state.displayData,Ne=xt.default(q).call(q,function(Ce){return{index:Ce,dataIndex:Se[Ce].dataIndex}}),ze=qn(Ne);I.setState({selectedRows:{data:Ne,lookup:ze},previousSelectedRow:null},function(){var Ce;if(I.setTableAction("rowSelectionChange"),I.options.onRowSelectionChange)I.options.onRowSelectionChange(I.state.selectedRows.data,I.state.selectedRows.data,xt.default(Ce=I.state.selectedRows.data).call(Ce,function(Me){return Me.dataIndex}));else if(I.options.onRowsSelect){var je;I.options.onRowsSelect(I.state.selectedRows.data,I.state.selectedRows.data,xt.default(je=I.state.selectedRows.data).call(je,function(Me){return Me.dataIndex}))}})}}}),I.tableRef=he.default.createRef(),I.tableContent=he.default.createRef(),I.draggableHeadCellRefs={},I.resizeHeadCellRefs={},I.timers={},I.setHeadResizeable=function(){},I.updateDividers=function(){},I.mergeDefaultOptions(z);var be=UB(z.options.storageKey);return I.state=ho.default({activeColumn:null,announceText:null,count:0,columns:[],expandedRows:{data:[],lookup:{}},data:[],displayData:[],filterData:[],filterList:[],page:0,previousSelectedRow:null,rowsPerPage:10,searchProps:{},searchText:null,selectedRows:{data:[],lookup:{}},showResponsive:!1,sortOrder:{}},be||I.getInitTableOptions()),I.setTableData=Fn.default(_=I.setTableData).call(_,ut.default(I)),I.setTableData(z,sl.INITIAL,!0,null,!0),I}return en.default(de,[{key:"componentDidMount",value:function(){this.setHeadResizeable(this.resizeHeadCellRefs,this.tableRef),this.props.options.searchText&&!this.props.options.serverSide&&this.setState({page:0}),this.setTableInit("tableInitialized")}},{key:"componentDidUpdate",value:function(z){var _=this;if(this.props.data!==z.data||this.props.columns!==z.columns||this.props.options!==z.options){this.updateOptions(this.options,this.props);var I=this.props.data!==z.data;this.props.data&&z.data&&(I=I&&this.props.data.length===z.data.length),this.setTableData(this.props,sl.INITIAL,I,function(){_.setTableAction("propsUpdate")})}this.props.options.searchText===z.options.searchText||this.props.options.serverSide||this.setState({page:0}),(this.options.resizableColumns===!0||this.options.resizableColumns&&this.options.resizableColumns.enabled)&&(this.setHeadResizeable(this.resizeHeadCellRefs,this.tableRef),this.updateDividers())}},{key:"updateOptions",value:function(z,_){_.options.disableToolbarSelect===!0&&_.options.selectToolbarPlacement===void 0&&(_.options.selectToolbarPlacement=Qa.NONE),_.options.tableId||(_.options.tableId=(Math.random()+"").replace(/\./,"")),this.options=Wo.default(z,_.options,function(I,be,W){if(W==="textLabels"||W==="downloadOptions")return Is.default(I,be)}),this.handleOptionDeprecation(_)}},{key:"mergeDefaultOptions",value:function(z){var _=this.getDefaultOptions(),I=ho.default({},z);I.options=I.options||{},this.updateOptions(_,I)}},{key:"validateOptions",value:function(z){var _;if(z.serverSide&&z.onTableChange===void 0)throw Error("onTableChange callback must be provided when using serverSide option");if(z.expandableRows&&z.renderExpandableRow===void 0)throw Error("renderExpandableRow must be provided when using expandableRows option");z.rowsSelected&&Yr.default(z.rowsSelected)&&aa.default(_=z.rowsSelected).call(_,isNaN)&&Ql("When using the rowsSelected option, must be provided an array of numbers only.")}},{key:"getInitTableOptions",value:function(){var z=this,_=["rowsPerPage","page","rowsSelected","rowsPerPageOptions"],I=fo.default(_).call(_,function(be,W){return z.options[W]!==void 0&&(be[W]=z.options[W]),be},{});return this.validateOptions(I),I}},{key:"setTableData",value:function(z,_,I){var be,W,q,H=this,se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},me=arguments.length>4&&arguments[4]!==void 0&&arguments[4],Se=[],Ne=this.buildColumns(z.columns,this.state.columns,this.options.columnOrder,this.state.columnOrder),ze=Ne.columns,Ce=Ne.filterData,je=Ne.filterList,Me=Ne.columnOrder,Ue=null,tt="none";this.options.sortOrder&&this.options.sortOrder.direction&&this.options.sortOrder.name?W=ho.default({},this.options.sortOrder):(W=ho.default({},this.state.sortOrder)).direction||ur.default(q=z.columns).call(q,function(ar,Dt){!ar.options||ar.options.sortDirection!=="asc"&&ar.options.sortDirection!=="desc"||(W.name=ar.name,W.sortDirection=ar.sortDirection)});var at=_===sl.INITIAL?this.transformData(ze,z.data):z.data,ht=_===sl.INITIAL?this.options.searchText:null;this.options.searchText===void 0&&this.state.searchText!==void 0&&(ht=this.state.searchText);var Ht=this.state.rowsPerPage;typeof this.options.rowsPerPage=="number"&&(Ht=this.options.rowsPerPage);var jt=this.state.page;typeof this.options.page=="number"&&(jt=this.options.page),ur.default(ze).call(ze,function(ar,Dt){for(var ot=0;ot<at.length;ot++){var Tt=_===sl.INITIAL?at[ot][Dt]:at[ot].data[Dt];if(Se[ot]===void 0&&Se.push({index:_===sl.INITIAL?ot:at[ot].index,data:_===sl.INITIAL?at[ot]:at[ot].data}),Or.default(ar)!==!1){var Mr;if(typeof ar.customBodyRender=="function"){var _a=Se[ot].data;be=H.getTableMeta(ot,Dt,_a,ar,at,H.state,Se);var Za=ar.customBodyRender(Tt,be);he.default.isValidElement(Za)&&Za.props.value?Tt=Za.props.value:typeof Za=="string"&&(Tt=Za)}Kn.default(Tt)!=="object"||Yr.default(Tt)||Tt===null||(Tt=Tt.toString?Tt.toString():""),Fr.default(Mr=Ce[Dt]).call(Mr,Tt)<0&&!Yr.default(Tt)?Ce[Dt].push(Tt):Yr.default(Tt)&&ur.default(Tt).call(Tt,function(ca){var Zl,Os;Os=Kn.default(ca)==="object"&&ca!==null||typeof ca=="function"?ca.toString?ca.toString():"":ca,Fr.default(Zl=Ce[Dt]).call(Zl,Os)<0&&Ce[Dt].push(Os)})}}if(ar.filterOptions&&(Yr.default(ar.filterOptions)?(Ce[Dt]=un.default(ar.filterOptions),H.warnDep("filterOptions must now be an object. see https://github.com/gregnb/mui-datatables/tree/master/examples/customize-filter example")):Yr.default(ar.filterOptions.names)&&(Ce[Dt]=un.default(ar.filterOptions.names))),ar.filterList?je[Dt]=un.default(ar.filterList):H.state.filterList&&H.state.filterList[Dt]&&H.state.filterList[Dt].length>0&&(je[Dt]=un.default(H.state.filterList[Dt])),H.options.sortFilterList){var Es,Mi=BP();po.default(Es=Ce[Dt]).call(Es,Mi)}ar.name===W.name&&(tt=W.direction,Ue=Dt)});var or={data:[],lookup:{}},$t={data:[],lookup:{}};{var Br,fr,er;if(this.options.rowsSelected&&this.options.rowsSelected.length&&this.options.selectableRows==="multiple")ur.default(Br=Or.default(fr=this.options.rowsSelected).call(fr,function(ar){return ar===0||Number(ar)&&ar>0})).call(Br,function(ar){for(var Dt=ar,ot=0;ot<H.state.displayData.length;ot++)if(H.state.displayData[ot].dataIndex===ar){Dt=ot;break}or.data.push({index:Dt,dataIndex:ar}),or.lookup[ar]=!0});else if(this.options.rowsSelected&&this.options.rowsSelected.length===1&&this.options.selectableRows==="single"){for(var Xr=this.options.rowsSelected[0],Kt=0;Kt<this.state.displayData.length;Kt++)if(this.state.displayData[Kt].dataIndex===this.options.rowsSelected[0]){Xr=Kt;break}or.data.push({index:Xr,dataIndex:this.options.rowsSelected[0]}),or.lookup[this.options.rowsSelected[0]]=!0}else this.options.rowsSelected&&this.options.rowsSelected.length>1&&this.options.selectableRows==="single"?console.error('Multiple values provided for selectableRows, but selectableRows set to "single". Either supply only a single value or use "multiple".'):this.options.rowsSelected===void 0&&I===!1&&this.state.selectedRows&&(or=ho.default({},this.state.selectedRows));this.options.rowsExpanded&&this.options.rowsExpanded.length&&this.options.expandableRows?ur.default(er=this.options.rowsExpanded).call(er,function(ar){for(var Dt=ar,ot=0;ot<H.state.displayData.length;ot++)if(H.state.displayData[ot].dataIndex===ar){Dt=ot;break}$t.data.push({index:Dt,dataIndex:ar}),$t.lookup[ar]=!0}):this.options.rowsExpanded===void 0&&I===!1&&this.state.expandedRows&&($t=ho.default({},this.state.expandedRows))}if(!this.options.serverSide&&Ue!==null){var xn=this.sortTable(Se,Ue,tt,ze[Ue].sortCompare);Se=xn.data}var sn={columns:ze,filterData:Ce,filterList:je,searchText:ht,selectedRows:or,expandedRows:$t,count:this.options.count,data:Se,sortOrder:W,rowsPerPage:Ht,page:jt,displayData:this.getDisplayData(ze,Se,je,ht,be,z),columnOrder:Me};me?this.state=ho.default({},this.state,sn):this.setState(sn,se)}},{key:"computeDisplayRow",value:function(z,_,I,be,W,q,H,se,me){for(var Se=this,Ne=!1,ze=!1,Ce=[],je=function(){var at=_[Me],ht=_[Me],Ht=z[Me];if(Ht.customBodyRenderLite)Ce.push(Ht.customBodyRenderLite);else if(Ht.customBodyRender){var jt,or=Se.getTableMeta(I,Me,_,Ht,q,Oa(Oa({},Se.state),{},{filterList:be,searchText:W}),me),$t=Ht.customBodyRender(ht,or,Fn.default(jt=Se.updateDataCol).call(jt,null,I,Me));at=$t,ht=typeof $t!="string"&&$t?$t.props&&$t.props.value?$t.props.value:ht:$t,Ce.push(at)}else Ce.push(at);var Br=ht==null?"":ht.toString(),fr=be[Me],er=H.caseSensitive,Xr=Ht.filterType||H.filterType;(fr.length||Xr==="custom")&&(Ht.filterOptions&&Ht.filterOptions.logic?Ht.filterOptions.logic(ht,fr,_)&&(Ne=!0):Xr!=="textField"||Se.hasSearchText(Br,fr,er)?Xr!=="textField"&&Yr.default(ht)===!1&&Fr.default(fr).call(fr,ht)<0?Ne=!0:Xr!=="textField"&&Yr.default(ht)&&(H.filterArrayFullMatch?Ia.default(fr).call(fr,function(Kt){return Fr.default(ht).call(ht,Kt)>=0})||(Ne=!0):aa.default(fr).call(fr,function(Kt){return Fr.default(ht).call(ht,Kt)>=0})||(Ne=!0)):Ne=!0),W&&Ht.display!=="excluded"&&Se.hasSearchText(Br,W,er)&&Ht.display!=="false"&&Ht.searchable&&(ze=!0)},Me=0;Me<_.length;Me++)je();var Ue=se.options.customSearch;if(W&&Ue){var tt=Ue(W,_,z);typeof tt!="boolean"?console.error("customSearch must return a boolean"):ze=tt}return H.serverSide?(Ue&&console.warn("Server-side filtering is enabled, hence custom search will be ignored."),Ce):Ne||W&&!ze?null:Ce}},{key:"getDisplayData",value:function(z,_,I,be,W,q){for(var H=[],se=W?W.tableData:q.data,me=0;me<_.length;me++){var Se=_[me].data,Ne=this.computeDisplayRow(z,Se,me,I,be,se,this.options,q,_);Ne&&H.push({data:Ne,dataIndex:_[me].index})}return H}},{key:"getSortDirectionLabel",value:function(z){switch(z.direction){case"asc":return"ascending";case"desc":return"descending";case"none":return"none";default:return""}}},{key:"getTableProps",value:function(){var z=this.props.classes,_=this.options.setTableProps()||{};return _.className=Er.default(z.tableRoot,_.className),_}},{key:"sortTable",value:function(z,_,I){var be,W=this,q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,H=this.options.customSort&&!q,se={selectedRows:this.state.selectedRows},me=H?this.options.customSort(z,_,I||(this.options.sortDescFirst?"desc":"asc"),se):z;I==="none"&&(be=fo.default(z).call(z,function(Ue,tt){return Ue[tt.index]=tt,Ue},[]));var Se=xt.default(me).call(me,function(Ue,tt){return{data:Ue.data[_],rowData:Ue.data,position:tt,rowSelected:!!W.state.selectedRows.lookup[Ue.index]}});if(!H){var Ne=q||iB;po.default(Se).call(Se,Ne(I))}for(var ze=[],Ce=[],je=0;je<Se.length;je++){var Me=Se[je];ze.push(me[Me.position]),Me.rowSelected&&Ce.push({index:je,dataIndex:me[Me.position].index})}return{data:I==="none"?be:ze,selectedRows:{lookup:qn(Ce),data:Ce}}}},{key:"render",value:function(){var z,_,I,be,W,q=this,H=this.props,se=H.classes,me=H.className,Se=H.title,Ne=H.components,ze=Ne.TableBody,Ce=Ne.TableFilterList,je=Ne.TableFooter,Me=Ne.TableHead,Ue=Ne.TableResize,tt=Ne.TableToolbar,at=Ne.TableToolbarSelect,ht=Ne.DragDropBackend,Ht=ht===void 0?yt.HTML5Backend:ht,jt=this.state,or=jt.announceText,$t=jt.activeColumn,Br=jt.data,fr=jt.displayData,er=jt.columns,Xr=jt.page,Kt=jt.filterData,xn=jt.filterList,sn=jt.selectedRows,ar=jt.previousSelectedRow,Dt=jt.expandedRows,ot=jt.searchText,Tt=jt.sortOrder,Mr=(jt.serverSideFilterList,jt.columnOrder),_a=ze||i0,Za=Ce||em,Es=je||tm,Mi=Me||f0,ca=Ue||p0,Zl=tt||m0,Os=at||v0,Jl=this.state.count||fr.length,Zd=this.options.pagination?this.state.rowsPerPage:fr.length,Jd=QB(this.options,Se),am=xt.default(er).call(er,function(wo){return{name:wo.name,filterType:wo.filterType||q.options.filterType}}),y0=this.options.responsive,tu=tn.default(z="".concat(se.paper," ")).call(z,me),_s=this.options.tableBodyMaxHeight;switch(y0){case"scroll":W=se.responsiveScroll,_s="499px";break;case"scrollMaxHeight":W=se.responsiveScrollMaxHeight,_s="499px";break;case"scrollFullHeight":W=se.responsiveScrollFullHeight,_s="none";break;case"scrollFullHeightFullWidth":W=se.responsiveScrollFullHeight,tu=tn.default(_="".concat(se.paperResponsiveScrollFullHeightFullWidth," ")).call(_,me);break;case"stacked":W=se.responsiveStacked,_s="none";break;case"stackedFullWidth":W=se.responsiveStackedFullWidth,tu=tn.default(I="".concat(se.paperResponsiveScrollFullHeightFullWidth," ")).call(I,me),_s="none";break;default:W=se.responsiveBase}var Da={};_s&&(Da.maxHeight=_s),this.options.tableBodyHeight&&(Da.height=this.options.tableBodyHeight);var ef=this.options.setTableProps&&this.options.setTableProps()||{},a6=Er.default(se.tableRoot,ef.className);delete ef.className;var b0,e$={};return typeof window<"u"&&(e$.context=window),he.default.createElement(os.default,{elevation:this.options.elevation,ref:this.tableContent,className:tu},(this.options.selectToolbarPlacement===Qa.ALWAYS||sn.data.length>0&&this.options.selectToolbarPlacement!==Qa.NONE)&&he.default.createElement(Os,{options:this.options,selectedRows:sn,onRowsDelete:this.selectRowDelete,displayData:fr,selectRowUpdate:this.selectRowUpdate,components:this.props.components}),(sn.data.length===0||Fr.default(be=[Qa.ABOVE,Qa.NONE]).call(be,this.options.selectToolbarPlacement)!==-1)&&Jd&&he.default.createElement(Zl,{columns:er,columnOrder:Mr,displayData:fr,data:Br,filterData:Kt,filterList:xn,filterUpdate:this.filterUpdate,updateFilterByType:this.updateFilterByType,options:this.options,resetFilters:this.resetFilters,searchText:ot,searchTextUpdate:this.searchTextUpdate,searchClose:this.searchClose,tableRef:this.getTableContentRef,title:Se,toggleViewColumn:this.toggleViewColumn,updateColumns:this.updateColumns,setTableAction:this.setTableAction,components:this.props.components}),he.default.createElement(Za,{options:this.options,serverSideFilterList:this.props.options.serverSideFilterList,filterListRenderers:xt.default(er).call(er,function(wo){return wo.customFilterListOptions&&wo.customFilterListOptions.render?wo.customFilterListOptions.render:wo.customFilterListRender?wo.customFilterListRender:function(i6){return i6}}),customFilterListUpdate:xt.default(er).call(er,function(wo){return wo.customFilterListOptions&&wo.customFilterListOptions.update?wo.customFilterListOptions.update:null}),filterList:xn,filterUpdate:this.filterUpdate,columnNames:am}),he.default.createElement("div",{style:Oa({position:"relative"},Da),className:W},(this.options.resizableColumns===!0||this.options.resizableColumns&&this.options.resizableColumns.enabled)&&he.default.createElement(ca,{key:Jl,columnOrder:Mr,updateDividers:function(wo){return q.updateDividers=wo},setResizeable:function(wo){return q.setHeadResizeable=wo},options:this.props.options,tableId:this.options.tableId}),(b0=he.default.createElement(Ei.default,vr.default({ref:function(wo){return q.tableRef=wo},tabIndex:"0",role:"grid",className:a6},ef),he.default.createElement("caption",{className:se.caption},Se),he.default.createElement(Mi,{columns:er,activeColumn:$t,data:fr,count:Jl,page:Xr,rowsPerPage:Zd,selectedRows:sn,selectRowUpdate:q.selectRowUpdate,toggleSort:q.toggleSortColumn,setCellRef:q.setHeadCellRef,expandedRows:Dt,areAllRowsExpanded:q.areAllRowsExpanded,toggleAllExpandableRows:q.toggleAllExpandableRows,options:q.options,sortOrder:Tt,columnOrder:Mr,updateColumnOrder:q.updateColumnOrder,draggableHeadCellRefs:q.draggableHeadCellRefs,tableRef:q.getTableContentRef,tableId:q.options.tableId,timers:q.timers,components:q.props.components}),he.default.createElement(_a,{data:fr,count:Jl,columns:er,page:Xr,rowsPerPage:Zd,selectedRows:sn,selectRowUpdate:q.selectRowUpdate,previousSelectedRow:ar,expandedRows:Dt,toggleExpandRow:q.toggleExpandRow,options:q.options,columnOrder:Mr,filterList:xn,components:q.props.components,tableId:q.options.tableId}),q.options.customTableBodyFooterRender?q.options.customTableBodyFooterRender({data:fr,count:Jl,columns:er,selectedRows:sn,selectableRows:q.options.selectableRows}):null),Ht?he.default.createElement(Nn.DndProvider,vr.default({backend:Ht},e$),b0):b0)),he.default.createElement(Es,{options:this.options,page:Xr,rowCount:Jl,rowsPerPage:Zd,changeRowsPerPage:this.changeRowsPerPage,changePage:this.changePage}),he.default.createElement("div",{className:se.liveAnnounce,"aria-live":"polite"},or))}}]),de}(he.default.Component);Ee.default(g0,"propTypes",{title:ne.default.oneOfType([ne.default.string,ne.default.element]).isRequired,data:ne.default.array.isRequired,columns:ne.default.PropTypes.arrayOf(ne.default.oneOfType([ne.default.string,ne.default.shape({label:ne.default.string,name:ne.default.string.isRequired,options:ne.default.shape({display:ne.default.oneOf(["true","false","excluded","always",!0,!1]),empty:ne.default.bool,filter:ne.default.bool,sort:ne.default.bool,print:ne.default.bool,searchable:ne.default.bool,download:ne.default.bool,viewColumns:ne.default.bool,filterList:ne.default.array,filterOptions:ne.default.oneOfType([ne.default.array,ne.default.shape({names:ne.default.array,logic:ne.default.func,display:ne.default.func})]),filterType:ne.default.oneOf(["dropdown","checkbox","multiselect","textField","custom"]),customHeadRender:ne.default.func,customBodyRender:ne.default.func,customBodyRenderLite:ne.default.func,customHeadLabelRender:ne.default.func,customFilterListOptions:ne.default.oneOfType([ne.default.shape({render:ne.default.func,update:ne.default.func})]),customFilterListRender:ne.default.func,setCellProps:ne.default.func,setCellHeaderProps:ne.default.func,sortThirdClickReset:ne.default.bool,sortDescFirst:ne.default.bool})})])).isRequired,options:ne.default.shape({caseSensitive:ne.default.bool,columnOrder:ne.default.array,count:ne.default.number,confirmFilters:ne.default.bool,consoleWarnings:ne.default.bool,customFilterDialogFooter:ne.default.func,customFooter:ne.default.oneOfType([ne.default.func,ne.default.element]),customRowRender:ne.default.func,customSearch:ne.default.func,customSearchRender:ne.default.oneOfType([ne.default.func,ne.default.element]),customSort:ne.default.func,customToolbar:ne.default.oneOfType([ne.default.func,ne.default.element]),customToolbarSelect:ne.default.oneOfType([ne.default.func,ne.default.element]),draggableColumns:ne.default.object,enableNestedDataAccess:ne.default.string,expandableRows:ne.default.bool,expandableRowsHeader:ne.default.bool,expandableRowsOnClick:ne.default.bool,disableToolbarSelect:ne.default.bool,download:ne.default.oneOf([!0,!1,"true","false","disabled"]),downloadOptions:ne.default.shape({filename:ne.default.string,separator:ne.default.string,filterOptions:ne.default.shape({useDisplayedColumnsOnly:ne.default.bool,useDisplayedRowsOnly:ne.default.bool})}),filter:ne.default.oneOf([!0,!1,"true","false","disabled"]),filterArrayFullMatch:ne.default.bool,filterType:ne.default.oneOf(["dropdown","checkbox","multiselect","textField","custom"]),fixedHeader:ne.default.bool,fixedSelectColumn:ne.default.bool,getTextLabels:ne.default.func,isRowExpandable:ne.default.func,isRowSelectable:ne.default.func,jumpToPage:ne.default.bool,onDownload:ne.default.func,onFilterChange:ne.default.func,onFilterChipClose:ne.default.func,onFilterConfirm:ne.default.func,onFilterDialogOpen:ne.default.func,onFilterDialogClose:ne.default.func,onRowClick:ne.default.func,onRowsExpand:ne.default.func,onRowExpansionChange:ne.default.func,onRowsSelect:ne.default.func,onRowSelectionChange:ne.default.func,onTableChange:ne.default.func,onTableInit:ne.default.func,page:ne.default.number,pagination:ne.default.bool,print:ne.default.oneOf([!0,!1,"true","false","disabled"]),searchProps:ne.default.object,selectableRows:ne.default.oneOfType([ne.default.bool,ne.default.oneOf(["none","single","multiple"])]),selectableRowsHeader:ne.default.bool,selectableRowsHideCheckboxes:ne.default.bool,selectableRowsOnClick:ne.default.bool,serverSide:ne.default.bool,tableId:ne.default.string,tableBodyHeight:ne.default.string,tableBodyMaxHeight:ne.default.string,renderExpandableRow:ne.default.func,resizableColumns:ne.default.oneOfType([ne.default.bool,ne.default.object]),responsive:ne.default.oneOf(["standard","vertical","verticalAlways","simple"]),rowHover:ne.default.bool,rowsExpanded:ne.default.array,rowsPerPage:ne.default.number,rowsPerPageOptions:ne.default.array,rowsSelected:ne.default.array,search:ne.default.oneOf([!0,!1,"true","false","disabled"]),searchOpen:ne.default.bool,searchAlwaysOpen:ne.default.bool,searchPlaceholder:ne.default.string,searchText:ne.default.string,setFilterChipProps:ne.default.func,setRowProps:ne.default.func,selectToolbarPlacement:ne.default.oneOfType([ne.default.bool,ne.default.oneOf([Qa.REPLACE,Qa.ABOVE,Qa.NONE,Qa.ALWAYS])]),setTableProps:ne.default.func,sort:ne.default.bool,sortOrder:ne.default.object,storageKey:ne.default.string,viewColumns:ne.default.oneOf([!0,!1,"true","false","disabled"])}),className:ne.default.string,components:ne.default.objectOf(ne.default.any)}),Ee.default(g0,"defaultProps",{title:"",options:{},data:[],columns:[],components:{TableBody:i0,TableFilter:s0,TableFilterList:em,TableFooter:tm,TableHead:f0,TableResize:p0,TableToolbar:m0,TableToolbarSelect:v0,Tooltip:mo.default,icons:{}}});var ZB=oe.withStyles(g0,YB,{name:"MUIDataTable"});function JB(F){var ue=e6();return function(){var de,z=Qt.default(F);if(ue){var _=Qt.default(this).constructor;de=nt.default(z,arguments,_)}else de=z.apply(this,arguments);return Vt.default(this,de)}}function e6(){if(typeof Reflect>"u"||!nt.default||nt.default.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(nt.default(Boolean,[],function(){})),!0}catch{return!1}}function t6(F,ue,de){var z;return function(){var _=this,I=arguments,be=function(){z=null,F.apply(_,I)};clearTimeout(z),z=_n.default(be,ue)}}var r6=function(F){return{main:{display:"flex",flex:"1 0 auto",alignItems:"center"},searchIcon:{color:F.palette.text.secondary,marginRight:"8px"},searchText:{flex:"0.8 0"},clearIcon:{"&:hover":{color:F.palette.error.main}}}},n6=function(F){On.default(de,F);var ue=JB(de);function de(){var z,_;En.default(this,de);for(var I=arguments.length,be=new Array(I),W=0;W<I;W++)be[W]=arguments[W];return _=ue.call.apply(ue,tn.default(z=[this]).call(z,be)),Ee.default(ut.default(_),"handleTextChangeWrapper",function(q){return function(H){q(H.target.value)}}),Ee.default(ut.default(_),"onKeyDown",function(q){q.keyCode===27&&_.props.onHide()}),_}return en.default(de,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown,!1)}},{key:"render",value:function(){var z=this,_=this.props,I=_.classes,be=_.options,W=_.onHide,q=_.searchText,H=t6(function(me){z.props.onSearch(me)},_.debounceWait),se=be.searchAlwaysOpen?"hidden":"visible";return he.default.createElement(Qh.default,{appear:!0,in:!0,timeout:300},he.default.createElement("div",{className:I.main},he.default.createElement(Qd.default,{className:I.searchIcon}),he.default.createElement(It.default,vr.default({variant:"standard",className:I.searchText,autoFocus:!0,InputProps:{"data-test-id":be.textLabels.toolbar.search,"aria-label":be.textLabels.toolbar.search},defaultValue:q,onChange:this.handleTextChangeWrapper(H),fullWidth:!0,inputRef:function(me){return z.searchField=me},placeholder:be.searchPlaceholder},be.searchProps?be.searchProps:{})),he.default.createElement(dn.default,{className:I.clearIcon,style:{visibility:se},onClick:W},he.default.createElement(Zh.default,null))))}}]),de}(he.default.Component),JP=oe.withStyles(n6,r6,{name:"MUIDataTableSearch"});function o6(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:200;return function(ue,de,z,_){return he.default.createElement(JP,{searchText:ue,onSearch:de,onHide:z,options:_,debounceWait:F})}}e.DebounceTableSearch=JP,e.ExpandButton=bo,e.Popover=nm,e.TableBody=i0,e.TableBodyCell=_t,e.TableBodyRow=yo,e.TableFilter=s0,e.TableFilterList=em,e.TableFooter=tm,e.TableHead=f0,e.TableHeadCell=c0,e.TableHeadRow=u0,e.TablePagination=l0,e.TableResize=p0,e.TableSearch=XP,e.TableSelectCell=Ea,e.TableToolbar=m0,e.TableToolbarSelect=v0,e.TableViewCol=h0,e.debounceSearchRender=o6,e.default=ZB})(nN);const DRe=Rd(nN);DC({key:"mui-datatables",prepend:!0});const TP=({title:e,columns:t,fetchData:r,onRowClick:n=()=>{}})=>{const[o,a]=y.useState([]),[i,s]=y.useState(!0),[l,c]=y.useState(!1),[u,d]=y.useState({}),[f,h]=y.useState(""),[p,m]=y.useState(null),x=async()=>{o.length>0?c(!0):s(!0);const w={search:f||"",sort:p,filters:u};try{const g=await r(w);a(g)}catch(g){console.error("Error fetching data:",g)}finally{s(!1),c(!1)}};y.useEffect(()=>{x()},[u,f,p]);const b={serverSide:!0,search:!0,searchText:f,download:!0,print:!0,viewColumns:!0,filter:!0,draggableColumns:{enabled:!0},filterType:"textField",responsive:"vertical",selectableRows:"none",onRowClick:(w,g)=>{n(w,g)},onSearchChange:w=>{h(w||"")},onColumnSortChange:(w,g)=>{m({column:w,direction:g})},onFilterChange:(w,g)=>{const S={};t.forEach((R,T)=>{var k;((k=g[T])==null?void 0:k.length)>0&&(S[R.name]=g[T])}),d(S)}};return v.jsx("div",{style:{position:"relative"},children:i&&o.length===0?v.jsx("div",{style:{position:"absolute",top:"50%",left:"50%"},children:v.jsx(Nc,{})}):v.jsxs(v.Fragment,{children:[l&&v.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:10},children:v.jsx(Nc,{})}),v.jsx(DRe,{title:e,data:o,columns:t,options:b})]})})};async function gu(){var i,s;const t=((i=(await GL({})).data)==null?void 0:i.items)||[],n=((s=(await WL({})).data)==null?void 0:s.items)||[],a=(await rb()).data;return{kst:t,ledger:n,user:a}}const MRe=()=>{const{kst:e,ledger:t,user:r}=Pa(),n=[{name:"name",label:"Name"},{name:"creditor__amount",label:"Amount"},{name:"card",label:"Card",options:{filterType:"checkbox",filterOptions:["Event","President","Quaestor"]}},{name:"creditor__kst__kst_number",label:"KST Number"},{name:"creditor__kst__name_de",label:"KST Name"},{name:"creditor__ledger__name_de",label:"Ledger Name"},{name:"creditor__currency",label:"Currency"},{name:"reciept",label:"Receipt"},{name:"creator",label:"Creator"},{name:"edit",label:"edit",options:{filter:!1,sort:!1}}],o=async({search:a,sort:i,filters:s})=>{var c;const l={search:a||null,sort:i?`${i.column}:${i.direction}`:null,...s};console.log("Fetching Credit Payments with:",l);try{return(((c=(await ete({query:l})).data)==null?void 0:c.items)||[]).map(h=>{var p,m,x,b,w;return{name:h.name,creditor__amount:(p=h.creditor)==null?void 0:p.amount,card:h.card,creditor__kst__kst_number:((m=e.find(g=>{var S;return g.id===((S=h.creditor)==null?void 0:S.kst_id)}))==null?void 0:m.kst_number)||"Unknown",creditor__kst__name_de:((x=e.find(g=>{var S;return g.id===((S=h.creditor)==null?void 0:S.kst_id)}))==null?void 0:x.name_de)||"Unknown",creditor__ledger__name_de:((b=t.find(g=>{var S;return g.id===((S=h.creditor)==null?void 0:S.ledger_id)}))==null?void 0:b.name_de)||"Unknown",creditor__currency:(w=h.creditor)==null?void 0:w.currency,reciept:h.reciept,creator:r.nethz,edit:v.jsx(zr,{variant:"contained",color:"primary",href:`/creditpayment/${h.id}`,children:"Edit"})}})}catch(u){return console.error("Error fetching Credit Payments:",u),[]}};return v.jsx(TP,{title:"Credit Payments List",columns:n,fetchData:o})},Iw={},Pf={},ARe=({fileUrl:e})=>{const[t,r]=y.useState(null),[n,o]=y.useState(null),[a,i]=y.useState(!0),[s,l]=y.useState(null),[c,u]=y.useState(!1);y.useEffect(()=>{let h=!0;const p=new AbortController,m=p.signal,x=async()=>{if(Iw[e]){h&&(r(Iw[e]),l(Pf[e]),i(!1));return}try{const w=await fetch(e,{method:"GET",signal:m});if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);const g=w.headers.get("Content-Type");if(g)Iw[e]=g,h&&r(g);else throw new Error("Content-Type not found");const S=await w.blob(),R=URL.createObjectURL(S);Pf[e]=R,h&&l(R)}catch(w){h&&(w.name==="AbortError"?o("Request timed out."):(console.error("Error fetching file:",w),o("Unable to load file.")))}finally{h&&i(!1)}},b=setTimeout(()=>{p.abort()},1e4);return x(),()=>{h=!1,clearTimeout(b),p.abort(),Pf[e]&&(URL.revokeObjectURL(Pf[e]),delete Pf[e])}},[e]);const d=()=>{u(!1)},f=()=>t!=null&&t.startsWith("image/")?v.jsx("img",{src:s,alt:"Preview",style:{maxWidth:"100%",maxHeight:"80vh"}}):t==="application/pdf"?v.jsx("iframe",{src:s,title:"PDF Preview",style:{width:"90vw",height:"90vh",border:"none"}}):null;return a?v.jsx(Nc,{size:20}):n?v.jsxs(sr,{variant:"body2",color:"error",children:[n," ",v.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:"Download"})]}):!t||!s?v.jsx(sr,{variant:"body2",children:v.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:"Download File"})}):v.jsxs("div",{children:[t.startsWith("image/")?v.jsx(Qn,{component:"img",src:s,alt:"Image Preview",sx:{maxWidth:600,maxHeight:600,objectFit:"contain",cursor:"pointer"},onClick:()=>u(!0)}):t==="application/pdf"?v.jsx(Qn,{component:"iframe",src:s,title:"PDF Preview",sx:{width:"100%",height:600,border:"none",cursor:"pointer"},onClick:()=>u(!0)}):v.jsx(sr,{variant:"body2",children:v.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:"Download File"})}),v.jsx(Jy,{open:c,onClose:d,sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:v.jsxs(Qn,{sx:{position:"relative",bgcolor:"background.paper",p:2,boxShadow:24,borderRadius:1,maxWidth:"90%",maxHeight:"90%",outline:"none"},children:[v.jsx(Vn,{onClick:d,sx:{position:"absolute",top:8,right:8},children:v.jsx(YF,{})}),f(),v.jsx(Qn,{mt:2,textAlign:"center",children:v.jsx(zr,{variant:"contained",color:"primary",href:e,target:"_blank",rel:"noopener noreferrer",download:!0,children:"Download"})})]})})]})},a_=(e,t)=>t.split(".").reduce((r,n)=>r?r[n]:void 0,e),i4=({data:e,fieldConfigs:t,nestingVisibility:r={},depth:n=0,isRoot:o=!0,previewHeader:a})=>{const[i,s]=y.useState({});if(!e||typeof e!="object")return v.jsx(sr,{variant:"body2",color:"error",children:"Invalid data (not an object)"});const l=m=>{s(x=>({...x,[m]:!x[m]}))},c=(m,x)=>{const{type:b,items:w}=m;if(w&&w.length){const g=w.find(S=>S.value===x);return v.jsx(sr,{variant:"body2",component:"span",children:(g==null?void 0:g.label)||String(x)||"—"})}if(b===5)return typeof x!="string"?v.jsx(sr,{variant:"body2",color:"error",children:"Invalid file URL"}):v.jsx(zr,{variant:"contained",color:"primary",href:x,target:"_blank",rel:"noopener noreferrer",download:!0,children:"Download"});switch(b){case 0:case 1:case 3:return v.jsx(sr,{variant:"body2",children:x!==void 0?String(x):"—"});case 2:return v.jsx(sr,{variant:"body2",children:x?"True":"False"});case 4:return v.jsx(sr,{variant:"body2",color:"text.secondary",children:String(x)});default:return v.jsx(sr,{variant:"body2",color:"text.secondary",children:String(x)})}},d=o?(()=>{for(const m of t)if(m.type===5){const x=a_(e,m.name);if(typeof x=="string"&&x.trim()!=="")return x}return null})():null,f=m=>{const{name:x,label:b}=m,w=a_(e,x),g=typeof w=="object"&&w!==null&&!Array.isArray(w)&&m.type!==5;return v.jsxs(No.Fragment,{children:[v.jsxs(cp,{children:[v.jsx(Zo,{children:g&&r[x]!==!1&&v.jsx(Vn,{size:"small",onClick:()=>l(x),"aria-label":`Toggle ${b}`,children:i[x]?v.jsx(cee,{}):v.jsx(uee,{})})}),v.jsx(Zo,{children:v.jsx(sr,{variant:"body2",sx:{paddingLeft:n*2},children:b})}),v.jsx(Zo,{children:g?i[x]?"—":"Object":c(m,w)})]}),g&&i[x]&&r[x]!==!1&&v.jsx(cp,{children:v.jsx(Zo,{colSpan:3,sx:{pl:4},children:v.jsx(i4,{data:w,fieldConfigs:t,nestingVisibility:r,depth:n+1,isRoot:!1})})})]},x)},h=()=>v.jsx($L,{component:Ga,sx:{mt:2,flex:1},children:v.jsxs(OT,{size:"small",children:[o&&v.jsx(DT,{children:v.jsxs(cp,{children:[v.jsx(Zo,{}),v.jsx(Zo,{children:v.jsx("strong",{children:"Field"})}),v.jsx(Zo,{children:v.jsx("strong",{children:"Value"})})]})}),v.jsx(_T,{children:t.map(m=>f(m))})]})}),p=()=>v.jsxs(Qn,{sx:{width:400,ml:2,mt:o?2:0},children:[a&&v.jsx(Qn,{mb:2,children:a}),d&&v.jsx(ARe,{fileUrl:d})]});return o?v.jsxs(Qn,{display:"flex",alignItems:"flex-start",children:[h(),(a||d)&&p()]}):h()},jRe=["localeText"],SS=y.createContext(null),LRe=function(t){const{localeText:r}=t,n=Zt(t,jRe),{utils:o,localeText:a}=y.useContext(SS)??{utils:void 0,localeText:void 0},i=Rr({props:n,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=i,h=y.useMemo(()=>le({},f,a,r),[f,a,r]),p=y.useMemo(()=>{if(!l)return o||null;const b=new l({locale:d,formats:c,instance:u});if(!b.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return b},[l,d,c,u,o]),m=y.useMemo(()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null,[p]),x=y.useMemo(()=>({utils:p,defaultDates:m,localeText:h}),[m,p,h]);return v.jsx(SS.Provider,{value:x,children:s})},NRe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:le({},e)}}}}),s4=e=>{const{utils:t,formatKey:r,contextTranslation:n,propsTranslation:o}=e;return a=>{const i=a!==null&&t.isValid(a)?t.format(a,r):null;return(o??n)(a,t,i)}},l4={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,r,n)=>`Select ${e}. ${!n&&(t===null||!r.isValid(t))?"No time selected":`Selected time is ${n??r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,r)=>r||e!==null&&t.isValid(e)?`Choose date, selected date is ${r??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,r)=>r||e!==null&&t.isValid(e)?`Choose time, selected time is ${r??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},FRe=l4;NRe(l4);const Zc=()=>{const e=y.useContext(SS);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=y.useMemo(()=>le({},FRe,e.localeText),[e.localeText]);return y.useMemo(()=>le({},e,{localeText:t}),[e,t])},Wr=()=>Zc().utils,qh=()=>Zc().defaultDates,Jc=e=>{const t=Wr(),r=y.useRef();return r.current===void 0&&(r.current=t.date(void 0,e)),r.current},ka=()=>Zc().localeText,BRe=pr(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zRe=pr(v.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),VRe=pr(v.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),URe=pr(v.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");pr(v.jsxs(y.Fragment,{children:[v.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const HRe=pr(v.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),WRe=pr(v.jsxs(y.Fragment,{children:[v.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),GRe=pr(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function KRe(e){return Qe("MuiPickersArrowSwitcher",e)}Ze("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const qRe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],YRe=["ownerState"],XRe=["ownerState"],QRe=ce("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),ZRe=ce("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),i_=ce(Vn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),JRe=e=>{const{classes:t}=e;return Xe({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},KRe,t)},c4=y.forwardRef(function(t,r){const n=lo(),o=Rr({props:t,name:"MuiPickersArrowSwitcher"}),{children:a,className:i,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:h,isPreviousHidden:p,onGoToPrevious:m,previousLabel:x,labelId:b}=o,w=Zt(o,qRe),g=o,S=JRe(g),R={isDisabled:c,isHidden:u,goTo:d,label:f},T={isDisabled:h,isHidden:p,goTo:m,label:x},k=(s==null?void 0:s.previousIconButton)??i_,O=xr({elementType:k,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:le({},g,{hidden:T.isHidden}),className:Fe(S.button,S.previousIconButton)}),E=(s==null?void 0:s.nextIconButton)??i_,C=xr({elementType:E,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"start",onClick:R.goTo},ownerState:le({},g,{hidden:R.isHidden}),className:Fe(S.button,S.nextIconButton)}),D=(s==null?void 0:s.leftArrowIcon)??zRe,B=xr({elementType:D,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:g,className:S.leftArrowIcon}),U=Zt(B,YRe),j=(s==null?void 0:s.rightArrowIcon)??VRe,N=xr({elementType:j,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:g,className:S.rightArrowIcon}),V=Zt(N,XRe);return v.jsxs(QRe,le({ref:r,className:Fe(S.root,i),ownerState:g},w,{children:[v.jsx(k,le({},O,{children:n?v.jsx(j,le({},V)):v.jsx(D,le({},U))})),a?v.jsx(sr,{variant:"subtitle1",component:"span",id:b,children:a}):v.jsx(ZRe,{className:S.spacer,ownerState:g}),v.jsx(E,le({},C,{children:n?v.jsx(D,le({},U)):v.jsx(j,le({},V))}))]}))}),bs=(e,t)=>e.length!==t.length?!1:t.every(r=>e.includes(r)),e2e=({openTo:e,defaultOpenTo:t,views:r,defaultViews:n})=>{const o=r??n;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:a}},u4=["hours","minutes","seconds"],Td=e=>u4.includes(e),Hf=e=>u4.includes(e)||e==="meridiem",t2e=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Xp=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,r2e=(e,t,r,n)=>{const o=Xp(n.getHours(e),t,r);return n.setHours(e,o)},s_=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Yh=(e,t)=>(r,n)=>e?t.isAfter(r,n):s_(r,t)>s_(n,t),l_=(e,{format:t,views:r,ampm:n})=>{if(t!=null)return t;const o=e.formats;return bs(r,["hours"])?n?`${o.hours12h} ${o.meridiem}`:o.hours24h:bs(r,["minutes"])?o.minutes:bs(r,["seconds"])?o.seconds:bs(r,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:bs(r,["hours","minutes","seconds"])?n?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:n?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function Xh({onChange:e,onViewChange:t,openTo:r,view:n,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){const l=y.useRef(r),c=y.useRef(o),u=y.useRef(o.includes(r)?r:o[0]),[d,f]=za({name:"useViews",state:"view",controlled:n,default:u.current}),h=y.useRef(a?d:null),[p,m]=za({name:"useViews",state:"focusedView",controlled:i,default:h.current});y.useEffect(()=>{(l.current&&l.current!==r||c.current&&c.current.some(k=>!o.includes(k)))&&(f(o.includes(r)?r:o[0]),c.current=o,l.current=r)},[r,f,d,o]);const x=o.indexOf(d),b=o[x-1]??null,w=o[x+1]??null,g=it((k,O)=>{m(O?k:E=>k===E?null:E),s==null||s(k,O)}),S=it(k=>{g(k,!0),k!==d&&(f(k),t&&t(k))}),R=it(()=>{w&&S(w)}),T=it((k,O,E)=>{const C=O==="finish",D=E?o.indexOf(E)<o.length-1:!!w;if(e(k,C&&D?"partial":O,E),E&&E!==d){const U=o[o.indexOf(E)+1];U&&S(U)}else C&&R()});return{view:d,setView:S,focusedView:p,setFocusedView:g,nextView:w,previousView:b,defaultView:o.includes(r)?r:o[0],goToNextView:R,setValueAndGoToNextView:T}}function n2e(e,{disableFuture:t,maxDate:r,timezone:n}){const o=Wr();return y.useMemo(()=>{const a=o.date(void 0,n),i=o.startOfMonth(t&&o.isBefore(a,r)?a:r);return!o.isAfter(i,e)},[t,r,e,o,n])}function o2e(e,{disablePast:t,minDate:r,timezone:n}){const o=Wr();return y.useMemo(()=>{const a=o.date(void 0,n),i=o.startOfMonth(t&&o.isAfter(a,r)?a:r);return!o.isBefore(i,e)},[t,r,e,o,n])}function PP(e,t,r,n){const o=Wr(),a=t2e(e,o),i=y.useCallback(s=>{const l=e==null?null:r2e(e,s,!!t,o);r(l,n??"partial")},[t,e,r,n,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Qp=36,Kb=2,qb=320,a2e=280,Yb=336,d4=232,Wf=48,Xb=ce("div")({overflow:"hidden",width:qb,maxHeight:Yb,display:"flex",flexDirection:"column",margin:"0 auto"});function i2e(e){return Qe("MuiTimeClock",e)}Ze("MuiTimeClock",["root","arrowSwitcher"]);const Pd=220,Ws=36,Zp={x:Pd/2,y:Pd/2},f4={x:Zp.x,y:0},s2e=f4.x-Zp.x,l2e=f4.y-Zp.y,c2e=e=>e*(180/Math.PI),p4=(e,t,r)=>{const n=t-Zp.x,o=r-Zp.y,a=Math.atan2(s2e,l2e)-Math.atan2(n,o);let i=c2e(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=n**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},u2e=(e,t,r=1)=>{const n=r*6;let{value:o}=p4(n,e,t);return o=o*r%60,o},d2e=(e,t,r)=>{const{value:n,distance:o}=p4(30,e,t);let a=n||12;return r?a%=12:o<Pd/2-Ws&&(a+=12,a%=24),a};function f2e(e){return Qe("MuiClockPointer",e)}Ze("MuiClockPointer",["root","thumb"]);const p2e=["className","hasSelected","isInner","type","viewValue"],h2e=e=>{const{classes:t}=e;return Xe({root:["root"],thumb:["thumb"]},f2e,t)},m2e=ce("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),v2e=ce("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ws/2}px)`,border:`${(Ws-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function g2e(e){const t=Rr({props:e,name:"MuiClockPointer"}),{className:r,isInner:n,type:o,viewValue:a}=t,i=Zt(t,p2e),s=y.useRef(o);y.useEffect(()=>{s.current=o},[o]);const l=le({},t,{shouldAnimate:s.current!==o}),c=h2e(l),u=()=>{let f=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(f-=360),{height:Math.round((n?.26:.4)*Pd),transform:`rotateZ(${f}deg)`}};return v.jsx(m2e,le({style:u(),className:Fe(c.root,r),ownerState:l},i,{children:v.jsx(v2e,{ownerState:l,className:c.thumb})}))}function y2e(e){return Qe("MuiClock",e)}Ze("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const Ug=(e,t,r)=>{let n=t;return n=e.setHours(n,e.getHours(r)),n=e.setMinutes(n,e.getMinutes(r)),n=e.setSeconds(n,e.getSeconds(r)),n=e.setMilliseconds(n,e.getMilliseconds(r)),n},vp=({date:e,disableFuture:t,disablePast:r,maxDate:n,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=Ug(i,i.date(void 0,s),e);r&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(n,l)&&(n=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,n)&&(u&&(u=n),c=null);c||u;){if(c&&i.isAfter(c,n)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},b2e=(e,t)=>t==null||!e.isValid(t)?null:t,Ci=(e,t,r)=>t==null||!e.isValid(t)?r:t,w2e=(e,t,r)=>!e.isValid(t)&&t!=null&&!e.isValid(r)&&r!=null?!0:e.isEqual(t,r),$P=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const o=n[n.length-1];n.push(e.addMonths(o,1))}return n},RP=(e,t,r)=>r==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),zs=(e,t)=>{const r=e.setHours(e.date(),t==="am"?2:14);return e.format(r,"meridiem")},x2e=["year","month","day"],$d=e=>x2e.includes(e),c_=(e,{format:t,views:r},n)=>{if(t!=null)return t;const o=e.formats;return bs(r,["year"])?o.year:bs(r,["month"])?o.month:bs(r,["day"])?o.dayOfMonth:bs(r,["month","year"])?`${o.month} ${o.year}`:bs(r,["day","month"])?`${o.month} ${o.dayOfMonth}`:o.keyboardDate},S2e=(e,t)=>{const r=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(n=>e.addDays(r,n))},C2e=e=>{const{classes:t,meridiemMode:r}=e;return Xe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",r==="am"&&"selected"],pmButton:["pmButton",r==="pm"&&"selected"],meridiemText:["meridiemText"]},y2e,t)},T2e=ce("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),P2e=ce("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),$2e=ce("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),R2e=ce("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),k2e=ce("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),h4=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:Ws,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),I2e=ce(Vn,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>le({},h4(e,"am"),{position:"absolute",left:8})),E2e=ce(Vn,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>le({},h4(e,"pm"),{position:"absolute",right:8})),u_=ce(sr,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function O2e(e){const t=Rr({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:n,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:d,selectedId:f,type:h,viewValue:p,disabled:m=!1,readOnly:x,className:b}=t,w=t,g=Wr(),S=ka(),R=y.useRef(!1),T=C2e(w),k=l(p,h),O=!r&&h==="hours"&&(p<1||p>12),E=(K,te)=>{m||x||l(K,h)||d(K,te)},C=(K,te)=>{let{offsetX:oe,offsetY:Ie}=K;if(oe===void 0){const ke=K.target.getBoundingClientRect();oe=K.changedTouches[0].clientX-ke.left,Ie=K.changedTouches[0].clientY-ke.top}const Te=h==="seconds"||h==="minutes"?u2e(oe,Ie,u):d2e(oe,Ie,!!r);E(Te,te)},D=K=>{R.current=!0,C(K,"shallow")},B=K=>{R.current&&(C(K,"finish"),R.current=!1)},U=K=>{K.buttons>0&&C(K.nativeEvent,"shallow")},j=K=>{R.current&&(R.current=!1),C(K.nativeEvent,"finish")},N=y.useMemo(()=>h==="hours"?!0:p%5===0,[h,p]),V=h==="minutes"?u:1,ee=y.useRef(null);$n(()=>{o&&ee.current.focus()},[o]);const M=K=>{if(!R.current)switch(K.key){case"Home":E(0,"partial"),K.preventDefault();break;case"End":E(h==="minutes"?59:23,"partial"),K.preventDefault();break;case"ArrowUp":E(p+V,"partial"),K.preventDefault();break;case"ArrowDown":E(p-V,"partial"),K.preventDefault();break;case"PageUp":E(p+5,"partial"),K.preventDefault();break;case"PageDown":E(p-5,"partial"),K.preventDefault();break;case"Enter":case" ":E(p,"finish"),K.preventDefault();break}};return v.jsxs(T2e,{className:Fe(T.root,b),children:[v.jsxs(P2e,{className:T.clock,children:[v.jsx(R2e,{onTouchMove:D,onTouchStart:D,onTouchEnd:B,onMouseUp:j,onMouseMove:U,ownerState:{disabled:m},className:T.squareMask}),!k&&v.jsxs(y.Fragment,{children:[v.jsx(k2e,{className:T.pin}),i!=null&&v.jsx(g2e,{type:h,viewValue:p,isInner:O,hasSelected:N})]}),v.jsx($2e,{"aria-activedescendant":f,"aria-label":S.clockLabelText(h,i,g,i==null?null:g.format(i,"fullTime")),ref:ee,role:"listbox",onKeyDown:M,tabIndex:0,className:T.wrapper,children:a})]}),r&&n&&v.jsxs(y.Fragment,{children:[v.jsx(I2e,{onClick:x?void 0:()=>s("am"),disabled:m||c===null,ownerState:w,className:T.amButton,title:zs(g,"am"),children:v.jsx(u_,{variant:"caption",className:T.meridiemText,children:zs(g,"am")})}),v.jsx(E2e,{disabled:m||c===null,onClick:x?void 0:()=>s("pm"),ownerState:w,className:T.pmButton,title:zs(g,"pm"),children:v.jsx(u_,{variant:"caption",className:T.meridiemText,children:zs(g,"pm")})})]})]})}function _2e(e){return Qe("MuiClockNumber",e)}const Jm=Ze("MuiClockNumber",["root","selected","disabled"]),D2e=["className","disabled","index","inner","label","selected"],M2e=e=>{const{classes:t,selected:r,disabled:n}=e;return Xe({root:["root",r&&"selected",n&&"disabled"]},_2e,t)},A2e=ce("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Jm.disabled}`]:t.disabled},{[`&.${Jm.selected}`]:t.selected}]})(({theme:e})=>({height:Ws,width:Ws,position:"absolute",left:`calc((100% - ${Ws}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Jm.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Jm.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:le({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function m4(e){const t=Rr({props:e,name:"MuiClockNumber"}),{className:r,disabled:n,index:o,inner:a,label:i,selected:s}=t,l=Zt(t,D2e),c=t,u=M2e(c),d=o%12/12*Math.PI*2-Math.PI/2,f=(Pd-Ws-2)/2*(a?.65:1),h=Math.round(Math.cos(d)*f),p=Math.round(Math.sin(d)*f);return v.jsx(A2e,le({className:Fe(u.root,r),"aria-disabled":n?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${p+(Pd-Ws)/2}px`},ownerState:c},l,{children:i}))}const j2e=({ampm:e,value:t,getClockNumberText:r,isDisabled:n,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=d=>i===null?!1:e?d===12?i===12||i===0:i===d||i-12===d:i===d;for(let d=l;d<=c;d+=1){let f=d.toString();d===0&&(f="00");const h=!e&&(d===0||d>12);f=a.formatNumber(f);const p=u(d);s.push(v.jsx(m4,{id:p?o:void 0,index:d,inner:h,selected:p,disabled:n(d),label:f,"aria-label":r(f)},d))}return s},d_=({utils:e,value:t,isDisabled:r,getClockNumberText:n,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return v.jsx(m4,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:r(i),selected:c,"aria-label":n(s)},i)})},kP=({timezone:e,value:t,defaultValue:r,referenceDate:n,onChange:o,valueManager:a})=>{const i=Wr(),s=y.useRef(r),l=t??s.current??a.emptyValue,c=y.useMemo(()=>a.getTimezone(i,l),[i,a,l]),u=it(p=>c==null?p:a.setTimezone(i,c,p));let d;e?d=e:c?d=c:n?d=i.getTimezone(n):d="default";const f=y.useMemo(()=>a.setTimezone(i,d,l),[a,i,d,l]),h=it((p,...m)=>{const x=u(p);o==null||o(x,...m)});return{value:f,handleValueChange:h,timezone:d}},Xd=({name:e,timezone:t,value:r,defaultValue:n,referenceDate:o,onChange:a,valueManager:i})=>{const[s,l]=za({name:e,state:"value",controlled:r,default:n??i.emptyValue}),c=it((u,...d)=>{l(u),a==null||a(u,...d)});return kP({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},Hi={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},L2e=e=>Math.max(...e.map(t=>Hi[t.type]??1)),$f=(e,t,r)=>{if(t===Hi.year)return e.startOfYear(r);if(t===Hi.month)return e.startOfMonth(r);if(t===Hi.day)return e.startOfDay(r);let n=r;return t<Hi.minutes&&(n=e.setMinutes(n,0)),t<Hi.seconds&&(n=e.setSeconds(n,0)),t<Hi.milliseconds&&(n=e.setMilliseconds(n,0)),n},N2e=({props:e,utils:t,granularity:r,timezone:n,getTodayDate:o})=>{let a=o?o():$f(t,r,RP(t,n));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=$f(t,r,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=$f(t,r,e.maxDate));const i=Yh(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,a)&&(a=$f(t,r,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ug(t,a,e.minTime))),e.maxTime!=null&&i(a,e.maxTime)&&(a=$f(t,r,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ug(t,a,e.maxTime))),a},v4=(e,t)=>{const r=e.formatTokenMap[t];if(r==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof r=="string"?{type:r,contentType:r==="meridiem"?"letter":"digit",maxLength:void 0}:{type:r.sectionType,contentType:r.contentType,maxLength:r.maxLength}},F2e=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Qb=(e,t)=>{const r=[],n=e.date(void 0,"default"),o=e.startOfWeek(n),a=e.endOfWeek(n);let i=o;for(;e.isBefore(i,a);)r.push(i),i=e.addDays(i,1);return r.map(s=>e.formatByString(s,t))},g4=(e,t,r,n)=>{switch(r){case"month":return $P(e,e.date(void 0,t)).map(o=>e.formatByString(o,n));case"weekDay":return Qb(e,n);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,n))}default:return[]}},f_="s",B2e=["0","1","2","3","4","5","6","7","8","9"],z2e=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),f_)==="0"?B2e:Array.from({length:10}).map((n,o)=>e.formatByString(e.setSeconds(t,o),f_))},Vc=(e,t)=>{if(t[0]==="0")return e;const r=[];let n="";for(let o=0;o<e.length;o+=1){n+=e[o];const a=t.indexOf(n);a>-1&&(r.push(a.toString()),n="")}return r.join("")},IP=(e,t)=>t[0]==="0"?e:e.split("").map(r=>t[Number(r)]).join(""),p_=(e,t)=>{const r=Vc(e,t);return r!==" "&&!Number.isNaN(Number(r))},y4=(e,t)=>{let r=e;for(r=Number(r).toString();r.length<t;)r=`0${r}`;return r},b4=(e,t,r,n,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,t);return e.formatByString(i,o.format)}let a=t.toString();return o.hasLeadingZerosInInput&&(a=y4(a,o.maxLength)),IP(a,n)},V2e=(e,t,r,n,o,a,i,s)=>{const l=F2e(n),c=n==="Home",u=n==="End",d=r.value===""||c||u,f=()=>{const p=o[r.type]({currentDate:i,format:r.format,contentType:r.contentType}),m=g=>b4(e,g,p,a,r),x=r.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let w=parseInt(Vc(r.value,a),10)+l*x;if(d){if(r.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),r.format);l>0||c?w=p.minimum:w=p.maximum}return w%x!==0&&((l<0||c)&&(w+=x-(x+w)%x),(l>0||u)&&(w-=w%x)),w>p.maximum?m(p.minimum+(w-p.maximum-1)%(p.maximum-p.minimum+1)):w<p.minimum?m(p.maximum-(p.minimum-w-1)%(p.maximum-p.minimum+1)):m(w)},h=()=>{const p=g4(e,t,r.type,r.format);if(p.length===0)return r.value;if(d)return l>0||c?p[0]:p[p.length-1];const b=((p.indexOf(r.value)+l)%p.length+p.length)%p.length;return p[b]};return r.contentType==="digit"||r.contentType==="digit-with-letter"?f():h()},EP=(e,t,r)=>{let n=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(Vc(n,r)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`â¨${n}â©`),n},h_=(e,t,r,n)=>e.formatByString(e.parse(t,r),n),w4=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,x4=(e,t,r,n)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(r){case"year":return w4(e,n)?e.formatByString(e.setYear(o,1),n)==="0001":e.formatByString(e.setYear(o,2001),n)==="01";case"month":return e.formatByString(e.startOfYear(o),n).length>1;case"day":return e.formatByString(e.startOfMonth(o),n).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),n).length>1;case"hours":return e.formatByString(e.setHours(o,1),n).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),n).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),n).length>1;default:throw new Error("Invalid section type")}},U2e=(e,t,r)=>{const n=t.some(l=>l.type==="day"),o=[],a=[];for(let l=0;l<t.length;l+=1){const c=t[l];n&&c.type==="weekDay"||(o.push(c.format),a.push(EP(c,"non-input",r)))}const i=o.join(" "),s=a.join(" ");return e.parse(s,i)},H2e=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),W2e=(e,t,r)=>{const o=e.map(a=>{const i=EP(a,r?"input-rtl":"input-ltr",t);return`${a.startSeparator}${i}${a.endSeparator}`}).join("");return r?`â¦${o}â©`:o},G2e=(e,t,r)=>{const n=e.date(void 0,r),o=e.endOfYear(n),a=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:s}=$P(e,n).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:w4(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):i,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=Qb(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(a);return Vc(e.formatByString(e.endOfDay(n),l),t)!==c.toString()?{minimum:1,maximum:Number(Vc(e.formatByString(e.startOfDay(n),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},K2e=(e,t,r,n)=>{switch(t.type){case"year":return e.setYear(n,e.getYear(r));case"month":return e.setMonth(n,e.getMonth(r));case"weekDay":{const o=Qb(e,t.format),a=e.formatByString(r,t.format),i=o.indexOf(a),l=o.indexOf(t.value)-i;return e.addDays(r,l)}case"day":return e.setDate(n,e.getDate(r));case"meridiem":{const o=e.getHours(r)<12,a=e.getHours(n);return o&&a>=12?e.addHours(n,-12):!o&&a<12?e.addHours(n,12):n}case"hours":return e.setHours(n,e.getHours(r));case"minutes":return e.setMinutes(n,e.getMinutes(r));case"seconds":return e.setSeconds(n,e.getSeconds(r));default:return n}},m_={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},v_=(e,t,r,n,o)=>[...r].sort((a,i)=>m_[a.type]-m_[i.type]).reduce((a,i)=>!o||i.modified?K2e(e,i,t,a):a,n),q2e=()=>navigator.userAgent.toLowerCase().includes("android"),Y2e=(e,t)=>{const r={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;r[c]={leftIndex:u,rightIndex:d}}),{neighbors:r,startIndex:0,endIndex:e.length-1};const n={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,n[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:n[u-1],f=u===e.length-1?null:n[u+1];r[c]={leftIndex:d,rightIndex:f}}),{neighbors:r,startIndex:n[0],endIndex:n[e.length-1]}},CS=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const r=t.findIndex(n=>n.type===e);return r===-1?null:r}return e},X2e=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const r=t.parse(e.value,e.format);return r?t.format(r,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},Q2e=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const r=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return r?t.getHours(r)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const r=t.parse(e.value,e.format);return r?t.getMonth(r)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},Z2e=["value","referenceDate"],zo={emptyValue:null,getTodayValue:RP,getInitialReferenceValue:e=>{let{value:t,referenceDate:r}=e,n=Zt(e,Z2e);return t!=null&&n.utils.isValid(t)?t:r??N2e(n)},cleanValue:b2e,areValuesEqual:w2e,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,r)=>r==null?null:e.setTimezone(r,t)},J2e={updateReferenceValue:(e,t,r)=>t==null||!e.isValid(t)?r:t,getSectionsFromValue:(e,t,r,n)=>!e.isValid(t)&&!!r?r:n(t),getV7HiddenInputValueFromSections:H2e,getV6InputValueFromSections:W2e,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:r=>r,getNewValuesFromNewActiveDate:r=>({value:r,referenceValue:r==null||!e.isValid(r)?t.referenceValue:r})}),parseValueStr:(e,t,r)=>r(e.trim(),t)},OP=({value:e,referenceDate:t,utils:r,props:n,timezone:o})=>{const a=y.useMemo(()=>zo.getInitialReferenceValue({value:e,utils:r,props:n,referenceDate:t,granularity:Hi.day,timezone:o,getTodayDate:()=>RP(r,o,"date")}),[]);return e??a},eke=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],tke=e=>{const{classes:t}=e;return Xe({root:["root"],arrowSwitcher:["arrowSwitcher"]},i2e,t)},rke=ce(Xb,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),nke=ce(c4,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),oke=["hours","minutes"],ake=y.forwardRef(function(t,r){const n=Wr(),o=Rr({props:t,name:"MuiTimeClock"}),{ampm:a=n.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,slots:l,slotProps:c,value:u,defaultValue:d,referenceDate:f,disableIgnoringDatePartForTimeValidation:h=!1,maxTime:p,minTime:m,disableFuture:x,disablePast:b,minutesStep:w=1,shouldDisableTime:g,showViewSwitcher:S,onChange:R,view:T,views:k=oke,openTo:O,onViewChange:E,focusedView:C,onFocusedViewChange:D,className:B,disabled:U,readOnly:j,timezone:N}=o,V=Zt(o,eke),{value:ee,handleValueChange:M,timezone:K}=Xd({name:"TimeClock",timezone:N,value:u,defaultValue:d,referenceDate:f,onChange:R,valueManager:zo}),te=OP({value:ee,referenceDate:f,utils:n,props:o,timezone:K}),oe=ka(),Ie=Jc(K),{view:Te,setView:ke,previousView:pe,nextView:Pe,setValueAndGoToNextView:Ae}=Xh({view:T,views:k,openTo:O,onViewChange:E,onChange:M,focusedView:C,onFocusedViewChange:D}),{meridiemMode:ge,handleMeridiemChange:G}=PP(te,a,Ae),Y=y.useCallback((fe,xe)=>{const we=Yh(h,n),$e=xe==="hours"||xe==="minutes"&&k.includes("seconds"),ye=({start:Ge,end:bt})=>!(m&&we(m,bt)||p&&we(Ge,p)||x&&we(Ge,Ie)||b&&we(Ie,$e?bt:Ge)),De=(Ge,bt=1)=>{if(Ge%bt!==0)return!1;if(g)switch(xe){case"hours":return!g(n.setHours(te,Ge),"hours");case"minutes":return!g(n.setMinutes(te,Ge),"minutes");case"seconds":return!g(n.setSeconds(te,Ge),"seconds");default:return!1}return!0};switch(xe){case"hours":{const Ge=Xp(fe,ge,a),bt=n.setHours(te,Ge),Ke=n.setSeconds(n.setMinutes(bt,0),0),St=n.setSeconds(n.setMinutes(bt,59),59);return!ye({start:Ke,end:St})||!De(Ge)}case"minutes":{const Ge=n.setMinutes(te,fe),bt=n.setSeconds(Ge,0),Ke=n.setSeconds(Ge,59);return!ye({start:bt,end:Ke})||!De(fe,w)}case"seconds":{const Ge=n.setSeconds(te,fe);return!ye({start:Ge,end:Ge})||!De(fe)}default:throw new Error("not supported")}},[a,te,h,p,ge,m,w,g,n,x,b,Ie,k]),Q=Ta(),Z=y.useMemo(()=>{switch(Te){case"hours":{const fe=(xe,we)=>{const $e=Xp(xe,ge,a);Ae(n.setHours(te,$e),we,"hours")};return{onChange:fe,viewValue:n.getHours(te),children:j2e({value:ee,utils:n,ampm:a,onChange:fe,getClockNumberText:oe.hoursClockNumberText,isDisabled:xe=>U||Y(xe,"hours"),selectedId:Q})}}case"minutes":{const fe=n.getMinutes(te),xe=(we,$e)=>{Ae(n.setMinutes(te,we),$e,"minutes")};return{viewValue:fe,onChange:xe,children:d_({utils:n,value:fe,onChange:xe,getClockNumberText:oe.minutesClockNumberText,isDisabled:we=>U||Y(we,"minutes"),selectedId:Q})}}case"seconds":{const fe=n.getSeconds(te),xe=(we,$e)=>{Ae(n.setSeconds(te,we),$e,"seconds")};return{viewValue:fe,onChange:xe,children:d_({utils:n,value:fe,onChange:xe,getClockNumberText:oe.secondsClockNumberText,isDisabled:we=>U||Y(we,"seconds"),selectedId:Q})}}default:throw new Error("You must provide the type for ClockView")}},[Te,n,ee,a,oe.hoursClockNumberText,oe.minutesClockNumberText,oe.secondsClockNumberText,ge,Ae,te,Y,Q,U]),X=o,ae=tke(X);return v.jsxs(rke,le({ref:r,className:Fe(ae.root,B),ownerState:X},V,{children:[v.jsx(O2e,le({autoFocus:s??!!C,ampmInClock:i&&k.includes("hours"),value:ee,type:Te,ampm:a,minutesStep:w,isTimeDisabled:Y,meridiemMode:ge,handleMeridiemChange:G,selectedId:Q,disabled:U,readOnly:j},Z)),S&&v.jsx(nke,{className:ae.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>ke(pe),isPreviousDisabled:!pe,previousLabel:oe.openPreviousView,onGoToNext:()=>ke(Pe),isNextDisabled:!Pe,nextLabel:oe.openNextView,ownerState:X})]}))});function ike(e){return Qe("MuiDigitalClock",e)}const ske=Ze("MuiDigitalClock",["root","list","item"]);function lke(e,t){return Array.isArray(t)?t.every(r=>e.indexOf(r)!==-1):e.indexOf(t)!==-1}const cke=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},pa=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?pa(t.shadowRoot):t:null},Hg=e=>Array.from(e.children).indexOf(pa(document)),uke="@media (pointer: fine)",dke=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],fke=e=>{const{classes:t}=e;return Xe({root:["root"],list:["list"],item:["item"]},ike,t)},pke=ce(Xb,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:d4,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),hke=ce(RT,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),mke=ce(Bs,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Yt(e.palette.primary.main,e.palette.action.focusOpacity)}})),vke=y.forwardRef(function(t,r){const n=Wr(),o=y.useRef(null),a=mr(r,o),i=y.useRef(null),s=Rr({props:t,name:"MuiDigitalClock"}),{ampm:l=n.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:u,slots:d,slotProps:f,value:h,defaultValue:p,referenceDate:m,disableIgnoringDatePartForTimeValidation:x=!1,maxTime:b,minTime:w,disableFuture:g,disablePast:S,minutesStep:R=1,shouldDisableTime:T,onChange:k,view:O,openTo:E,onViewChange:C,focusedView:D,onFocusedViewChange:B,className:U,disabled:j,readOnly:N,views:V=["hours"],skipDisabled:ee=!1,timezone:M}=s,K=Zt(s,dke),{value:te,handleValueChange:oe,timezone:Ie}=Xd({name:"DigitalClock",timezone:M,value:h,defaultValue:p,referenceDate:m,onChange:k,valueManager:zo}),Te=ka(),ke=Jc(Ie),pe=y.useMemo(()=>le({},s,{alreadyRendered:!!o.current}),[s]),Pe=fke(pe),Ae=(d==null?void 0:d.digitalClockItem)??mke,ge=xr({elementType:Ae,externalSlotProps:f==null?void 0:f.digitalClockItem,ownerState:{},className:Pe.item}),G=OP({value:te,referenceDate:m,utils:n,props:s,timezone:Ie}),Y=it(we=>oe(we,"finish","hours")),{setValueAndGoToNextView:Q}=Xh({view:O,views:V,openTo:E,onViewChange:C,onChange:Y,focusedView:D,onFocusedViewChange:B}),Z=it(we=>{Q(we,"finish")});y.useEffect(()=>{if(o.current===null)return;const we=o.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!we)return;const $e=we.offsetTop;(u||D)&&we.focus(),o.current.scrollTop=$e-4});const X=y.useCallback(we=>{const $e=Yh(x,n),ye=()=>!(w&&$e(w,we)||b&&$e(we,b)||g&&$e(we,ke)||S&&$e(ke,we)),De=()=>n.getMinutes(we)%R!==0?!1:T?!T(we,"hours"):!0;return!ye()||!De()},[x,n,w,b,g,ke,S,R,T]),ae=y.useMemo(()=>{const we=[];let ye=n.startOfDay(G);for(;n.isSameDay(G,ye);)we.push(ye),ye=n.addMinutes(ye,c);return we},[G,c,n]),fe=ae.findIndex(we=>n.isEqual(we,G)),xe=we=>{switch(we.key){case"PageUp":{const $e=Hg(i.current)-5,ye=i.current.children,De=Math.max(0,$e),Ge=ye[De];Ge&&Ge.focus(),we.preventDefault();break}case"PageDown":{const $e=Hg(i.current)+5,ye=i.current.children,De=Math.min(ye.length-1,$e),Ge=ye[De];Ge&&Ge.focus(),we.preventDefault();break}}};return v.jsx(pke,le({ref:a,className:Fe(Pe.root,U),ownerState:pe},K,{children:v.jsx(hke,{ref:i,role:"listbox","aria-label":Te.timePickerToolbarTitle,className:Pe.list,onKeyDown:xe,children:ae.map((we,$e)=>{if(ee&&X(we))return null;const ye=n.isEqual(we,te),De=n.format(we,l?"fullTime12h":"fullTime24h"),Ge=fe===$e||fe===-1&&$e===0?0:-1;return v.jsx(Ae,le({onClick:()=>!N&&Z(we),selected:ye,disabled:j||X(we),disableRipple:N,role:"option","aria-disabled":N,"aria-selected":ye,tabIndex:Ge},ge,{children:De}),`${we.valueOf()}-${De}`)})})}))});function gke(e){return Qe("MuiMultiSectionDigitalClock",e)}const g_=Ze("MuiMultiSectionDigitalClock",["root"]);function yke(e){return Qe("MuiMultiSectionDigitalClockSection",e)}const bke=Ze("MuiMultiSectionDigitalClockSection",["root","item"]),wke=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],xke=e=>{const{classes:t}=e;return Xe({root:["root"],item:["item"]},yke,t)},Ske=ce(RT,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:d4,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),Cke=ce(Bs,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Wf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Yt(e.palette.primary.main,e.palette.action.focusOpacity)}})),Tke=y.forwardRef(function(t,r){const n=y.useRef(null),o=mr(r,n),a=y.useRef(null),i=Rr({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,disabled:u,readOnly:d,items:f,active:h,slots:p,slotProps:m,skipDisabled:x}=i,b=Zt(i,wke),w=y.useMemo(()=>le({},i,{alreadyRendered:!!n.current}),[i]),g=xke(w),S=(p==null?void 0:p.digitalClockSectionItem)??Cke;y.useEffect(()=>{if(n.current===null)return;const k=n.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(h&&s&&k&&k.focus(),!k||a.current===k)return;a.current=k;const O=k.offsetTop;n.current.scrollTop=O-4});const R=f.findIndex(k=>k.isFocused(k.value)),T=k=>{switch(k.key){case"PageUp":{const O=Hg(n.current)-5,E=n.current.children,C=Math.max(0,O),D=E[C];D&&D.focus(),k.preventDefault();break}case"PageDown":{const O=Hg(n.current)+5,E=n.current.children,C=Math.min(E.length-1,O),D=E[C];D&&D.focus(),k.preventDefault();break}}};return v.jsx(Ske,le({ref:o,className:Fe(g.root,c),ownerState:w,autoFocusItem:s&&h,role:"listbox",onKeyDown:T},b,{children:f.map((k,O)=>{var U;const E=(U=k.isDisabled)==null?void 0:U.call(k,k.value),C=u||E;if(x&&C)return null;const D=k.isSelected(k.value),B=R===O||R===-1&&O===0?0:-1;return v.jsx(S,le({onClick:()=>!d&&l(k.value),selected:D,disabled:C,disableRipple:d,role:"option","aria-disabled":d||C||void 0,"aria-label":k.ariaLabel,"aria-selected":D,tabIndex:B,className:g.item},m==null?void 0:m.digitalClockSectionItem,{children:k.label}),k.label)})}))}),Pke=({now:e,value:t,utils:r,ampm:n,isDisabled:o,resolveAriaLabel:a,timeStep:i,valueOrReferenceDate:s})=>{const l=t?r.getHours(t):null,c=[],u=(h,p)=>{const m=p??l;return m===null?!1:n?h===12?m===12||m===0:m===h||m-12===h:m===h},d=h=>u(h,r.getHours(s)),f=n?11:23;for(let h=0;h<=f;h+=i){let p=r.format(r.setHours(e,h),n?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=r.formatNumber(p),c.push({value:h,label:p,isSelected:u,isDisabled:o,isFocused:d,ariaLabel:m})}return c},y_=({value:e,utils:t,isDisabled:r,timeStep:n,resolveLabel:o,resolveAriaLabel:a,hasValue:i=!0})=>{const s=c=>e===null?!1:i&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/n)},(c,u)=>{const d=n*u;return{value:d,label:t.formatNumber(o(d)),isDisabled:r,isSelected:s,isFocused:l,ariaLabel:a(d.toString())}})]},$ke=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],Rke=e=>{const{classes:t}=e;return Xe({root:["root"]},gke,t)},kke=ce(Xb,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),Ike=y.forwardRef(function(t,r){const n=Wr(),o=lo(),a=Rr({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:i=n.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:f,referenceDate:h,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:m,minTime:x,disableFuture:b,disablePast:w,minutesStep:g=1,shouldDisableTime:S,onChange:R,view:T,views:k=["hours","minutes"],openTo:O,onViewChange:E,focusedView:C,onFocusedViewChange:D,className:B,disabled:U,readOnly:j,skipDisabled:N=!1,timezone:V}=a,ee=Zt(a,$ke),{value:M,handleValueChange:K,timezone:te}=Xd({name:"MultiSectionDigitalClock",timezone:V,value:d,defaultValue:f,referenceDate:h,onChange:R,valueManager:zo}),oe=ka(),Ie=Jc(te),Te=y.useMemo(()=>le({hours:1,minutes:5,seconds:5},s),[s]),ke=OP({value:M,referenceDate:h,utils:n,props:a,timezone:te}),pe=it((ye,De,Ge)=>K(ye,De,Ge)),Pe=y.useMemo(()=>!i||!k.includes("hours")||k.includes("meridiem")?k:[...k,"meridiem"],[i,k]),{view:Ae,setValueAndGoToNextView:ge,focusedView:G}=Xh({view:T,views:Pe,openTo:O,onViewChange:E,onChange:pe,focusedView:C,onFocusedViewChange:D}),Y=it(ye=>{ge(ye,"finish","meridiem")}),{meridiemMode:Q,handleMeridiemChange:Z}=PP(ke,i,Y,"finish"),X=y.useCallback((ye,De)=>{const Ge=Yh(p,n),bt=De==="hours"||De==="minutes"&&Pe.includes("seconds"),Ke=({start:Lt,end:qt})=>!(x&&Ge(x,qt)||m&&Ge(Lt,m)||b&&Ge(Lt,Ie)||w&&Ge(Ie,bt?qt:Lt)),St=(Lt,qt=1)=>{if(Lt%qt!==0)return!1;if(S)switch(De){case"hours":return!S(n.setHours(ke,Lt),"hours");case"minutes":return!S(n.setMinutes(ke,Lt),"minutes");case"seconds":return!S(n.setSeconds(ke,Lt),"seconds");default:return!1}return!0};switch(De){case"hours":{const Lt=Xp(ye,Q,i),qt=n.setHours(ke,Lt),wt=n.setSeconds(n.setMinutes(qt,0),0),lt=n.setSeconds(n.setMinutes(qt,59),59);return!Ke({start:wt,end:lt})||!St(Lt)}case"minutes":{const Lt=n.setMinutes(ke,ye),qt=n.setSeconds(Lt,0),wt=n.setSeconds(Lt,59);return!Ke({start:qt,end:wt})||!St(ye,g)}case"seconds":{const Lt=n.setSeconds(ke,ye);return!Ke({start:Lt,end:Lt})||!St(ye)}default:throw new Error("not supported")}},[i,ke,p,m,Q,x,g,S,n,b,w,Ie,Pe]),ae=y.useCallback(ye=>{switch(ye){case"hours":return{onChange:De=>{const Ge=Xp(De,Q,i);ge(n.setHours(ke,Ge),"finish","hours")},items:Pke({now:Ie,value:M,ampm:i,utils:n,isDisabled:De=>X(De,"hours"),timeStep:Te.hours,resolveAriaLabel:oe.hoursClockNumberText,valueOrReferenceDate:ke})};case"minutes":return{onChange:De=>{ge(n.setMinutes(ke,De),"finish","minutes")},items:y_({value:n.getMinutes(ke),utils:n,isDisabled:De=>X(De,"minutes"),resolveLabel:De=>n.format(n.setMinutes(Ie,De),"minutes"),timeStep:Te.minutes,hasValue:!!M,resolveAriaLabel:oe.minutesClockNumberText})};case"seconds":return{onChange:De=>{ge(n.setSeconds(ke,De),"finish","seconds")},items:y_({value:n.getSeconds(ke),utils:n,isDisabled:De=>X(De,"seconds"),resolveLabel:De=>n.format(n.setSeconds(Ie,De),"seconds"),timeStep:Te.seconds,hasValue:!!M,resolveAriaLabel:oe.secondsClockNumberText})};case"meridiem":{const De=zs(n,"am"),Ge=zs(n,"pm");return{onChange:Z,items:[{value:"am",label:De,isSelected:()=>!!M&&Q==="am",isFocused:()=>!!ke&&Q==="am",ariaLabel:De},{value:"pm",label:Ge,isSelected:()=>!!M&&Q==="pm",isFocused:()=>!!ke&&Q==="pm",ariaLabel:Ge}]}}default:throw new Error(`Unknown view: ${ye} found.`)}},[Ie,M,i,n,Te.hours,Te.minutes,Te.seconds,oe.hoursClockNumberText,oe.minutesClockNumberText,oe.secondsClockNumberText,Q,ge,ke,X,Z]),fe=y.useMemo(()=>{if(!o)return Pe;const ye=Pe.filter(De=>De!=="meridiem");return ye.reverse(),Pe.includes("meridiem")&&ye.push("meridiem"),ye},[o,Pe]),xe=y.useMemo(()=>Pe.reduce((ye,De)=>le({},ye,{[De]:ae(De)}),{}),[Pe,ae]),we=a,$e=Rke(we);return v.jsx(kke,le({ref:r,className:Fe($e.root,B),ownerState:we,role:"group"},ee,{children:fe.map(ye=>v.jsx(Tke,{items:xe[ye].items,onChange:xe[ye].onChange,active:Ae===ye,autoFocus:l??G===ye,disabled:U,readOnly:j,slots:c,slotProps:u,skipDisabled:N,"aria-label":oe.selectViewText(ye)},ye))}))});function Eke(e){return Qe("MuiPickersDay",e)}const oc=Ze("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Oke=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],_ke=e=>{const{selected:t,disableMargin:r,disableHighlightToday:n,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Xe({root:["root",t&&!c&&"selected",a&&"disabled",!r&&"dayWithMargin",!n&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Eke,l)},S4=({theme:e})=>le({},e.typography.caption,{width:Qp,height:Qp,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Yt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${oc.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${oc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${oc.disabled}:not(.${oc.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${oc.disabled}&.${oc.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Kb}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${oc.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),C4=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Dke=ce(Zi,{name:"MuiPickersDay",slot:"Root",overridesResolver:C4})(S4),Mke=ce("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:C4})(({theme:e})=>le({},S4({theme:e}),{opacity:0,pointerEvents:"none"})),Rf=()=>{},Ake=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:h=Rf,onBlur:p=Rf,onKeyDown:m=Rf,onMouseDown:x=Rf,onMouseEnter:b=Rf,outsideCurrentMonth:w,selected:g=!1,showDaysOutsideCurrentMonth:S=!1,children:R,today:T=!1}=n,k=Zt(n,Oke),O=le({},n,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:g,showDaysOutsideCurrentMonth:S,today:T}),E=_ke(O),C=Wr(),D=y.useRef(null),B=mr(D,r);$n(()=>{o&&!s&&!u&&!w&&D.current.focus()},[o,s,u,w]);const U=N=>{x(N),w&&N.preventDefault()},j=N=>{s||f(i),w&&N.currentTarget.focus(),d&&d(N)};return w&&!S?v.jsx(Mke,{className:Fe(E.root,E.hiddenDaySpacingFiller,a),ownerState:O,role:k.role}):v.jsx(Dke,le({className:Fe(E.root,a),ref:B,centerRipple:!0,disabled:s,tabIndex:g?0:-1,onKeyDown:N=>m(N,i),onFocus:N=>h(N,i),onBlur:N=>p(N,i),onMouseEnter:N=>b(N,i),onClick:j,onMouseDown:U},k,{ownerState:O,children:R||C.format(i,"dayOfMonth")}))}),jke=y.memo(Ake),_P=({props:e,value:t,timezone:r,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:i,disablePast:s,disableFuture:l}=e,c=n.utils.date(void 0,r),u=Ci(n.utils,e.minDate,n.defaultDates.minDate),d=Ci(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(l&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}};_P.valueManager=zo;const T4=({adapter:e,value:t,timezone:r,props:n})=>{if(t===null)return null;const{minTime:o,maxTime:a,minutesStep:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=n,d=e.utils.date(void 0,r),f=Yh(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&f(o,t)):return"minTime";case!!(a&&f(t,a)):return"maxTime";case!!(u&&e.utils.isAfter(t,d)):return"disableFuture";case!!(c&&e.utils.isBefore(t,d)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&e.utils.getMinutes(t)%i!==0):return"minutesStep";default:return null}};T4.valueManager=zo;const Zb=({adapter:e,value:t,timezone:r,props:n})=>{const o=_P({adapter:e,value:t,timezone:r,props:n});return o!==null?o:T4({adapter:e,value:t,timezone:r,props:n})};Zb.valueManager=zo;const P4=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],$4=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],R4=["minDateTime","maxDateTime"],Lke=[...P4,...$4,...R4],k4=e=>Lke.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{});function I4(e){const{props:t,validator:r,value:n,timezone:o,onError:a}=e,i=Zc(),s=y.useRef(r.valueManager.defaultErrorState),l=r({adapter:i,value:n,timezone:o,props:t}),c=r.valueManager.hasError(l);y.useEffect(()=>{a&&!r.valueManager.isSameError(l,s.current)&&a(l,n),s.current=l},[r,a,l,n]);const u=it(d=>r({adapter:i,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const Nke=({utils:e,format:t})=>{let r=10,n=t,o=e.expandFormat(t);for(;o!==n;)if(n=o,o=e.expandFormat(n),r-=1,r<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},Fke=({utils:e,expandedFormat:t})=>{const r=[],{start:n,end:o}=e.escapedCharacters,a=new RegExp(`(\\${n}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)r.push({start:i.index,end:a.lastIndex-1});return r},Bke=(e,t,r,n)=>{switch(r.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),n).length,format:n});case"month":return t.fieldMonthPlaceholder({contentType:r.contentType,format:n});case"day":return t.fieldDayPlaceholder({format:n});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:r.contentType,format:n});case"hours":return t.fieldHoursPlaceholder({format:n});case"minutes":return t.fieldMinutesPlaceholder({format:n});case"seconds":return t.fieldSecondsPlaceholder({format:n});case"meridiem":return t.fieldMeridiemPlaceholder({format:n});default:return n}},zke=({utils:e,date:t,shouldRespectLeadingZeros:r,localeText:n,localizedDigits:o,now:a,token:i,startSeparator:s})=>{if(i==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=v4(e,i),c=x4(e,l.contentType,l.type,i),u=r?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let f=d?e.formatByString(t,i):"",h=null;if(u)if(c)h=f===""?e.formatByString(a,i).length:f.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);h=l.maxLength,d&&(f=IP(y4(Vc(f,o),h),o))}return le({},l,{format:i,maxLength:h,value:f,placeholder:Bke(e,n,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},Vke=e=>{var h;const{utils:t,expandedFormat:r,escapedParts:n}=e,o=t.date(void 0),a=[];let i="";const s=Object.keys(t.formatTokenMap).sort((p,m)=>m.length-p.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=p=>n.find(m=>m.start<=p&&m.end>=p);let f=0;for(;f<r.length;){const p=d(f),m=p!=null,x=(h=l.exec(r.slice(f)))==null?void 0:h[1];if(!m&&x!=null&&c.test(x)){let b=x;for(;b.length>0;){const w=u.exec(b)[1];b=b.slice(w.length),a.push(zke(le({},e,{now:o,token:w,startSeparator:i}))),i=""}f+=x.length}else{const b=r[f];m&&(p==null?void 0:p.start)===f||(p==null?void 0:p.end)===f||(a.length===0?i+=b:a[a.length-1].endSeparator+=b),f+=1}}return a.length===0&&i.length>0&&a.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:i,endSeparator:"",modified:!1}),a},Uke=({isRtl:e,formatDensity:t,sections:r})=>r.map(n=>{const o=a=>{let i=a;return e&&i!==null&&i.includes(" ")&&(i=`â©${i}â¦`),t==="spacious"&&["/",".","-"].includes(i)&&(i=` ${i} `),i};return n.startSeparator=o(n.startSeparator),n.endSeparator=o(n.endSeparator),n}),b_=e=>{let t=Nke(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const r=Fke(le({},e,{expandedFormat:t})),n=Vke(le({},e,{expandedFormat:t,escapedParts:r}));return Uke(le({},e,{sections:n}))},Hke=e=>{const t=Wr(),r=ka(),n=Zc(),o=lo(),{valueManager:a,fieldValueManager:i,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:h,format:p,formatDensity:m="dense",selectedSections:x,onSelectedSectionsChange:b,shouldRespectLeadingZeros:w=!1,timezone:g,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:R,value:T,handleValueChange:k}=kP({timezone:g,value:u,defaultValue:d,referenceDate:f,onChange:h,valueManager:a}),O=y.useMemo(()=>z2e(t),[t]),E=y.useMemo(()=>G2e(t,O,R),[t,O,R]),C=y.useCallback((pe,Pe=null)=>i.getSectionsFromValue(t,pe,Pe,Ae=>b_({utils:t,localeText:r,localizedDigits:O,format:p,date:Ae,formatDensity:m,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:S,isRtl:o})),[i,p,r,O,o,w,t,m,S]),[D,B]=y.useState(()=>{const pe=C(T),Pe={sections:pe,value:T,referenceValue:a.emptyValue,tempValueStrAndroid:null},Ae=L2e(pe),ge=a.getInitialReferenceValue({referenceDate:f,value:T,utils:t,props:c,granularity:Ae,timezone:R});return le({},Pe,{referenceValue:ge})}),[U,j]=za({controlled:x,default:null,name:"useField",state:"selectedSections"}),N=pe=>{j(pe),b==null||b(pe)},V=y.useMemo(()=>CS(U,D.sections),[U,D.sections]),ee=V==="all"?0:V,M=({value:pe,referenceValue:Pe,sections:Ae})=>{if(B(G=>le({},G,{sections:Ae,value:pe,referenceValue:Pe,tempValueStrAndroid:null})),a.areValuesEqual(t,D.value,pe))return;const ge={validationError:l({adapter:n,value:pe,timezone:R,props:c})};k(pe,ge)},K=(pe,Pe)=>{const Ae=[...D.sections];return Ae[pe]=le({},Ae[pe],{value:Pe,modified:!0}),Ae},te=()=>{M({value:a.emptyValue,referenceValue:D.referenceValue,sections:C(a.emptyValue)})},oe=()=>{if(ee==null)return;const pe=D.sections[ee],Pe=i.getActiveDateManager(t,D,pe),ge=Pe.getSections(D.sections).filter(Z=>Z.value!=="").length===(pe.value===""?0:1),G=K(ee,""),Y=ge?null:t.getInvalidDate(),Q=Pe.getNewValuesFromNewActiveDate(Y);M(le({},Q,{sections:G}))},Ie=pe=>{const Pe=(G,Y)=>{const Q=t.parse(G,p);if(Q==null||!t.isValid(Q))return null;const Z=b_({utils:t,localeText:r,localizedDigits:O,format:p,date:Q,formatDensity:m,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:S,isRtl:o});return v_(t,Q,Z,Y,!1)},Ae=i.parseValueStr(pe,D.referenceValue,Pe),ge=i.updateReferenceValue(t,Ae,D.referenceValue);M({value:Ae,referenceValue:ge,sections:C(Ae,D.sections)})},Te=({activeSection:pe,newSectionValue:Pe,shouldGoToNextSection:Ae})=>{Ae&&ee<D.sections.length-1&&N(ee+1);const ge=i.getActiveDateManager(t,D,pe),G=K(ee,Pe),Y=ge.getSections(G),Q=U2e(t,Y,O);let Z,X;if(Q!=null&&t.isValid(Q)){const ae=v_(t,Q,Y,ge.referenceDate,!0);Z=ge.getNewValuesFromNewActiveDate(ae),X=!0}else Z=ge.getNewValuesFromNewActiveDate(Q),X=(Q!=null&&!t.isValid(Q))!=(ge.date!=null&&!t.isValid(ge.date));return X?M(le({},Z,{sections:G})):B(ae=>le({},ae,Z,{sections:G,tempValueStrAndroid:null}))},ke=pe=>B(Pe=>le({},Pe,{tempValueStrAndroid:pe}));return y.useEffect(()=>{const pe=C(D.value);B(Pe=>le({},Pe,{sections:pe}))},[p,t.locale,o]),y.useEffect(()=>{let pe;a.areValuesEqual(t,D.value,T)?pe=a.getTimezone(t,D.value)!==a.getTimezone(t,T):pe=!0,pe&&B(Pe=>le({},Pe,{value:T,referenceValue:i.updateReferenceValue(t,T,Pe.referenceValue),sections:C(T)}))},[T]),{state:D,activeSectionIndex:ee,parsedSelectedSections:V,setSelectedSections:N,clearValue:te,clearActiveSection:oe,updateSectionValue:Te,updateValueFromValueStr:Ie,setTempAndroidValueStr:ke,getSectionsFromValue:C,sectionsValueBoundaries:E,localizedDigits:O,timezone:R}},Wke=5e3,yu=e=>e.saveQuery!=null,Gke=({sections:e,updateSectionValue:t,sectionsValueBoundaries:r,localizedDigits:n,setTempAndroidValueStr:o,timezone:a})=>{const i=Wr(),[s,l]=y.useState(null),c=it(()=>l(null));y.useEffect(()=>{var p;s!=null&&((p=e[s.sectionIndex])==null?void 0:p.type)!==s.sectionType&&c()},[e,s,c]),y.useEffect(()=>{if(s!=null){const p=setTimeout(()=>c(),Wke);return()=>{clearTimeout(p)}}return()=>{}},[s,c]);const u=({keyPressed:p,sectionIndex:m},x,b)=>{const w=p.toLowerCase(),g=e[m];if(s!=null&&(!b||b(s.value))&&s.sectionIndex===m){const R=`${s.value}${w}`,T=x(R,g);if(!yu(T))return l({sectionIndex:m,value:R,sectionType:g.type}),T}const S=x(w,g);return yu(S)&&!S.saveQuery?(c(),null):(l({sectionIndex:m,value:w,sectionType:g.type}),yu(S)?null:S)},d=p=>{const m=(w,g,S)=>{const R=g.filter(T=>T.toLowerCase().startsWith(S));return R.length===0?{saveQuery:!1}:{sectionValue:R[0],shouldGoToNextSection:R.length===1}},x=(w,g,S,R)=>{const T=k=>g4(i,a,g.type,k);if(g.contentType==="letter")return m(g.format,T(g.format),w);if(S&&R!=null&&v4(i,S).contentType==="letter"){const k=T(S),O=m(S,k,w);return yu(O)?{saveQuery:!1}:le({},O,{sectionValue:R(O.sectionValue,k)})}return{saveQuery:!1}};return u(p,(w,g)=>{switch(g.type){case"month":{const S=R=>h_(i,R,i.formats.month,g.format);return x(w,g,i.formats.month,S)}case"weekDay":{const S=(R,T)=>T.indexOf(R).toString();return x(w,g,i.formats.weekday,S)}case"meridiem":return x(w,g);default:return{saveQuery:!1}}})},f=p=>{const m=(b,w)=>{const g=Vc(b,n),S=Number(g),R=r[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(S>R.maximum)return{saveQuery:!1};if(S<R.minimum)return{saveQuery:!0};const T=S*10>R.maximum||g.length===R.maximum.toString().length;return{sectionValue:b4(i,S,R,n,w),shouldGoToNextSection:T}};return u(p,(b,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return m(b,w);if(w.type==="month"){const g=x4(i,"digit","month","MM"),S=m(b,{type:w.type,format:"MM",hasLeadingZerosInFormat:g,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(yu(S))return S;const R=h_(i,S.sectionValue,"MM",w.format);return le({},S,{sectionValue:R})}if(w.type==="weekDay"){const g=m(b,w);if(yu(g))return g;const S=Qb(i,w.format)[Number(g.sectionValue)-1];return le({},g,{sectionValue:S})}return{saveQuery:!1}},b=>p_(b,n))};return{applyCharacterEditing:it(p=>{const m=e[p.sectionIndex],b=p_(p.keyPressed,n)?f(le({},p,{keyPressed:IP(p.keyPressed,n)})):d(p);if(b==null){o(null);return}t({activeSection:m,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})}),resetCharacterQuery:c}},Kke=e=>{const{internalProps:{disabled:t,readOnly:r=!1},forwardedProps:{sectionListRef:n,onBlur:o,onClick:a,onFocus:i,onInput:s,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:f,resetCharacterQuery:h,setSelectedSections:p,parsedSelectedSections:m,state:x,clearActiveSection:b,clearValue:w,updateSectionValue:g,updateValueFromValueStr:S,sectionOrder:R,areAllSectionsEmpty:T,sectionsValueBoundaries:k}=e,O=y.useRef(null),E=mr(n,O),C=ka(),D=Wr(),B=Ta(),[U,j]=y.useState(!1),N=y.useMemo(()=>({syncSelectionToDOM:()=>{if(!O.current)return;const X=document.getSelection();if(!X)return;if(m==null){X.rangeCount>0&&O.current.getRoot().contains(X.getRangeAt(0).startContainer)&&X.removeAllRanges(),U&&O.current.getRoot().blur();return}if(!O.current.getRoot().contains(pa(document)))return;const ae=new window.Range;let fe;m==="all"?fe=O.current.getRoot():x.sections[m].type==="empty"?fe=O.current.getSectionContainer(m):fe=O.current.getSectionContent(m),ae.selectNodeContents(fe),fe.focus(),X.removeAllRanges(),X.addRange(ae)},getActiveSectionIndexFromDOM:()=>{const X=pa(document);return!X||!O.current||!O.current.getRoot().contains(X)?null:O.current.getSectionIndexFromDOMElement(X)},focusField:(X=0)=>{if(!O.current)return;const ae=CS(X,x.sections);j(!0),O.current.getSectionContent(ae).focus()},setSelectedSections:X=>{if(!O.current)return;const ae=CS(X,x.sections);j((ae==="all"?0:ae)!==null),p(X)},isFieldFocused:()=>{const X=pa(document);return!!O.current&&O.current.getRoot().contains(X)}}),[m,p,x.sections,U]),V=it(X=>{if(!O.current)return;const ae=x.sections[X];O.current.getSectionContent(X).innerHTML=ae.value||ae.placeholder,N.syncSelectionToDOM()}),ee=it((X,...ae)=>{X.isDefaultPrevented()||!O.current||(j(!0),a==null||a(X,...ae),m==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){p(R.startIndex);return}let xe=0,we=0;for(;we<fe&&xe<x.sections.length;){const $e=x.sections[xe];xe+=1,we+=`${$e.startSeparator}${$e.value||$e.placeholder}${$e.endSeparator}`.length}p(xe-1)}):U?O.current.getRoot().contains(X.target)||p(R.startIndex):(j(!0),p(R.startIndex)))}),M=it(X=>{if(s==null||s(X),!O.current||m!=="all")return;const fe=X.target.textContent??"";O.current.getRoot().innerHTML=x.sections.map(xe=>`${xe.startSeparator}${xe.value||xe.placeholder}${xe.endSeparator}`).join(""),N.syncSelectionToDOM(),fe.length===0||fe.charCodeAt(0)===10?(h(),w(),p("all")):fe.length>1?S(fe):f({keyPressed:fe,sectionIndex:0})}),K=it(X=>{if(l==null||l(X),r||m!=="all"){X.preventDefault();return}const ae=X.clipboardData.getData("text");X.preventDefault(),h(),S(ae)}),te=it((...X)=>{if(i==null||i(...X),U||!O.current)return;j(!0),O.current.getSectionIndexFromDOMElement(pa(document))!=null||p(R.startIndex)}),oe=it((...X)=>{o==null||o(...X),setTimeout(()=>{if(!O.current)return;const ae=pa(document);!O.current.getRoot().contains(ae)&&(j(!1),p(null))})}),Ie=it(X=>ae=>{ae.isDefaultPrevented()||p(X)}),Te=it(X=>{X.preventDefault()}),ke=it(X=>()=>{p(X)}),pe=it(X=>{if(X.preventDefault(),r||t||typeof m!="number")return;const ae=x.sections[m],fe=X.clipboardData.getData("text"),xe=/^[a-zA-Z]+$/.test(fe),we=/^[0-9]+$/.test(fe),$e=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);ae.contentType==="letter"&&xe||ae.contentType==="digit"&&we||ae.contentType==="digit-with-letter"&&$e?(h(),g({activeSection:ae,newSectionValue:fe,shouldGoToNextSection:!0})):!xe&&!we&&(h(),S(fe))}),Pe=it(X=>{X.preventDefault(),X.dataTransfer.dropEffect="none"}),Ae=it(X=>{if(!O.current)return;const ae=X.target,fe=ae.textContent??"",xe=O.current.getSectionIndexFromDOMElement(ae),we=x.sections[xe];if(r||!O.current){V(xe);return}if(fe.length===0){if(we.value===""){V(xe);return}const $e=X.nativeEvent.inputType;if($e==="insertParagraph"||$e==="insertLineBreak"){V(xe);return}h(),b();return}f({keyPressed:fe,sectionIndex:xe}),V(xe)});$n(()=>{if(!(!U||!O.current)){if(m==="all")O.current.getRoot().focus();else if(typeof m=="number"){const X=O.current.getSectionContent(m);X&&X.focus()}}},[m,U]);const ge=y.useMemo(()=>x.sections.reduce((X,ae)=>(X[ae.type]=k[ae.type]({currentDate:null,contentType:ae.contentType,format:ae.format}),X),{}),[k,x.sections]),G=m==="all",Y=y.useMemo(()=>x.sections.map((X,ae)=>{const fe=!G&&!t&&!r;return{container:{"data-sectionindex":ae,onClick:Ie(ae)},content:{tabIndex:G||ae>0?-1:0,contentEditable:!G&&!t&&!r,role:"spinbutton",id:`${B}-${X.type}`,"aria-labelledby":`${B}-${X.type}`,"aria-readonly":r,"aria-valuenow":Q2e(X,D),"aria-valuemin":ge[X.type].minimum,"aria-valuemax":ge[X.type].maximum,"aria-valuetext":X.value?X2e(X,D):C.empty,"aria-label":C[X.type],"aria-disabled":t,spellCheck:fe?!1:void 0,autoCapitalize:fe?"off":void 0,autoCorrect:fe?"off":void 0,[parseInt(y.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:X.value||X.placeholder,onInput:Ae,onPaste:pe,onFocus:ke(ae),onDragOver:Pe,onMouseUp:Te,inputMode:X.contentType==="letter"?"text":"numeric"},before:{children:X.startSeparator},after:{children:X.endSeparator}}}),[x.sections,ke,pe,Pe,Ae,Ie,Te,t,r,G,C,D,ge,B]),Q=it(X=>{S(X.target.value)}),Z=y.useMemo(()=>T?"":d.getV7HiddenInputValueFromSections(x.sections),[T,x.sections,d]);return y.useEffect(()=>{if(O.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` +`));u&&O.current&&O.current.getSectionContent(R.startIndex).focus()},[]),{interactions:N,returnedValue:{autoFocus:u,readOnly:r,focused:c??U,sectionListRef:E,onBlur:oe,onClick:ee,onFocus:te,onInput:M,onPaste:K,enableAccessibleFieldDOMStructure:!0,elements:Y,tabIndex:m===0?-1:0,contentEditable:G,value:Z,onChange:Q,areAllSectionsEmpty:T}}},Vu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),qke=(e,t,r)=>{let n=0,o=r?1:0;const a=[];for(let i=0;i<e.length;i+=1){const s=e[i],l=EP(s,r?"input-rtl":"input-ltr",t),c=`${s.startSeparator}${l}${s.endSeparator}`,u=Vu(c).length,d=c.length,f=Vu(l),h=o+(f===""?0:l.indexOf(f[0]))+s.startSeparator.length,p=h+f.length;a.push(le({},s,{start:n,end:n+u,startInInput:h,endInInput:p})),n+=u,o+=d}return a},Yke=e=>{const t=lo(),r=y.useRef(),n=y.useRef(),{forwardedProps:{onFocus:o,onClick:a,onPaste:i,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:h,state:p,fieldValueManager:m,valueManager:x,applyCharacterEditing:b,resetCharacterQuery:w,updateSectionValue:g,updateValueFromValueStr:S,clearActiveSection:R,clearValue:T,setTempAndroidValueStr:k,setSelectedSections:O,getSectionsFromValue:E,areAllSectionsEmpty:C,localizedDigits:D}=e,B=y.useRef(null),U=mr(l,B),j=y.useMemo(()=>qke(p.sections,D,t),[p.sections,D,t]),N=y.useMemo(()=>({syncSelectionToDOM:()=>{if(!B.current)return;if(f==null){B.current.scrollLeft&&(B.current.scrollLeft=0);return}if(B.current!==pa(document))return;const Ae=B.current.scrollTop;if(f==="all")B.current.select();else{const ge=j[f],G=ge.type==="empty"?ge.startInInput-ge.startSeparator.length:ge.startInInput,Y=ge.type==="empty"?ge.endInInput+ge.endSeparator.length:ge.endInInput;(G!==B.current.selectionStart||Y!==B.current.selectionEnd)&&B.current===pa(document)&&B.current.setSelectionRange(G,Y),clearTimeout(n.current),n.current=setTimeout(()=>{B.current&&B.current===pa(document)&&B.current.selectionStart===B.current.selectionEnd&&(B.current.selectionStart!==G||B.current.selectionEnd!==Y)&&N.syncSelectionToDOM()})}B.current.scrollTop=Ae},getActiveSectionIndexFromDOM:()=>{const Ae=B.current.selectionStart??0,ge=B.current.selectionEnd??0;if(Ae===0&&ge===0)return null;const G=Ae<=j[0].startInInput?1:j.findIndex(Y=>Y.startInInput-Y.startSeparator.length>Ae);return G===-1?j.length-1:G-1},focusField:(Ae=0)=>{var ge;(ge=B.current)==null||ge.focus(),O(Ae)},setSelectedSections:Ae=>O(Ae),isFieldFocused:()=>B.current===pa(document)}),[B,f,j,O]),V=()=>{const Ae=B.current.selectionStart??0;let ge;Ae<=j[0].startInInput||Ae>=j[j.length-1].endInInput?ge=1:ge=j.findIndex(Y=>Y.startInInput-Y.startSeparator.length>Ae);const G=ge===-1?j.length-1:ge-1;O(G)},ee=it((...Ae)=>{o==null||o(...Ae);const ge=B.current;clearTimeout(r.current),r.current=setTimeout(()=>{!ge||ge!==B.current||h==null&&(ge.value.length&&Number(ge.selectionEnd)-Number(ge.selectionStart)===ge.value.length?O("all"):V())})}),M=it((Ae,...ge)=>{Ae.isDefaultPrevented()||(a==null||a(Ae,...ge),V())}),K=it(Ae=>{if(i==null||i(Ae),Ae.preventDefault(),u||d)return;const ge=Ae.clipboardData.getData("text");if(typeof f=="number"){const G=p.sections[f],Y=/^[a-zA-Z]+$/.test(ge),Q=/^[0-9]+$/.test(ge),Z=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ge);if(G.contentType==="letter"&&Y||G.contentType==="digit"&&Q||G.contentType==="digit-with-letter"&&Z){w(),g({activeSection:G,newSectionValue:ge,shouldGoToNextSection:!0});return}if(Y||Q)return}w(),S(ge)}),te=it((...Ae)=>{s==null||s(...Ae),O(null)}),oe=it(Ae=>{if(u)return;const ge=Ae.target.value;if(ge===""){w(),T();return}const G=Ae.nativeEvent.data,Y=G&&G.length>1,Q=Y?G:ge,Z=Vu(Q);if(h==null||Y){S(Y?G:Z);return}let X;if(f==="all"&&Z.length===1)X=Z;else{const ae=Vu(m.getV6InputValueFromSections(j,D,t));let fe=-1,xe=-1;for(let De=0;De<ae.length;De+=1)fe===-1&&ae[De]!==Z[De]&&(fe=De),xe===-1&&ae[ae.length-De-1]!==Z[Z.length-De-1]&&(xe=De);const we=j[h];if(fe<we.start||ae.length-xe-1>we.end)return;const ye=Z.length-ae.length+we.end-Vu(we.endSeparator||"").length;X=Z.slice(we.start+Vu(we.startSeparator||"").length,ye)}if(X.length===0){q2e()&&k(Q),w(),R();return}b({keyPressed:X,sectionIndex:h})}),Ie=y.useMemo(()=>c!==void 0?c:m.getV6InputValueFromSections(E(x.emptyValue),D,t),[c,m,E,x.emptyValue,D,t]),Te=y.useMemo(()=>p.tempValueStrAndroid??m.getV6InputValueFromSections(p.sections,D,t),[p.sections,m,p.tempValueStrAndroid,D,t]);y.useEffect(()=>(B.current&&B.current===pa(document)&&O("all"),()=>{clearTimeout(r.current),clearTimeout(n.current)}),[]);const ke=y.useMemo(()=>h==null||p.sections[h].contentType==="letter"?"text":"numeric",[h,p.sections]),Pe=!(B.current&&B.current===pa(document))&&C;return{interactions:N,returnedValue:{readOnly:u,onBlur:te,onClick:M,onFocus:ee,onPaste:K,inputRef:U,enableAccessibleFieldDOMStructure:!1,placeholder:Ie,inputMode:ke,autoComplete:"off",value:Pe?"":Te,onChange:oe}}},Xke=e=>{const t=Wr(),{internalProps:r,internalProps:{unstableFieldRef:n,minutesStep:o,enableAccessibleFieldDOMStructure:a=!1,disabled:i=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:f,valueManager:h,validator:p}=e,m=lo(),x=Hke(e),{state:b,activeSectionIndex:w,parsedSelectedSections:g,setSelectedSections:S,clearValue:R,clearActiveSection:T,updateSectionValue:k,setTempAndroidValueStr:O,sectionsValueBoundaries:E,localizedDigits:C,timezone:D}=x,B=Gke({sections:b.sections,updateSectionValue:k,sectionsValueBoundaries:E,localizedDigits:C,setTempAndroidValueStr:O,timezone:D}),{resetCharacterQuery:U}=B,j=h.areValuesEqual(t,b.value,h.emptyValue),N=a?Kke:Yke,V=y.useMemo(()=>Y2e(b.sections,m&&!a),[b.sections,m,a]),{returnedValue:ee,interactions:M}=N(le({},e,x,B,{areAllSectionsEmpty:j,sectionOrder:V})),K=it(pe=>{if(l==null||l(pe),!i)switch(!0){case((pe.ctrlKey||pe.metaKey)&&String.fromCharCode(pe.keyCode)==="A"&&!pe.shiftKey&&!pe.altKey):{pe.preventDefault(),S("all");break}case pe.key==="ArrowRight":{if(pe.preventDefault(),g==null)S(V.startIndex);else if(g==="all")S(V.endIndex);else{const Pe=V.neighbors[g].rightIndex;Pe!==null&&S(Pe)}break}case pe.key==="ArrowLeft":{if(pe.preventDefault(),g==null)S(V.endIndex);else if(g==="all")S(V.startIndex);else{const Pe=V.neighbors[g].leftIndex;Pe!==null&&S(Pe)}break}case pe.key==="Delete":{if(pe.preventDefault(),s)break;g==null||g==="all"?R():T(),U();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(pe.key):{if(pe.preventDefault(),s||w==null)break;const Pe=b.sections[w],Ae=f.getActiveDateManager(t,b,Pe),ge=V2e(t,D,Pe,pe.key,E,C,Ae.date,{minutesStep:o});k({activeSection:Pe,newSectionValue:ge,shouldGoToNextSection:!1});break}}});$n(()=>{M.syncSelectionToDOM()});const{hasValidationError:te}=I4({props:r,validator:p,timezone:D,value:b.value,onError:r.onError}),oe=y.useMemo(()=>c!==void 0?c:te,[te,c]);y.useEffect(()=>{!oe&&w==null&&U()},[b.referenceValue,w,oe]),y.useEffect(()=>{b.tempValueStrAndroid!=null&&w!=null&&(U(),T())},[b.sections]),y.useImperativeHandle(n,()=>({getSections:()=>b.sections,getActiveSectionIndex:M.getActiveSectionIndexFromDOM,setSelectedSections:M.setSelectedSections,focusField:M.focusField,isFieldFocused:M.isFieldFocused}));const Ie=it((pe,...Pe)=>{pe.preventDefault(),d==null||d(pe,...Pe),R(),M.isFieldFocused()?S(V.startIndex):M.focusField(0)}),Te={onKeyDown:K,onClear:Ie,error:oe,clearable:!!(u&&!j&&!s&&!i)},ke={disabled:i,readOnly:s};return le({},e.forwardedProps,Te,ke,ee)},Qke=["clearable","onClear","InputProps","sx","slots","slotProps"],Zke=["ownerState"],Jke=e=>{const t=ka(),{clearable:r,onClear:n,InputProps:o,sx:a,slots:i,slotProps:s}=e,l=Zt(e,Qke),c=(i==null?void 0:i.clearButton)??Vn,u=xr({elementType:c,externalSlotProps:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Zt(u,Zke),f=(i==null?void 0:i.clearIcon)??GRe,h=xr({elementType:f,externalSlotProps:s==null?void 0:s.clearIcon,ownerState:{}});return le({},l,{InputProps:le({},o,{endAdornment:v.jsxs(y.Fragment,{children:[r&&v.jsx(oL,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:v.jsx(c,le({},d,{onClick:n,children:v.jsx(f,le({fontSize:"small"},h))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a)?a:[a]]})},eIe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],tIe=(e,t)=>y.useMemo(()=>{const r=le({},e),n={},o=a=>{r.hasOwnProperty(a)&&(n[a]=r[a],delete r[a])};return eIe.forEach(o),P4.forEach(o),$4.forEach(o),R4.forEach(o),{forwardedProps:r,internalProps:n}},[e,t]),rIe=y.createContext(null);function E4(e){const{contextValue:t,localeText:r,children:n}=e;return v.jsx(rIe.Provider,{value:t,children:v.jsx(LRe,{localeText:r,children:n})})}const nIe=e=>{const t=Wr(),r=qh(),o=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return le({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??o,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Ci(t,e.minDateTime??e.minDate,r.minDate),maxDate:Ci(t,e.maxDateTime??e.maxDate,r.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})};function oIe(e){return Qe("MuiPickersTextField",e)}Ze("MuiPickersTextField",["root","focused","disabled","error","required"]);function aIe(e){return Qe("MuiPickersInputBase",e)}const Qu=Ze("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function iIe(e){return Qe("MuiPickersSectionList",e)}const kf=Ze("MuiPickersSectionList",["root","section","sectionContent"]),sIe=["slots","slotProps","elements","sectionListRef"],O4=ce("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),_4=ce("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),D4=ce("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),M4=ce("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),lIe=e=>{const{classes:t}=e;return Xe({root:["root"],section:["section"],sectionContent:["sectionContent"]},iIe,t)};function cIe(e){const{slots:t,slotProps:r,element:n,classes:o}=e,a=(t==null?void 0:t.section)??_4,i=xr({elementType:a,externalSlotProps:r==null?void 0:r.section,externalForwardedProps:n.container,className:o.section,ownerState:{}}),s=(t==null?void 0:t.sectionContent)??M4,l=xr({elementType:s,externalSlotProps:r==null?void 0:r.sectionContent,externalForwardedProps:n.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??D4,u=xr({elementType:c,externalSlotProps:r==null?void 0:r.sectionSeparator,externalForwardedProps:n.before,ownerState:{position:"before"}}),d=xr({elementType:c,externalSlotProps:r==null?void 0:r.sectionSeparator,externalForwardedProps:n.after,ownerState:{position:"after"}});return v.jsxs(a,le({},i,{children:[v.jsx(c,le({},u)),v.jsx(s,le({},l)),v.jsx(c,le({},d))]}))}const uIe=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:a,elements:i,sectionListRef:s}=n,l=Zt(n,sIe),c=lIe(n),u=y.useRef(null),d=mr(r,u),f=m=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return u.current};y.useImperativeHandle(s,()=>({getRoot(){return f("getRoot")},getSectionContainer(m){return f("getSectionContainer").querySelector(`.${kf.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return f("getSectionContent").querySelector(`.${kf.section}[data-sectionindex="${m}"] .${kf.sectionContent}`)},getSectionIndexFromDOMElement(m){const x=f("getSectionIndexFromDOMElement");if(m==null||!x.contains(m))return null;let b=null;return m.classList.contains(kf.section)?b=m:m.classList.contains(kf.sectionContent)&&(b=m.parentElement),b==null?null:Number(b.dataset.sectionindex)}}));const h=(o==null?void 0:o.root)??O4,p=xr({elementType:h,externalSlotProps:a==null?void 0:a.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return v.jsx(h,le({},p,{children:p.contentEditable?i.map(({content:m,before:x,after:b})=>`${x.children}${m.children}${b.children}`).join(""):v.jsx(y.Fragment,{children:i.map((m,x)=>v.jsx(cIe,{slots:o,slotProps:a,element:m,classes:c},x))})}))}),dIe=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],fIe=e=>Math.round(e*1e5)/1e5,Jb=ce("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>le({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${fIe(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),DP=ce(O4,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:r,filled:n,label:o})=>!t&&!r&&!n&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),pIe=ce(_4,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),hIe=ce(M4,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),mIe=ce(D4,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),vIe=ce("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(le({},o7)),gIe=e=>{const{focused:t,disabled:r,error:n,classes:o,fullWidth:a,readOnly:i,color:s,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!r&&"focused",r&&"disabled",i&&"readOnly",n&&"error",a&&"fullWidth",`color${Le(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Xe(d,aIe,o)},MP=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:a,value:i,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:h,contentEditable:p,tabIndex:m,onInput:x,onPaste:b,onKeyDown:w,name:g,readOnly:S,inputProps:R,inputRef:T,sectionListRef:k}=n,O=Zt(n,dIe),E=y.useRef(null),C=mr(r,E),D=mr(R==null?void 0:R.ref,T),B=lo(),U=Vo();if(!U)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const j=te=>{var oe;if(U.disabled){te.stopPropagation();return}(oe=U.onFocus)==null||oe.call(U,te)};y.useEffect(()=>{U&&U.setAdornedStart(!!u)},[U,u]),y.useEffect(()=>{U&&(a?U.onEmpty():U.onFilled())},[U,a]);const N=le({},n,U,{isRtl:B}),V=gIe(N),ee=(f==null?void 0:f.root)||Jb,M=xr({elementType:ee,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:O,additionalProps:{"aria-invalid":U.error,ref:C},className:V.root,ownerState:N}),K=(f==null?void 0:f.input)||DP;return v.jsxs(ee,le({},M,{children:[u,v.jsx(uIe,{sectionListRef:k,elements:o,contentEditable:p,tabIndex:m,className:V.sectionsContainer,onFocus:j,onBlur:U.onBlur,onInput:x,onPaste:b,onKeyDown:w,slots:{root:K,section:pIe,sectionContent:hIe,sectionSeparator:mIe},slotProps:{root:{ownerState:N},sectionContent:{className:Qu.sectionContent},sectionSeparator:({position:te})=>({className:te==="before"?Qu.sectionBefore:Qu.sectionAfter})}}),c,d?d(le({},U)):null,v.jsx(vIe,le({name:g,className:V.input,value:i,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:U.required,disabled:U.disabled},R,{ref:D}))]}))});function yIe(e){return Qe("MuiPickersOutlinedInput",e)}const Li=le({},Qu,Ze("MuiPickersOutlinedInput",["root","notchedOutline","input"])),bIe=["children","className","label","notched","shrink"],wIe=ce("fieldset",{name:"MuiPickersOutlinedInput",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{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),w_=ce("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),xIe=ce("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function SIe(e){const{className:t,label:r}=e,n=Zt(e,bIe),o=r!=null&&r!=="",a=le({},e,{withLabel:o});return v.jsx(wIe,le({"aria-hidden":!0,className:t},n,{ownerState:a,children:v.jsx(xIe,{ownerState:a,children:o?v.jsx(w_,{children:r}):v.jsx(w_,{className:"notranslate",children:"​"})})}))}const CIe=["label","autoFocus","ownerState","notched"],TIe=ce(Jb,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Li.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Li.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Li.focused} .${Li.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Li.disabled}`]:{[`& .${Li.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Li.error} .${Li.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(r=>{var n;return((n=(e.vars??e).palette[r])==null?void 0:n.main)??!1}).map(r=>({props:{color:r},style:{[`&.${Li.focused}:not(.${Li.error}) .${Li.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}}))}}),PIe=ce(DP,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),$Ie=e=>{const{classes:t}=e,n=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yIe,t);return le({},t,n)},A4=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:a,notched:i}=n,s=Zt(n,CIe),l=Vo(),c=le({},n,a,l,{color:(l==null?void 0:l.color)||"primary"}),u=$Ie(c);return v.jsx(MP,le({slots:{root:TIe,input:PIe},renderSuffix:d=>v.jsx(SIe,{shrink:!!(i||d.adornedStart||d.focused||d.filled),notched:!!(i||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?v.jsxs(y.Fragment,{children:[o," ","*"]}):o,ownerState:c})},s,{label:o,classes:u,ref:r}))});A4.muiName="Input";function RIe(e){return Qe("MuiPickersFilledInput",e)}const ac=le({},Qu,Ze("MuiPickersFilledInput",["root","underline","input"])),kIe=["label","autoFocus","disableUnderline","ownerState"],IIe=ce(Jb,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>gv(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${ac.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${ac.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[...Object.keys((e.vars??e).palette).filter(i=>(e.vars??e).palette[i].main).map(i=>{var s;return{props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[i])==null?void 0:s.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{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"},[`&.${ac.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ac.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`: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(.${ac.disabled}, .${ac.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ac.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),EIe=ce(DP,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),OIe=e=>{const{classes:t,disableUnderline:r}=e,o=Xe({root:["root",!r&&"underline"],input:["input"]},RIe,t);return le({},t,o)},j4=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:a=!1,ownerState:i}=n,s=Zt(n,kIe),l=Vo(),c=le({},n,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=OIe(c);return v.jsx(MP,le({slots:{root:IIe,input:EIe},slotProps:{root:{disableUnderline:a}}},s,{label:o,classes:u,ref:r}))});j4.muiName="Input";function _Ie(e){return Qe("MuiPickersFilledInput",e)}const If=le({},Qu,Ze("MuiPickersInput",["root","input"])),DIe=["label","autoFocus","disableUnderline","ownerState"],MIe=ce(Jb,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{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})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n].main).map(n=>({props:{color:n},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${If.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${If.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${If.disabled}, .${If.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${If.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),AIe=e=>{const{classes:t,disableUnderline:r}=e,o=Xe({root:["root",!r&&"underline"],input:["input"]},_Ie,t);return le({},t,o)},L4=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:a=!1,ownerState:i}=n,s=Zt(n,DIe),l=Vo(),c=le({},n,i,l,{disableUnderline:a,color:(l==null?void 0:l.color)||"primary"}),u=AIe(c);return v.jsx(MP,le({slots:{root:MIe}},s,{label:o,classes:u,ref:r}))});L4.muiName="Input";const jIe=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],LIe={standard:L4,filled:j4,outlined:A4},NIe=ce(Fc,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FIe=e=>{const{focused:t,disabled:r,classes:n,required:o}=e;return Xe({root:["root",t&&!r&&"focused",r&&"disabled",o&&"required"]},oIe,n)},BIe=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:a,className:i,color:s="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:h,inputRef:p,sectionListRef:m,elements:x,areAllSectionsEmpty:b,onClick:w,onKeyDown:g,onKeyUp:S,onPaste:R,onInput:T,endAdornment:k,startAdornment:O,tabIndex:E,contentEditable:C,focused:D,value:B,onChange:U,fullWidth:j,id:N,name:V,helperText:ee,FormHelperTextProps:M,label:K,InputLabelProps:te}=n,oe=Zt(n,jIe),Ie=y.useRef(null),Te=mr(r,Ie),ke=Ta(N),pe=ee&&ke?`${ke}-helper-text`:void 0,Pe=K&&ke?`${ke}-label`:void 0,Ae=le({},n,{color:s,disabled:l,error:c,focused:D,required:d,variant:u}),ge=FIe(Ae),G=LIe[u];return v.jsxs(NIe,le({className:Fe(ge.root,i),ref:Te,focused:D,onFocus:o,onBlur:a,disabled:l,variant:u,error:c,color:s,fullWidth:j,required:d,ownerState:Ae},oe,{children:[v.jsx(wh,le({htmlFor:ke,id:Pe},te,{children:K})),v.jsx(G,le({elements:x,areAllSectionsEmpty:b,onClick:w,onKeyDown:g,onKeyUp:S,onInput:T,onPaste:R,endAdornment:k,startAdornment:O,tabIndex:E,contentEditable:C,value:B,onChange:U,id:ke,fullWidth:j,inputProps:h,inputRef:p,sectionListRef:m,label:K,name:V,role:"group","aria-labelledby":Pe},f)),ee&&v.jsx(eL,le({id:pe},M,{children:ee}))]}))}),zIe=["enableAccessibleFieldDOMStructure"],VIe=["InputProps","readOnly"],UIe=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],HIe=e=>{let{enableAccessibleFieldDOMStructure:t}=e,r=Zt(e,zIe);if(t){const{InputProps:d,readOnly:f}=r,h=Zt(r,VIe);return le({},h,{InputProps:le({},d??{},{readOnly:f})})}const{onPaste:n,onKeyDown:o,inputMode:a,readOnly:i,InputProps:s,inputProps:l,inputRef:c}=r,u=Zt(r,UIe);return le({},u,{InputProps:le({},s??{},{readOnly:i}),inputProps:le({},l??{},{inputMode:a,onPaste:n,onKeyDown:o,ref:c})})},WIe=e=>{const t=nIe(e),{forwardedProps:r,internalProps:n}=tIe(t,"date-time");return Xke({forwardedProps:r,internalProps:n,valueManager:zo,fieldValueManager:J2e,validator:Zb,valueType:"date-time"})},GIe=["slots","slotProps","InputProps","inputProps"],N4=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiDateTimeField"}),{slots:o,slotProps:a,InputProps:i,inputProps:s}=n,l=Zt(n,GIe),c=n,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?BIe:Pg),d=xr({elementType:u,externalSlotProps:a==null?void 0:a.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:r}});d.inputProps=le({},s,d.inputProps),d.InputProps=le({},i,d.InputProps);const f=WIe(d),h=HIe(f),p=Jke(le({},h,{slots:o,slotProps:a}));return v.jsx(u,le({},p))}),F4=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:r,minDate:n,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=Zc();return y.useCallback(c=>_P({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:r,minDate:n,maxDate:o,disableFuture:a,disablePast:i}})!==null,[l,e,t,r,n,o,a,i,s])},KIe=(e,t,r)=>(n,o)=>{switch(o.type){case"changeMonth":return le({},n,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const a=o.newTimezone;if(r.getTimezone(n.currentMonth)===a)return n;let i=r.setTimezone(n.currentMonth,a);return r.getMonth(i)!==r.getMonth(n.currentMonth)&&(i=r.setMonth(i,r.getMonth(n.currentMonth))),le({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return le({},n,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(n.focusedDay!=null&&o.focusedDay!=null&&r.isSameDay(o.focusedDay,n.focusedDay))return n;const a=o.focusedDay!=null&&!t&&!r.isSameMonth(n.currentMonth,o.focusedDay);return le({},n,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?r.startOfMonth(o.focusedDay):n.currentMonth,slideDirection:o.focusedDay!=null&&r.isAfterDay(o.focusedDay,n.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},qIe=e=>{const{value:t,referenceDate:r,disableFuture:n,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:i,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,f=Wr(),h=y.useRef(KIe(!!c,a,f)).current,p=y.useMemo(()=>zo.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:r,granularity:Hi.day}),[r,d]),[m,x]=y.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:p,currentMonth:f.startOfMonth(p),slideDirection:"left"});y.useEffect(()=>{x({type:"changeMonthTimezone",newTimezone:f.getTimezone(p)})},[p,f]);const b=y.useCallback(T=>{x(le({type:"changeMonth"},T)),l&&l(T.newMonth)},[l]),w=y.useCallback(T=>{const k=T;f.isSameMonth(k,m.currentMonth)||b({newMonth:f.startOfMonth(k),direction:f.isAfterDay(k,m.currentMonth)?"left":"right"})},[m.currentMonth,b,f]),g=F4({shouldDisableDate:u,minDate:s,maxDate:i,disableFuture:n,disablePast:o,timezone:d}),S=y.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]),R=it((T,k)=>{g(T)||x({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:k})});return{referenceDate:p,calendarState:m,changeMonth:w,changeFocusedDay:R,isDateDisabled:g,onMonthSwitchingAnimationEnd:S,handleChangeMonth:b}},YIe=e=>Qe("MuiPickersFadeTransitionGroup",e);Ze("MuiPickersFadeTransitionGroup",["root"]);const XIe=e=>{const{classes:t}=e;return Xe({root:["root"]},YIe,t)},QIe=ce(vh,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function B4(e){const t=Rr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:n,reduceAnimations:o,transKey:a}=t,i=XIe(t),s=na();return o?r:v.jsx(QIe,{className:Fe(i.root,n),children:v.jsx(Ld,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:r},a)})}const ZIe=e=>Qe("MuiPickersSlideTransition",e),ai=Ze("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),JIe=["children","className","reduceAnimations","slideDirection","transKey","classes"],eEe=e=>{const{classes:t,slideDirection:r}=e,n={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${r}`],exitActive:[`slideExitActiveLeft-${r}`]};return Xe(n,ZIe,t)},tEe=ce(vh,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ai["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ai["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ai.slideEnterActive}`]:t.slideEnterActive},{[`.${ai.slideExit}`]:t.slideExit},{[`.${ai["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ai["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ai["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ai["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ai.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ai.slideExit}`]:{transform:"translate(0%)"},[`& .${ai["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ai["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function rEe(e){const t=Rr({props:e,name:"MuiPickersSlideTransition"}),{children:r,className:n,reduceAnimations:o,transKey:a}=t,i=Zt(t,JIe),s=eEe(t),l=na();if(o)return v.jsx("div",{className:Fe(s.root,n),children:r});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return v.jsx(tEe,{className:Fe(s.root,n),childFactory:u=>y.cloneElement(u,{classNames:c}),role:"presentation",children:v.jsx(dT,le({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:r}),a)})}const nEe=e=>Qe("MuiDayCalendar",e);Ze("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const oEe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],aEe=["ownerState"],iEe=e=>{const{classes:t}=e;return Xe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},nEe,t)},z4=(Qp+Kb*2)*6,sEe=ce("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lEe=ce("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),cEe=ce(sr,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),uEe=ce(sr,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),dEe=ce(sr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>le({},e.typography.caption,{width:Qp,height:Qp,padding:0,margin:`0 ${Kb}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),fEe=ce("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:z4}),pEe=ce(rEe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:z4}),hEe=ce("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),mEe=ce("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Kb}px 0`,display:"flex",justifyContent:"center"});function vEe(e){let{parentProps:t,day:r,focusableDay:n,selectedDays:o,isDateDisabled:a,currentMonthNumber:i,isViewFocused:s}=e,l=Zt(e,oEe);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:h,slotProps:p,timezone:m}=t,x=Wr(),b=Jc(m),w=n!==null&&x.isSameDay(r,n),g=o.some(B=>x.isSameDay(B,r)),S=x.isSameDay(r,b),R=(h==null?void 0:h.day)??jke,T=xr({elementType:R,externalSlotProps:p==null?void 0:p.day,additionalProps:le({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:d,"data-timestamp":x.toJsDate(r).valueOf()},l),ownerState:le({},t,{day:r,selected:g})}),k=Zt(T,aEe),O=y.useMemo(()=>c||a(r),[c,a,r]),E=y.useMemo(()=>x.getMonth(r)!==i,[x,r,i]),C=y.useMemo(()=>{const B=x.startOfMonth(x.setMonth(r,i));return f?x.isSameDay(r,x.startOfWeek(B)):x.isSameDay(r,B)},[i,r,f,x]),D=y.useMemo(()=>{const B=x.endOfMonth(x.setMonth(r,i));return f?x.isSameDay(r,x.endOfWeek(B)):x.isSameDay(r,B)},[i,r,f,x]);return v.jsx(R,le({},k,{day:r,disabled:O,autoFocus:s&&w,today:S,outsideCurrentMonth:E,isFirstVisibleCell:C,isLastVisibleCell:D,selected:g,tabIndex:w?0:-1,"aria-selected":g,"aria-current":S?"date":void 0}))}function gEe(e){const t=Rr({props:e,name:"MuiDayCalendar"}),r=Wr(),{onFocusedDayChange:n,className:o,currentMonth:a,selectedDays:i,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:h=()=>v.jsx("span",{children:"..."}),slideDirection:p,TransitionProps:m,disablePast:x,disableFuture:b,minDate:w,maxDate:g,shouldDisableDate:S,shouldDisableMonth:R,shouldDisableYear:T,dayOfWeekFormatter:k=xe=>r.format(xe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:O,onFocusedViewChange:E,gridLabelId:C,displayWeekNumber:D,fixedWeekNumber:B,autoFocus:U,timezone:j}=t,N=Jc(j),V=iEe(t),ee=lo(),M=F4({shouldDisableDate:S,shouldDisableMonth:R,shouldDisableYear:T,minDate:w,maxDate:g,disablePast:x,disableFuture:b,timezone:j}),K=ka(),[te,oe]=za({name:"DayCalendar",state:"hasFocus",controlled:O,default:U??!1}),[Ie,Te]=y.useState(()=>s||N),ke=it(xe=>{d||c(xe)}),pe=xe=>{M(xe)||(n(xe),Te(xe),E==null||E(!0),oe(!0))},Pe=it((xe,we)=>{switch(xe.key){case"ArrowUp":pe(r.addDays(we,-7)),xe.preventDefault();break;case"ArrowDown":pe(r.addDays(we,7)),xe.preventDefault();break;case"ArrowLeft":{const $e=r.addDays(we,ee?1:-1),ye=r.addMonths(we,ee?1:-1),De=vp({utils:r,date:$e,minDate:ee?$e:r.startOfMonth(ye),maxDate:ee?r.endOfMonth(ye):$e,isDateDisabled:M,timezone:j});pe(De||$e),xe.preventDefault();break}case"ArrowRight":{const $e=r.addDays(we,ee?-1:1),ye=r.addMonths(we,ee?-1:1),De=vp({utils:r,date:$e,minDate:ee?r.startOfMonth(ye):$e,maxDate:ee?$e:r.endOfMonth(ye),isDateDisabled:M,timezone:j});pe(De||$e),xe.preventDefault();break}case"Home":pe(r.startOfWeek(we)),xe.preventDefault();break;case"End":pe(r.endOfWeek(we)),xe.preventDefault();break;case"PageUp":pe(r.addMonths(we,1)),xe.preventDefault();break;case"PageDown":pe(r.addMonths(we,-1)),xe.preventDefault();break}}),Ae=it((xe,we)=>pe(we)),ge=it((xe,we)=>{te&&r.isSameDay(Ie,we)&&(E==null||E(!1))}),G=r.getMonth(a),Y=r.getYear(a),Q=y.useMemo(()=>i.filter(xe=>!!xe).map(xe=>r.startOfDay(xe)),[r,i]),Z=`${Y}-${G}`,X=y.useMemo(()=>y.createRef(),[Z]),ae=y.useMemo(()=>{const xe=r.startOfMonth(a),we=r.endOfMonth(a);return M(Ie)||r.isAfterDay(Ie,we)||r.isBeforeDay(Ie,xe)?vp({utils:r,date:Ie,minDate:xe,maxDate:we,disablePast:x,disableFuture:b,isDateDisabled:M,timezone:j}):Ie},[a,b,x,Ie,M,r,j]),fe=y.useMemo(()=>{const xe=r.getWeekArray(a);let we=r.addMonths(a,1);for(;B&&xe.length<B;){const $e=r.getWeekArray(we),ye=r.isSameDay(xe[xe.length-1][0],$e[0][0]);$e.slice(ye?1:0).forEach(De=>{xe.length<B&&xe.push(De)}),we=r.addMonths(we,1)}return xe},[a,B,r]);return v.jsxs(sEe,{role:"grid","aria-labelledby":C,className:V.root,children:[v.jsxs(lEe,{role:"row",className:V.header,children:[D&&v.jsx(uEe,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:V.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),S2e(r,N).map((xe,we)=>v.jsx(cEe,{variant:"caption",role:"columnheader","aria-label":r.format(xe,"weekday"),className:V.weekDayLabel,children:k(xe)},we.toString()))]}),l?v.jsx(fEe,{className:V.loadingContainer,children:h()}):v.jsx(pEe,le({transKey:Z,onExited:u,reduceAnimations:f,slideDirection:p,className:Fe(o,V.slideTransition)},m,{nodeRef:X,children:v.jsx(hEe,{ref:X,role:"rowgroup",className:V.monthContainer,children:fe.map((xe,we)=>v.jsxs(mEe,{role:"row",className:V.weekContainer,"aria-rowindex":we+1,children:[D&&v.jsx(dEe,{className:V.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText(r.getWeekNumber(xe[0])),children:K.calendarWeekNumberText(r.getWeekNumber(xe[0]))}),xe.map(($e,ye)=>v.jsx(vEe,{parentProps:t,day:$e,selectedDays:Q,focusableDay:ae,onKeyDown:Pe,onFocus:Ae,onBlur:ge,onDaySelect:ke,isDateDisabled:M,currentMonthNumber:G,isViewFocused:te,"aria-colindex":ye+1},$e.toString()))]},`week-${xe[0]}`))})}))]})}function yEe(e){return Qe("MuiPickersMonth",e)}const ev=Ze("MuiPickersMonth",["root","monthButton","disabled","selected"]),bEe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],wEe=e=>{const{disabled:t,selected:r,classes:n}=e;return Xe({root:["root"],monthButton:["monthButton",t&&"disabled",r&&"selected"]},yEe,n)},xEe=ce("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),SEe=ce("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${ev.disabled}`]:t.disabled},{[`&.${ev.selected}`]:t.selected}]})(({theme:e})=>le({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ev.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ev.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),CEe=y.memo(function(t){const r=Rr({props:t,name:"MuiPickersMonth"}),{autoFocus:n,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:h,"aria-current":p,"aria-label":m,slots:x,slotProps:b}=r,w=Zt(r,bEe),g=y.useRef(null),S=wEe(r);$n(()=>{var k;n&&((k=g.current)==null||k.focus())},[n]);const R=(x==null?void 0:x.monthButton)??SEe,T=xr({elementType:R,externalSlotProps:b==null?void 0:b.monthButton,additionalProps:{children:a,disabled:i,tabIndex:c,ref:g,type:"button",role:"radio","aria-current":p,"aria-checked":s,"aria-label":m,onClick:k=>u(k,l),onKeyDown:k=>d(k,l),onFocus:k=>f(k,l),onBlur:k=>h(k,l)},ownerState:r,className:S.monthButton});return v.jsx(xEe,le({className:Fe(S.root,o),ownerState:r},w,{children:v.jsx(R,le({},T))}))});function TEe(e){return Qe("MuiMonthCalendar",e)}Ze("MuiMonthCalendar",["root"]);const PEe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],$Ee=e=>{const{classes:t}=e;return Xe({root:["root"]},TEe,t)};function REe(e,t){const r=Wr(),n=qh(),o=Rr({props:e,name:t});return le({disableFuture:!1,disablePast:!1},o,{minDate:Ci(r,o.minDate,n.minDate),maxDate:Ci(r,o.maxDate,n.maxDate)})}const kEe=ce("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:qb,boxSizing:"border-box"}),IEe=y.forwardRef(function(t,r){const n=REe(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:h,shouldDisableMonth:p,readOnly:m,autoFocus:x=!1,onMonthFocus:b,hasFocus:w,onFocusedViewChange:g,monthsPerRow:S=3,timezone:R,gridLabelId:T,slots:k,slotProps:O}=n,E=Zt(n,PEe),{value:C,handleValueChange:D,timezone:B}=Xd({name:"MonthCalendar",timezone:R,value:a,defaultValue:i,referenceDate:s,onChange:h,valueManager:zo}),U=Jc(B),j=lo(),N=Wr(),V=y.useMemo(()=>zo.getInitialReferenceValue({value:C,utils:N,props:n,timezone:B,referenceDate:s,granularity:Hi.month}),[]),ee=n,M=$Ee(ee),K=y.useMemo(()=>N.getMonth(U),[N,U]),te=y.useMemo(()=>C!=null?N.getMonth(C):null,[C,N]),[oe,Ie]=y.useState(()=>te||N.getMonth(V)),[Te,ke]=za({name:"MonthCalendar",state:"hasFocus",controlled:w,default:x??!1}),pe=it(Z=>{ke(Z),g&&g(Z)}),Pe=y.useCallback(Z=>{const X=N.startOfMonth(u&&N.isAfter(U,f)?U:f),ae=N.startOfMonth(c&&N.isBefore(U,d)?U:d),fe=N.startOfMonth(Z);return N.isBefore(fe,X)||N.isAfter(fe,ae)?!0:p?p(fe):!1},[c,u,d,f,U,p,N]),Ae=it((Z,X)=>{if(m)return;const ae=N.setMonth(C??V,X);D(ae)}),ge=it(Z=>{Pe(N.setMonth(C??V,Z))||(Ie(Z),pe(!0),b&&b(Z))});y.useEffect(()=>{Ie(Z=>te!==null&&Z!==te?te:Z)},[te]);const G=it((Z,X)=>{switch(Z.key){case"ArrowUp":ge((12+X-3)%12),Z.preventDefault();break;case"ArrowDown":ge((12+X+3)%12),Z.preventDefault();break;case"ArrowLeft":ge((12+X+(j?1:-1))%12),Z.preventDefault();break;case"ArrowRight":ge((12+X+(j?-1:1))%12),Z.preventDefault();break}}),Y=it((Z,X)=>{ge(X)}),Q=it((Z,X)=>{oe===X&&pe(!1)});return v.jsx(kEe,le({ref:r,className:Fe(M.root,o),ownerState:ee,role:"radiogroup","aria-labelledby":T},E,{children:$P(N,C??V).map(Z=>{const X=N.getMonth(Z),ae=N.format(Z,"monthShort"),fe=N.format(Z,"month"),xe=X===te,we=l||Pe(Z);return v.jsx(CEe,{selected:xe,value:X,onClick:Ae,onKeyDown:G,autoFocus:Te&&X===oe,disabled:we,tabIndex:X===oe&&!we?0:-1,onFocus:Y,onBlur:Q,"aria-current":K===X?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:k,slotProps:O,children:ae},ae)})}))});function EEe(e){return Qe("MuiPickersYear",e)}const tv=Ze("MuiPickersYear",["root","yearButton","selected","disabled"]),OEe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],_Ee=e=>{const{disabled:t,selected:r,classes:n}=e;return Xe({root:["root"],yearButton:["yearButton",t&&"disabled",r&&"selected"]},EEe,n)},DEe=ce("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),MEe=ce("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${tv.disabled}`]:t.disabled},{[`&.${tv.selected}`]:t.selected}]})(({theme:e})=>le({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Yt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${tv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${tv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),AEe=y.memo(function(t){const r=Rr({props:t,name:"MuiPickersYear"}),{autoFocus:n,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:h,"aria-current":p,slots:m,slotProps:x}=r,b=Zt(r,OEe),w=y.useRef(null),g=_Ee(r);$n(()=>{var T;n&&((T=w.current)==null||T.focus())},[n]);const S=(m==null?void 0:m.yearButton)??MEe,R=xr({elementType:S,externalSlotProps:x==null?void 0:x.yearButton,additionalProps:{children:a,disabled:i,tabIndex:c,ref:w,type:"button",role:"radio","aria-current":p,"aria-checked":s,onClick:T=>u(T,l),onKeyDown:T=>d(T,l),onFocus:T=>f(T,l),onBlur:T=>h(T,l)},ownerState:r,className:g.yearButton});return v.jsx(DEe,le({className:Fe(g.root,o),ownerState:r},b,{children:v.jsx(S,le({},R))}))});function jEe(e){return Qe("MuiYearCalendar",e)}Ze("MuiYearCalendar",["root"]);const LEe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],NEe=e=>{const{classes:t}=e;return Xe({root:["root"]},jEe,t)};function FEe(e,t){const r=Wr(),n=qh(),o=Rr({props:e,name:t});return le({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Ci(r,o.minDate,n.minDate),maxDate:Ci(r,o.maxDate,n.maxDate)})}const BEe=ce("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:qb,maxHeight:a2e,boxSizing:"border-box",position:"relative"}),zEe=y.forwardRef(function(t,r){const n=FEe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:h,onChange:p,readOnly:m,shouldDisableYear:x,onYearFocus:b,hasFocus:w,onFocusedViewChange:g,yearsOrder:S="asc",yearsPerRow:R,timezone:T,gridLabelId:k,slots:O,slotProps:E}=n,C=Zt(n,LEe),{value:D,handleValueChange:B,timezone:U}=Xd({name:"YearCalendar",timezone:T,value:i,defaultValue:s,referenceDate:l,onChange:p,valueManager:zo}),j=Jc(U),N=lo(),V=Wr(),ee=y.useMemo(()=>zo.getInitialReferenceValue({value:D,utils:V,props:n,timezone:U,referenceDate:l,granularity:Hi.year}),[]),M=n,K=NEe(M),te=y.useMemo(()=>V.getYear(j),[V,j]),oe=y.useMemo(()=>D!=null?V.getYear(D):null,[D,V]),[Ie,Te]=y.useState(()=>oe||V.getYear(ee)),[ke,pe]=za({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),Pe=it($e=>{pe($e),g&&g($e)}),Ae=y.useCallback($e=>{if(d&&V.isBeforeYear($e,j)||u&&V.isAfterYear($e,j)||h&&V.isBeforeYear($e,h)||f&&V.isAfterYear($e,f))return!0;if(!x)return!1;const ye=V.startOfYear($e);return x(ye)},[u,d,f,h,j,x,V]),ge=it(($e,ye)=>{if(m)return;const De=V.setYear(D??ee,ye);B(De)}),G=it($e=>{Ae(V.setYear(D??ee,$e))||(Te($e),Pe(!0),b==null||b($e))});y.useEffect(()=>{Te($e=>oe!==null&&$e!==oe?oe:$e)},[oe]);const Y=S!=="desc"?R*1:R*-1,Q=N&&S==="asc"||!N&&S==="desc"?-1:1,Z=it(($e,ye)=>{switch($e.key){case"ArrowUp":G(ye-Y),$e.preventDefault();break;case"ArrowDown":G(ye+Y),$e.preventDefault();break;case"ArrowLeft":G(ye-Q),$e.preventDefault();break;case"ArrowRight":G(ye+Q),$e.preventDefault();break}}),X=it(($e,ye)=>{G(ye)}),ae=it(($e,ye)=>{Ie===ye&&Pe(!1)}),fe=y.useRef(null),xe=mr(r,fe);y.useEffect(()=>{if(o||fe.current===null)return;const $e=fe.current.querySelector('[tabindex="0"]');if(!$e)return;const ye=$e.offsetHeight,De=$e.offsetTop,Ge=fe.current.clientHeight,bt=fe.current.scrollTop,Ke=De+ye;ye>Ge||De<bt||(fe.current.scrollTop=Ke-Ge/2-ye/2)},[o]);const we=V.getYearRange([h,f]);return S==="desc"&&we.reverse(),v.jsx(BEe,le({ref:xe,className:Fe(K.root,a),ownerState:M,role:"radiogroup","aria-labelledby":k},C,{children:we.map($e=>{const ye=V.getYear($e),De=ye===oe,Ge=c||Ae($e);return v.jsx(AEe,{selected:De,value:ye,onClick:ge,onKeyDown:Z,autoFocus:ke&&ye===Ie,disabled:Ge,tabIndex:ye===Ie&&!Ge?0:-1,onFocus:X,onBlur:ae,"aria-current":te===ye?"date":void 0,yearsPerRow:R,slots:O,slotProps:E,children:V.format($e,"year")},V.format($e,"year"))})}))}),VEe=e=>Qe("MuiPickersCalendarHeader",e),UEe=Ze("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),HEe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],WEe=["ownerState"],GEe=e=>{const{classes:t}=e;return Xe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},VEe,t)},KEe=ce("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),qEe=ce("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>le({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),YEe=ce("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),XEe=ce(Vn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${UEe.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),QEe=ce(BRe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),ZEe=y.forwardRef(function(t,r){const n=ka(),o=Wr(),a=Rr({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:h,onMonthChange:p,onViewChange:m,view:x,reduceAnimations:b,views:w,labelId:g,className:S,timezone:R,format:T=`${o.formats.month} ${o.formats.year}`}=a,k=Zt(a,HEe),O=a,E=GEe(a),C=(i==null?void 0:i.switchViewButton)??XEe,D=xr({elementType:C,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(x)},ownerState:O,className:E.switchViewButton}),B=(i==null?void 0:i.switchViewIcon)??QEe,U=xr({elementType:B,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:O,className:E.switchViewIcon}),j=Zt(U,WEe),N=()=>p(o.addMonths(l,1),"left"),V=()=>p(o.addMonths(l,-1),"right"),ee=n2e(l,{disableFuture:u,maxDate:f,timezone:R}),M=o2e(l,{disablePast:d,minDate:h,timezone:R}),K=()=>{if(!(w.length===1||!m||c))if(w.length===2)m(w.find(oe=>oe!==x)||w[0]);else{const oe=w.indexOf(x)!==0?0:1;m(w[oe])}};if(w.length===1&&w[0]==="year")return null;const te=o.formatByString(l,T);return v.jsxs(KEe,le({},k,{ownerState:O,className:Fe(E.root,S),ref:r,children:[v.jsxs(qEe,{role:"presentation",onClick:K,ownerState:O,"aria-live":"polite",className:E.labelContainer,children:[v.jsx(B4,{reduceAnimations:b,transKey:te,children:v.jsx(YEe,{id:g,ownerState:O,className:E.label,children:te})}),w.length>1&&!c&&v.jsx(C,le({},D,{children:v.jsx(B,le({},j))}))]}),v.jsx(Ld,{in:x==="day",children:v.jsx(c4,{slots:i,slotProps:s,onGoToPrevious:V,isPreviousDisabled:M,previousLabel:n.previousMonth,onGoToNext:N,isNextDisabled:ee,nextLabel:n.nextMonth})})]}))}),JEe="@media (prefers-reduced-motion: reduce)",Zu=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),x_=Zu&&Zu[1]?parseInt(Zu[1],10):null,S_=Zu&&Zu[2]?parseInt(Zu[2],10):null,eOe=x_&&x_<10||S_&&S_<13||!1,V4=()=>My(JEe,{defaultMatches:!1})||eOe,tOe=e=>Qe("MuiDateCalendar",e);Ze("MuiDateCalendar",["root","viewTransitionContainer"]);const rOe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],nOe=e=>{const{classes:t}=e;return Xe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},tOe,t)};function oOe(e,t){const r=Wr(),n=qh(),o=V4(),a=Rr({props:e,name:t});return le({},a,{loading:a.loading??!1,disablePast:a.disablePast??!1,disableFuture:a.disableFuture??!1,openTo:a.openTo??"day",views:a.views??["year","day"],reduceAnimations:a.reduceAnimations??o,renderLoading:a.renderLoading??(()=>v.jsx("span",{children:"..."})),minDate:Ci(r,a.minDate,n.minDate),maxDate:Ci(r,a.maxDate,n.maxDate)})}const aOe=ce(Xb,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Yb}),iOe=ce(B4,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),sOe=y.forwardRef(function(t,r){const n=Wr(),o=Ta(),a=oOe(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:h,onYearChange:p,onMonthChange:m,reduceAnimations:x,shouldDisableDate:b,shouldDisableMonth:w,shouldDisableYear:g,view:S,views:R,openTo:T,className:k,disabled:O,readOnly:E,minDate:C,maxDate:D,disableHighlightToday:B,focusedView:U,onFocusedViewChange:j,showDaysOutsideCurrentMonth:N,fixedWeekNumber:V,dayOfWeekFormatter:ee,slots:M,slotProps:K,loading:te,renderLoading:oe,displayWeekNumber:Ie,yearsOrder:Te,yearsPerRow:ke,monthsPerRow:pe,timezone:Pe}=a,Ae=Zt(a,rOe),{value:ge,handleValueChange:G,timezone:Y}=Xd({name:"DateCalendar",timezone:Pe,value:l,defaultValue:c,referenceDate:u,onChange:h,valueManager:zo}),{view:Q,setView:Z,focusedView:X,setFocusedView:ae,goToNextView:fe,setValueAndGoToNextView:xe}=Xh({view:S,views:R,openTo:T,onChange:G,onViewChange:s,autoFocus:i,focusedView:U,onFocusedViewChange:j}),{referenceDate:we,calendarState:$e,changeFocusedDay:ye,changeMonth:De,handleChangeMonth:Ge,isDateDisabled:bt,onMonthSwitchingAnimationEnd:Ke}=qIe({value:ge,referenceDate:u,reduceAnimations:x,onMonthChange:m,minDate:C,maxDate:D,shouldDisableDate:b,disablePast:f,disableFuture:d,timezone:Y}),St=O&&ge||C,Lt=O&&ge||D,qt=`${o}-grid-label`,wt=X!==null,lt=(M==null?void 0:M.calendarHeader)??ZEe,gt=xr({elementType:lt,externalSlotProps:K==null?void 0:K.calendarHeader,additionalProps:{views:R,view:Q,currentMonth:$e.currentMonth,onViewChange:Z,onMonthChange:(mt,dr)=>Ge({newMonth:mt,direction:dr}),minDate:St,maxDate:Lt,disabled:O,disablePast:f,disableFuture:d,reduceAnimations:x,timezone:Y,labelId:qt},ownerState:a}),kt=it(mt=>{const dr=n.startOfMonth(mt),cr=n.endOfMonth(mt),br=bt(mt)?vp({utils:n,date:mt,minDate:n.isBefore(C,dr)?dr:C,maxDate:n.isAfter(D,cr)?cr:D,disablePast:f,disableFuture:d,isDateDisabled:bt,timezone:Y}):mt;br?(xe(br,"finish"),m==null||m(dr)):(fe(),De(dr)),ye(br,!0)}),dt=it(mt=>{const dr=n.startOfYear(mt),cr=n.endOfYear(mt),br=bt(mt)?vp({utils:n,date:mt,minDate:n.isBefore(C,dr)?dr:C,maxDate:n.isAfter(D,cr)?cr:D,disablePast:f,disableFuture:d,isDateDisabled:bt,timezone:Y}):mt;br?(xe(br,"finish"),p==null||p(br)):(fe(),De(dr)),ye(br,!0)}),ir=it(mt=>G(mt&&Ug(n,mt,ge??we),"finish",Q));y.useEffect(()=>{ge!=null&&n.isValid(ge)&&De(ge)},[ge]);const jr=a,st=nOe(jr),He={disablePast:f,disableFuture:d,maxDate:D,minDate:C},Ye={disableHighlightToday:B,readOnly:E,disabled:O,timezone:Y,gridLabelId:qt,slots:M,slotProps:K},Mt=y.useRef(Q);y.useEffect(()=>{Mt.current!==Q&&(X===Mt.current&&ae(Q,!0),Mt.current=Q)},[X,ae,Q]);const Ot=y.useMemo(()=>[ge],[ge]);return v.jsxs(aOe,le({ref:r,className:Fe(st.root,k),ownerState:jr},Ae,{children:[v.jsx(lt,le({},gt,{slots:M,slotProps:K})),v.jsx(iOe,{reduceAnimations:x,className:st.viewTransitionContainer,transKey:Q,ownerState:jr,children:v.jsxs("div",{children:[Q==="year"&&v.jsx(zEe,le({},He,Ye,{value:ge,onChange:dt,shouldDisableYear:g,hasFocus:wt,onFocusedViewChange:mt=>ae("year",mt),yearsOrder:Te,yearsPerRow:ke,referenceDate:we})),Q==="month"&&v.jsx(IEe,le({},He,Ye,{hasFocus:wt,className:k,value:ge,onChange:kt,shouldDisableMonth:w,onFocusedViewChange:mt=>ae("month",mt),monthsPerRow:pe,referenceDate:we})),Q==="day"&&v.jsx(gEe,le({},$e,He,Ye,{onMonthSwitchingAnimationEnd:Ke,onFocusedDayChange:ye,reduceAnimations:x,selectedDays:Ot,onSelectedDaysChange:ir,shouldDisableDate:b,shouldDisableMonth:w,shouldDisableYear:g,hasFocus:wt,onFocusedViewChange:mt=>ae("day",mt),showDaysOutsideCurrentMonth:N,fixedWeekNumber:V,dayOfWeekFormatter:ee,displayWeekNumber:Ie,loading:te,renderLoading:oe}))]})})]}))});function U4(e){return Qe("MuiPickersToolbar",e)}const lOe=Ze("MuiPickersToolbar",["root","content"]),cOe=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],uOe=e=>{const{classes:t}=e;return Xe({root:["root"],content:["content"]},U4,t)},dOe=ce("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),fOe=ce("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),pOe=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=n,c=Zt(n,cOe),u=n,d=uOe(u);return s?null:v.jsxs(dOe,le({ref:r,className:Fe(d.root,a),ownerState:u},c,{children:[v.jsx(sr,{color:"text.secondary",variant:"overline",id:l,children:i}),v.jsx(fOe,{className:d.content,ownerState:u,children:o})]}))});function hOe(e){return Qe("MuiPickersPopper",e)}Ze("MuiPickersPopper",["root","paper"]);const mOe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],vOe=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},hOe,t)},gOe=ce(xT,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),yOe=ce(Ga,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function bOe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function wOe(e,t){const r=y.useRef(!1),n=y.useRef(!1),o=y.useRef(null),a=y.useRef(!1);y.useEffect(()=>{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=it(l=>{if(!a.current)return;const c=n.current;n.current=!1;const u=Un(o.current);if(!o.current||"clientX"in l&&bOe(l,u))return;if(r.current){r.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),s=()=>{n.current=!0};return y.useEffect(()=>{if(e){const l=Un(o.current),c=()=>{r.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),y.useEffect(()=>{if(e){const l=Un(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),n.current=!1}}},[e,i]),[o,s,s]}const xOe=y.forwardRef((e,t)=>{const{PaperComponent:r,popperPlacement:n,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Zt(e,mOe),d=le({},o,{placement:n}),f=xr({elementType:r,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return v.jsx(r,le({},u,f,{onClick:h=>{var p;l(h),(p=f.onClick)==null||p.call(f,h)},onTouchStart:h=>{var p;c(h),(p=f.onTouchStart)==null||p.call(f,h)},ownerState:d,children:a}))});function SOe(e){const t=Rr({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:n,containerRef:o=null,shouldRestoreFocus:a,onBlur:i,onDismiss:s,open:l,role:c,placement:u,slots:d,slotProps:f,reduceAnimations:h}=t;y.useEffect(()=>{function N(V){l&&V.key==="Escape"&&s()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[s,l]);const p=y.useRef(null);y.useEffect(()=>{c==="tooltip"||a&&!a()||(l?p.current=pa(document):p.current&&p.current instanceof HTMLElement&&setTimeout(()=>{p.current instanceof HTMLElement&&p.current.focus()}))},[l,c,a]);const[m,x,b]=wOe(l,i??s),w=y.useRef(null),g=mr(w,o),S=mr(g,m),R=t,T=vOe(R),k=V4(),O=h??k,E=N=>{N.key==="Escape"&&(N.stopPropagation(),s())},C=(d==null?void 0:d.desktopTransition)??O?Ld:zl,D=(d==null?void 0:d.desktopTrapFocus)??Hj,B=(d==null?void 0:d.desktopPaper)??yOe,U=(d==null?void 0:d.popper)??gOe,j=xr({elementType:U,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:r,placement:u,onKeyDown:E},className:T.root,ownerState:t});return v.jsx(U,le({},j,{children:({TransitionProps:N,placement:V})=>v.jsx(D,le({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:v.jsx(C,le({},N,f==null?void 0:f.desktopTransition,{children:v.jsx(xOe,{PaperComponent:B,ownerState:R,popperPlacement:V,ref:S,onPaperClick:x,onPaperTouchStart:b,paperClasses:T.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:n})}))}))}))}const COe=({open:e,onOpen:t,onClose:r})=>{const n=y.useRef(typeof e=="boolean").current,[o,a]=y.useState(!1);y.useEffect(()=>{if(n){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[n,e]);const i=y.useCallback(s=>{n||a(s),s&&t&&t(),!s&&r&&r()},[n,t,r]);return{isOpen:o,setIsOpen:i}},TOe=e=>{const{action:t,hasChanged:r,dateState:n,isControlled:o}=e,a=!o&&!n.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:r(n.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:r(n.lastPublishedValue):!1},POe=e=>{const{action:t,hasChanged:r,dateState:n,isControlled:o,closeOnSelect:a}=e,i=!o&&!n.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:r(n.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:r(n.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&r(n.lastCommittedValue):!1},$Oe=e=>{const{action:t,closeOnSelect:r}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&r:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},ROe=({props:e,valueManager:t,valueType:r,wrapperVariant:n,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=n==="desktop",timezone:u,referenceDate:d}=e,{current:f}=y.useRef(l),{current:h}=y.useRef(s!==void 0),[p,m]=y.useState(u),x=Wr(),b=Zc(),{isOpen:w,setIsOpen:g}=COe(e),{timezone:S,value:R,handleValueChange:T}=kP({timezone:u,value:s,defaultValue:f,referenceDate:d,onChange:i,valueManager:t}),[k,O]=y.useState(()=>{let G;return R!==void 0?G=R:f!==void 0?G=f:G=t.emptyValue,{draft:G,lastPublishedValue:G,lastCommittedValue:G,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),E=t.getTimezone(x,k.draft);p!==u&&(m(u),u&&E&&u!==E&&O(G=>le({},G,{draft:t.setTimezone(x,u,G.draft)})));const{getValidationErrorForNewValue:C}=I4({props:e,validator:o,timezone:S,value:k.draft,onError:e.onError}),D=it(G=>{const Y={action:G,dateState:k,hasChanged:xe=>!t.areValuesEqual(x,G.value,xe),isControlled:h,closeOnSelect:c},Q=TOe(Y),Z=POe(Y),X=$Oe(Y);O(xe=>le({},xe,{draft:G.value,lastPublishedValue:Q?G.value:xe.lastPublishedValue,lastCommittedValue:Z?G.value:xe.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ae=null;const fe=()=>(ae||(ae={validationError:G.name==="setValueFromField"?G.context.validationError:C(G.value)},G.name==="setValueFromShortcut"&&(ae.shortcut=G.shortcut)),ae);Q&&T(G.value,fe()),Z&&a&&a(G.value,fe()),X&&g(!1)});if(k.lastControlledValue!==s){const G=t.areValuesEqual(x,k.draft,R);O(Y=>le({},Y,{lastControlledValue:s},G?{}:{lastCommittedValue:R,lastPublishedValue:R,draft:R,hasBeenModifiedSinceMount:!0}))}const B=it(()=>{D({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),U=it(()=>{D({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),j=it(()=>{D({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),N=it(()=>{D({value:k.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),V=it(()=>{D({value:t.getTodayValue(x,S,r),name:"setValueFromAction",pickerAction:"today"})}),ee=it(G=>{G.preventDefault(),g(!0)}),M=it(G=>{G==null||G.preventDefault(),g(!1)}),K=it((G,Y="partial")=>D({name:"setValueFromView",value:G,selectionState:Y})),te=it((G,Y,Q)=>D({name:"setValueFromShortcut",value:G,changeImportance:Y,shortcut:Q})),oe=it((G,Y)=>D({name:"setValueFromField",value:G,context:Y})),Ie={onClear:B,onAccept:U,onDismiss:j,onCancel:N,onSetToday:V,onOpen:ee,onClose:M},Te={value:k.draft,onChange:oe},ke=y.useMemo(()=>t.cleanValue(x,k.draft),[x,t,k.draft]),pe={value:ke,onChange:K,onClose:M,open:w},Ae=le({},Ie,{value:ke,onChange:K,onSelectShortcut:te,isValid:G=>{const Y=o({adapter:b,value:G,timezone:S,props:e});return!t.hasError(Y)}}),ge=y.useMemo(()=>({onOpen:ee,onClose:M,open:w}),[w,M,ee]);return{open:w,fieldProps:Te,viewProps:pe,layoutProps:Ae,actions:Ie,contextValue:ge}},kOe=["className","sx"],IOe=({props:e,propsFromPickerValue:t,additionalViewProps:r,autoFocusView:n,rendererInterceptor:o,fieldRef:a})=>{const{onChange:i,open:s,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:h,timezone:p}=e,m=Zt(e,kOe),{view:x,setView:b,defaultView:w,focusedView:g,setFocusedView:S,setValueAndGoToNextView:R}=Xh({view:c,views:u,openTo:d,onChange:i,onViewChange:f,autoFocus:n}),{hasUIView:T,viewModeLookup:k}=y.useMemo(()=>u.reduce((j,N)=>{let V;return h[N]!=null?V="UI":V="field",j.viewModeLookup[N]=V,V==="UI"&&(j.hasUIView=!0),j},{hasUIView:!1,viewModeLookup:{}}),[h,u]),O=y.useMemo(()=>u.reduce((j,N)=>h[N]!=null&&Td(N)?j+1:j,0),[h,u]),E=k[x],C=it(()=>E==="UI"),[D,B]=y.useState(E==="UI"?x:null);return D!==x&&k[x]==="UI"&&B(x),$n(()=>{E==="field"&&s&&(l(),setTimeout(()=>{var j,N;(j=a==null?void 0:a.current)==null||j.setSelectedSections(x),(N=a==null?void 0:a.current)==null||N.focusField(x)}))},[x]),$n(()=>{if(!s)return;let j=x;E==="field"&&D!=null&&(j=D),j!==w&&k[j]==="UI"&&k[w]==="UI"&&(j=w),j!==x&&b(j),S(j,!0)},[s]),{hasUIView:T,shouldRestoreFocus:C,layoutProps:{views:u,view:D,onViewChange:b},renderCurrentView:()=>{if(D==null)return null;const j=h[D];if(j==null)return null;const N=le({},m,r,t,{views:u,timezone:p,onChange:R,view:D,onViewChange:b,focusedView:g,onFocusedViewChange:S,showViewSwitcher:O>1,timeViewsCount:O});return o?o(h,D,N):j(N)}}};function C_(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const EOe=(e,t)=>{const[r,n]=y.useState(C_);return $n(()=>{const a=()=>{n(C_())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),lke(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},OOe=({props:e,propsFromPickerValue:t,propsFromPickerViews:r,wrapperVariant:n})=>{const{orientation:o}=e,a=EOe(r.views,o),i=lo();return{layoutProps:le({},r,t,{isLandscape:a,isRtl:i,wrapperVariant:n,disabled:e.disabled,readOnly:e.readOnly})}};function _Oe(e){const{props:t,pickerValueResponse:r}=e;return y.useMemo(()=>({value:r.viewProps.value,open:r.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[r.viewProps.value,r.open,t.disabled,t.readOnly])}const H4=({props:e,valueManager:t,valueType:r,wrapperVariant:n,additionalViewProps:o,validator:a,autoFocusView:i,rendererInterceptor:s,fieldRef:l})=>{const c=ROe({props:e,valueManager:t,valueType:r,wrapperVariant:n,validator:a}),u=IOe({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=OOe({props:e,wrapperVariant:n,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=_Oe({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:f}};function W4(e){return Qe("MuiPickersLayout",e)}const zi=Ze("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),DOe=["onAccept","onClear","onCancel","onSetToday","actions"];function MOe(e){const{onAccept:t,onClear:r,onCancel:n,onSetToday:o,actions:a}=e,i=Zt(e,DOe),s=ka();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return v.jsx(zr,{onClick:r,children:s.clearButtonLabel},c);case"cancel":return v.jsx(zr,{onClick:n,children:s.cancelButtonLabel},c);case"accept":return v.jsx(zr,{onClick:t,children:s.okButtonLabel},c);case"today":return v.jsx(zr,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return v.jsx(Gj,le({},i,{children:l}))}const AOe=["items","changeImportance","isLandscape","onChange","isValid"],jOe=["getValue"];function LOe(e){const{items:t,changeImportance:r="accept",onChange:n,isValid:o}=e,a=Zt(e,AOe);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Zt(s,jOe);const u=l({isValid:o});return le({},c,{label:c.label,onClick:()=>{n(u,r,c)},disabled:!o(u)})});return v.jsx($T,le({dense:!0,sx:[{maxHeight:Yb,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>v.jsx(sL,{children:v.jsx(Dj,le({},s))},s.id??s.label))}))}function NOe(e){return e.view!==null}const FOe=e=>{const{classes:t,isLandscape:r}=e;return Xe({root:["root",r&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},W4,t)},G4=e=>{const{wrapperVariant:t,onAccept:r,onClear:n,onCancel:o,onSetToday:a,view:i,views:s,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:f,isLandscape:h,disabled:p,readOnly:m,children:x,slots:b,slotProps:w}=e,g=FOe(e),S=(b==null?void 0:b.actionBar)??MOe,R=xr({elementType:S,externalSlotProps:w==null?void 0:w.actionBar,additionalProps:{onAccept:r,onClear:n,onCancel:o,onSetToday:a,actions:t==="desktop"?[]:["cancel","accept"]},className:g.actionBar,ownerState:le({},e,{wrapperVariant:t})}),T=v.jsx(S,le({},R)),k=b==null?void 0:b.toolbar,O=xr({elementType:k,externalSlotProps:w==null?void 0:w.toolbar,additionalProps:{isLandscape:h,onChange:u,value:c,view:i,onViewChange:l,views:s,disabled:p,readOnly:m},className:g.toolbar,ownerState:le({},e,{wrapperVariant:t})}),E=NOe(O)&&k?v.jsx(k,le({},O)):null,C=x,D=b==null?void 0:b.tabs,B=i&&D?v.jsx(D,le({view:i,onViewChange:l,className:g.tabs},w==null?void 0:w.tabs)):null,U=(b==null?void 0:b.shortcuts)??LOe,j=xr({elementType:U,externalSlotProps:w==null?void 0:w.shortcuts,additionalProps:{isValid:f,isLandscape:h,onChange:d},className:g.shortcuts,ownerState:{isValid:f,isLandscape:h,onChange:d,wrapperVariant:t}}),N=i&&U?v.jsx(U,le({},j)):null;return{toolbar:E,content:C,tabs:B,actionBar:T,shortcuts:N}},BOe=e=>{const{isLandscape:t,classes:r}=e;return Xe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},W4,r)},K4=ce("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${zi.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${zi.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${zi.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${zi.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${zi.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${zi.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${zi.shortcuts}`]:{gridColumn:3}}}]}),q4=ce("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Y4=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:a,tabs:i,actionBar:s,shortcuts:l}=G4(n),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=n,h=BOe(n);return v.jsxs(K4,{ref:r,sx:c,className:Fe(h.root,u),ownerState:n,children:[d?l:o,d?o:l,v.jsx(q4,{className:h.contentWrapper,children:f==="desktop"?v.jsxs(y.Fragment,{children:[a,i]}):v.jsxs(y.Fragment,{children:[i,a]})}),s]})}),zOe=["props","getOpenDialogAriaText"],VOe=["ownerState"],UOe=["ownerState"],HOe=e=>{var fe;let{props:t,getOpenDialogAriaText:r}=e,n=Zt(e,zOe);const{slots:o,slotProps:a,className:i,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:h,name:p,label:m,inputRef:x,readOnly:b,disabled:w,autoFocus:g,localeText:S,reduceAnimations:R}=t,T=y.useRef(null),k=y.useRef(null),O=Ta(),E=((fe=a==null?void 0:a.toolbar)==null?void 0:fe.hidden)??!1,{open:C,actions:D,hasUIView:B,layoutProps:U,renderCurrentView:j,shouldRestoreFocus:N,fieldProps:V,contextValue:ee,ownerState:M}=H4(le({},n,{props:t,fieldRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),K=o.inputAdornment??oL,te=xr({elementType:K,externalSlotProps:a==null?void 0:a.inputAdornment,additionalProps:{position:"end"},ownerState:t}),oe=Zt(te,VOe),Ie=o.openPickerButton??Vn,Te=xr({elementType:Ie,externalSlotProps:a==null?void 0:a.openPickerButton,additionalProps:{disabled:w||b,onClick:C?D.onClose:D.onOpen,"aria-label":r(V.value),edge:oe.position},ownerState:t}),ke=Zt(Te,UOe),pe=o.openPickerIcon,Pe=xr({elementType:pe,externalSlotProps:a==null?void 0:a.openPickerIcon,ownerState:M}),Ae=o.field,ge=xr({elementType:Ae,externalSlotProps:a==null?void 0:a.field,additionalProps:le({},V,E&&{id:O},{readOnly:b,disabled:w,className:i,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:h,label:m,name:p,autoFocus:g&&!t.open,focused:C?!0:void 0},x?{inputRef:x}:{}),ownerState:t});B&&(ge.InputProps=le({},ge.InputProps,{ref:T},!t.disableOpenPicker&&{[`${oe.position}Adornment`]:v.jsx(K,le({},oe,{children:v.jsx(Ie,le({},ke,{children:v.jsx(pe,le({},Pe))}))}))}));const G=le({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},ge.slots),Y=o.layout??Y4;let Q=O;E&&(m?Q=`${O}-label`:Q=void 0);const Z=le({},a,{toolbar:le({},a==null?void 0:a.toolbar,{titleId:O}),popper:le({"aria-labelledby":Q},a==null?void 0:a.popper)}),X=mr(k,ge.unstableFieldRef);return{renderPicker:()=>v.jsxs(E4,{contextValue:ee,localeText:S,children:[v.jsx(Ae,le({},ge,{slots:G,slotProps:Z,unstableFieldRef:X})),v.jsx(SOe,le({role:"dialog",placement:"bottom-start",anchorEl:T.current},D,{open:C,slots:o,slotProps:Z,shouldRestoreFocus:N,reduceAnimations:R,children:v.jsx(Y,le({},U,Z==null?void 0:Z.layout,{slots:o,slotProps:Z,children:j()}))}))]})}},Ju=({view:e,onViewChange:t,views:r,focusedView:n,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:h,maxDate:p,shouldDisableDate:m,shouldDisableMonth:x,shouldDisableYear:b,reduceAnimations:w,onMonthChange:g,monthsPerRow:S,onYearChange:R,yearsOrder:T,yearsPerRow:k,slots:O,slotProps:E,loading:C,renderLoading:D,disableHighlightToday:B,readOnly:U,disabled:j,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:V,sx:ee,autoFocus:M,fixedWeekNumber:K,displayWeekNumber:te,timezone:oe})=>v.jsx(sOe,{view:e,onViewChange:t,views:r.filter($d),focusedView:n&&$d(n)?n:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:h,maxDate:p,shouldDisableDate:m,shouldDisableMonth:x,shouldDisableYear:b,reduceAnimations:w,onMonthChange:g,monthsPerRow:S,onYearChange:R,yearsOrder:T,yearsPerRow:k,slots:O,slotProps:E,loading:C,renderLoading:D,disableHighlightToday:B,readOnly:U,disabled:j,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:V,sx:ee,autoFocus:M,fixedWeekNumber:K,displayWeekNumber:te,timezone:oe}),WOe=ce(CT)({[`& .${sp.container}`]:{outline:0},[`& .${sp.paper}`]:{outline:0,minWidth:qb}}),GOe=ce(TT)({"&:first-of-type":{padding:0}});function KOe(e){const{children:t,onDismiss:r,open:n,slots:o,slotProps:a}=e,i=(o==null?void 0:o.dialog)??WOe,s=(o==null?void 0:o.mobileTransition)??Ld;return v.jsx(i,le({open:n,onClose:r},a==null?void 0:a.dialog,{TransitionComponent:s,TransitionProps:a==null?void 0:a.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:a==null?void 0:a.mobilePaper,children:v.jsx(GOe,{children:t})}))}const qOe=["props","getOpenDialogAriaText"],YOe=e=>{var oe;let{props:t,getOpenDialogAriaText:r}=e,n=Zt(e,qOe);const{slots:o,slotProps:a,className:i,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:h,name:p,label:m,inputRef:x,readOnly:b,disabled:w,localeText:g}=t,S=y.useRef(null),R=Ta(),T=((oe=a==null?void 0:a.toolbar)==null?void 0:oe.hidden)??!1,{open:k,actions:O,layoutProps:E,renderCurrentView:C,fieldProps:D,contextValue:B}=H4(le({},n,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=o.field,j=xr({elementType:U,externalSlotProps:a==null?void 0:a.field,additionalProps:le({},D,T&&{id:R},!(w||b)&&{onClick:O.onOpen,onKeyDown:cke(O.onOpen)},{readOnly:b??!0,disabled:w,className:i,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:h,label:m,name:p},x?{inputRef:x}:{}),ownerState:t});j.inputProps=le({},j.inputProps,{"aria-label":r(D.value)});const N=le({textField:o.textField},j.slots),V=o.layout??Y4;let ee=R;T&&(m?ee=`${R}-label`:ee=void 0);const M=le({},a,{toolbar:le({},a==null?void 0:a.toolbar,{titleId:R}),mobilePaper:le({"aria-labelledby":ee},a==null?void 0:a.mobilePaper)}),K=mr(S,j.unstableFieldRef);return{renderPicker:()=>v.jsxs(E4,{contextValue:B,localeText:g,children:[v.jsx(U,le({},j,{slots:N,slotProps:M,unstableFieldRef:K})),v.jsx(KOe,le({},O,{open:k,slots:o,slotProps:M,children:v.jsx(V,le({},E,M==null?void 0:M.layout,{slots:o,slotProps:M,children:C()}))}))]})}};function XOe(e){return Qe("MuiPickersToolbarText",e)}const TS=Ze("MuiPickersToolbarText",["root","selected"]),QOe=["className","selected","value"],ZOe=e=>{const{classes:t,selected:r}=e;return Xe({root:["root",r&&"selected"]},XOe,t)},JOe=ce(sr,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${TS.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${TS.selected}`]:{color:(e.vars||e).palette.text.primary}})),X4=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=n,i=Zt(n,QOe),s=ZOe(n);return v.jsx(JOe,le({ref:r,className:Fe(s.root,o),component:"span"},i,{children:a}))}),e_e=["align","className","selected","typographyClassName","value","variant","width"],t_e=e=>{const{classes:t}=e;return Xe({root:["root"]},U4,t)},r_e=ce(zr,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),pl=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=n,d=Zt(n,e_e),f=t_e(n);return v.jsx(r_e,le({variant:"text",ref:r,className:Fe(f.root,a)},u?{sx:{width:u}}:{},d,{children:v.jsx(X4,{align:o,className:s,variant:c,value:l,selected:i})}))}),Ew=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:n,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:x,ampm:b,ampmInClock:w,slots:g,slotProps:S,readOnly:R,disabled:T,sx:k,autoFocus:O,showViewSwitcher:E,disableIgnoringDatePartForTimeValidation:C,timezone:D})=>v.jsx(ake,{view:e,onViewChange:t,focusedView:r&&Td(r)?r:null,onFocusedViewChange:n,views:o.filter(Td),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:x,ampm:b,ampmInClock:w,slots:g,slotProps:S,readOnly:R,disabled:T,sx:k,autoFocus:O,showViewSwitcher:E,disableIgnoringDatePartForTimeValidation:C,timezone:D}),n_e=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:n,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:x,ampm:b,slots:w,slotProps:g,readOnly:S,disabled:R,sx:T,autoFocus:k,disableIgnoringDatePartForTimeValidation:O,timeSteps:E,skipDisabled:C,timezone:D})=>v.jsx(vke,{view:e,onViewChange:t,focusedView:r,onFocusedViewChange:n,views:o.filter(Td),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:x,ampm:b,slots:w,slotProps:g,readOnly:S,disabled:R,sx:T,autoFocus:k,disableIgnoringDatePartForTimeValidation:O,timeStep:E==null?void 0:E.minutes,skipDisabled:C,timezone:D}),T_=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:n,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:x,ampm:b,slots:w,slotProps:g,readOnly:S,disabled:R,sx:T,autoFocus:k,disableIgnoringDatePartForTimeValidation:O,timeSteps:E,skipDisabled:C,timezone:D})=>v.jsx(Ike,{view:e,onViewChange:t,focusedView:r,onFocusedViewChange:n,views:o.filter(Td),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:x,ampm:b,slots:w,slotProps:g,readOnly:S,disabled:R,sx:T,autoFocus:k,disableIgnoringDatePartForTimeValidation:O,timeSteps:E,skipDisabled:C,timezone:D}),o_e=["views","format"],Q4=(e,t,r)=>{let{views:n,format:o}=t,a=Zt(t,o_e);if(o)return o;const i=[],s=[];if(n.forEach(u=>{Td(u)?s.push(u):$d(u)&&i.push(u)}),s.length===0)return c_(e,le({views:i},a));if(i.length===0)return l_(e,le({views:s},a));const l=l_(e,le({views:s},a));return`${c_(e,le({views:i},a))} ${l}`},a_e=(e,t,r)=>r?t.filter(n=>!Hf(n)||n==="hours"):e?[...t,"meridiem"]:t,i_e=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function s_e({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:r,views:n}){const o=e??24,a=le({hours:1,minutes:5,seconds:5},r),i=i_e(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:a_e(t,n,i)}}function l_e(e){return Qe("MuiDateTimePickerTabs",e)}Ze("MuiDateTimePickerTabs",["root"]);const c_e=e=>$d(e)?"date":"time",u_e=e=>e==="date"?"day":"hours",d_e=e=>{const{classes:t}=e;return Xe({root:["root"]},l_e,t)},f_e=ce(tee,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Cv.indicator}`]:{bottom:"auto",top:0}}})),p_e=function(t){const r=Rr({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:n=v.jsx(HRe,{}),onViewChange:o,timeIcon:a=v.jsx(WRe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667,className:l,sx:c}=r,u=ka(),d=d_e(r),f=(h,p)=>{o(u_e(p))};return s?null:v.jsxs(f_e,{ownerState:r,variant:"fullWidth",value:c_e(i),onChange:f,className:Fe(l,d.root),sx:c,children:[v.jsx(ik,{value:"date","aria-label":u.dateTableLabel,icon:v.jsx(y.Fragment,{children:n})}),v.jsx(ik,{value:"time","aria-label":u.timeTableLabel,icon:v.jsx(y.Fragment,{children:a})})]})};function h_e(e){return Qe("MuiDateTimePickerToolbar",e)}const Ow=Ze("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),m_e=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],v_e=e=>{const{classes:t,isLandscape:r,isRtl:n}=e;return Xe({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]},h_e,t)},g_e=ce(pOe,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${lOe.content} .${TS.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),y_e=ce("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),b_e=ce("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&t!=="desktop",style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:r})=>e&&t!=="desktop"&&r,style:{flexDirection:"column-reverse"}}]}),w_e=ce("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),P_=ce(X4,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),x_e=ce("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Ow.ampmLabel}`]:t.ampmLabel},{[`&.${Ow.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Ow.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function S_e(e){const t=Rr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,ampmInClock:n,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:d,disabled:f,readOnly:h,toolbarVariant:p="mobile",toolbarTitle:m,className:x}=t,b=Zt(t,m_e),w=lo(),g=le({},t,{isRtl:w}),S=Wr(),{meridiemMode:R,handleMeridiemChange:T}=PP(o,r,a),k=!!(r&&!n),O=p==="desktop",E=ka(),C=v_e(g),D=m??E.dateTimePickerToolbarTitle,B=j=>r?S.format(j,"hours12h"):S.format(j,"hours24h"),U=y.useMemo(()=>o?c?S.formatByString(o,c):S.format(o,"shortDate"):u,[o,c,u,S]);return v.jsxs(g_e,le({isLandscape:s,className:Fe(C.root,x),toolbarTitle:D},b,{ownerState:g,children:[v.jsxs(y_e,{className:C.dateContainer,ownerState:g,children:[d.includes("year")&&v.jsx(pl,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?S.format(o,"year"):"–"}),d.includes("day")&&v.jsx(pl,{tabIndex:-1,variant:O?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:U})]}),v.jsxs(b_e,{className:C.timeContainer,ownerState:g,children:[v.jsxs(w_e,{className:C.timeDigitsContainer,ownerState:g,children:[d.includes("hours")&&v.jsxs(y.Fragment,{children:[v.jsx(pl,{variant:O?"h5":"h3",width:O&&!s?Wf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?B(o):"--"}),v.jsx(P_,{variant:O?"h5":"h3",value:":",className:C.separator,ownerState:g}),v.jsx(pl,{variant:O?"h5":"h3",width:O&&!s?Wf:void 0,onClick:()=>l("minutes"),selected:i==="minutes"||!d.includes("minutes")&&i==="hours",value:o?S.format(o,"minutes"):"--",disabled:!d.includes("minutes")})]}),d.includes("seconds")&&v.jsxs(y.Fragment,{children:[v.jsx(P_,{variant:O?"h5":"h3",value:":",className:C.separator,ownerState:g}),v.jsx(pl,{variant:O?"h5":"h3",width:O&&!s?Wf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?S.format(o,"seconds"):"--"})]})]}),k&&!O&&v.jsxs(x_e,{className:C.ampmSelection,ownerState:g,children:[v.jsx(pl,{variant:"subtitle2",selected:R==="am",typographyClassName:C.ampmLabel,value:zs(S,"am"),onClick:h?void 0:()=>T("am"),disabled:f}),v.jsx(pl,{variant:"subtitle2",selected:R==="pm",typographyClassName:C.ampmLabel,value:zs(S,"pm"),onClick:h?void 0:()=>T("pm"),disabled:f})]}),r&&O&&v.jsx(pl,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&R?zs(S,R):"--",width:Wf})]})]}))}function Z4(e,t){var s;const r=Wr(),n=qh(),o=Rr({props:e,name:t}),a=o.ampm??r.is12HourCycleInCurrentLocale(),i=y.useMemo(()=>{var l;return((l=o.localeText)==null?void 0:l.toolbarTitle)==null?o.localeText:le({},o.localeText,{dateTimePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return le({},o,e2e({views:o.views,openTo:o.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:a,localeText:i,orientation:o.orientation??"portrait",disableIgnoringDatePartForTimeValidation:o.disableIgnoringDatePartForTimeValidation??!!(o.minDateTime||o.maxDateTime||o.disablePast||o.disableFuture),disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Ci(r,o.minDateTime??o.minDate,n.minDate),maxDate:Ci(r,o.maxDateTime??o.maxDate,n.maxDate),minTime:o.minDateTime??o.minTime,maxTime:o.maxDateTime??o.maxTime,slots:le({toolbar:S_e,tabs:p_e},o.slots),slotProps:le({},o.slotProps,{toolbar:le({ampm:a},(s=o.slotProps)==null?void 0:s.toolbar)})})}const C_e=y.forwardRef(function(t,r){var m;const n=lo(),{toolbar:o,tabs:a,content:i,actionBar:s,shortcuts:l}=G4(t),{sx:c,className:u,isLandscape:d,classes:f}=t,h=s&&(((m=s.props.actions)==null?void 0:m.length)??0)>0,p=le({},t,{isRtl:n});return v.jsxs(K4,{ref:r,className:Fe(zi.root,f==null?void 0:f.root,u),sx:[{[`& .${zi.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${zi.actionBar}`]:{gridRow:5}},...Array.isArray(c)?c:[c]],ownerState:p,children:[d?l:o,d?o:l,v.jsxs(q4,{className:Fe(zi.contentWrapper,f==null?void 0:f.contentWrapper),sx:{display:"grid"},children:[i,a,h&&v.jsx(xg,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),s]})}),T_e=["openTo","focusedView","timeViewsCount"],P_e=function(t,r,n){var u,d;const{openTo:o,focusedView:a,timeViewsCount:i}=n,s=Zt(n,T_e),l=le({},s,{focusedView:null,sx:[{[`&.${g_.root}`]:{borderBottom:0},[`&.${g_.root}, .${bke.root}, &.${ske.root}`]:{maxHeight:Yb}}]}),c=Hf(r);return v.jsxs(y.Fragment,{children:[(u=t[c?"day":r])==null?void 0:u.call(t,le({},n,{view:c?"day":r,focusedView:a&&$d(a)?a:null,views:n.views.filter($d),sx:[{gridColumn:1},...l.sx]})),i>0&&v.jsxs(y.Fragment,{children:[v.jsx(xg,{orientation:"vertical",sx:{gridColumn:2}}),(d=t[c?r:"hours"])==null?void 0:d.call(t,le({},l,{view:c?r:"hours",focusedView:a&&Hf(a)?a:null,openTo:Hf(o)?o:"hours",views:n.views.filter(Hf),sx:[{gridColumn:3},...l.sx]}))]})]})},J4=y.forwardRef(function(t,r){var w,g,S,R;const n=ka(),o=Wr(),a=Z4(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:i,thresholdToRenderTimeInASingleColumn:s,views:l,timeSteps:c}=s_e(a),u=i?n_e:T_,d=le({day:Ju,month:Ju,year:Ju,hours:u,minutes:u,seconds:u,meridiem:u},a.viewRenderers),f=a.ampmInClock??!0,p=((w=d.hours)==null?void 0:w.name)===T_.name?l:l.filter(T=>T!=="meridiem"),m=i?[]:["accept"],x=le({},a,{viewRenderers:d,format:Q4(o,a),views:p,yearsPerRow:a.yearsPerRow??4,ampmInClock:f,timeSteps:c,thresholdToRenderTimeInASingleColumn:s,shouldRenderTimeInASingleColumn:i,slots:le({field:N4,layout:C_e,openPickerIcon:URe},a.slots),slotProps:le({},a.slotProps,{field:T=>{var k;return le({},Vp((k=a.slotProps)==null?void 0:k.field,T),k4(a),{ref:r})},toolbar:le({hidden:!0,ampmInClock:f,toolbarVariant:"desktop"},(g=a.slotProps)==null?void 0:g.toolbar),tabs:le({hidden:!0},(S=a.slotProps)==null?void 0:S.tabs),actionBar:T=>{var k;return le({actions:m},Vp((k=a.slotProps)==null?void 0:k.actionBar,T))}})}),{renderPicker:b}=HOe({props:x,valueManager:zo,valueType:"date-time",getOpenDialogAriaText:s4({utils:o,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:(R=x.localeText)==null?void 0:R.openDatePickerDialogue}),validator:Zb,rendererInterceptor:P_e});return b()});J4.propTypes={ampm:Re.bool,ampmInClock:Re.bool,autoFocus:Re.bool,className:Re.string,closeOnSelect:Re.bool,dayOfWeekFormatter:Re.func,defaultValue:Re.object,disabled:Re.bool,disableFuture:Re.bool,disableHighlightToday:Re.bool,disableIgnoringDatePartForTimeValidation:Re.bool,disableOpenPicker:Re.bool,disablePast:Re.bool,displayWeekNumber:Re.bool,enableAccessibleFieldDOMStructure:Re.any,fixedWeekNumber:Re.number,format:Re.string,formatDensity:Re.oneOf(["dense","spacious"]),inputRef:HA,label:Re.node,loading:Re.bool,localeText:Re.object,maxDate:Re.object,maxDateTime:Re.object,maxTime:Re.object,minDate:Re.object,minDateTime:Re.object,minTime:Re.object,minutesStep:Re.number,monthsPerRow:Re.oneOf([3,4]),name:Re.string,onAccept:Re.func,onChange:Re.func,onClose:Re.func,onError:Re.func,onMonthChange:Re.func,onOpen:Re.func,onSelectedSectionsChange:Re.func,onViewChange:Re.func,onYearChange:Re.func,open:Re.bool,openTo:Re.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Re.oneOf(["landscape","portrait"]),readOnly:Re.bool,reduceAnimations:Re.bool,referenceDate:Re.object,renderLoading:Re.func,selectedSections:Re.oneOfType([Re.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Re.number]),shouldDisableDate:Re.func,shouldDisableMonth:Re.func,shouldDisableTime:Re.func,shouldDisableYear:Re.func,showDaysOutsideCurrentMonth:Re.bool,skipDisabled:Re.bool,slotProps:Re.object,slots:Re.object,sx:Re.oneOfType([Re.arrayOf(Re.oneOfType([Re.func,Re.object,Re.bool])),Re.func,Re.object]),thresholdToRenderTimeInASingleColumn:Re.number,timeSteps:Re.shape({hours:Re.number,minutes:Re.number,seconds:Re.number}),timezone:Re.string,value:Re.object,view:Re.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Re.shape({day:Re.func,hours:Re.func,meridiem:Re.func,minutes:Re.func,month:Re.func,seconds:Re.func,year:Re.func}),views:Re.arrayOf(Re.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Re.oneOf(["asc","desc"]),yearsPerRow:Re.oneOf([3,4])};const eB=y.forwardRef(function(t,r){var u,d,f;const n=ka(),o=Wr(),a=Z4(t,"MuiMobileDateTimePicker"),i=le({day:Ju,month:Ju,year:Ju,hours:Ew,minutes:Ew,seconds:Ew},a.viewRenderers),s=a.ampmInClock??!1,l=le({},a,{viewRenderers:i,format:Q4(o,a),ampmInClock:s,slots:le({field:N4},a.slots),slotProps:le({},a.slotProps,{field:h=>{var p;return le({},Vp((p=a.slotProps)==null?void 0:p.field,h),k4(a),{ref:r})},toolbar:le({hidden:!1,ampmInClock:s},(u=a.slotProps)==null?void 0:u.toolbar),tabs:le({hidden:!1},(d=a.slotProps)==null?void 0:d.tabs)})}),{renderPicker:c}=YOe({props:l,valueManager:zo,valueType:"date-time",getOpenDialogAriaText:s4({utils:o,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:(f=l.localeText)==null?void 0:f.openDatePickerDialogue}),validator:Zb});return c()});eB.propTypes={ampm:Re.bool,ampmInClock:Re.bool,autoFocus:Re.bool,className:Re.string,closeOnSelect:Re.bool,dayOfWeekFormatter:Re.func,defaultValue:Re.object,disabled:Re.bool,disableFuture:Re.bool,disableHighlightToday:Re.bool,disableIgnoringDatePartForTimeValidation:Re.bool,disableOpenPicker:Re.bool,disablePast:Re.bool,displayWeekNumber:Re.bool,enableAccessibleFieldDOMStructure:Re.any,fixedWeekNumber:Re.number,format:Re.string,formatDensity:Re.oneOf(["dense","spacious"]),inputRef:HA,label:Re.node,loading:Re.bool,localeText:Re.object,maxDate:Re.object,maxDateTime:Re.object,maxTime:Re.object,minDate:Re.object,minDateTime:Re.object,minTime:Re.object,minutesStep:Re.number,monthsPerRow:Re.oneOf([3,4]),name:Re.string,onAccept:Re.func,onChange:Re.func,onClose:Re.func,onError:Re.func,onMonthChange:Re.func,onOpen:Re.func,onSelectedSectionsChange:Re.func,onViewChange:Re.func,onYearChange:Re.func,open:Re.bool,openTo:Re.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Re.oneOf(["landscape","portrait"]),readOnly:Re.bool,reduceAnimations:Re.bool,referenceDate:Re.object,renderLoading:Re.func,selectedSections:Re.oneOfType([Re.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Re.number]),shouldDisableDate:Re.func,shouldDisableMonth:Re.func,shouldDisableTime:Re.func,shouldDisableYear:Re.func,showDaysOutsideCurrentMonth:Re.bool,slotProps:Re.object,slots:Re.object,sx:Re.oneOfType([Re.arrayOf(Re.oneOfType([Re.func,Re.object,Re.bool])),Re.func,Re.object]),timezone:Re.string,value:Re.object,view:Re.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Re.shape({day:Re.func,hours:Re.func,minutes:Re.func,month:Re.func,seconds:Re.func,year:Re.func}),views:Re.arrayOf(Re.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Re.oneOf(["asc","desc"]),yearsPerRow:Re.oneOf([3,4])};const $_e=["desktopModeMediaQuery"],R_e=y.forwardRef(function(t,r){const n=Rr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=uke}=n,a=Zt(n,$_e);return My(o,{defaultMatches:!0})?v.jsx(J4,le({ref:r},a)):v.jsx(eB,le({ref:r},a))});var tB={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(lr,function(){var r=1e3,n=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",p="date",m="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var N=["th","st","nd","rd"],V=j%100;return"["+j+(N[(V-20)%10]||N[V]||N[0])+"]"}},g=function(j,N,V){var ee=String(j);return!ee||ee.length>=N?j:""+Array(N+1-ee.length).join(V)+j},S={s:g,z:function(j){var N=-j.utcOffset(),V=Math.abs(N),ee=Math.floor(V/60),M=V%60;return(N<=0?"+":"-")+g(ee,2,"0")+":"+g(M,2,"0")},m:function j(N,V){if(N.date()<V.date())return-j(V,N);var ee=12*(V.year()-N.year())+(V.month()-N.month()),M=N.clone().add(ee,d),K=V-M<0,te=N.clone().add(ee+(K?-1:1),d);return+(-(ee+(V-M)/(K?M-te:te-M))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:d,y:h,w:u,d:c,D:p,h:l,m:s,s:i,ms:a,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},R="en",T={};T[R]=w;var k="$isDayjsObject",O=function(j){return j instanceof B||!(!j||!j[k])},E=function j(N,V,ee){var M;if(!N)return R;if(typeof N=="string"){var K=N.toLowerCase();T[K]&&(M=K),V&&(T[K]=V,M=K);var te=N.split("-");if(!M&&te.length>1)return j(te[0])}else{var oe=N.name;T[oe]=N,M=oe}return!ee&&M&&(R=M),M||!ee&&R},C=function(j,N){if(O(j))return j.clone();var V=typeof N=="object"?N:{};return V.date=j,V.args=arguments,new B(V)},D=S;D.l=E,D.i=O,D.w=function(j,N){return C(j,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var B=function(){function j(V){this.$L=E(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[k]=!0}var N=j.prototype;return N.parse=function(V){this.$d=function(ee){var M=ee.date,K=ee.utc;if(M===null)return new Date(NaN);if(D.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var te=M.match(x);if(te){var oe=te[2]-1||0,Ie=(te[7]||"0").substring(0,3);return K?new Date(Date.UTC(te[1],oe,te[3]||1,te[4]||0,te[5]||0,te[6]||0,Ie)):new Date(te[1],oe,te[3]||1,te[4]||0,te[5]||0,te[6]||0,Ie)}}return new Date(M)}(V),this.init()},N.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},N.$utils=function(){return D},N.isValid=function(){return this.$d.toString()!==m},N.isSame=function(V,ee){var M=C(V);return this.startOf(ee)<=M&&M<=this.endOf(ee)},N.isAfter=function(V,ee){return C(V)<this.startOf(ee)},N.isBefore=function(V,ee){return this.endOf(ee)<C(V)},N.$g=function(V,ee,M){return D.u(V)?this[ee]:this.set(M,V)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(V,ee){var M=this,K=!!D.u(ee)||ee,te=D.p(V),oe=function(G,Y){var Q=D.w(M.$u?Date.UTC(M.$y,Y,G):new Date(M.$y,Y,G),M);return K?Q:Q.endOf(c)},Ie=function(G,Y){return D.w(M.toDate()[G].apply(M.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(Y)),M)},Te=this.$W,ke=this.$M,pe=this.$D,Pe="set"+(this.$u?"UTC":"");switch(te){case h:return K?oe(1,0):oe(31,11);case d:return K?oe(1,ke):oe(0,ke+1);case u:var Ae=this.$locale().weekStart||0,ge=(Te<Ae?Te+7:Te)-Ae;return oe(K?pe-ge:pe+(6-ge),ke);case c:case p:return Ie(Pe+"Hours",0);case l:return Ie(Pe+"Minutes",1);case s:return Ie(Pe+"Seconds",2);case i:return Ie(Pe+"Milliseconds",3);default:return this.clone()}},N.endOf=function(V){return this.startOf(V,!1)},N.$set=function(V,ee){var M,K=D.p(V),te="set"+(this.$u?"UTC":""),oe=(M={},M[c]=te+"Date",M[p]=te+"Date",M[d]=te+"Month",M[h]=te+"FullYear",M[l]=te+"Hours",M[s]=te+"Minutes",M[i]=te+"Seconds",M[a]=te+"Milliseconds",M)[K],Ie=K===c?this.$D+(ee-this.$W):ee;if(K===d||K===h){var Te=this.clone().set(p,1);Te.$d[oe](Ie),Te.init(),this.$d=Te.set(p,Math.min(this.$D,Te.daysInMonth())).$d}else oe&&this.$d[oe](Ie);return this.init(),this},N.set=function(V,ee){return this.clone().$set(V,ee)},N.get=function(V){return this[D.p(V)]()},N.add=function(V,ee){var M,K=this;V=Number(V);var te=D.p(ee),oe=function(ke){var pe=C(K);return D.w(pe.date(pe.date()+Math.round(ke*V)),K)};if(te===d)return this.set(d,this.$M+V);if(te===h)return this.set(h,this.$y+V);if(te===c)return oe(1);if(te===u)return oe(7);var Ie=(M={},M[s]=n,M[l]=o,M[i]=r,M)[te]||1,Te=this.$d.getTime()+V*Ie;return D.w(Te,this)},N.subtract=function(V,ee){return this.add(-1*V,ee)},N.format=function(V){var ee=this,M=this.$locale();if(!this.isValid())return M.invalidDate||m;var K=V||"YYYY-MM-DDTHH:mm:ssZ",te=D.z(this),oe=this.$H,Ie=this.$m,Te=this.$M,ke=M.weekdays,pe=M.months,Pe=M.meridiem,Ae=function(Y,Q,Z,X){return Y&&(Y[Q]||Y(ee,K))||Z[Q].slice(0,X)},ge=function(Y){return D.s(oe%12||12,Y,"0")},G=Pe||function(Y,Q,Z){var X=Y<12?"AM":"PM";return Z?X.toLowerCase():X};return K.replace(b,function(Y,Q){return Q||function(Z){switch(Z){case"YY":return String(ee.$y).slice(-2);case"YYYY":return D.s(ee.$y,4,"0");case"M":return Te+1;case"MM":return D.s(Te+1,2,"0");case"MMM":return Ae(M.monthsShort,Te,pe,3);case"MMMM":return Ae(pe,Te);case"D":return ee.$D;case"DD":return D.s(ee.$D,2,"0");case"d":return String(ee.$W);case"dd":return Ae(M.weekdaysMin,ee.$W,ke,2);case"ddd":return Ae(M.weekdaysShort,ee.$W,ke,3);case"dddd":return ke[ee.$W];case"H":return String(oe);case"HH":return D.s(oe,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return G(oe,Ie,!0);case"A":return G(oe,Ie,!1);case"m":return String(Ie);case"mm":return D.s(Ie,2,"0");case"s":return String(ee.$s);case"ss":return D.s(ee.$s,2,"0");case"SSS":return D.s(ee.$ms,3,"0");case"Z":return te}return null}(Y)||te.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(V,ee,M){var K,te=this,oe=D.p(ee),Ie=C(V),Te=(Ie.utcOffset()-this.utcOffset())*n,ke=this-Ie,pe=function(){return D.m(te,Ie)};switch(oe){case h:K=pe()/12;break;case d:K=pe();break;case f:K=pe()/3;break;case u:K=(ke-Te)/6048e5;break;case c:K=(ke-Te)/864e5;break;case l:K=ke/o;break;case s:K=ke/n;break;case i:K=ke/r;break;default:K=ke}return M?K:D.a(K)},N.daysInMonth=function(){return this.endOf(d).$D},N.$locale=function(){return T[this.$L]},N.locale=function(V,ee){if(!V)return this.$L;var M=this.clone(),K=E(V,ee,!0);return K&&(M.$L=K),M},N.clone=function(){return D.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},j}(),U=B.prototype;return C.prototype=U,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",p]].forEach(function(j){U[j[1]]=function(N){return this.$g(N,j[0],j[1])}}),C.extend=function(j,N){return j.$i||(j(N,B,C),j.$i=!0),C},C.locale=E,C.isDayjs=O,C.unix=function(j){return C(1e3*j)},C.en=T[R],C.Ls=T,C.p={},C})})(tB);var k_e=tB.exports;const I_e=Rd(k_e);var Rt=(e=>(e[e.STRING=0]="STRING",e[e.NUMERIC=1]="NUMERIC",e[e.BOOLEAN=2]="BOOLEAN",e[e.DATETIME=3]="DATETIME",e[e.COMMENT=4]="COMMENT",e[e.FILE=5]="FILE",e))(Rt||{});const $_=(e,t)=>t.split(".").reduce((r,n)=>r&&r[n],e),Ef=(e,t,r)=>{const n=t.split("."),o=n.pop(),a=n.reduce((i,s)=>(i[s]||(i[s]={}),i[s]),e);a[o]=r};function Ii({fieldConfigs:e,header:t,initial:r,submitter:n,deleter:o,secondary:a}){const[i,s]=y.useState(r),[l,c]=y.useState(new Set),[u,d]=y.useState(new Map),[f,h]=y.useState(!1),[p,m]=y.useState(!1),[x,b]=y.useState(!1),[w,g]=y.useState("unknown error"),S=()=>{b(!0),g("unknown error"),m(!0)},R=E=>{b(!1),g(E),m(!0)},T=(E,C)=>{const D={...i};Ef(D,E,C),s(D),c(B=>new Set(B).add(E)),d(B=>{const U=new Map(B);return U.delete(E),U})},k=(E,C)=>{T(E,C)},O=async()=>{d(new Map);let E=!1;const C={...r};if(e.forEach(D=>{if(l.has(D.name)){const B=$_(i,D.name);if(D.type===1){const U=Number(B);isNaN(U)?(E=!0,d(j=>new Map(j).set(D.name,"Please enter a number"))):Ef(C,D.name,U)}else D.type===2?Ef(C,D.name,B==="true"):(D.type,Ef(C,D.name,B))}}),E)R("There are errors in the form, please fix them and try again!");else try{await n(C),S(),c(new Set),d(new Map)}catch(D){if(D.detail){const B=new Map;D.detail.forEach(U=>{const j=U.loc.slice(1).join("."),N=U.msg;B.set(j,N)}),d(B),R("There are errors in the form, see highlighted fields.")}else R(D.message||"An unexpected error occurred.")}};return v.jsxs(Rn,{children:[v.jsxs(Ga,{variant:"outlined",sx:{margin:1,padding:2},children:[v.jsxs(Tg,{direction:"row",justifyContent:"space-between",spacing:2,sx:{margin:2},children:[v.jsx(sr,{variant:"h4",component:"h2",children:t}),v.jsxs(Cq,{variant:"contained",children:[o&&v.jsx(zr,{onClick:()=>h(!0),children:"Delete"}),v.jsx(zr,{onClick:O,disabled:l.size===0,children:"Apply Changes"})]})]}),v.jsx(Tg,{spacing:1,children:e.map(E=>{const C=$_(i,E.name),D=u.get(E.name);return E.items?v.jsxs(Fc,{error:!!D,children:[v.jsx(wh,{id:`${E.name}-select-label`,children:E.label}),v.jsx(Nd,{labelId:`${E.name}-select-label`,name:E.name,value:C||"",onChange:B=>T(E.name,B.target.value),children:E.items.map(B=>v.jsx(Bs,{value:B.value,children:B.label},B.value))})]},E.name):E.type===0||E.type===1?v.jsx(Pg,{name:E.name,label:E.label,value:C||"",onChange:B=>T(E.name,B.target.value),error:!!D,helperText:D,fullWidth:!0},E.name):E.type===2?v.jsx(PT,{control:v.jsx(ST,{name:E.name,checked:C===!0||C==="true",onChange:B=>T(E.name,B.target.checked.toString())}),label:E.label},E.name):E.type===3?v.jsx(R_e,{label:E.label,value:C?I_e(C):null,onChange:B=>T(E.name,B==null?void 0:B.toISOString()),renderInput:B=>v.jsx(Pg,{...B,error:!!D,helperText:D})},E.name):E.type===4?v.jsx(sr,{variant:"subtitle1",children:E.comment},E.name):E.type===5?v.jsxs(Fc,{error:!!D,fullWidth:!0,children:[v.jsx("input",{accept:"*/*",style:{display:"none"},id:`file-input-${E.name}`,type:"file",onChange:B=>k(E.name,B.target.files?B.target.files[0]:null)}),v.jsx("label",{htmlFor:`file-input-${E.name}`,children:v.jsx(zr,{variant:"contained",component:"span",children:E.label})}),C&&typeof C!="string"&&v.jsxs(sr,{variant:"body2",sx:{marginTop:1},children:["Selected File: ",C.name]}),D&&v.jsx(sr,{variant:"caption",color:"error",children:D})]},E.name):v.jsx(sr,{children:"Unsupported field type"},E.name)})})]}),v.jsx(EZ,{open:p,autoHideDuration:4e3,onClose:()=>m(!1),children:v.jsx(CG,{onClose:()=>m(!1),severity:x?"success":"error",variant:"filled",children:x?"Changes submitted successfully":w})}),o&&v.jsxs(CT,{open:f,onClose:()=>h(!1),children:[v.jsx(Kj,{children:"Confirm Deletion"}),v.jsx(TT,{children:v.jsx(jY,{children:"Are you sure you want to delete this item? This action cannot be undone."})}),v.jsxs(Gj,{children:[v.jsx(zr,{onClick:()=>h(!1),children:"Cancel"}),v.jsx(zr,{onClick:async()=>{try{await o(),h(!1),S()}catch(E){R(E.message||"Failed to delete the item.")}},color:"error",children:"Delete"})]})]})]})}function Jp(e){return String(e.kst_number)+" | "+e.name_de}function AP(e){return e.name_de}async function Gs(e){let t="";if(typeof e!="string"){console.log("uploading file");const r=await rte({body:{file:e}});if(r.error)throw r.error;if(r.data)console.log("file uploaded",r.data),t=r.data.file_id||"";else throw new Error("No data returned from file upload")}else t=e.split("?")[0].split("/").pop()||"";return t}function jP(e,t,r=!1){let n=[];return r===!0&&(n=[{name:"textcomment",label:"text comment",type:Rt.COMMENT,comment:"these fields are only for the quästor:"},{name:"creditor.qcomment",label:"qcomment",type:Rt.STRING},{name:"creditor.name",label:"name",type:Rt.STRING},{name:"creditor.creator_id",label:"creator",type:Rt.STRING},{name:"recipient",label:"recipient",type:Rt.STRING},{name:"creditor.accounting_year",label:"accounting_year",type:Rt.NUMERIC},{name:"creditor.q_check",label:"q_check",type:Rt.BOOLEAN}]),[{name:"creditor.comment",label:"Description",type:Rt.STRING},{name:"creditor.amount",label:"Amount",type:Rt.NUMERIC},{name:"creditor.currency",label:"Currency",type:Rt.STRING},{name:"creditor.kst_id",label:"KST | Cost Center",type:Rt.STRING,items:e.map(o=>({label:Jp(o),value:o.id?o.id:""}))},{name:"creditor.ledger_id",label:"Ledger",type:Rt.STRING,items:t.map(o=>({label:AP(o),value:o.id?o.id:""}))},{name:"reciept",label:"Receipt",type:Rt.FILE},...n]}function E_e(){const{kst:e,ledger:t,user:r}=Pa(),n=jP(e,t,!1),o={creditor:{kst_id:"",ledger_id:"",amount:0,accounting_year:2024,currency:"CHF",comment:"",qcomment:"",name:"",creator_id:r.id?r.id:""},reciept:"",creator:r.id,recipient:r.id},a=async i=>{i.reciept=await Gs(i.reciept);const s=await Jee({body:i});if(s.error)throw s.error};return v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:n,header:"Request Reimbursement",submitter:a,initial:o})})}function rB(e){const{idstring:t}=ly(),r=t||e,{kst:n,ledger:o,user:a}=Pa(),[i,s]=y.useState(!0),[l,c]=y.useState(null);y.useEffect(()=>{(async()=>{try{console.log("Fetching credit payment data for ID:",r);const p=(await QL({path:{id:r}})).data;c({id:(p==null?void 0:p.id)||"",creditor_id:(p==null?void 0:p.creditor_id)||"",creditor:{id:(p==null?void 0:p.creditor.id)||"",kst_id:(p==null?void 0:p.creditor.kst_id)||"",ledger_id:(p==null?void 0:p.creditor.ledger_id)||"",amount:(p==null?void 0:p.creditor.amount)||0,currency:(p==null?void 0:p.creditor.currency)||"CHF",comment:(p==null?void 0:p.creditor.comment)||"",qcomment:(p==null?void 0:p.creditor.qcomment)||"",name:(p==null?void 0:p.creditor.name)||"",creator_id:(p==null?void 0:p.creditor.creator_id)||"",accounting_year:(p==null?void 0:p.creditor.accounting_year)||2024},reciept:(p==null?void 0:p.reciept)||"",recipient:(p==null?void 0:p.recipient)||""})}catch(h){console.error("Failed to load Reimbursement data:",h)}finally{s(!1)}})()},[r,a.id]);const u=async f=>{f.reciept=await Gs(f.reciept);const h=await ZL({body:f,path:{id:r}});if(h.error)throw h.error},d=jP(n,o,!0);return i||!l?v.jsx(Rn,{children:v.jsx(Nc,{})}):v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:d,header:"Edit Credit Payment",submitter:u,initial:l})})}function LP(e,t,r=!1){return[{name:"creditor.comment",label:"Description",type:Rt.STRING},{name:"creditor.amount",label:"Amount",type:Rt.NUMERIC},{name:"creditor.currency",label:"Currency",type:Rt.STRING},{name:"creditor.kst_id",label:"KST | Cost Center",type:Rt.STRING,items:e.map(n=>({label:Jp(n),value:n.id?n.id:""}))},{name:"creditor.ledger_id",label:"Ledger",type:Rt.STRING,items:t.map(n=>({label:AP(n),value:n.id?n.id:""}))},{name:"address.name",label:"Company Name",type:Rt.STRING},{name:"address.address1",label:"Address Line 1",type:Rt.STRING},{name:"address.address2",label:"Address Line 2 (optional)",type:Rt.STRING},{name:"address.address3",label:"Address Line 3 (optional)",type:Rt.STRING},{name:"address.plz",label:"ZIP Code",type:Rt.NUMERIC},{name:"address.city",label:"City",type:Rt.STRING},{name:"address.country",label:"Country",type:Rt.STRING},{name:"reference",label:"(QR-) Reference",type:Rt.STRING},{name:"iban",label:"Iban",type:Rt.STRING},{name:"reciept",label:"receipt",type:Rt.FILE},{name:"comment",label:"comment",type:Rt.STRING}]}function O_e(){const{kst:e,ledger:t,user:r}=Pa(),n=LP(e,t),o={creditor:{kst_id:"",ledger_id:"",amount:0,accounting_year:2024,currency:"CHF",comment:"",qcomment:"",name:"",creator_id:r.id?r.id:""},address:{name:"",address1:"",address2:"",address3:"",plz:0,city:"",country:""},reference:"",iban:"",reciept:"",comment:""},a=async i=>{i.reciept=await Gs(i.reciept);const s=await Zee({body:i});if(s.error)throw s.error};return v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:n,header:"Enter Bill",submitter:a,initial:o})})}function nB(e,t=!1){const{idstring:r}=ly(),n=r||e,{kst:o,ledger:a,user:i}=Pa(),[s,l]=y.useState(!0),[c,u]=y.useState(null);y.useEffect(()=>{(async()=>{var p,m,x,b,w,g,S,R,T,k,O,E,C,D,B,U,j,N,V;try{console.log("Fetching credit payment data for ID:",n);const M=(await YL({path:{id:n}})).data;u({id:(M==null?void 0:M.id)||"",creditor_id:(M==null?void 0:M.creditor_id)||"",creditor:{id:((p=M==null?void 0:M.creditor)==null?void 0:p.id)||"",kst_id:((m=M==null?void 0:M.creditor)==null?void 0:m.kst_id)||"",ledger_id:((x=M==null?void 0:M.creditor)==null?void 0:x.ledger_id)||"",amount:((b=M==null?void 0:M.creditor)==null?void 0:b.amount)||0,accounting_year:((w=M==null?void 0:M.creditor)==null?void 0:w.accounting_year)||2024,currency:((g=M==null?void 0:M.creditor)==null?void 0:g.currency)||"CHF",comment:((S=M==null?void 0:M.creditor)==null?void 0:S.comment)||"",qcomment:((R=M==null?void 0:M.creditor)==null?void 0:R.qcomment)||"",name:((T=M==null?void 0:M.creditor)==null?void 0:T.name)||"",creator_id:((k=M==null?void 0:M.creditor)==null?void 0:k.creator_id)||""},reciept:(M==null?void 0:M.reciept)||"",reference:(M==null?void 0:M.reference)||"",iban:(M==null?void 0:M.iban)||"",address_id:((O=M==null?void 0:M.address)==null?void 0:O.id)||"",address:{id:((E=M==null?void 0:M.address)==null?void 0:E.id)||"",name:((C=M==null?void 0:M.address)==null?void 0:C.name)||"",address1:((D=M==null?void 0:M.address)==null?void 0:D.address1)||"",address2:((B=M==null?void 0:M.address)==null?void 0:B.address2)||"",address3:((U=M==null?void 0:M.address)==null?void 0:U.address3)||"",plz:((j=M==null?void 0:M.address)==null?void 0:j.plz)||0,city:((N=M==null?void 0:M.address)==null?void 0:N.city)||"",country:((V=M==null?void 0:M.address)==null?void 0:V.country)||""}})}catch(ee){console.error("Failed to load credit payment data:",ee)}finally{l(!1)}})()},[n,i.id]);const d=async h=>{h.reciept=await Gs(h.reciept);const p=await XL({body:h,path:{id:n}});if(p.error)throw p.error},f=LP(o,a);return s||!c?v.jsx(Rn,{children:v.jsx(Nc,{})}):v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:f,header:"Edit Credit Payment",submitter:d,initial:c})})}function NP(e,t,r){return[{name:"creditor.comment",label:"Description",type:Rt.STRING},{name:"creditor.amount",label:"Amount",type:Rt.NUMERIC},{name:"creditor.currency",label:"Currency",type:Rt.STRING},{name:"creditor.kst_id",label:"KST | Cost Center",type:Rt.STRING,items:e.map(n=>({label:Jp(n),value:n.id?n.id:""}))},{name:"creditor.ledger_id",label:"Ledger",type:Rt.STRING,items:t.map(n=>({label:AP(n),value:n.id?n.id:""}))},{name:"card",label:"Creditcard",type:Rt.STRING,items:[{label:"President",value:a1.PRESIDENT},{label:"Events",value:a1.EVENTS},{label:"Quaestor",value:a1.QUAESTOR}]},{name:"reciept",label:"reciept",type:Rt.FILE}]}function __e(){const{kst:e,ledger:t,user:r}=Pa(),n=NP(e,t),o={creditor:{kst_id:"",ledger_id:"",amount:0,accounting_year:2024,currency:"CHF",comment:"",qcomment:"",name:"",creator_id:r.id},reciept:"",card:"President"},a=async i=>{i.reciept=await Gs(i.reciept);const s=await tte({body:i});if(s.error)throw s.error};return v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:n,header:"Add Credit Card Receipt",submitter:a,initial:o})})}function oB(e="",t=!1){const{idstring:r}=ly(),n=r||e,{kst:o,ledger:a,user:i}=Pa();console.log("idstring",n);const[s,l]=y.useState(!0),[c,u]=y.useState(null);y.useEffect(()=>{(async()=>{var p,m,x,b,w,g,S,R,T,k;try{console.log("Fetching credit payment data for ID:",n);const E=(await JL({path:{id:n}})).data;u({id:(E==null?void 0:E.id)||"",creditor_id:(E==null?void 0:E.creditor_id)||"",creditor:{id:((p=E==null?void 0:E.creditor)==null?void 0:p.id)||"",kst_id:((m=E==null?void 0:E.creditor)==null?void 0:m.kst_id)||"",ledger_id:((x=E==null?void 0:E.creditor)==null?void 0:x.ledger_id)||"",amount:((b=E==null?void 0:E.creditor)==null?void 0:b.amount)||0,accounting_year:((w=E==null?void 0:E.creditor)==null?void 0:w.accounting_year)||2024,currency:((g=E==null?void 0:E.creditor)==null?void 0:g.currency)||"CHF",comment:((S=E==null?void 0:E.creditor)==null?void 0:S.comment)||"",qcomment:((R=E==null?void 0:E.creditor)==null?void 0:R.qcomment)||"",name:((T=E==null?void 0:E.creditor)==null?void 0:T.name)||"",creator_id:((k=E==null?void 0:E.creditor)==null?void 0:k.creator_id)||""},reciept:(E==null?void 0:E.reciept)||"",card:(E==null?void 0:E.card)||"President"})}catch(O){console.error("Failed to load credit payment data:",O)}finally{l(!1)}})()},[n,i.id]);const d=async h=>{h.reciept=await Gs(h.reciept);const p=await eN({body:h,path:{id:n}});if(p.error)throw p.error},f=NP(o,a);return s||!c?v.jsx(Rn,{children:v.jsx(Nc,{})}):v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:f,header:"Edit Credit Payment",submitter:d,initial:c})})}Dr.setConfig({baseUrl:"http://localhost:8000/",headers:{Origin:"localhost"}});function FP(e,t,r){return[{name:"debitor.kst_id",label:"source kst",type:Rt.STRING,items:e.map(n=>({label:Jp(n),value:n.id?n.id:""}))},{name:"creditor.kst_id",label:"destination kst",type:Rt.STRING,items:e.map(n=>({label:Jp(n),value:n.id?n.id:""}))},{name:"creditor.amount",label:"amount",type:Rt.NUMERIC},{name:"creditor.currency",label:"währung",type:Rt.STRING},{name:"creditor.comment",label:"kommentar",type:Rt.STRING}]}function D_e(){const{kst:e,ledger:t,user:r}=Pa(),n=FP(e),o={creditor:{kst_id:"",ledger_id:t[0].id?t[0].id:"",amount:0,accounting_year:2024,currency:"CHF",comment:"",qcomment:"",name:"",creator_id:r.id},debitor:{kst_id:"",ledger_id:t[0].id?t[0].id:"",amount:0,mwst:"0"},amount:0},a=async i=>{i.debitor.amount=i.creditor.amount,i.amount=i.creditor.amount;const s=await Qee({body:i});if(s.error)throw s.error};return v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:n,header:"Add Internal Transfer",submitter:a,initial:o})})}function aB(e,t=!1){const{idstring:r}=ly(),n=r||e,{kst:o,ledger:a,user:i}=Pa(),[s,l]=y.useState(!0),[c,u]=y.useState(null);y.useEffect(()=>{(async()=>{var p,m,x,b,w,g,S,R,T,k,O,E,C,D,B;try{console.log("Fetching credit payment data for ID:",n);const j=(await KL({path:{id:n}})).data;u({id:j==null?void 0:j.id,creditor_id:j==null?void 0:j.creditor_id,debitor_id:j==null?void 0:j.debitor_id,creditor:{id:((p=j==null?void 0:j.creditor)==null?void 0:p.id)||"",kst_id:((m=j==null?void 0:j.creditor)==null?void 0:m.kst_id)||"",ledger_id:((x=j==null?void 0:j.creditor)==null?void 0:x.ledger_id)||"",amount:((b=j==null?void 0:j.creditor)==null?void 0:b.amount)||0,accounting_year:((w=j==null?void 0:j.creditor)==null?void 0:w.accounting_year)||2024,currency:((g=j==null?void 0:j.creditor)==null?void 0:g.currency)||"CHF",comment:((S=j==null?void 0:j.creditor)==null?void 0:S.comment)||"",qcomment:((R=j==null?void 0:j.creditor)==null?void 0:R.qcomment)||"",name:((T=j==null?void 0:j.creditor)==null?void 0:T.name)||"",creator_id:((k=j==null?void 0:j.creditor)==null?void 0:k.creator_id)||""},debitor:{id:((O=j==null?void 0:j.debitor)==null?void 0:O.id)||"",kst_id:((E=j==null?void 0:j.debitor)==null?void 0:E.kst_id)||"",ledger_id:((C=j==null?void 0:j.debitor)==null?void 0:C.ledger_id)||"",amount:((D=j==null?void 0:j.debitor)==null?void 0:D.amount)||0,mwst:((B=j==null?void 0:j.debitor)==null?void 0:B.mwst)||"0"},amount:(j==null?void 0:j.amount)||0})}catch(U){console.error("Failed to load credit payment data:",U)}finally{l(!1)}})()},[n,i.id]);const d=async h=>{const p=await qL({body:h,path:{id:n}});if(p.error)throw p.error},f=FP(o);return s||!c?v.jsx(Rn,{children:v.jsx(Nc,{})}):v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:f,header:"Edit Internal Transfer",submitter:d,initial:c})})}const e0=e=>({propIdString:t,onClose:r})=>{const n=e(t);return v.jsxs("div",{children:[n,v.jsx(zr,{onClick:r,children:"Close"})]})},M_e=e0(rB),A_e=e0(nB),j_e=e0(oB),L_e=e0(aB);function N_e(e,t,r){switch(e){case"Reimbursement":return v.jsx(M_e,{propIdString:t,onClose:r});case"Bill":return v.jsx(A_e,{propIdString:t,onClose:r});case"CreditPayment":return v.jsx(j_e,{propIdString:t,onClose:r});case"InternalTransfer":return v.jsx(L_e,{propIdString:t,onClose:r});default:return v.jsx("div",{children:"Unknown Type"})}}async function F_e(e,t){switch(e){case"Reimbursement":return(await QL({path:{id:t}})).data;case"Bill":return(await YL({path:{id:t}})).data;case"CreditPayment":return(await JL({path:{id:t}})).data;case"InternalTransfer":return(await KL({path:{id:t}})).data;default:throw new Error("Unknown Type")}}function B_e(e,t,r,n=!0){switch(e){case"Reimbursement":return jP(t,r,n);case"Bill":return LP(t,r,n);case"CreditPayment":return NP(t,r);case"InternalTransfer":return FP(t)}}const t0=({title:e,fetchFunction:t,kst:r,ledger:n,additionalColumns:o=[],previewHeader:a=(i,s,l)=>""})=>{const[i,s]=y.useState(!1),[l,c]=y.useState(null),u=()=>{s(!1),c(null)},d=async(b,w)=>{s(!0);try{const g=await F_e(b,w),S=B_e(b,r,n,!0);c(v.jsxs("div",{children:[v.jsx(i4,{data:g,fieldConfigs:S,previewHeader:v.jsxs("div",{style:{minWidth:"150px",display:"flex",flexDirection:"column",gap:"1rem"},children:[v.jsx(zr,{variant:"contained",color:"primary",onClick:()=>f(b,w),children:"Edit"}),a(b,w,g)]})}),v.jsx(zr,{onClick:u,children:"Close"})]}))}catch(g){console.error(`Error fetching ${b} data:`,g),c(v.jsxs("div",{children:[v.jsx("p",{children:"Error loading data."}),v.jsx(zr,{onClick:u,children:"Close"})]}))}},f=(b,w)=>{s(!0),c(N_e(b,w,u))},h=b=>{const[w,g]=b;d(w,g)},p=(b,w,g)=>{b.stopPropagation(),f(w,g)},x=[...[{name:"type",label:"Type"},{name:"id",label:"ID"},{name:"name",label:"Name"},{name:"creditor__amount",label:"Amount"},{name:"card",label:"Card"},{name:"creditor__kst__kst_number",label:"KST Number"},{name:"creditor__kst__name_de",label:"KST Name"},{name:"creditor__ledger__name_de",label:"Ledger Name"},{name:"creditor__currency",label:"Currency"},{name:"reciept",label:"Receipt"},{name:"creator",label:"Creator"},{name:"reference",label:"Reference"},{name:"iban",label:"IBAN"},{name:"comment",label:"Comment"},{name:"reimbursement__recipient",label:"Recipient"},{name:"edit",label:"Edit",options:{filter:!1,sort:!1,customBodyRender:(b,w)=>{const g=w.rowData[0],S=w.rowData[1];return v.jsx(zr,{variant:"contained",color:"primary",onClick:R=>p(R,g,S),children:"Edit"})}}}],...o];return v.jsxs(v.Fragment,{children:[v.jsx(TP,{title:e,columns:x,fetchData:t,onRowClick:h}),v.jsxs(CT,{open:i,onClose:u,maxWidth:"md",fullWidth:!0,children:[v.jsx(Kj,{children:l&&No.isValidElement(l)?"Details":"Edit Item"}),v.jsx(TT,{children:l})]})]})},z_e=()=>{const{kst:e,ledger:t,user:r}=Pa(),n=async({search:o,sort:a,filters:i})=>{const s=await rN({query:{search:o,sort:a?`${a.column}:${a.direction}`:null,...i}});return s.error?(console.error("Error fetching combined payments:",s.error),[]):s.data.items.map(c=>{var u,d,f,h,p;return{name:c.creditor.name,creditor__amount:(u=c.creditor)==null?void 0:u.amount,card:c.card,creditor__kst__kst_number:((d=e.find(m=>{var x;return m.id===((x=c.creditor)==null?void 0:x.kst_id)}))==null?void 0:d.kst_number)||"Unknown",creditor__kst__name_de:((f=e.find(m=>{var x;return m.id===((x=c.creditor)==null?void 0:x.kst_id)}))==null?void 0:f.name_de)||"Unknown",creditor__ledger__name_de:((h=t.find(m=>{var x;return m.id===((x=c.creditor)==null?void 0:x.ledger_id)}))==null?void 0:h.name_de)||"Unknown",creditor__currency:(p=c.creditor)==null?void 0:p.currency,creator:r.nethz,type:c.type,id:c.id,reference:c.reference,iban:c.iban,comment:c.creditor.comment,reimbursement__recipient:c.reimbursement__recipient}})};return v.jsx(t0,{title:"Combined Payments List",fetchFunction:n,kst:e,ledger:t})};Dr.getConfig();async function Of(){var i,s;const t=((i=(await GL({})).data)==null?void 0:i.items)||[],n=((s=(await WL({})).data)==null?void 0:s.items)||[],a=(await rb()).data;return{kst:t,ledger:n,user:a}}const V_e=()=>{const[e,t]=y.useState(""),r=o=>{t(o.target.value)},n=()=>{switch(e){case"beleg":return v.jsx(E_e,{});case"bill":return v.jsx(O_e,{});case"creditPayment":return v.jsx(__e,{});case"internaltransfer":return v.jsx(D_e,{});default:return null}};return v.jsxs(Rn,{children:[v.jsx(sr,{variant:"h4",component:"h2",gutterBottom:!0,children:"Select Form Type"}),v.jsxs(Fc,{fullWidth:!0,children:[v.jsx(wh,{id:"form-type-label",children:"Form Type"}),v.jsxs(Nd,{labelId:"form-type-label",value:e,onChange:r,children:[v.jsx(Bs,{value:"beleg",children:"Reimbursement"}),v.jsx(Bs,{value:"bill",children:"Bill"}),v.jsx(Bs,{value:"creditPayment",children:"Credit Card Receipt"}),v.jsx(Bs,{value:"internaltransfer",children:"Internal Transfer"})]})]}),n()]})},U_e=[{name:"title_de",label:"Titel Deutsch",type:Rt.STRING},{name:"title_en",label:"Titel Englisch",type:Rt.STRING},{name:"description_de",label:"Beschreibung Deutsch",type:Rt.STRING},{name:"description_en",label:"Beschreibung Englisch",type:Rt.STRING},{name:"price",label:"Preis",type:Rt.NUMERIC},{name:"unit",label:"Einheit",type:Rt.STRING}];function H_e(){const e={title_de:"",description_de:"",title_en:"",description_en:"",price:0,unit:"",active:!0},t=async r=>{const n=await Kee({body:r});if(n.error)throw n.error};return v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:U_e,header:"Add Item",submitter:t,initial:e})})}function W_e(){return[{name:"accountnumber",label:"accountnumber",type:Rt.NUMERIC},{name:"name_de",label:"name_de",type:Rt.STRING},{name:"name_en",label:"name_en",type:Rt.STRING},{name:"owner",label:"owner",type:Rt.STRING}]}function G_e(){const e=W_e(),t={accountnumber:0,name_de:"",name_en:"",owner:""},r=async n=>{const o=await qee({body:n});if(o.error)throw o.error};return v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:e,header:"Add Item",submitter:r,initial:t})})}const K_e=[{name:"iban",label:"IBAN",type:Rt.STRING},{name:"address.name",label:"Name",type:Rt.STRING},{name:"address.address1",label:"Optional Addr field",type:Rt.STRING},{name:"address.address2",label:"street and Nr",type:Rt.STRING},{name:"address.address3",label:"Optional ",type:Rt.STRING},{name:"address.plz",label:"PLZ",type:Rt.NUMERIC},{name:"address.city",label:"City",type:Rt.STRING},{name:"address.country",label:"Country",type:Rt.STRING}];async function q_e(){const e=await rb();if(e.error)throw e.error;return e.data}function Y_e(){const[e,t]=y.useState(null),[r,n]=y.useState(!0),[o,a]=y.useState(null);if(y.useEffect(()=>{(async()=>{try{const c=await q_e();t(c)}catch(c){a(c.message||"Failed to fetch user info")}finally{n(!1)}})()},[]),!e)return v.jsx(Rn,{children:"No user data available"});const i={id:e.id,iban:"",address:{name:"",address1:"",address2:"",address3:"",plz:0,city:"",country:""}},s=async l=>{const c=await ote({body:l});if(c.error)throw c.error;window.location.href="/"};return v.jsxs(Rn,{children:["Please enter your bank details. Any reimbursements will be sent to this account. Once you have entered your bank details, you will be able to submit your first reimbursement.",v.jsx(Ii,{fieldConfigs:K_e,header:"Onboarding",submitter:s,initial:i})]})}function X_e(){return[{name:"kst_number",label:"kst_number",type:Rt.NUMERIC},{name:"name_de",label:"name_de",type:Rt.STRING},{name:"name_en",label:"name_en",type:Rt.STRING},{name:"owner",label:"owner",type:Rt.STRING},{name:"active",label:"active",type:Rt.BOOLEAN},{name:"budget_plus",label:"budget_plus",type:Rt.NUMERIC},{name:"budget_minus",label:"budget_minus",type:Rt.NUMERIC}]}function Q_e(){const e=X_e(),t={kst_number:0,name_de:"",name_en:"",owner:"",active:!0,budget_plus:0,budget_minus:0},r=async n=>{const o=await Yee({body:n});if(o.error)throw o.error};return v.jsx(Rn,{children:v.jsx(Ii,{fieldConfigs:e,header:"Add Item",submitter:r,initial:t})})}async function Z_e(e,t,r){try{const n=r;if(n.creditor.q_check=!n.creditor.q_check,e==="Bill"){n.reciept=await Gs(n.reciept);const o=await XL({body:n,path:{id:t}});if(o.error)return console.error("Failed to update bill:",o.error),alert("Failed to update bill"),!1;alert("Bill approval status updated")}else if(e==="CreditPayment"){n.reciept=await Gs(n.reciept);const o=await eN({body:n,path:{id:t}});if(o.error)return console.error("Failed to update credit payment:",o.error),alert("Failed to update credit payment"),!1;alert("Credit Payment approval status updated")}else if(e==="Reimbursement"){n.reciept=await Gs(n.reciept);const o=await ZL({body:n,path:{id:t}});if(o.error)return console.error("Failed to update reimbursement:",o.error),alert("Failed to update reimbursement"),!1;alert("Reimbursement approval status updated")}else if(e==="InternalTransfer"){const o=await qL({body:n,path:{id:t}});if(o.error)return console.error("Failed to update internal transfer:",o.error),alert("Failed to update internal transfer"),!1;alert("Internal Transfer approval status updated")}else return console.error("Unknown type provided:",e),alert("Unknown type provided"),!1}catch(n){return console.error("Failed to toggle check",n),alert("Failed to toggle check"),!1}}const J_e=()=>{const{kst:e,ledger:t,user:r}=Pa(),n=async({search:a,sort:i,filters:s})=>{const l=await rN({query:{search:a,sort:i?`${i.column}:${i.direction}`:null,...s}});return l.error?(console.error("Error fetching combined payments:",l.error),[]):l.data.items.map(u=>{var d,f,h,p,m;return{name:u.creditor.name,creditor__amount:(d=u.creditor)==null?void 0:d.amount,card:u.card,creditor__kst__kst_number:((f=e.find(x=>{var b;return x.id===((b=u.creditor)==null?void 0:b.kst_id)}))==null?void 0:f.kst_number)||"Unknown",creditor__kst__name_de:((h=e.find(x=>{var b;return x.id===((b=u.creditor)==null?void 0:b.kst_id)}))==null?void 0:h.name_de)||"Unknown",creditor__ledger__name_de:((p=t.find(x=>{var b;return x.id===((b=u.creditor)==null?void 0:b.ledger_id)}))==null?void 0:p.name_de)||"Unknown",creditor__currency:(m=u.creditor)==null?void 0:m.currency,creator:r.nethz,type:u.type,id:u.id,reference:u.reference,iban:u.iban,comment:u.creditor.comment,reimbursement__recipient:u.reimbursement__recipient}})};function o(a,i,s){const l=()=>{Z_e(a,i,s).catch(c=>{console.error("Error handling check:",c)})};return[v.jsx(zr,{variant:"contained",color:s.creditor.q_check?"success":"error",onClick:l,children:s.creditor.q_check?"Checked":"Check"})]}return v.jsx(t0,{title:"Combined Payments List",additionalColumns:[{name:"check",label:"Check"}],fetchFunction:n,kst:e,ledger:t,previewHeader:o})},eDe=()=>{Pa();const e=[{name:"kst_number",label:"KST Number"},{name:"name_de",label:"Name"},{name:"name_en",label:"Name (EN)"},{name:"active",label:"Active"},{name:"budget_plus",label:"Budget Plus"},{name:"budget_minus",label:"Budget Minus"},{name:"effective_plus",label:"Effective Plus"},{name:"effective_minus",label:"Effective Minus"}],t=async({search:r,sort:n,filters:o})=>{var i;const a={search:r||null,sort:n?`${n.column}:${n.direction}`:null,...o};console.log("Fetching Credit Payments with:",a);try{return(((i=(await ite({query:a})).data)==null?void 0:i.items)||[]).map(u=>({kst_number:u.kst_number,name_de:u.name_de,name_en:u.name_en,active:u.active,budget_plus:u.budget_plus,budget_minus:u.budget_minus,effective_plus:u.effective_plus,effective_minus:u.effective_minus}))}catch(s){return console.error("Error fetching Credit Payments:",s),[]}};return v.jsx(TP,{title:"KST Evaluation",columns:e,fetchData:t})},tDe=()=>{const{kst:e,ledger:t,user:r}=Pa(),n=async({search:o,sort:a,filters:i})=>{const s=await tN({query:{search:o,sort:a?`${a.column}:${a.direction}`:null,...i}});return s.error?(console.error("Error fetching combined payments:",s.error),[]):s.data.items.map(c=>{var u,d,f,h,p;return{name:c.creditor.name,creditor__amount:(u=c.creditor)==null?void 0:u.amount,card:c.card,creditor__kst__kst_number:((d=e.find(m=>{var x;return m.id===((x=c.creditor)==null?void 0:x.kst_id)}))==null?void 0:d.kst_number)||"Unknown",creditor__kst__name_de:((f=e.find(m=>{var x;return m.id===((x=c.creditor)==null?void 0:x.kst_id)}))==null?void 0:f.name_de)||"Unknown",creditor__ledger__name_de:((h=t.find(m=>{var x;return m.id===((x=c.creditor)==null?void 0:x.ledger_id)}))==null?void 0:h.name_de)||"Unknown",creditor__currency:(p=c.creditor)==null?void 0:p.currency,creator:r.nethz,type:c.type,id:c.id,reference:c.reference,iban:c.iban,comment:c.creditor.comment,reimbursement__recipient:c.reimbursement__recipient}})};return v.jsx(t0,{title:"All Submissions",fetchFunction:n,kst:e,ledger:t})},rDe=()=>{const{kst:e,ledger:t,user:r}=Pa(),n=async({search:o,sort:a,filters:i})=>{const s=await Xee();if(s.error)return console.error("Error fetching combined payments:",s.error),[];const l=await ate({query:{search:o,sort:a?`${a.column}:${a.direction}`:null,...i}});return l.error?(console.error("Error fetching combined payments:",l.error),[]):l.data.items.map(u=>{var d,f,h,p,m;return{name:u.creditor.name,creditor__amount:(d=u.creditor)==null?void 0:d.amount,card:u.card,creditor__kst__kst_number:((f=e.find(x=>{var b;return x.id===((b=u.creditor)==null?void 0:b.kst_id)}))==null?void 0:f.kst_number)||"Unknown",creditor__kst__name_de:((h=e.find(x=>{var b;return x.id===((b=u.creditor)==null?void 0:b.kst_id)}))==null?void 0:h.name_de)||"Unknown",creditor__ledger__name_de:((p=t.find(x=>{var b;return x.id===((b=u.creditor)==null?void 0:b.ledger_id)}))==null?void 0:p.name_de)||"Unknown",creditor__currency:(m=u.creditor)==null?void 0:m.currency,creator:r.nethz,type:u.type,id:u.id,reference:u.reference,iban:u.iban,comment:u.creditor.comment,reimbursement__recipient:u.reimbursement__recipient}})};return v.jsx(t0,{title:"Responsibel KST List",fetchFunction:n,kst:e,ledger:t})};function nDe(){const e=[{id:1,title:"Welcome to QTool! ",description:"In the next few minutes, you will learn how to use the tool correctly. At the end of this onboarding, you will need to enter your IBAN and address, so please have them ready. You will also need to answer a small quiz on each page of this onboarding. Let's begin!",question:"I will pay attention.",options:["Yes","No","Maybe"],correctAnswer:"Yes"},{id:2,title:"What is Qtool?",description:"QTool is used by AMIV to manage most financial processes. For you, it provides the ability to request reimbursements, enter any purchases made with an AMIV credit card, submit large bills that need to be paid by AMIV, and check the current status of the AMIV budget. If you are part of the board or a commission co-president, you will have detailed access to any transactions concerning the cost centers you are responsible for.",question:"What is not a feature of QTool?",options:["Reimbursement Requests","Rights management of AMIV IT services.","AMIV Invoice Management","Budget Overview"],correctAnswer:"Rights management of AMIV IT services."},{id:3,title:"Receipts are important!",description:"The most common scenario for using QTool is when you spend money for AMIV (e.g., buying snacks for the biweekly EESTEC meeting). When spending money for AMIV, you ALWAYS need to ask for a receipt. If you don’t have the receipt, we cannot guarantee reimbursement. The receipt is always necessary, whether you use your own money or an AMIV credit card.",question:"Do I need a receipt when spending money for AMIV?",options:["Only if I need a reimbursement","Only if I use an AMIV Credit card","I always need a receipt when spending money for AMIV","Never, receipts are optional"],correctAnswer:"I always need a receipt when spending money for AMIV"},{id:4,title:"Reimbursement Requests",description:"When you want to get a reimbursement, choose the appropriate icon in the sidebar of QTool. Enter a short, unique, but precise description of what the money was spent on and what it is. Choose the correct cost center. If you are part of a commission, select the commission; if you spent the money for an AMIV event, select the event; if you are part of the board, you should know which option to choose. If in doubt, please contact the responsible person. Select the most appropriate ledger. Enter the exact amount stated on the receipt. Upload the receipt, making sure it is clear and that the whole receipt is visible. If you are happy with your choice, submit the form.",question:"Which of the following is the best description of a reimbursement request?",options:["Gimme Money, was for snacks","Snacks","Beer for EESTEC meeting on 20.02.2014.","Beer for EESTEC meeting"],correctAnswer:"Beer for EESTEC meeting on 20.02.2014."},{id:5,title:"AMIV Credit Card",description:"If you use an AMIV credit card, the receipt also needs to be entered into QTool. The procedure is very similar to the reimbursement process, but you should choose the credit card form. Please be aware that you are responsible for the credit card when you have it with you, and AMIV could charge you for any usage of the card where you cannot provide the receipt.",question:"How many expenses does AMIV have approximately in one year?",options:["30'000,-","100'000,-","650'000,-","1'030'000,-"],correctAnswer:"650'000,-"},{id:6,title:"Submitting Requests",description:"Once you submit a request, the AMIV treasury will check it for correctness and either accept or decline it. You will be notified by email, and in the summary of QTool, you can see the status of all your requests.",question:"When can I discard the original receipt?",options:["After I submitted the request","After I received the money","Never","After the request was accepted"],correctAnswer:"After the request was accepted"},{id:7,title:"Warning!",description:"Use QTool responsibly and try your best to do everything correctly. The AMIV treasury will be very grateful. In the end, we all do this work voluntarily. Finally, every request will be thoroughly checked by the AMIV treasury; any fraudulent behavior will have consequences.",isFinalPage:!0}],[t,r]=y.useState(1),[n,o]=y.useState(""),[a,i]=y.useState([]),[s,l]=y.useState(!1),c=e.length,u=e[t-1],d=x=>{o(x.target.value)},f=()=>{var x;n.trim().toLowerCase()===(((x=u.correctAnswer)==null?void 0:x.toLowerCase())??"")?(a.includes(u.id)||i(b=>[...b,u.id]),o(""),t<c&&r(b=>b+1)):alert("Incorrect answer. Please try again!")},h=()=>{t>1&&(r(x=>x-1),o(""))},p=()=>{u!=null&&u.correctAnswer?a.includes(u.id)&&t<c&&(r(x=>x+1),o("")):u.isFinalPage&&t<c&&r(x=>x+1)},m=()=>{window.location.href="/Onboarding"};return v.jsxs(Rn,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:2,height:"100vh"},children:[v.jsxs(Qn,{sx:{textAlign:"center",marginBottom:2},children:[v.jsx(sr,{variant:"h4",children:u.title}),v.jsx(sr,{variant:"body1",children:u.description})]}),u.isFinalPage?v.jsxs(Qn,{children:[v.jsxs(Qn,{sx:{display:"flex",alignItems:"center",marginBottom:2},children:[v.jsx(ST,{checked:s,onChange:()=>l(!s)}),v.jsx(sr,{variant:"body2",children:"I am aware of my responsibilities and will use QTool responsibly."})]}),v.jsx(zr,{variant:"contained",disabled:!s,onClick:m,children:"Submit & Continue to enter IBAN and address"})]}):v.jsxs(v.Fragment,{children:[u.options&&u.question&&v.jsx(Qn,{sx:{marginBottom:2},children:v.jsxs(Fc,{component:"fieldset",children:[v.jsx(tL,{component:"legend",sx:{marginBottom:1},children:u.question}),v.jsx(cZ,{value:n,onChange:d,sx:{marginLeft:2},children:u.options.map(x=>v.jsx(PT,{value:x,control:v.jsx(iZ,{}),label:x},x))})]})}),u.correctAnswer&&v.jsx(Qn,{sx:{textAlign:"center",marginBottom:2},children:v.jsx(zr,{variant:"contained",color:"primary",onClick:f,sx:{marginRight:2},children:"Submit Answer"})}),v.jsxs(Qn,{sx:{display:"flex",justifyContent:"center",gap:1},children:[v.jsx(zr,{variant:"contained",onClick:h,disabled:t===1,children:"Previous"}),v.jsx(zr,{variant:"contained",onClick:p,disabled:u.correctAnswer&&!a.includes(u.id)||t===c,children:"Next"})]})]})]})}const oDe=JV([{path:"/",element:v.jsx($ee,{}),errorElement:v.jsx(Ree,{}),children:[{index:!0,element:v.jsx(ste,{})},{path:"belegformular",element:v.jsx(V_e,{}),loader:Of},{path:"GenerateItem",element:v.jsx(H_e,{})},{path:"GenerateLedger",element:v.jsx(G_e,{})},{path:"GenerateKst",element:v.jsx(Q_e,{})},{path:"creditlist",element:v.jsx(MRe,{}),loader:gu},{path:"combinedList",element:v.jsx(z_e,{}),loader:gu},{path:"ownList",element:v.jsx(tDe,{}),loader:gu},{path:"kstResponsibleCreditorList",element:v.jsx(rDe,{}),loader:gu},{path:"onboarding",element:v.jsx(Y_e,{})},{path:"onboardingQuiz",element:v.jsx(nDe,{})},{path:"CreditPayment/:idstring",element:v.jsx(oB,{}),loader:Of},{path:"Bill/:idstring",element:v.jsx(nB,{}),loader:Of},{path:"InternalTransfer/:idstring",element:v.jsx(aB,{}),loader:Of},{path:"Reimbursement/:idstring",element:v.jsx(rB,{}),loader:Of},{path:"UncheckedPayments",element:v.jsx(J_e,{}),loader:gu},{path:"KstEval",element:v.jsx(eDe,{}),loader:gu}]},{path:"callback",element:v.jsx(dte,{})}]);_w.createRoot(document.getElementById("root")).render(v.jsx(No.StrictMode,{children:v.jsx(cte,{children:v.jsx(l9,{router:oDe})})})); diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000000000000000000000000000000000000..25bb7610b6620ef2b39e5f57f2645598660350df --- /dev/null +++ b/dist/index.html @@ -0,0 +1,13 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <link rel="icon" type="image/svg+xml" href="/assets/favicon-B5-eEwAz.ico" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>qtool</title> + <script type="module" crossorigin src="/assets/index-D3JcOubP.js"></script> + </head> + <body> + <div id="root"></div> + </body> +</html> diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000000000000000000000000000000000000..2081275377f43cbf8ca537f0da304a4c5e302a0a --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,2 @@ +yarn vite build +yarn run preview \ No newline at end of file diff --git a/openapi.json b/openapi.json index 4d6598d2e636633f18f22f00bed6514575fa1e81..eab567ac4ff74706fa5af114ae61b10de04abac7 100644 --- a/openapi.json +++ b/openapi.json @@ -271,49 +271,6 @@ } } }, - "patch": { - "tags": ["invoices"], - "summary": "Update Invoice", - "description": "update an Invoice.", - "operationId": "invoices-update_Invoice", - "security": [{ "HTTPBearer": [] }], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { "type": "string", "format": "uuid", "title": "Id" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/InvoicePublic-Input" } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InvoicePublic-Output" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/HTTPValidationError" } - } - } - } - } - }, "delete": { "tags": ["invoices"], "summary": "Delete Invoice", @@ -750,6 +707,85 @@ } } }, + "/api/invoices/createpdfInvoice/{invoice_id}": { + "post": { + "tags": ["invoices"], + "summary": "Create Pdf Invoice", + "description": "Create a PDF of the invoice.", + "operationId": "invoices-create_pdf_invoice", + "parameters": [ + { + "name": "invoice_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Invoice Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + }, + "/api/invoices/{Invoice_id}": { + "patch": { + "tags": ["invoices"], + "summary": "Update Invoice", + "description": "update an Invoice.", + "operationId": "invoices-update_Invoice", + "security": [{ "HTTPBearer": [] }], + "parameters": [ + { + "name": "id", + "in": "query", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "Id" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/InvoicePublic-Input" } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoicePublic-Output" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + }, "/api/ledgers/": { "get": { "tags": ["ledgers"], @@ -2095,7 +2131,10 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "anyOf": [ + { "$ref": "#/components/schemas/q_state" }, + { "type": "null" } + ], "title": "Creditor Q Check" } }, @@ -2357,12 +2396,12 @@ } }, { - "name": "reciept", + "name": "receipt", "in": "query", "required": false, "schema": { "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Reciept" + "title": "Receipt" } }, { @@ -2589,7 +2628,10 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "anyOf": [ + { "$ref": "#/components/schemas/q_state" }, + { "type": "null" } + ], "title": "Creditor Q Check" } }, @@ -2900,12 +2942,36 @@ } }, { - "name": "reciept", + "name": "ezag_timestamp", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], + "title": "Ezag Timestamp" + } + }, + { + "name": "ezag_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } + ], + "title": "Ezag Id" + } + }, + { + "name": "receipt", "in": "query", "required": false, "schema": { "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Reciept" + "title": "Receipt" } }, { @@ -3141,7 +3207,10 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "anyOf": [ + { "$ref": "#/components/schemas/q_state" }, + { "type": "null" } + ], "title": "Creditor Q Check" } }, @@ -3385,12 +3454,12 @@ } }, { - "name": "reciept", + "name": "receipt", "in": "query", "required": false, "schema": { "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Reciept" + "title": "Receipt" } }, { @@ -3626,7 +3695,10 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "anyOf": [ + { "$ref": "#/components/schemas/q_state" }, + { "type": "null" } + ], "title": "Creditor Q Check" } }, @@ -4303,12 +4375,12 @@ } }, { - "name": "reciept", + "name": "receipt", "in": "query", "required": false, "schema": { "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Reciept" + "title": "Receipt" } }, { @@ -4350,6 +4422,15 @@ "title": "Recipient" } }, + { + "name": "responsible", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "title": "Responsible" + } + }, { "name": "creditor__search", "in": "query", @@ -4574,7 +4655,10 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "anyOf": [ + { "$ref": "#/components/schemas/q_state" }, + { "type": "null" } + ], "title": "Creditor Q Check" } }, @@ -4631,7 +4715,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "integer" }, { "type": "null" }], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Address Plz" } }, @@ -4794,12 +4878,12 @@ } }, { - "name": "reciept", + "name": "receipt", "in": "query", "required": false, "schema": { "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Reciept" + "title": "Receipt" } }, { @@ -4841,6 +4925,15 @@ "title": "Recipient" } }, + { + "name": "responsible", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "title": "Responsible" + } + }, { "name": "creditor__search", "in": "query", @@ -5065,7 +5158,10 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "anyOf": [ + { "$ref": "#/components/schemas/q_state" }, + { "type": "null" } + ], "title": "Creditor Q Check" } }, @@ -5122,7 +5218,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "integer" }, { "type": "null" }], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Address Plz" } }, @@ -5286,12 +5382,12 @@ } }, { - "name": "reciept", + "name": "receipt", "in": "query", "required": false, "schema": { "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Reciept" + "title": "Receipt" } }, { @@ -5333,6 +5429,15 @@ "title": "Recipient" } }, + { + "name": "responsible", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "title": "Responsible" + } + }, { "name": "creditor__search", "in": "query", @@ -5557,7 +5662,10 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "anyOf": [ + { "$ref": "#/components/schemas/q_state" }, + { "type": "null" } + ], "title": "Creditor Q Check" } }, @@ -5614,7 +5722,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "integer" }, { "type": "null" }], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Address Plz" } }, @@ -5778,12 +5886,12 @@ } }, { - "name": "reciept", + "name": "receipt", "in": "query", "required": false, "schema": { "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Reciept" + "title": "Receipt" } }, { @@ -5825,6 +5933,15 @@ "title": "Recipient" } }, + { + "name": "responsible", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "title": "Responsible" + } + }, { "name": "creditor__search", "in": "query", @@ -6049,7 +6166,10 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "anyOf": [ + { "$ref": "#/components/schemas/q_state" }, + { "type": "null" } + ], "title": "Creditor Q Check" } }, @@ -6106,7 +6226,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "integer" }, { "type": "null" }], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Address Plz" } }, @@ -6241,57 +6361,226 @@ } } } - } - }, - "components": { - "schemas": { - "Address": { - "properties": { - "name": { "type": "string", "maxLength": 30, "title": "Name" }, - "address1": { - "type": "string", - "maxLength": 30, - "title": "Address1" - }, - "address2": { - "type": "string", - "maxLength": 30, - "title": "Address2" - }, - "address3": { - "type": "string", - "maxLength": 30, - "title": "Address3" - }, - "plz": { "type": "integer", "title": "Plz" }, - "city": { "type": "string", "maxLength": 30, "title": "City" }, - "country": { "type": "string", "maxLength": 30, "title": "Country" }, - "id": { "type": "string", "format": "uuid", "title": "Id" }, - "time_create": { - "type": "string", - "format": "date-time", - "title": "Time Create", - "default": "2025-01-07T11:34:53.013433" - }, - "time_modified": { - "type": "string", - "format": "date-time", - "title": "Time Modified", - "default": "2025-01-07T11:34:53.013478" + }, + "/api/ezags/generateEzag": { + "post": { + "tags": ["ezags"], + "summary": "Generateezag", + "description": "Generate a ezag file for all entries that have beeen accepted and that aren't in a ezag file yet.", + "operationId": "ezags-generateEzag", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "string", + "title": "Response Ezags-Generateezag" + } + } + } } }, - "type": "object", - "required": [ - "name", - "address1", - "address2", - "address3", - "plz", - "city", - "country" - ], - "title": "Address" - }, + "security": [{ "HTTPBearer": [] }] + } + }, + "/api/ezags/{id}": { + "get": { + "tags": ["ezags"], + "summary": "Read Ezag", + "description": "Get a specific Ezag.", + "operationId": "ezags-read_Ezag", + "security": [{ "HTTPBearer": [] }], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "Id" } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/EzagPublic" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + }, + "/api/ezags/": { + "get": { + "tags": ["ezags"], + "summary": "Read Ezags", + "description": "Get all Ezags.", + "operationId": "ezags-read_Ezags", + "security": [{ "HTTPBearer": [] }], + "parameters": [ + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 0, "title": "Page" } + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "maximum": 1000, + "default": 100, + "title": "Limit" + } + }, + { + "name": "search", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Search" + } + }, + { + "name": "sort", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Sort" + } + }, + { + "name": "name", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Name" + } + }, + { + "name": "time_create", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], + "title": "Time Create" + } + }, + { + "name": "time_modified", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], + "title": "Time Modified" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/EzagPublicList" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Address": { + "properties": { + "name": { "type": "string", "maxLength": 30, "title": "Name" }, + "address1": { + "type": "string", + "maxLength": 30, + "title": "Address1" + }, + "address2": { + "type": "string", + "maxLength": 30, + "title": "Address2" + }, + "address3": { + "type": "string", + "maxLength": 30, + "title": "Address3" + }, + "plz": { + "type": "string", + "maxLength": 10, + "minLength": 4, + "title": "Plz" + }, + "city": { + "type": "string", + "maxLength": 30, + "minLength": 3, + "title": "City" + }, + "country": { + "type": "string", + "maxLength": 30, + "minLength": 2, + "title": "Country" + }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "time_create": { + "type": "string", + "format": "date-time", + "title": "Time Create", + "default": "2025-01-13T16:16:34.378702" + }, + "time_modified": { + "type": "string", + "format": "date-time", + "title": "Time Modified", + "default": "2025-01-13T16:16:34.378759" + } + }, + "type": "object", + "required": [ + "name", + "address1", + "address2", + "address3", + "plz", + "city", + "country" + ], + "title": "Address" + }, "AddressBase": { "properties": { "name": { "type": "string", "maxLength": 30, "title": "Name" }, @@ -6310,9 +6599,24 @@ "maxLength": 30, "title": "Address3" }, - "plz": { "type": "integer", "title": "Plz" }, - "city": { "type": "string", "maxLength": 30, "title": "City" }, - "country": { "type": "string", "maxLength": 30, "title": "Country" } + "plz": { + "type": "string", + "maxLength": 10, + "minLength": 4, + "title": "Plz" + }, + "city": { + "type": "string", + "maxLength": 30, + "minLength": 3, + "title": "City" + }, + "country": { + "type": "string", + "maxLength": 30, + "minLength": 2, + "title": "Country" + } }, "type": "object", "required": [ @@ -6386,9 +6690,24 @@ "maxLength": 30, "title": "Address3" }, - "plz": { "type": "integer", "title": "Plz" }, - "city": { "type": "string", "maxLength": 30, "title": "City" }, - "country": { "type": "string", "maxLength": 30, "title": "Country" }, + "plz": { + "type": "string", + "maxLength": 10, + "minLength": 4, + "title": "Plz" + }, + "city": { + "type": "string", + "maxLength": 30, + "minLength": 3, + "title": "City" + }, + "country": { + "type": "string", + "maxLength": 30, + "minLength": 2, + "title": "Country" + }, "id": { "type": "string", "format": "uuid", "title": "Id" } }, "type": "object", @@ -6442,7 +6761,7 @@ "format": "uuid", "title": "Creditor Id" }, - "iban": { "type": "string", "maxLength": 30, "title": "Iban" }, + "iban": { "type": "string", "maxLength": 34, "title": "IBAN" }, "address_id": { "type": "string", "format": "uuid", @@ -6453,19 +6772,19 @@ "maxLength": 50, "title": "Reference" }, - "reciept": { "type": "string", "format": "uuid", "title": "Reciept" }, + "receipt": { "type": "string", "format": "uuid", "title": "Receipt" }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "time_create": { "type": "string", "format": "date-time", "title": "Time Create", - "default": "2025-01-07T11:34:53.102839" + "default": "2025-01-13T16:16:34.806757" }, "time_modified": { "type": "string", "format": "date-time", "title": "Time Modified", - "default": "2025-01-07T11:34:53.102873" + "default": "2025-01-13T16:16:34.806799" }, "ezag_timestamp": { "anyOf": [ @@ -6488,7 +6807,7 @@ "iban", "address_id", "reference", - "reciept" + "receipt" ], "title": "Bill" }, @@ -6497,11 +6816,11 @@ "creditor": { "$ref": "#/components/schemas/CreditorBase" }, "address": { "$ref": "#/components/schemas/AddressBase" }, "reference": { "type": "string", "title": "Reference" }, - "iban": { "type": "string", "title": "Iban" }, - "reciept": { "type": "string", "format": "uuid", "title": "Reciept" } + "iban": { "type": "string", "maxLength": 34, "title": "IBAN" }, + "receipt": { "type": "string", "format": "uuid", "title": "Receipt" } }, "type": "object", - "required": ["creditor", "address", "reference", "iban", "reciept"], + "required": ["creditor", "address", "reference", "iban", "receipt"], "title": "BillCreate" }, "BillPublic-Input": { @@ -6511,7 +6830,7 @@ "format": "uuid", "title": "Creditor Id" }, - "iban": { "type": "string", "maxLength": 30, "title": "Iban" }, + "iban": { "type": "string", "maxLength": 34, "title": "IBAN" }, "address_id": { "type": "string", "format": "uuid", @@ -6522,12 +6841,12 @@ "maxLength": 50, "title": "Reference" }, - "reciept": { + "receipt": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "uuid" } ], - "title": "Reciept" + "title": "Receipt" }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "creditor": { "$ref": "#/components/schemas/CreditorPublic" }, @@ -6539,7 +6858,7 @@ "iban", "address_id", "reference", - "reciept", + "receipt", "id", "creditor", "address" @@ -6553,7 +6872,7 @@ "format": "uuid", "title": "Creditor Id" }, - "iban": { "type": "string", "maxLength": 30, "title": "Iban" }, + "iban": { "type": "string", "maxLength": 34, "title": "IBAN" }, "address_id": { "type": "string", "format": "uuid", @@ -6564,12 +6883,12 @@ "maxLength": 50, "title": "Reference" }, - "reciept": { + "receipt": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "uuid" } ], - "title": "Reciept" + "title": "Receipt" }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "creditor": { "$ref": "#/components/schemas/CreditorPublic" }, @@ -6581,7 +6900,7 @@ "iban", "address_id", "reference", - "reciept", + "receipt", "id", "creditor", "address" @@ -6822,20 +7141,20 @@ "format": "uuid", "title": "Creditor Id" }, - "reciept": { "type": "string", "format": "uuid", "title": "Reciept" }, + "receipt": { "type": "string", "format": "uuid", "title": "Receipt" }, "card": { "$ref": "#/components/schemas/Card" }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "time_create": { "type": "string", "format": "date-time", "title": "Time Create", - "default": "2025-01-07T11:34:53.117225" + "default": "2025-01-13T16:16:34.828099" }, "time_modified": { "type": "string", "format": "date-time", "title": "Time Modified", - "default": "2025-01-07T11:34:53.117275" + "default": "2025-01-13T16:16:34.828141" }, "ezag_timestamp": { "anyOf": [ @@ -6846,17 +7165,17 @@ } }, "type": "object", - "required": ["creditor_id", "reciept", "card"], + "required": ["creditor_id", "receipt", "card"], "title": "CreditPayment" }, "CreditPaymentCreate": { "properties": { "creditor": { "$ref": "#/components/schemas/CreditorBase" }, - "reciept": { "type": "string", "format": "uuid", "title": "Reciept" }, + "receipt": { "type": "string", "format": "uuid", "title": "Receipt" }, "card": { "$ref": "#/components/schemas/Card" } }, "type": "object", - "required": ["creditor", "reciept", "card"], + "required": ["creditor", "receipt", "card"], "title": "CreditPaymentCreate" }, "CreditPaymentPublic-Input": { @@ -6866,19 +7185,19 @@ "format": "uuid", "title": "Creditor Id" }, - "reciept": { + "receipt": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "uuid" } ], - "title": "Reciept" + "title": "Receipt" }, "card": { "$ref": "#/components/schemas/Card" }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "creditor": { "$ref": "#/components/schemas/CreditorPublic" } }, "type": "object", - "required": ["creditor_id", "reciept", "card", "id", "creditor"], + "required": ["creditor_id", "receipt", "card", "id", "creditor"], "title": "CreditPaymentPublic" }, "CreditPaymentPublic-Output": { @@ -6888,19 +7207,19 @@ "format": "uuid", "title": "Creditor Id" }, - "reciept": { + "receipt": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "uuid" } ], - "title": "Reciept" + "title": "Receipt" }, "card": { "$ref": "#/components/schemas/Card" }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "creditor": { "$ref": "#/components/schemas/CreditorPublic" } }, "type": "object", - "required": ["creditor_id", "reciept", "card", "id", "creditor"], + "required": ["creditor_id", "receipt", "card", "id", "creditor"], "title": "CreditPaymentPublic" }, "CreditPaymentsList": { @@ -6952,9 +7271,8 @@ "default": "" }, "q_check": { - "type": "boolean", - "title": "Q Check", - "default": false + "$ref": "#/components/schemas/q_state", + "default": "open" }, "q_check_timestamp": { "anyOf": [ @@ -7034,8 +7352,10 @@ "title": "Name" }, "q_check": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], - "title": "Q Check" + "anyOf": [ + { "$ref": "#/components/schemas/q_state" }, + { "type": "null" } + ] }, "q_check_timestamp": { "anyOf": [ @@ -7081,9 +7401,8 @@ "default": "" }, "q_check": { - "type": "boolean", - "title": "Q Check", - "default": false + "$ref": "#/components/schemas/q_state", + "default": "open" }, "q_check_timestamp": { "anyOf": [ @@ -7119,14 +7438,14 @@ }, "DbUserBase": { "properties": { - "id": { "type": "string", "maxLength": 30, "title": "Id" }, + "id": { "type": "string", "maxLength": 32, "title": "Id" }, "address_id": { "type": "string", "format": "uuid", "title": "Address Id" }, "nethz": { "type": "string", "maxLength": 100, "title": "Nethz" }, - "iban": { "type": "string", "maxLength": 30, "title": "Iban" } + "iban": { "type": "string", "maxLength": 34, "title": "IBAN" } }, "type": "object", "required": ["id", "address_id", "nethz", "iban"], @@ -7144,14 +7463,14 @@ }, "DbUserPublic": { "properties": { - "id": { "type": "string", "maxLength": 30, "title": "Id" }, + "id": { "type": "string", "maxLength": 32, "title": "Id" }, "address_id": { "type": "string", "format": "uuid", "title": "Address Id" }, "nethz": { "type": "string", "maxLength": 100, "title": "Nethz" }, - "iban": { "type": "string", "maxLength": 30, "title": "Iban" }, + "iban": { "type": "string", "maxLength": 34, "title": "IBAN" }, "address": { "$ref": "#/components/schemas/AddressPublic" } }, "type": "object", @@ -7243,7 +7562,13 @@ "title": "Amount" }, "mwst": { "type": "string", "maxLength": 30, "title": "Mwst" }, - "id": { "type": "string", "format": "uuid", "title": "Id" } + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "kst": { + "anyOf": [ + { "$ref": "#/components/schemas/Kst" }, + { "type": "null" } + ] + } }, "type": "object", "required": [ @@ -7256,6 +7581,36 @@ ], "title": "DebitorPublic" }, + "EzagPublic": { + "properties": { + "name": { "type": "string", "maxLength": 30, "title": "Name" }, + "size": { "type": "integer", "title": "Size" }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "time_create": { + "type": "string", + "format": "date-time", + "title": "Time Create" + }, + "link": { "type": "string", "title": "Link" } + }, + "type": "object", + "required": ["name", "size", "id", "time_create", "link"], + "title": "EzagPublic" + }, + "EzagPublicList": { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/EzagPublic" }, + "type": "array", + "title": "Items" + }, + "count": { "type": "integer", "title": "Count" }, + "total": { "type": "integer", "title": "Total" } + }, + "type": "object", + "required": ["items", "count", "total"], + "title": "EzagPublicList" + }, "HTTPValidationError": { "properties": { "detail": { @@ -7296,13 +7651,13 @@ "type": "string", "format": "date-time", "title": "Time Create", - "default": "2025-01-07T11:34:53.158371" + "default": "2025-01-13T16:16:34.947047" }, "time_modified": { "type": "string", "format": "date-time", "title": "Time Modified", - "default": "2025-01-07T11:34:53.158410" + "default": "2025-01-13T16:16:34.947100" } }, "type": "object", @@ -7410,21 +7765,45 @@ "title": "Payinterval", "default": 30 }, + "creator_id": { + "type": "string", + "maxLength": 32, + "title": "Creator Id" + }, + "q_check": { "$ref": "#/components/schemas/q_state" }, + "q_check_timestamp": { + "anyOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], + "title": "Q Check Timestamp" + }, + "address_id": { + "type": "string", + "format": "uuid", + "title": "Address Id" + }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "time_create": { "type": "string", "format": "date-time", "title": "Time Create", - "default": "2025-01-07T11:34:53.177837" + "default": "2025-01-13T16:16:34.973571" }, "time_modified": { "type": "string", "format": "date-time", "title": "Time Modified", - "default": "2025-01-07T11:34:53.177875" + "default": "2025-01-13T16:16:34.973616" } }, "type": "object", + "required": [ + "creator_id", + "q_check", + "q_check_timestamp", + "address_id" + ], "title": "Invoice" }, "InvoiceCreate": { @@ -7434,6 +7813,24 @@ "title": "Payinterval", "default": 30 }, + "creator_id": { + "type": "string", + "maxLength": 32, + "title": "Creator Id" + }, + "q_check": { "$ref": "#/components/schemas/q_state" }, + "q_check_timestamp": { + "anyOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], + "title": "Q Check Timestamp" + }, + "address_id": { + "type": "string", + "format": "uuid", + "title": "Address Id" + }, "items": { "items": { "$ref": "#/components/schemas/ItemstoInvoiceCreate" }, "type": "array", @@ -7441,7 +7838,13 @@ } }, "type": "object", - "required": ["items"], + "required": [ + "creator_id", + "q_check", + "q_check_timestamp", + "address_id", + "items" + ], "title": "InvoiceCreate" }, "InvoicePublic-Input": { @@ -7451,6 +7854,24 @@ "title": "Payinterval", "default": 30 }, + "creator_id": { + "type": "string", + "maxLength": 32, + "title": "Creator Id" + }, + "q_check": { "$ref": "#/components/schemas/q_state" }, + "q_check_timestamp": { + "anyOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], + "title": "Q Check Timestamp" + }, + "address_id": { + "type": "string", + "format": "uuid", + "title": "Address Id" + }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "time_create": { "type": "string", @@ -7469,7 +7890,13 @@ } }, "type": "object", - "required": ["items"], + "required": [ + "creator_id", + "q_check", + "q_check_timestamp", + "address_id", + "items" + ], "title": "InvoicePublic" }, "InvoicePublic-Output": { @@ -7479,6 +7906,24 @@ "title": "Payinterval", "default": 30 }, + "creator_id": { + "type": "string", + "maxLength": 32, + "title": "Creator Id" + }, + "q_check": { "$ref": "#/components/schemas/q_state" }, + "q_check_timestamp": { + "anyOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], + "title": "Q Check Timestamp" + }, + "address_id": { + "type": "string", + "format": "uuid", + "title": "Address Id" + }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "time_create": { "type": "string", @@ -7497,7 +7942,13 @@ } }, "type": "object", - "required": ["items"], + "required": [ + "creator_id", + "q_check", + "q_check_timestamp", + "address_id", + "items" + ], "title": "InvoicePublic" }, "InvoicesList": { @@ -7550,13 +8001,13 @@ "type": "string", "format": "date-time", "title": "Time Create", - "default": "2025-01-07T11:34:53.132330" + "default": "2025-01-13T16:16:34.845769" }, "time_modified": { "type": "string", "format": "date-time", "title": "Time Modified", - "default": "2025-01-07T11:34:53.132360" + "default": "2025-01-13T16:16:34.845813" } }, "type": "object", @@ -7697,7 +8148,11 @@ }, "Kst": { "properties": { - "kst_number": { "type": "integer", "title": "Kst Number" }, + "kst_number": { + "type": "string", + "maxLength": 4, + "title": "Kst Number" + }, "name_de": { "type": "string", "maxLength": 30, "title": "Name De" }, "name_en": { "type": "string", "maxLength": 30, "title": "Name En" }, "owner": { "type": "string", "maxLength": 30, "title": "Owner" }, @@ -7709,13 +8164,13 @@ "type": "string", "format": "date-time", "title": "Time Create", - "default": "2025-01-07T11:34:53.054469" + "default": "2025-01-13T16:16:34.734042" }, "time_modified": { "type": "string", "format": "date-time", "title": "Time Modified", - "default": "2025-01-07T11:34:53.054507" + "default": "2025-01-13T16:16:34.734090" } }, "type": "object", @@ -7731,7 +8186,11 @@ }, "KstBase": { "properties": { - "kst_number": { "type": "integer", "title": "Kst Number" }, + "kst_number": { + "type": "string", + "maxLength": 4, + "title": "Kst Number" + }, "name_de": { "type": "string", "maxLength": 30, "title": "Name De" }, "name_en": { "type": "string", "maxLength": 30, "title": "Name En" }, "owner": { "type": "string", "maxLength": 30, "title": "Owner" }, @@ -7752,7 +8211,11 @@ }, "KstEval": { "properties": { - "kst_number": { "type": "integer", "title": "Kst Number" }, + "kst_number": { + "type": "string", + "maxLength": 4, + "title": "Kst Number" + }, "name_de": { "type": "string", "maxLength": 30, "title": "Name De" }, "name_en": { "type": "string", "maxLength": 30, "title": "Name En" }, "owner": { "type": "string", "maxLength": 30, "title": "Owner" }, @@ -7821,7 +8284,11 @@ }, "KstPublic": { "properties": { - "kst_number": { "type": "integer", "title": "Kst Number" }, + "kst_number": { + "type": "string", + "maxLength": 4, + "title": "Kst Number" + }, "name_de": { "type": "string", "maxLength": 30, "title": "Name De" }, "name_en": { "type": "string", "maxLength": 30, "title": "Name En" }, "owner": { "type": "string", "maxLength": 30, "title": "Owner" }, @@ -7874,13 +8341,13 @@ "Ledger": { "properties": { "accountnumber": { - "type": "integer", - "title": "Accountnumber", - "default": 0 + "type": "string", + "maxLength": 4, + "title": "Accountnumber" }, "name_de": { "type": "string", "maxLength": 30, "title": "Name De" }, "name_en": { "type": "string", "maxLength": 30, "title": "Name En" }, - "owner": { "type": "string", "maxLength": 30, "title": "Owner" }, + "owner": { "type": "string", "maxLength": 32, "title": "Owner" }, "visibility": { "type": "integer", "title": "Visibility", @@ -7891,29 +8358,29 @@ "type": "string", "format": "date-time", "title": "Time Create", - "default": "2025-01-07T11:34:53.064710" + "default": "2025-01-13T16:16:34.748145" }, "time_modified": { "type": "string", "format": "date-time", "title": "Time Modified", - "default": "2025-01-07T11:34:53.064753" + "default": "2025-01-13T16:16:34.748222" } }, "type": "object", - "required": ["name_de", "name_en", "owner"], + "required": ["accountnumber", "name_de", "name_en", "owner"], "title": "Ledger" }, "LedgerBase": { "properties": { "accountnumber": { - "type": "integer", - "title": "Accountnumber", - "default": 0 + "type": "string", + "maxLength": 4, + "title": "Accountnumber" }, "name_de": { "type": "string", "maxLength": 30, "title": "Name De" }, "name_en": { "type": "string", "maxLength": 30, "title": "Name En" }, - "owner": { "type": "string", "maxLength": 30, "title": "Owner" }, + "owner": { "type": "string", "maxLength": 32, "title": "Owner" }, "visibility": { "type": "integer", "title": "Visibility", @@ -7921,7 +8388,7 @@ } }, "type": "object", - "required": ["name_de", "name_en", "owner"], + "required": ["accountnumber", "name_de", "name_en", "owner"], "title": "LedgerBase" }, "LedgerFilter": { @@ -7957,13 +8424,13 @@ "LedgerPublic": { "properties": { "accountnumber": { - "type": "integer", - "title": "Accountnumber", - "default": 0 + "type": "string", + "maxLength": 4, + "title": "Accountnumber" }, "name_de": { "type": "string", "maxLength": 30, "title": "Name De" }, "name_en": { "type": "string", "maxLength": 30, "title": "Name En" }, - "owner": { "type": "string", "maxLength": 30, "title": "Owner" }, + "owner": { "type": "string", "maxLength": 32, "title": "Owner" }, "visibility": { "type": "integer", "title": "Visibility", @@ -7972,7 +8439,7 @@ "id": { "type": "string", "format": "uuid", "title": "Id" } }, "type": "object", - "required": ["name_de", "name_en", "owner", "id"], + "required": ["accountnumber", "name_de", "name_en", "owner", "id"], "title": "LedgerPublic" }, "LedgersPublic": { @@ -7997,19 +8464,26 @@ "format": "uuid", "title": "Creditor Id" }, - "reciept": { "type": "string", "format": "uuid", "title": "Reciept" }, + "receipt": { "type": "string", "format": "uuid", "title": "Receipt" }, "id": { "type": "string", "format": "uuid", "title": "Id" }, "time_create": { "type": "string", "format": "date-time", "title": "Time Create", - "default": "2025-01-07T11:34:53.188582" + "default": "2025-01-13T16:16:34.992387" }, "time_modified": { "type": "string", "format": "date-time", "title": "Time Modified", - "default": "2025-01-07T11:34:53.188614" + "default": "2025-01-13T16:16:34.992436" + }, + "ezag_id": { + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } + ], + "title": "Ezag Id" }, "ezag_timestamp": { "anyOf": [ @@ -8032,17 +8506,17 @@ } }, "type": "object", - "required": ["creditor_id", "reciept", "recipient"], + "required": ["creditor_id", "receipt", "recipient"], "title": "Reimbursement" }, "ReimbursementCreate": { "properties": { "creditor": { "$ref": "#/components/schemas/CreditorBase" }, - "reciept": { "type": "string", "format": "uuid", "title": "Reciept" }, + "receipt": { "type": "string", "format": "uuid", "title": "Receipt" }, "recipient": { "type": "string", "title": "Recipient" } }, "type": "object", - "required": ["creditor", "reciept", "recipient"], + "required": ["creditor", "receipt", "recipient"], "title": "ReimbursementCreate" }, "ReimbursementPublic-Input": { @@ -8052,19 +8526,41 @@ "format": "uuid", "title": "Creditor Id" }, - "reciept": { + "receipt": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "uuid" } ], - "title": "Reciept" + "title": "Receipt" }, "id": { "type": "string", "format": "uuid", "title": "Id" }, + "ezag_id": { + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } + ], + "title": "Ezag Id" + }, + "ezag_timestamp": { + "anyOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], + "title": "Ezag Timestamp" + }, "creditor": { "$ref": "#/components/schemas/CreditorPublic" }, "recipient": { "type": "string", "title": "Recipient" } }, "type": "object", - "required": ["creditor_id", "reciept", "id", "creditor", "recipient"], + "required": [ + "creditor_id", + "receipt", + "id", + "ezag_id", + "ezag_timestamp", + "creditor", + "recipient" + ], "title": "ReimbursementPublic" }, "ReimbursementPublic-Output": { @@ -8074,19 +8570,41 @@ "format": "uuid", "title": "Creditor Id" }, - "reciept": { + "receipt": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "uuid" } ], - "title": "Reciept" + "title": "Receipt" }, "id": { "type": "string", "format": "uuid", "title": "Id" }, + "ezag_id": { + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } + ], + "title": "Ezag Id" + }, + "ezag_timestamp": { + "anyOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], + "title": "Ezag Timestamp" + }, "creditor": { "$ref": "#/components/schemas/CreditorPublic" }, "recipient": { "type": "string", "title": "Recipient" } }, "type": "object", - "required": ["creditor_id", "reciept", "id", "creditor", "recipient"], + "required": [ + "creditor_id", + "receipt", + "id", + "ezag_id", + "ezag_timestamp", + "creditor", + "recipient" + ], "title": "ReimbursementPublic" }, "ReimbursementsList": { @@ -8118,6 +8636,11 @@ "type": "object", "required": ["loc", "msg", "type"], "title": "ValidationError" + }, + "q_state": { + "type": "string", + "enum": ["open", "accepted", "rejected"], + "title": "q_state" } }, "securitySchemes": { "HTTPBearer": { "type": "http", "scheme": "bearer" } } diff --git a/src/Callback.tsx b/src/Callback.tsx index 1ff448ad232b6257cfdac2ab266d9a447b9bdd8f..0b36b36bbaf49469951539f3e4c99d3b29473c4b 100644 --- a/src/Callback.tsx +++ b/src/Callback.tsx @@ -1,6 +1,6 @@ import { useEffect, useRef } from "react"; import { useNavigate } from "react-router-dom"; -import { authIsOnboarded } from "./client/services.gen"; +import { authIsOnboarded } from "./client/services.gen"; import client from "./apiClientConfig"; client.getConfig(); /** @@ -31,8 +31,8 @@ const Callback = () => { (async () => { try { client.getConfig(); - - const response = await authIsOnboarded({client: client}); + + const response = await authIsOnboarded({ client: client }); // Navigate based on onboarding status if (response.error) { navigate("/onboardingQuiz"); @@ -45,8 +45,6 @@ const Callback = () => { } } else if (response.data === false) { navigate("/onboardingQuiz"); - - } } catch (err) { console.error("Onboarding check failed:", err); diff --git a/src/client/schemas.gen.ts b/src/client/schemas.gen.ts index ee5ac216b77b2b1045fd4907fb0b09fcaa33bb42..fa860d9703ae70dd18975e4e38f61d14c2dcc16c 100644 --- a/src/client/schemas.gen.ts +++ b/src/client/schemas.gen.ts @@ -23,17 +23,21 @@ export const AddressSchema = { title: "Address3", }, plz: { - type: "integer", + type: "string", + maxLength: 10, + minLength: 4, title: "Plz", }, city: { type: "string", maxLength: 30, + minLength: 3, title: "City", }, country: { type: "string", maxLength: 30, + minLength: 2, title: "Country", }, id: { @@ -45,13 +49,13 @@ export const AddressSchema = { type: "string", format: "date-time", title: "Time Create", - default: "2025-01-07T11:34:53.013433", + default: "2025-01-13T16:16:34.378702", }, time_modified: { type: "string", format: "date-time", title: "Time Modified", - default: "2025-01-07T11:34:53.013478", + default: "2025-01-13T16:16:34.378759", }, }, type: "object", @@ -90,17 +94,21 @@ export const AddressBaseSchema = { title: "Address3", }, plz: { - type: "integer", + type: "string", + maxLength: 10, + minLength: 4, title: "Plz", }, city: { type: "string", maxLength: 30, + minLength: 3, title: "City", }, country: { type: "string", maxLength: 30, + minLength: 2, title: "Country", }, }, @@ -246,17 +254,21 @@ export const AddressPublicSchema = { title: "Address3", }, plz: { - type: "integer", + type: "string", + maxLength: 10, + minLength: 4, title: "Plz", }, city: { type: "string", maxLength: 30, + minLength: 3, title: "City", }, country: { type: "string", maxLength: 30, + minLength: 2, title: "Country", }, id: { @@ -352,8 +364,8 @@ export const BillSchema = { }, iban: { type: "string", - maxLength: 30, - title: "Iban", + maxLength: 34, + title: "IBAN", }, address_id: { type: "string", @@ -365,10 +377,10 @@ export const BillSchema = { maxLength: 50, title: "Reference", }, - reciept: { + receipt: { type: "string", format: "uuid", - title: "Reciept", + title: "Receipt", }, id: { type: "string", @@ -379,13 +391,13 @@ export const BillSchema = { type: "string", format: "date-time", title: "Time Create", - default: "2025-01-07T11:34:53.102839", + default: "2025-01-13T16:16:34.806757", }, time_modified: { type: "string", format: "date-time", title: "Time Modified", - default: "2025-01-07T11:34:53.102873", + default: "2025-01-13T16:16:34.806799", }, ezag_timestamp: { anyOf: [ @@ -413,7 +425,7 @@ export const BillSchema = { }, }, type: "object", - required: ["creditor_id", "iban", "address_id", "reference", "reciept"], + required: ["creditor_id", "iban", "address_id", "reference", "receipt"], title: "Bill", } as const; @@ -431,16 +443,17 @@ export const BillCreateSchema = { }, iban: { type: "string", - title: "Iban", + maxLength: 34, + title: "IBAN", }, - reciept: { + receipt: { type: "string", format: "uuid", - title: "Reciept", + title: "Receipt", }, }, type: "object", - required: ["creditor", "address", "reference", "iban", "reciept"], + required: ["creditor", "address", "reference", "iban", "receipt"], title: "BillCreate", } as const; @@ -453,8 +466,8 @@ export const BillPublic_InputSchema = { }, iban: { type: "string", - maxLength: 30, - title: "Iban", + maxLength: 34, + title: "IBAN", }, address_id: { type: "string", @@ -466,7 +479,7 @@ export const BillPublic_InputSchema = { maxLength: 50, title: "Reference", }, - reciept: { + receipt: { anyOf: [ { type: "string", @@ -476,7 +489,7 @@ export const BillPublic_InputSchema = { format: "uuid", }, ], - title: "Reciept", + title: "Receipt", }, id: { type: "string", @@ -496,7 +509,7 @@ export const BillPublic_InputSchema = { "iban", "address_id", "reference", - "reciept", + "receipt", "id", "creditor", "address", @@ -513,8 +526,8 @@ export const BillPublic_OutputSchema = { }, iban: { type: "string", - maxLength: 30, - title: "Iban", + maxLength: 34, + title: "IBAN", }, address_id: { type: "string", @@ -526,7 +539,7 @@ export const BillPublic_OutputSchema = { maxLength: 50, title: "Reference", }, - reciept: { + receipt: { anyOf: [ { type: "string", @@ -536,7 +549,7 @@ export const BillPublic_OutputSchema = { format: "uuid", }, ], - title: "Reciept", + title: "Receipt", }, id: { type: "string", @@ -556,7 +569,7 @@ export const BillPublic_OutputSchema = { "iban", "address_id", "reference", - "reciept", + "receipt", "id", "creditor", "address", @@ -934,10 +947,10 @@ export const CreditPaymentSchema = { format: "uuid", title: "Creditor Id", }, - reciept: { + receipt: { type: "string", format: "uuid", - title: "Reciept", + title: "Receipt", }, card: { $ref: "#/components/schemas/Card", @@ -951,13 +964,13 @@ export const CreditPaymentSchema = { type: "string", format: "date-time", title: "Time Create", - default: "2025-01-07T11:34:53.117225", + default: "2025-01-13T16:16:34.828099", }, time_modified: { type: "string", format: "date-time", title: "Time Modified", - default: "2025-01-07T11:34:53.117275", + default: "2025-01-13T16:16:34.828141", }, ezag_timestamp: { anyOf: [ @@ -973,7 +986,7 @@ export const CreditPaymentSchema = { }, }, type: "object", - required: ["creditor_id", "reciept", "card"], + required: ["creditor_id", "receipt", "card"], title: "CreditPayment", } as const; @@ -982,17 +995,17 @@ export const CreditPaymentCreateSchema = { creditor: { $ref: "#/components/schemas/CreditorBase", }, - reciept: { + receipt: { type: "string", format: "uuid", - title: "Reciept", + title: "Receipt", }, card: { $ref: "#/components/schemas/Card", }, }, type: "object", - required: ["creditor", "reciept", "card"], + required: ["creditor", "receipt", "card"], title: "CreditPaymentCreate", } as const; @@ -1003,7 +1016,7 @@ export const CreditPaymentPublic_InputSchema = { format: "uuid", title: "Creditor Id", }, - reciept: { + receipt: { anyOf: [ { type: "string", @@ -1013,7 +1026,7 @@ export const CreditPaymentPublic_InputSchema = { format: "uuid", }, ], - title: "Reciept", + title: "Receipt", }, card: { $ref: "#/components/schemas/Card", @@ -1028,7 +1041,7 @@ export const CreditPaymentPublic_InputSchema = { }, }, type: "object", - required: ["creditor_id", "reciept", "card", "id", "creditor"], + required: ["creditor_id", "receipt", "card", "id", "creditor"], title: "CreditPaymentPublic", } as const; @@ -1039,7 +1052,7 @@ export const CreditPaymentPublic_OutputSchema = { format: "uuid", title: "Creditor Id", }, - reciept: { + receipt: { anyOf: [ { type: "string", @@ -1049,7 +1062,7 @@ export const CreditPaymentPublic_OutputSchema = { format: "uuid", }, ], - title: "Reciept", + title: "Receipt", }, card: { $ref: "#/components/schemas/Card", @@ -1064,7 +1077,7 @@ export const CreditPaymentPublic_OutputSchema = { }, }, type: "object", - required: ["creditor_id", "reciept", "card", "id", "creditor"], + required: ["creditor_id", "receipt", "card", "id", "creditor"], title: "CreditPaymentPublic", } as const; @@ -1130,9 +1143,8 @@ export const CreditorBaseSchema = { default: "", }, q_check: { - type: "boolean", - title: "Q Check", - default: false, + $ref: "#/components/schemas/q_state", + default: "open", }, q_check_timestamp: { anyOf: [ @@ -1285,13 +1297,12 @@ export const CreditorFilterSchema = { q_check: { anyOf: [ { - type: "boolean", + $ref: "#/components/schemas/q_state", }, { type: "null", }, ], - title: "Q Check", }, q_check_timestamp: { anyOf: [ @@ -1349,9 +1360,8 @@ export const CreditorPublicSchema = { default: "", }, q_check: { - type: "boolean", - title: "Q Check", - default: false, + $ref: "#/components/schemas/q_state", + default: "open", }, q_check_timestamp: { anyOf: [ @@ -1404,7 +1414,7 @@ export const DbUserBaseSchema = { properties: { id: { type: "string", - maxLength: 30, + maxLength: 32, title: "Id", }, address_id: { @@ -1419,8 +1429,8 @@ export const DbUserBaseSchema = { }, iban: { type: "string", - maxLength: 30, - title: "Iban", + maxLength: 34, + title: "IBAN", }, }, type: "object", @@ -1451,7 +1461,7 @@ export const DbUserPublicSchema = { properties: { id: { type: "string", - maxLength: 30, + maxLength: 32, title: "Id", }, address_id: { @@ -1466,8 +1476,8 @@ export const DbUserPublicSchema = { }, iban: { type: "string", - maxLength: 30, - title: "Iban", + maxLength: 34, + title: "IBAN", }, address: { $ref: "#/components/schemas/AddressPublic", @@ -1627,12 +1637,76 @@ export const DebitorPublicSchema = { format: "uuid", title: "Id", }, + kst: { + anyOf: [ + { + $ref: "#/components/schemas/Kst", + }, + { + type: "null", + }, + ], + }, }, type: "object", required: ["kst_id", "ledger_id", "creator_id", "amount", "mwst", "id"], title: "DebitorPublic", } as const; +export const EzagPublicSchema = { + properties: { + name: { + type: "string", + maxLength: 30, + title: "Name", + }, + size: { + type: "integer", + title: "Size", + }, + id: { + type: "string", + format: "uuid", + title: "Id", + }, + time_create: { + type: "string", + format: "date-time", + title: "Time Create", + }, + link: { + type: "string", + title: "Link", + }, + }, + type: "object", + required: ["name", "size", "id", "time_create", "link"], + title: "EzagPublic", +} as const; + +export const EzagPublicListSchema = { + properties: { + items: { + items: { + $ref: "#/components/schemas/EzagPublic", + }, + type: "array", + title: "Items", + }, + count: { + type: "integer", + title: "Count", + }, + total: { + type: "integer", + title: "Total", + }, + }, + type: "object", + required: ["items", "count", "total"], + title: "EzagPublicList", +} as const; + export const HTTPValidationErrorSchema = { properties: { detail: { @@ -1680,13 +1754,13 @@ export const InternalTransferSchema = { type: "string", format: "date-time", title: "Time Create", - default: "2025-01-07T11:34:53.158371", + default: "2025-01-13T16:16:34.947047", }, time_modified: { type: "string", format: "date-time", title: "Time Modified", - default: "2025-01-07T11:34:53.158410", + default: "2025-01-13T16:16:34.947100", }, }, type: "object", @@ -1834,6 +1908,31 @@ export const InvoiceSchema = { title: "Payinterval", default: 30, }, + creator_id: { + type: "string", + maxLength: 32, + title: "Creator Id", + }, + q_check: { + $ref: "#/components/schemas/q_state", + }, + q_check_timestamp: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Q Check Timestamp", + }, + address_id: { + type: "string", + format: "uuid", + title: "Address Id", + }, id: { type: "string", format: "uuid", @@ -1843,16 +1942,17 @@ export const InvoiceSchema = { type: "string", format: "date-time", title: "Time Create", - default: "2025-01-07T11:34:53.177837", + default: "2025-01-13T16:16:34.973571", }, time_modified: { type: "string", format: "date-time", title: "Time Modified", - default: "2025-01-07T11:34:53.177875", + default: "2025-01-13T16:16:34.973616", }, }, type: "object", + required: ["creator_id", "q_check", "q_check_timestamp", "address_id"], title: "Invoice", } as const; @@ -1863,6 +1963,31 @@ export const InvoiceCreateSchema = { title: "Payinterval", default: 30, }, + creator_id: { + type: "string", + maxLength: 32, + title: "Creator Id", + }, + q_check: { + $ref: "#/components/schemas/q_state", + }, + q_check_timestamp: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Q Check Timestamp", + }, + address_id: { + type: "string", + format: "uuid", + title: "Address Id", + }, items: { items: { $ref: "#/components/schemas/ItemstoInvoiceCreate", @@ -1872,7 +1997,13 @@ export const InvoiceCreateSchema = { }, }, type: "object", - required: ["items"], + required: [ + "creator_id", + "q_check", + "q_check_timestamp", + "address_id", + "items", + ], title: "InvoiceCreate", } as const; @@ -1883,6 +2014,31 @@ export const InvoicePublic_InputSchema = { title: "Payinterval", default: 30, }, + creator_id: { + type: "string", + maxLength: 32, + title: "Creator Id", + }, + q_check: { + $ref: "#/components/schemas/q_state", + }, + q_check_timestamp: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Q Check Timestamp", + }, + address_id: { + type: "string", + format: "uuid", + title: "Address Id", + }, id: { type: "string", format: "uuid", @@ -1907,7 +2063,13 @@ export const InvoicePublic_InputSchema = { }, }, type: "object", - required: ["items"], + required: [ + "creator_id", + "q_check", + "q_check_timestamp", + "address_id", + "items", + ], title: "InvoicePublic", } as const; @@ -1918,6 +2080,31 @@ export const InvoicePublic_OutputSchema = { title: "Payinterval", default: 30, }, + creator_id: { + type: "string", + maxLength: 32, + title: "Creator Id", + }, + q_check: { + $ref: "#/components/schemas/q_state", + }, + q_check_timestamp: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Q Check Timestamp", + }, + address_id: { + type: "string", + format: "uuid", + title: "Address Id", + }, id: { type: "string", format: "uuid", @@ -1942,7 +2129,13 @@ export const InvoicePublic_OutputSchema = { }, }, type: "object", - required: ["items"], + required: [ + "creator_id", + "q_check", + "q_check_timestamp", + "address_id", + "items", + ], title: "InvoicePublic", } as const; @@ -2017,13 +2210,13 @@ export const ItemSchema = { type: "string", format: "date-time", title: "Time Create", - default: "2025-01-07T11:34:53.132330", + default: "2025-01-13T16:16:34.845769", }, time_modified: { type: "string", format: "date-time", title: "Time Modified", - default: "2025-01-07T11:34:53.132360", + default: "2025-01-13T16:16:34.845813", }, }, type: "object", @@ -2221,7 +2414,8 @@ export const ItemstoInvoicePublicSchema = { export const KstSchema = { properties: { kst_number: { - type: "integer", + type: "string", + maxLength: 4, title: "Kst Number", }, name_de: { @@ -2261,13 +2455,13 @@ export const KstSchema = { type: "string", format: "date-time", title: "Time Create", - default: "2025-01-07T11:34:53.054469", + default: "2025-01-13T16:16:34.734042", }, time_modified: { type: "string", format: "date-time", title: "Time Modified", - default: "2025-01-07T11:34:53.054507", + default: "2025-01-13T16:16:34.734090", }, }, type: "object", @@ -2285,7 +2479,8 @@ export const KstSchema = { export const KstBaseSchema = { properties: { kst_number: { - type: "integer", + type: "string", + maxLength: 4, title: "Kst Number", }, name_de: { @@ -2332,7 +2527,8 @@ export const KstBaseSchema = { export const KstEvalSchema = { properties: { kst_number: { - type: "integer", + type: "string", + maxLength: 4, title: "Kst Number", }, name_de: { @@ -2501,7 +2697,8 @@ export const KstFilterSchema = { export const KstPublicSchema = { properties: { kst_number: { - type: "integer", + type: "string", + maxLength: 4, title: "Kst Number", }, name_de: { @@ -2601,9 +2798,9 @@ export const KstsPublicSchema = { export const LedgerSchema = { properties: { accountnumber: { - type: "integer", + type: "string", + maxLength: 4, title: "Accountnumber", - default: 0, }, name_de: { type: "string", @@ -2617,7 +2814,7 @@ export const LedgerSchema = { }, owner: { type: "string", - maxLength: 30, + maxLength: 32, title: "Owner", }, visibility: { @@ -2634,26 +2831,26 @@ export const LedgerSchema = { type: "string", format: "date-time", title: "Time Create", - default: "2025-01-07T11:34:53.064710", + default: "2025-01-13T16:16:34.748145", }, time_modified: { type: "string", format: "date-time", title: "Time Modified", - default: "2025-01-07T11:34:53.064753", + default: "2025-01-13T16:16:34.748222", }, }, type: "object", - required: ["name_de", "name_en", "owner"], + required: ["accountnumber", "name_de", "name_en", "owner"], title: "Ledger", } as const; export const LedgerBaseSchema = { properties: { accountnumber: { - type: "integer", + type: "string", + maxLength: 4, title: "Accountnumber", - default: 0, }, name_de: { type: "string", @@ -2667,7 +2864,7 @@ export const LedgerBaseSchema = { }, owner: { type: "string", - maxLength: 30, + maxLength: 32, title: "Owner", }, visibility: { @@ -2677,7 +2874,7 @@ export const LedgerBaseSchema = { }, }, type: "object", - required: ["name_de", "name_en", "owner"], + required: ["accountnumber", "name_de", "name_en", "owner"], title: "LedgerBase", } as const; @@ -2757,9 +2954,9 @@ export const LedgerFilterSchema = { export const LedgerPublicSchema = { properties: { accountnumber: { - type: "integer", + type: "string", + maxLength: 4, title: "Accountnumber", - default: 0, }, name_de: { type: "string", @@ -2773,7 +2970,7 @@ export const LedgerPublicSchema = { }, owner: { type: "string", - maxLength: 30, + maxLength: 32, title: "Owner", }, visibility: { @@ -2788,7 +2985,7 @@ export const LedgerPublicSchema = { }, }, type: "object", - required: ["name_de", "name_en", "owner", "id"], + required: ["accountnumber", "name_de", "name_en", "owner", "id"], title: "LedgerPublic", } as const; @@ -2823,10 +3020,10 @@ export const ReimbursementSchema = { format: "uuid", title: "Creditor Id", }, - reciept: { + receipt: { type: "string", format: "uuid", - title: "Reciept", + title: "Receipt", }, id: { type: "string", @@ -2837,13 +3034,25 @@ export const ReimbursementSchema = { type: "string", format: "date-time", title: "Time Create", - default: "2025-01-07T11:34:53.188582", + default: "2025-01-13T16:16:34.992387", }, time_modified: { type: "string", format: "date-time", title: "Time Modified", - default: "2025-01-07T11:34:53.188614", + default: "2025-01-13T16:16:34.992436", + }, + ezag_id: { + anyOf: [ + { + type: "string", + format: "uuid", + }, + { + type: "null", + }, + ], + title: "Ezag Id", }, ezag_timestamp: { anyOf: [ @@ -2876,7 +3085,7 @@ export const ReimbursementSchema = { }, }, type: "object", - required: ["creditor_id", "reciept", "recipient"], + required: ["creditor_id", "receipt", "recipient"], title: "Reimbursement", } as const; @@ -2885,10 +3094,10 @@ export const ReimbursementCreateSchema = { creditor: { $ref: "#/components/schemas/CreditorBase", }, - reciept: { + receipt: { type: "string", format: "uuid", - title: "Reciept", + title: "Receipt", }, recipient: { type: "string", @@ -2896,7 +3105,7 @@ export const ReimbursementCreateSchema = { }, }, type: "object", - required: ["creditor", "reciept", "recipient"], + required: ["creditor", "receipt", "recipient"], title: "ReimbursementCreate", } as const; @@ -2907,7 +3116,7 @@ export const ReimbursementPublic_InputSchema = { format: "uuid", title: "Creditor Id", }, - reciept: { + receipt: { anyOf: [ { type: "string", @@ -2917,13 +3126,37 @@ export const ReimbursementPublic_InputSchema = { format: "uuid", }, ], - title: "Reciept", + title: "Receipt", }, id: { type: "string", format: "uuid", title: "Id", }, + ezag_id: { + anyOf: [ + { + type: "string", + format: "uuid", + }, + { + type: "null", + }, + ], + title: "Ezag Id", + }, + ezag_timestamp: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Ezag Timestamp", + }, creditor: { $ref: "#/components/schemas/CreditorPublic", }, @@ -2933,7 +3166,15 @@ export const ReimbursementPublic_InputSchema = { }, }, type: "object", - required: ["creditor_id", "reciept", "id", "creditor", "recipient"], + required: [ + "creditor_id", + "receipt", + "id", + "ezag_id", + "ezag_timestamp", + "creditor", + "recipient", + ], title: "ReimbursementPublic", } as const; @@ -2944,7 +3185,7 @@ export const ReimbursementPublic_OutputSchema = { format: "uuid", title: "Creditor Id", }, - reciept: { + receipt: { anyOf: [ { type: "string", @@ -2954,13 +3195,37 @@ export const ReimbursementPublic_OutputSchema = { format: "uuid", }, ], - title: "Reciept", + title: "Receipt", }, id: { type: "string", format: "uuid", title: "Id", }, + ezag_id: { + anyOf: [ + { + type: "string", + format: "uuid", + }, + { + type: "null", + }, + ], + title: "Ezag Id", + }, + ezag_timestamp: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Ezag Timestamp", + }, creditor: { $ref: "#/components/schemas/CreditorPublic", }, @@ -2970,7 +3235,15 @@ export const ReimbursementPublic_OutputSchema = { }, }, type: "object", - required: ["creditor_id", "reciept", "id", "creditor", "recipient"], + required: [ + "creditor_id", + "receipt", + "id", + "ezag_id", + "ezag_timestamp", + "creditor", + "recipient", + ], title: "ReimbursementPublic", } as const; @@ -3026,3 +3299,9 @@ export const ValidationErrorSchema = { required: ["loc", "msg", "type"], title: "ValidationError", } as const; + +export const q_stateSchema = { + type: "string", + enum: ["open", "accepted", "rejected"], + title: "q_state", +} as const; diff --git a/src/client/services.gen.ts b/src/client/services.gen.ts index df7c3c085c8d7abf731d2a26273f1fde7172c77d..ae0cfaa159ec70c647ced11a62d83f37bb342aef 100644 --- a/src/client/services.gen.ts +++ b/src/client/services.gen.ts @@ -25,9 +25,6 @@ import { type InvoicesReadInvoiceData, type InvoicesReadInvoiceError, type InvoicesReadInvoiceResponse, - type InvoicesUpdateInvoiceData, - type InvoicesUpdateInvoiceError, - type InvoicesUpdateInvoiceResponse, type InvoicesDeleteInvoiceData, type InvoicesDeleteInvoiceError, type InvoicesDeleteInvoiceResponse, @@ -37,6 +34,12 @@ import { type InvoicesCreateInvoiceData, type InvoicesCreateInvoiceError, type InvoicesCreateInvoiceResponse, + type InvoicesCreatePdfInvoiceData, + type InvoicesCreatePdfInvoiceError, + type InvoicesCreatePdfInvoiceResponse, + type InvoicesUpdateInvoiceData, + type InvoicesUpdateInvoiceError, + type InvoicesUpdateInvoiceResponse, type LedgersReadLedgersData, type LedgersReadLedgersError, type LedgersReadLedgersResponse, @@ -197,15 +200,23 @@ import { type EvaluationReadKstsData, type EvaluationReadKstsError, type EvaluationReadKstsResponse, + type EzagsGenerateEzagError, + type EzagsGenerateEzagResponse, + type EzagsReadEzagData, + type EzagsReadEzagError, + type EzagsReadEzagResponse, + type EzagsReadEzagsData, + type EzagsReadEzagsError, + type EzagsReadEzagsResponse, ItemsCreateItemResponseTransformer, ItemsReadItemResponseTransformer, ItemsUpdateItemResponseTransformer, ItemsDeleteItemResponseTransformer, InvoicesReadInvoiceResponseTransformer, - InvoicesUpdateInvoiceResponseTransformer, InvoicesDeleteInvoiceResponseTransformer, InvoicesReadInvoicesResponseTransformer, InvoicesCreateInvoiceResponseTransformer, + InvoicesUpdateInvoiceResponseTransformer, LedgersCreateLedgerResponseTransformer, LedgersReadLedgerResponseTransformer, LedgersUpdateLedgerResponseTransformer, @@ -222,6 +233,8 @@ import { BillsDeleteBillResponseTransformer, ReimbursementsDeleteReimbursementResponseTransformer, CreditPaymentsDeleteCreditPaymentResponseTransformer, + EzagsReadEzagResponseTransformer, + EzagsReadEzagsResponseTransformer, } from "./types.gen"; export const client = createClient(createConfig()); @@ -334,24 +347,6 @@ export const invoicesReadInvoice = <ThrowOnError extends boolean = false>( }); }; -/** - * Update Invoice - * update an Invoice. - */ -export const invoicesUpdateInvoice = <ThrowOnError extends boolean = false>( - options: Options<InvoicesUpdateInvoiceData, ThrowOnError>, -) => { - return (options?.client ?? client).patch< - InvoicesUpdateInvoiceResponse, - InvoicesUpdateInvoiceError, - ThrowOnError - >({ - ...options, - url: "/api/invoices/{id}", - responseTransformer: InvoicesUpdateInvoiceResponseTransformer, - }); -}; - /** * Delete Invoice * delete an Invoice. @@ -407,6 +402,41 @@ export const invoicesCreateInvoice = <ThrowOnError extends boolean = false>( }); }; +/** + * Create Pdf Invoice + * Create a PDF of the invoice. + */ +export const invoicesCreatePdfInvoice = <ThrowOnError extends boolean = false>( + options: Options<InvoicesCreatePdfInvoiceData, ThrowOnError>, +) => { + return (options?.client ?? client).post< + InvoicesCreatePdfInvoiceResponse, + InvoicesCreatePdfInvoiceError, + ThrowOnError + >({ + ...options, + url: "/api/invoices/createpdfInvoice/{invoice_id}", + }); +}; + +/** + * Update Invoice + * update an Invoice. + */ +export const invoicesUpdateInvoice = <ThrowOnError extends boolean = false>( + options: Options<InvoicesUpdateInvoiceData, ThrowOnError>, +) => { + return (options?.client ?? client).patch< + InvoicesUpdateInvoiceResponse, + InvoicesUpdateInvoiceError, + ThrowOnError + >({ + ...options, + url: "/api/invoices/{Invoice_id}", + responseTransformer: InvoicesUpdateInvoiceResponseTransformer, + }); +}; + /** * Read Ledgers * retrieve all ledgers, sorted by accountnumber. @@ -1433,3 +1463,56 @@ export const evaluationReadKsts = <ThrowOnError extends boolean = false>( url: "/api/evaluation/", }); }; + +/** + * Generateezag + * Generate a ezag file for all entries that have beeen accepted and that aren't in a ezag file yet. + */ +export const ezagsGenerateEzag = <ThrowOnError extends boolean = false>( + options?: Options<unknown, ThrowOnError>, +) => { + return (options?.client ?? client).post< + EzagsGenerateEzagResponse, + EzagsGenerateEzagError, + ThrowOnError + >({ + ...options, + url: "/api/ezags/generateEzag", + }); +}; + +/** + * Read Ezag + * Get a specific Ezag. + */ +export const ezagsReadEzag = <ThrowOnError extends boolean = false>( + options: Options<EzagsReadEzagData, ThrowOnError>, +) => { + return (options?.client ?? client).get< + EzagsReadEzagResponse, + EzagsReadEzagError, + ThrowOnError + >({ + ...options, + url: "/api/ezags/{id}", + responseTransformer: EzagsReadEzagResponseTransformer, + }); +}; + +/** + * Read Ezags + * Get all Ezags. + */ +export const ezagsReadEzags = <ThrowOnError extends boolean = false>( + options?: Options<EzagsReadEzagsData, ThrowOnError>, +) => { + return (options?.client ?? client).get< + EzagsReadEzagsResponse, + EzagsReadEzagsError, + ThrowOnError + >({ + ...options, + url: "/api/ezags/", + responseTransformer: EzagsReadEzagsResponseTransformer, + }); +}; diff --git a/src/client/types.gen.ts b/src/client/types.gen.ts index 0a9dd89fcbdb022a2075ad71c8b1a43a41774658..3eed4f7130346b7239d1da6967dec19473b2bd05 100644 --- a/src/client/types.gen.ts +++ b/src/client/types.gen.ts @@ -5,7 +5,7 @@ export type Address = { address1: string; address2: string; address3: string; - plz: number; + plz: string; city: string; country: string; id?: string; @@ -18,7 +18,7 @@ export type AddressBase = { address1: string; address2: string; address3: string; - plz: number; + plz: string; city: string; country: string; }; @@ -46,7 +46,7 @@ export type AddressPublic = { address1: string; address2: string; address3: string; - plz: number; + plz: string; city: string; country: string; id: string; @@ -66,7 +66,7 @@ export type Bill = { iban: string; address_id: string; reference: string; - reciept: string; + receipt: string; id?: string; time_create?: Date; time_modified?: Date; @@ -79,7 +79,7 @@ export type BillCreate = { address: AddressBase; reference: string; iban: string; - reciept: string; + receipt: string; }; export type BillPublic_Input = { @@ -87,7 +87,7 @@ export type BillPublic_Input = { iban: string; address_id: string; reference: string; - reciept: string; + receipt: string; id: string; creditor: CreditorPublic; address: AddressPublic; @@ -98,7 +98,7 @@ export type BillPublic_Output = { iban: string; address_id: string; reference: string; - reciept: string; + receipt: string; id: string; creditor: CreditorPublic; address: AddressPublic; @@ -186,7 +186,7 @@ export type CreditorBase = { currency: Currency; comment?: string; qcomment?: string; - q_check?: boolean; + q_check?: q_state; q_check_timestamp?: Date | null; creator_id: string; name: string; @@ -204,7 +204,7 @@ export type CreditorFilter = { qcomment?: string | null; creator?: string | null; name?: string | null; - q_check?: boolean | null; + q_check?: q_state | null; q_check_timestamp?: Date | null; }; @@ -216,7 +216,7 @@ export type CreditorPublic = { currency: Currency; comment?: string; qcomment?: string; - q_check?: boolean; + q_check?: q_state; q_check_timestamp?: Date | null; creator_id: string; name: string; @@ -225,7 +225,7 @@ export type CreditorPublic = { export type CreditPayment = { creditor_id: string; - reciept: string; + receipt: string; card: Card; id?: string; time_create?: Date; @@ -235,13 +235,13 @@ export type CreditPayment = { export type CreditPaymentCreate = { creditor: CreditorBase; - reciept: string; + receipt: string; card: Card; }; export type CreditPaymentPublic_Input = { creditor_id: string; - reciept: string; + receipt: string; card: Card; id: string; creditor: CreditorPublic; @@ -249,7 +249,7 @@ export type CreditPaymentPublic_Input = { export type CreditPaymentPublic_Output = { creditor_id: string; - reciept: string; + receipt: string; card: Card; id: string; creditor: CreditorPublic; @@ -319,6 +319,21 @@ export type DebitorPublic = { amount: number; mwst: string; id: string; + kst?: Kst | null; +}; + +export type EzagPublic = { + name: string; + size: number; + id: string; + time_create: Date; + link: string; +}; + +export type EzagPublicList = { + items: Array<EzagPublic>; + count: number; + total: number; }; export type HTTPValidationError = { @@ -369,6 +384,10 @@ export type InternalTransfersList = { export type Invoice = { payinterval?: number; + creator_id: string; + q_check: q_state; + q_check_timestamp: Date | null; + address_id: string; id?: string; time_create?: Date; time_modified?: Date; @@ -376,11 +395,19 @@ export type Invoice = { export type InvoiceCreate = { payinterval?: number; + creator_id: string; + q_check: q_state; + q_check_timestamp: Date | null; + address_id: string; items: Array<ItemstoInvoiceCreate>; }; export type InvoicePublic_Input = { payinterval?: number; + creator_id: string; + q_check: q_state; + q_check_timestamp: Date | null; + address_id: string; id?: string; time_create?: Date; time_modified?: Date; @@ -389,6 +416,10 @@ export type InvoicePublic_Input = { export type InvoicePublic_Output = { payinterval?: number; + creator_id: string; + q_check: q_state; + q_check_timestamp: Date | null; + address_id: string; id?: string; time_create?: Date; time_modified?: Date; @@ -456,7 +487,7 @@ export type ItemstoInvoicePublic = { }; export type Kst = { - kst_number: number; + kst_number: string; name_de: string; name_en: string; owner: string; @@ -469,7 +500,7 @@ export type Kst = { }; export type KstBase = { - kst_number: number; + kst_number: string; name_de: string; name_en: string; owner: string; @@ -479,7 +510,7 @@ export type KstBase = { }; export type KstEval = { - kst_number: number; + kst_number: string; name_de: string; name_en: string; owner: string; @@ -504,7 +535,7 @@ export type KstFilter = { }; export type KstPublic = { - kst_number: number; + kst_number: string; name_de: string; name_en: string; owner: string; @@ -527,7 +558,7 @@ export type KstsPublic = { }; export type Ledger = { - accountnumber?: number; + accountnumber: string; name_de: string; name_en: string; owner: string; @@ -538,7 +569,7 @@ export type Ledger = { }; export type LedgerBase = { - accountnumber?: number; + accountnumber: string; name_de: string; name_en: string; owner: string; @@ -555,7 +586,7 @@ export type LedgerFilter = { }; export type LedgerPublic = { - accountnumber?: number; + accountnumber: string; name_de: string; name_en: string; owner: string; @@ -569,12 +600,21 @@ export type LedgersPublic = { total: number; }; +export type q_state = "open" | "accepted" | "rejected"; + +export const q_state = { + OPEN: "open", + ACCEPTED: "accepted", + REJECTED: "rejected", +} as const; + export type Reimbursement = { creditor_id: string; - reciept: string; + receipt: string; id?: string; time_create?: Date; time_modified?: Date; + ezag_id?: string | null; ezag_timestamp?: Date | null; check_timestamp?: Date | null; recipient: string; @@ -582,22 +622,26 @@ export type Reimbursement = { export type ReimbursementCreate = { creditor: CreditorBase; - reciept: string; + receipt: string; recipient: string; }; export type ReimbursementPublic_Input = { creditor_id: string; - reciept: string; + receipt: string; id: string; + ezag_id: string | null; + ezag_timestamp: Date | null; creditor: CreditorPublic; recipient: string; }; export type ReimbursementPublic_Output = { creditor_id: string; - reciept: string; + receipt: string; id: string; + ezag_id: string | null; + ezag_timestamp: Date | null; creditor: CreditorPublic; recipient: string; }; @@ -679,17 +723,6 @@ export type InvoicesReadInvoiceResponse = InvoicePublic_Output; export type InvoicesReadInvoiceError = HTTPValidationError; -export type InvoicesUpdateInvoiceData = { - body: InvoicePublic_Input; - path: { - id: string; - }; -}; - -export type InvoicesUpdateInvoiceResponse = InvoicePublic_Output; - -export type InvoicesUpdateInvoiceError = HTTPValidationError; - export type InvoicesDeleteInvoiceData = { path: { id: string; @@ -754,6 +787,27 @@ export type InvoicesCreateInvoiceResponse = InvoicePublic_Output; export type InvoicesCreateInvoiceError = HTTPValidationError; +export type InvoicesCreatePdfInvoiceData = { + path: { + invoice_id: string; + }; +}; + +export type InvoicesCreatePdfInvoiceResponse = unknown; + +export type InvoicesCreatePdfInvoiceError = HTTPValidationError; + +export type InvoicesUpdateInvoiceData = { + body: InvoicePublic_Input; + query: { + id: string; + }; +}; + +export type InvoicesUpdateInvoiceResponse = InvoicePublic_Output; + +export type InvoicesUpdateInvoiceError = HTTPValidationError; + export type LedgersReadLedgersData = { query?: { accountnumber?: number | null; @@ -973,7 +1027,7 @@ export type InternalTransfersReadInternalTransferesData = { creditor__ledger__sort?: string | null; creditor__ledger__visibility?: number | null; creditor__name?: string | null; - creditor__q_check?: boolean | null; + creditor__q_check?: q_state | null; creditor__q_check_timestamp?: Date | null; creditor__qcomment?: string | null; creditor__search?: string | null; @@ -1083,7 +1137,7 @@ export type BillsReadBillsData = { creditor__ledger__sort?: string | null; creditor__ledger__visibility?: number | null; creditor__name?: string | null; - creditor__q_check?: boolean | null; + creditor__q_check?: q_state | null; creditor__q_check_timestamp?: Date | null; creditor__qcomment?: string | null; creditor__search?: string | null; @@ -1091,7 +1145,7 @@ export type BillsReadBillsData = { iban?: string | null; limit?: number; page?: number; - reciept?: string | null; + receipt?: string | null; reference?: string | null; search?: string | null; sort?: string | null; @@ -1165,14 +1219,16 @@ export type ReimbursementsReadReimbursementsData = { creditor__ledger__sort?: string | null; creditor__ledger__visibility?: number | null; creditor__name?: string | null; - creditor__q_check?: boolean | null; + creditor__q_check?: q_state | null; creditor__q_check_timestamp?: Date | null; creditor__qcomment?: string | null; creditor__search?: string | null; creditor__sort?: string | null; + ezag_id?: string | null; + ezag_timestamp?: Date | null; limit?: number; page?: number; - reciept?: string | null; + receipt?: string | null; recipient?: string | null; search?: string | null; sort?: string | null; @@ -1250,14 +1306,14 @@ export type CreditPaymentsReadCreditPaymentsData = { creditor__ledger__sort?: string | null; creditor__ledger__visibility?: number | null; creditor__name?: string | null; - creditor__q_check?: boolean | null; + creditor__q_check?: q_state | null; creditor__q_check_timestamp?: Date | null; creditor__qcomment?: string | null; creditor__search?: string | null; creditor__sort?: string | null; limit?: number; page?: number; - reciept?: string | null; + receipt?: string | null; search?: string | null; sort?: string | null; }; @@ -1431,7 +1487,7 @@ export type CombinedReadUncheckedCombinedPaymentsData = { address__country?: string | null; address__id?: string | null; address__name?: string | null; - address__plz?: number | null; + address__plz?: string | null; address__time_create?: Date | null; address__time_modified?: Date | null; card?: Card | null; @@ -1456,7 +1512,7 @@ export type CombinedReadUncheckedCombinedPaymentsData = { creditor__ledger__sort?: string | null; creditor__ledger__visibility?: number | null; creditor__name?: string | null; - creditor__q_check?: boolean | null; + creditor__q_check?: q_state | null; creditor__q_check_timestamp?: Date | null; creditor__qcomment?: string | null; creditor__search?: string | null; @@ -1466,9 +1522,10 @@ export type CombinedReadUncheckedCombinedPaymentsData = { limit?: number; own?: boolean | null; page?: number; - reciept?: string | null; + receipt?: string | null; recipient?: string | null; reference?: string | null; + responsible?: boolean | null; search?: string | null; sort?: string | null; type?: string | null; @@ -1490,7 +1547,7 @@ export type CombinedReadResponsibleCombinedPaymentsData = { address__country?: string | null; address__id?: string | null; address__name?: string | null; - address__plz?: number | null; + address__plz?: string | null; address__time_create?: Date | null; address__time_modified?: Date | null; card?: Card | null; @@ -1515,7 +1572,7 @@ export type CombinedReadResponsibleCombinedPaymentsData = { creditor__ledger__sort?: string | null; creditor__ledger__visibility?: number | null; creditor__name?: string | null; - creditor__q_check?: boolean | null; + creditor__q_check?: q_state | null; creditor__q_check_timestamp?: Date | null; creditor__qcomment?: string | null; creditor__search?: string | null; @@ -1525,9 +1582,10 @@ export type CombinedReadResponsibleCombinedPaymentsData = { limit?: number; own?: boolean | null; page?: number; - reciept?: string | null; + receipt?: string | null; recipient?: string | null; reference?: string | null; + responsible?: boolean | null; search?: string | null; sort?: string | null; type?: string | null; @@ -1549,7 +1607,7 @@ export type CombinedReadOwnCombinedPaymentsData = { address__country?: string | null; address__id?: string | null; address__name?: string | null; - address__plz?: number | null; + address__plz?: string | null; address__time_create?: Date | null; address__time_modified?: Date | null; card?: Card | null; @@ -1574,7 +1632,7 @@ export type CombinedReadOwnCombinedPaymentsData = { creditor__ledger__sort?: string | null; creditor__ledger__visibility?: number | null; creditor__name?: string | null; - creditor__q_check?: boolean | null; + creditor__q_check?: q_state | null; creditor__q_check_timestamp?: Date | null; creditor__qcomment?: string | null; creditor__search?: string | null; @@ -1584,9 +1642,10 @@ export type CombinedReadOwnCombinedPaymentsData = { limit?: number; own?: boolean | null; page?: number; - reciept?: string | null; + receipt?: string | null; recipient?: string | null; reference?: string | null; + responsible?: boolean | null; search?: string | null; sort?: string | null; type?: string | null; @@ -1607,7 +1666,7 @@ export type CombinedReadCombinedPaymentsData = { address__country?: string | null; address__id?: string | null; address__name?: string | null; - address__plz?: number | null; + address__plz?: string | null; address__time_create?: Date | null; address__time_modified?: Date | null; card?: Card | null; @@ -1632,7 +1691,7 @@ export type CombinedReadCombinedPaymentsData = { creditor__ledger__sort?: string | null; creditor__ledger__visibility?: number | null; creditor__name?: string | null; - creditor__q_check?: boolean | null; + creditor__q_check?: q_state | null; creditor__q_check_timestamp?: Date | null; creditor__qcomment?: string | null; creditor__search?: string | null; @@ -1642,9 +1701,10 @@ export type CombinedReadCombinedPaymentsData = { limit?: number; own?: boolean | null; page?: number; - reciept?: string | null; + receipt?: string | null; recipient?: string | null; reference?: string | null; + responsible?: boolean | null; search?: string | null; sort?: string | null; type?: string | null; @@ -1666,6 +1726,36 @@ export type EvaluationReadKstsResponse = KstsEval; export type EvaluationReadKstsError = HTTPValidationError; +export type EzagsGenerateEzagResponse = string; + +export type EzagsGenerateEzagError = unknown; + +export type EzagsReadEzagData = { + path: { + id: string; + }; +}; + +export type EzagsReadEzagResponse = EzagPublic; + +export type EzagsReadEzagError = HTTPValidationError; + +export type EzagsReadEzagsData = { + query?: { + limit?: number; + name?: string | null; + page?: number; + search?: string | null; + sort?: string | null; + time_create?: Date | null; + time_modified?: Date | null; + }; +}; + +export type EzagsReadEzagsResponse = EzagPublicList; + +export type EzagsReadEzagsError = HTTPValidationError; + export type ItemsCreateItemResponseTransformer = ( data: any, ) => Promise<ItemsCreateItemResponse>; @@ -1745,16 +1835,6 @@ export const InvoicesReadInvoiceResponseTransformer: InvoicesReadInvoiceResponse return data; }; -export type InvoicesUpdateInvoiceResponseTransformer = ( - data: any, -) => Promise<InvoicesUpdateInvoiceResponse>; - -export const InvoicesUpdateInvoiceResponseTransformer: InvoicesUpdateInvoiceResponseTransformer = - async (data) => { - InvoicePublic_OutputModelResponseTransformer(data); - return data; - }; - export type InvoicesDeleteInvoiceResponseTransformer = ( data: any, ) => Promise<InvoicesDeleteInvoiceResponse>; @@ -1808,6 +1888,16 @@ export const InvoicesCreateInvoiceResponseTransformer: InvoicesCreateInvoiceResp return data; }; +export type InvoicesUpdateInvoiceResponseTransformer = ( + data: any, +) => Promise<InvoicesUpdateInvoiceResponse>; + +export const InvoicesUpdateInvoiceResponseTransformer: InvoicesUpdateInvoiceResponseTransformer = + async (data) => { + InvoicePublic_OutputModelResponseTransformer(data); + return data; + }; + export type LedgersCreateLedgerResponseTransformer = ( data: any, ) => Promise<LedgersCreateLedgerResponse>; @@ -2067,3 +2157,45 @@ export const CreditPaymentsDeleteCreditPaymentResponseTransformer: CreditPayment CreditPaymentModelResponseTransformer(data); return data; }; + +export type EzagsReadEzagResponseTransformer = ( + data: any, +) => Promise<EzagsReadEzagResponse>; + +export type EzagPublicModelResponseTransformer = (data: any) => EzagPublic; + +export const EzagPublicModelResponseTransformer: EzagPublicModelResponseTransformer = + (data) => { + if (data?.time_create) { + data.time_create = new Date(data.time_create); + } + return data; + }; + +export const EzagsReadEzagResponseTransformer: EzagsReadEzagResponseTransformer = + async (data) => { + EzagPublicModelResponseTransformer(data); + return data; + }; + +export type EzagsReadEzagsResponseTransformer = ( + data: any, +) => Promise<EzagsReadEzagsResponse>; + +export type EzagPublicListModelResponseTransformer = ( + data: any, +) => EzagPublicList; + +export const EzagPublicListModelResponseTransformer: EzagPublicListModelResponseTransformer = + (data) => { + if (Array.isArray(data?.items)) { + data.items.forEach(EzagPublicModelResponseTransformer); + } + return data; + }; + +export const EzagsReadEzagsResponseTransformer: EzagsReadEzagsResponseTransformer = + async (data) => { + EzagPublicListModelResponseTransformer(data); + return data; + }; diff --git a/src/components/DownloadHandler.tsx b/src/components/DownloadHandler.tsx new file mode 100644 index 0000000000000000000000000000000000000000..9dddbf844ed9db166b84ed87e10638e0ff2144e4 --- /dev/null +++ b/src/components/DownloadHandler.tsx @@ -0,0 +1,36 @@ +import React from "react"; +import Button from "@material-ui/core/Button"; + +export async function handleDownload(url) { + try { + // Fetch the file data as a Blob + const response = await fetch(url); + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + const blob = await response.blob(); + + // Create a temporary URL for the Blob + const blobUrl = window.URL.createObjectURL(blob); + + // Create a temporary anchor element to trigger the download + const link = document.createElement("a"); + link.href = blobUrl; + + // Optionally, extract filename from URL or headers. Here we use a default name. + const defaultFilename = "Ezag.xml"; + link.download = defaultFilename; + + // Append the link to the body (required for Firefox) + document.body.appendChild(link); + + // Programmatically click the link to trigger download + link.click(); + + // Cleanup: remove link and revoke the object URL + document.body.removeChild(link); + window.URL.revokeObjectURL(blobUrl); + } catch (error) { + console.error("Download failed:", error); + } +} diff --git a/src/components/GenericEditableTable.tsx b/src/components/GenericEditableTable.tsx index 60ac0de085406d823c96a73f27e1c5a749c2d1f9..444520f6c3f5f66aafc6a76a80f2a485c234072a 100644 --- a/src/components/GenericEditableTable.tsx +++ b/src/components/GenericEditableTable.tsx @@ -48,6 +48,8 @@ function getEditComponent( id: string, handleClose: () => void, ): React.ReactNode { + console.log("type", type); + console.log("id", id); switch (type) { case "Reimbursement": return ( @@ -195,7 +197,7 @@ const GenericEditableTable: React.FC<EditableTableProps> = ({ const defaultColumns = [ { name: "type", label: "Type" }, - { name: "id", label: "ID" }, + { name: "id", label: "ID", options: { display: "false" } }, { name: "name", label: "Name" }, { name: "creditor__amount", label: "Amount" }, { name: "card", label: "Card" }, @@ -203,7 +205,7 @@ const GenericEditableTable: React.FC<EditableTableProps> = ({ { name: "creditor__kst__name_de", label: "KST Name" }, { name: "creditor__ledger__name_de", label: "Ledger Name" }, { name: "creditor__currency", label: "Currency" }, - { name: "reciept", label: "Receipt" }, + { name: "receipt", label: "Receipt" }, { name: "creator", label: "Creator" }, { name: "reference", label: "Reference" }, { name: "iban", label: "IBAN" }, diff --git a/src/components/ObjectEditor.tsx b/src/components/ObjectEditor.tsx index 0ca7960708cf5ce919d75f8316ac86a4c9a502fa..5c9def9d7370f59452fa6827dae42a4dfc9644bd 100644 --- a/src/components/ObjectEditor.tsx +++ b/src/components/ObjectEditor.tsx @@ -2,6 +2,7 @@ import { Paper, Stack, Typography, + Box, Button, TextField, FormControlLabel, @@ -191,9 +192,6 @@ export default function ObjectEditor<ItemT>({ {deleter && ( <Button onClick={() => setDeleteDialogOpen(true)}>Delete</Button> )} - <Button onClick={handleSubmit} disabled={changedFields.size === 0}> - Apply Changes - </Button> </ButtonGroup> </Stack> <Stack spacing={1}> @@ -312,6 +310,21 @@ export default function ObjectEditor<ItemT>({ })} </Stack> </Paper> + <Box sx={{ display: "flex", justifyContent: "center", margin: 2 }}> + <Button + variant="contained" + onClick={handleSubmit} + disabled={changedFields.size === 0} + sx={{ + padding: 2, + fontSize: "1.2rem", + width: "100%", + maxWidth: "400px", + }} + > + Submit + </Button> + </Box> <Snackbar open={showStatusAlert} autoHideDuration={4000} @@ -327,7 +340,6 @@ export default function ObjectEditor<ItemT>({ : statusAlertFailReason} </Alert> </Snackbar> - {/* Optional: Delete Confirmation Dialog */} {deleter && ( <Dialog open={deleteDialogOpen} diff --git a/src/components/RecieptHandler.tsx b/src/components/ReceiptHandler.tsx similarity index 57% rename from src/components/RecieptHandler.tsx rename to src/components/ReceiptHandler.tsx index 691f9a21ada18a48048f67fa35aa9177bccd4aea..ad85812cc149c3bcfca4bba5d991b3e4444435fe 100644 --- a/src/components/RecieptHandler.tsx +++ b/src/components/ReceiptHandler.tsx @@ -1,23 +1,23 @@ import { filesUploadFile } from "../client/services.gen"; -export default async function RecieptHandler(reciept: string | File): string { - let recieptOut = ""; - if (typeof reciept !== "string") { +export default async function receiptHandler(receipt: string | File): string { + let receiptOut = ""; + if (typeof receipt !== "string") { console.log("uploading file"); // upload the file and get the id back - const response = await filesUploadFile({ body: { file: reciept } }); + const response = await filesUploadFile({ body: { file: receipt } }); if (response.error) { throw response.error; } else if (response.data) { console.log("file uploaded", response.data); - recieptOut = response.data.file_id || ""; + receiptOut = response.data.file_id || ""; } else { throw new Error("No data returned from file upload"); } } else { - const t1 = reciept.split("?")[0]; + const t1 = receipt.split("?")[0]; const t2 = t1.split("/").pop(); - recieptOut = t2 || ""; + receiptOut = t2 || ""; } - return recieptOut; + return receiptOut; } diff --git a/src/main.tsx b/src/main.tsx index 2e41050c6bae04deea5838d4dfbdc1851d2785f9..07953e2e3ba092dad8ea1f7d1356c3b8c0a5da7a 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -16,6 +16,10 @@ import CombinedPaymentsPage from "./pages/CombinedList"; import Belegformular, { addLoader as addCreditPaymentLoader, } from "./pages/Belegformular"; +import Reimbursement from "./pages/Reimbursement"; +import Bills from "./pages/Bills"; +import CreditPayment from "./pages/CreditPayment"; +import InternalTransfer from "./pages/InternalTransfer"; import EditCreditPayment from "./pages/EditCreditPayment"; import GenerateItem from "./pages/GenerateItem"; import GenerateLedger from "./pages/GenerateLedger"; @@ -29,6 +33,7 @@ import KstEval from "./pages/KstEval"; import OwnList from "./pages/OwnList"; import ResponsibleList from "./pages/ResponsibleList"; import OnboardingQuiz from "./pages/OnboardingQuiz"; +import EzagPage from "./pages/Ezag"; const router = createBrowserRouter([ { @@ -45,6 +50,26 @@ const router = createBrowserRouter([ element: <Belegformular />, loader: addCreditPaymentLoader, }, + { + path: "Reimbursement", + element: <Reimbursement />, + loader: addCreditPaymentLoader, + }, + { + path: "CreditPayment", + element: <CreditPayment />, + loader: addCreditPaymentLoader, + }, + { + path: "Bills", + element: <Bills />, + loader: addCreditPaymentLoader, + }, + { + path: "InternalTransfer", + element: <InternalTransfer />, + loader: addCreditPaymentLoader, + }, { path: "GenerateItem", element: <GenerateItem />, @@ -115,6 +140,10 @@ const router = createBrowserRouter([ element: <KstEval />, loader: addCreditListLoader, }, + { + path: "Ezag", + element: <EzagPage />, + }, ], }, { path: "callback", element: <Callback /> }, diff --git a/src/pages/Belegformular.tsx b/src/pages/Belegformular.tsx index db1d29266c6d79cc052e71d7590a88305693f50a..84d741e44e9797dee2cbc2b0654c59e681f6b4e8 100644 --- a/src/pages/Belegformular.tsx +++ b/src/pages/Belegformular.tsx @@ -56,7 +56,10 @@ const MainForm: React.FC = () => { return ( <Container> <Typography variant="h4" component="h2" gutterBottom> - Select Form Type + Receipt Form + </Typography> + <Typography variant="body1" gutterBottom> + Please select the type of receipt you would like to submit. </Typography> <FormControl fullWidth> <InputLabel id="form-type-label">Form Type</InputLabel> diff --git a/src/pages/Bills.tsx b/src/pages/Bills.tsx index 753a622a22ac1eb93b1fbfbf8c1f874e80695ce5..45f36cd5cecf5ca3a1c67ec9870003b965e83c5e 100644 --- a/src/pages/Bills.tsx +++ b/src/pages/Bills.tsx @@ -10,13 +10,34 @@ import ObjectEditor, { } from "../components/ObjectEditor"; import { useLoaderData } from "react-router-dom"; import { Kst_title, Ledger_title } from "../components/Titles"; -import RecieptHandler from "../components/RecieptHandler"; +import receiptHandler from "../components/ReceiptHandler"; export function generateFieldConfigs( kst: Kst[], ledger: Ledger[], q_mode: boolean = false, ): FieldConfig<BillCreate>[] { + let qfields = [] as FieldConfig<BillCreate>[]; + if (q_mode === true) { + qfields = [ + { + name: "textcomment", + label: "text comment", + type: FieldType.COMMENT, + comment: "these fields are only for the quästor:", + }, + { name: "creditor.qcomment", label: "qcomment", type: FieldType.STRING }, + { name: "creditor.name", label: "name", type: FieldType.STRING }, + { name: "creditor.creator_id", label: "creator", type: FieldType.STRING }, + { + name: "creditor.accounting_year", + label: "accounting_year", + type: FieldType.NUMERIC, + }, + { name: "creditor.q_check", label: "q_check", type: FieldType.BOOLEAN }, + ]; + } + return [ { name: "creditor.comment", label: "Description", type: FieldType.STRING }, { name: "creditor.amount", label: "Amount", type: FieldType.NUMERIC }, @@ -52,7 +73,7 @@ export function generateFieldConfigs( label: "Address Line 3 (optional)", type: FieldType.STRING, }, - { name: "address.plz", label: "ZIP Code", type: FieldType.NUMERIC }, + { name: "address.plz", label: "ZIP Code", type: FieldType.STRING }, { name: "address.city", label: "City", type: FieldType.STRING }, { name: "address.country", @@ -65,8 +86,9 @@ export function generateFieldConfigs( type: FieldType.STRING, }, { name: "iban", label: "Iban", type: FieldType.STRING }, - { name: "reciept", label: "receipt", type: FieldType.FILE }, + { name: "receipt", label: "receipt", type: FieldType.FILE }, { name: "comment", label: "comment", type: FieldType.STRING }, + ...qfields, ]; } @@ -101,12 +123,12 @@ export default function GenerateBill() { }, reference: "", iban: "", - reciept: "", + receipt: "", comment: "", }; const submitter = async (changes: BillCreate) => { - changes.reciept = await RecieptHandler(changes.reciept); + changes.receipt = await receiptHandler(changes.receipt); const response = await billsCreateBill({ body: changes }); if (response.error) { throw response.error; @@ -149,7 +171,7 @@ export default function GenerateBill() { }, reference: 0, iban: "", - reciept: "", + receipt: "", comment: "", }, }); diff --git a/src/pages/CreditList.tsx b/src/pages/CreditList.tsx index 90ba6b12f560d51f49988a69533419f231b902b2..8ac475fb14b1f7287d5a978dce7c4136ab6c0b3b 100644 --- a/src/pages/CreditList.tsx +++ b/src/pages/CreditList.tsx @@ -42,7 +42,7 @@ const CreditList: React.FC = () => { { name: "creditor__kst__name_de", label: "KST Name" }, { name: "creditor__ledger__name_de", label: "Ledger Name" }, { name: "creditor__currency", label: "Currency" }, - { name: "reciept", label: "Receipt" }, + { name: "receipt", label: "Receipt" }, { name: "creator", label: "Creator" }, { name: "edit", label: "edit", options: { filter: false, sort: false } }, ]; @@ -83,7 +83,7 @@ const CreditList: React.FC = () => { ledger.find((l) => l.id === item.creditor?.ledger_id)?.name_de || "Unknown", creditor__currency: item.creditor?.currency, - reciept: item.reciept, + receipt: item.receipt, creator: user.nethz, edit: ( <Button diff --git a/src/pages/CreditPayment.tsx b/src/pages/CreditPayment.tsx index e71e78210127e500cc68ae0116072dd3b9aeb803..5fc1d2ca1c7fac76ee396c25e8b363a0faedc537 100644 --- a/src/pages/CreditPayment.tsx +++ b/src/pages/CreditPayment.tsx @@ -16,18 +16,38 @@ import ObjectEditor, { } from "../components/ObjectEditor"; import { useLoaderData } from "react-router-dom"; import { Kst_title, Ledger_title } from "../components/Titles"; -import RecieptHandler from "../components/RecieptHandler"; +import receiptHandler from "../components/ReceiptHandler"; export function generateFieldConfigs( kst: Kst[], ledger: Ledger[], qmode: boolean, ): FieldConfig<CreditPaymentCreate>[] { + let qfields = [] as FieldConfig<CreditPaymentCreate>[]; + if (qmode === true) { + qfields = [ + { + name: "textcomment", + label: "text comment", + type: FieldType.COMMENT, + comment: "these fields are only for the quästor:", + }, + { name: "creditor.qcomment", label: "qcomment", type: FieldType.STRING }, + { name: "creditor.name", label: "name", type: FieldType.STRING }, + { name: "creditor.creator_id", label: "creator", type: FieldType.STRING }, + { name: "recipient", label: "recipient", type: FieldType.STRING }, + { + name: "creditor.accounting_year", + label: "accounting_year", + type: FieldType.NUMERIC, + }, + { name: "creditor.q_check", label: "q_check", type: FieldType.BOOLEAN }, + ]; + } return [ - { name: "creditor.comment", label: "Description", type: FieldType.STRING }, + { name: "creditor.name", label: "Description", type: FieldType.STRING }, { name: "creditor.amount", label: "Amount", type: FieldType.NUMERIC }, { name: "creditor.currency", label: "Currency", type: FieldType.STRING }, - { name: "creditor.kst_id", label: "KST | Cost Center", @@ -53,7 +73,9 @@ export function generateFieldConfigs( { label: "Quaestor", value: Card.QUAESTOR }, ], }, - { name: "reciept", label: "reciept", type: FieldType.FILE }, + { name: "receipt", label: "receipt", type: FieldType.FILE }, + { name: "creditor.comment", label: "comment", type: FieldType.STRING }, + ...qfields, ]; } @@ -77,12 +99,12 @@ export default function GenerateCreditPayment() { name: "", creator_id: user.id, }, - reciept: "", + receipt: "", card: "President", }; const submitter = async (changes: CreditPaymentCreate) => { - changes.reciept = await RecieptHandler(changes.reciept); + changes.receipt = await receiptHandler(changes.receipt); const response = await creditPaymentsCreateCreditPayment({ body: changes }); if (response.error) { throw response.error; diff --git a/src/pages/EditBills.tsx b/src/pages/EditBills.tsx index bb11a047dae0d265fd7e7ef7127fc170d7131f39..506038e514a8a924bcadd512fb37c33072634446 100644 --- a/src/pages/EditBills.tsx +++ b/src/pages/EditBills.tsx @@ -1,5 +1,9 @@ import { CircularProgress, Container } from "@mui/material"; -import { billsReadBill, billsUpdateBill } from "../client/services.gen"; +import { + billsReadBill, + billsUpdateBill, + billsDeleteBill, +} from "../client/services.gen"; import { BillCreate, Kst, @@ -18,7 +22,7 @@ import { useLoaderData, useParams } from "react-router-dom"; import { Kst_title, Ledger_title } from "../components/Titles"; import { useEffect, useState } from "react"; import { generateFieldConfigs } from "./Bills"; -import RecieptHandler from "../components/RecieptHandler"; +import receiptHandler from "../components/ReceiptHandler"; export default function EditBills( propIdString: string, @@ -60,7 +64,7 @@ export default function EditBills( name: data?.creditor?.name || "", creator_id: data?.creditor?.creator_id || "", }, - reciept: data?.reciept || "", + receipt: data?.receipt || "", reference: data?.reference || "", iban: data?.iban || "", address_id: data?.address?.id || "", @@ -86,7 +90,7 @@ export default function EditBills( }, [idstring, user.id]); const submitter = async (changes: BillPublic_Input) => { - changes.reciept = await RecieptHandler(changes.reciept); + changes.receipt = await receiptHandler(changes.receipt); const response = await billsUpdateBill({ body: changes, path: { id: idstring }, @@ -99,7 +103,19 @@ export default function EditBills( } }; - const fieldConfig = generateFieldConfigs(kst, ledger); + const deleter = async () => { + const response = await billsDeleteBill({ + path: { id: idstring }, + }); + if (response.error) { + throw response.error; + } else { + // Optionally navigate or handle success + return; + } + }; + + const fieldConfig = generateFieldConfigs(kst, ledger, true); if (loading || !initialElement) { return ( @@ -113,8 +129,9 @@ export default function EditBills( <Container> <ObjectEditor fieldConfigs={fieldConfig} - header="Edit Credit Payment" + header="Edit Bill Payment" submitter={submitter} + deleter={deleter} initial={initialElement} /> </Container> diff --git a/src/pages/EditCreditPayment.tsx b/src/pages/EditCreditPayment.tsx index 01fb8cda539ef3463b7cc1bf1ae6f01c4f0c5536..214a8ebcf721c0bc7cd3c09857fc58c4a9aa96b0 100644 --- a/src/pages/EditCreditPayment.tsx +++ b/src/pages/EditCreditPayment.tsx @@ -4,6 +4,7 @@ import { creditPaymentsCreateCreditPayment, creditPaymentsReadCreditPayment, creditPaymentsUpdateCreditPayment, + creditPaymentsDeleteCreditPayment, } from "../client/services.gen"; import { Card, @@ -23,7 +24,7 @@ import { useLoaderData, useParams } from "react-router-dom"; import { Kst_title, Ledger_title } from "../components/Titles"; import { CreditPaymentPublic_InputSchema } from "../client"; import { generateFieldConfigs } from "./CreditPayment"; -import RecieptHandler from "../components/RecieptHandler"; +import receiptHandler from "../components/ReceiptHandler"; export default function EditCreditPayment( propIdString: string = "", @@ -65,7 +66,7 @@ export default function EditCreditPayment( name: data?.creditor?.name || "", creator_id: data?.creditor?.creator_id || "", }, - reciept: data?.reciept || "", + receipt: data?.receipt || "", card: data?.card || "President", }); } catch (error) { @@ -79,7 +80,7 @@ export default function EditCreditPayment( }, [idstring, user.id]); const submitter = async (changes: CreditPaymentPublic_Input) => { - changes.reciept = await RecieptHandler(changes.reciept); + changes.receipt = await receiptHandler(changes.receipt); const response = await creditPaymentsUpdateCreditPayment({ body: changes, path: { id: idstring }, @@ -91,8 +92,19 @@ export default function EditCreditPayment( return; } }; + const deleter = async () => { + const response = await creditPaymentsDeleteCreditPayment({ + path: { id: idstring }, + }); + if (response.error) { + throw response.error; + } else { + // Optionally navigate or handle success + return; + } + }; - const fieldConfig = generateFieldConfigs(kst, ledger); + const fieldConfig = generateFieldConfigs(kst, ledger, true); if (loading || !initialElement) { return ( @@ -108,6 +120,7 @@ export default function EditCreditPayment( fieldConfigs={fieldConfig} header="Edit Credit Payment" submitter={submitter} + deleter={deleter} initial={initialElement} /> </Container> diff --git a/src/pages/EditInternalTransfer.tsx b/src/pages/EditInternalTransfer.tsx index 947ac7360ef97ccea59b9f62b4aaf7fe75b8c65e..0b57d60e4abb38d6ff42b307b694211ead8d1bfd 100644 --- a/src/pages/EditInternalTransfer.tsx +++ b/src/pages/EditInternalTransfer.tsx @@ -3,6 +3,7 @@ import { internalTransfersUpdateInternalTransfer, internalTransfersReadInternalTransfer, InternalTransfersUpdateInternalTransfer, + internalTransfersDeleteInternalTransfer, } from "../client/services.gen"; import { InternalTransferCreate, @@ -96,7 +97,19 @@ export default function EditInternalTransfers( } }; - const fieldConfig = generateFieldConfigs(kst, ledger); + const deleter = async () => { + const response = await internalTransfersDeleteInternalTransfer({ + path: { id: idstring }, + }); + if (response.error) { + throw response.error; + } else { + // Optionally navigate or handle success + return; + } + }; + + const fieldConfig = generateFieldConfigs(kst, ledger, true); if (loading || !initialElement) { return ( @@ -112,6 +125,7 @@ export default function EditInternalTransfers( fieldConfigs={fieldConfig} header="Edit Internal Transfer" submitter={submitter} + deleter={deleter} initial={initialElement} /> </Container> diff --git a/src/pages/EditReimbursement.tsx b/src/pages/EditReimbursement.tsx index 9cc2643bcb20bb435d1bfe917a6556d562437ee1..5c340f2004dd4714d93b9104507e727961227d68 100644 --- a/src/pages/EditReimbursement.tsx +++ b/src/pages/EditReimbursement.tsx @@ -2,6 +2,7 @@ import { CircularProgress, Container } from "@mui/material"; import { reimbursementsUpdateReimbursement, reimbursementsReadReimbursement, + reimbursementsDeleteReimbursement, filesUploadFile, } from "../client/services.gen"; import { @@ -22,7 +23,7 @@ import { useLoaderData, useParams } from "react-router-dom"; import { Kst_title, Ledger_title } from "../components/Titles"; import { useEffect, useState } from "react"; import { generateFieldConfigs } from "./Reimbursement"; -import RecieptHandler from "../components/RecieptHandler"; +import receiptHandler from "../components/ReceiptHandler"; export default function EditReimbursement(propIdString: string) { const { idstring: urlidstring } = useParams<{ idstring: string }>(); @@ -60,7 +61,7 @@ export default function EditReimbursement(propIdString: string) { creator_id: data?.creditor.creator_id || "", accounting_year: data?.creditor.accounting_year || 2024, }, - reciept: data?.reciept || "", + receipt: data?.receipt || "", recipient: data?.recipient || "", }); } catch (error) { @@ -74,7 +75,7 @@ export default function EditReimbursement(propIdString: string) { }, [idstring, user.id]); const submitter = async (changes: ReimbursementPublic_Input) => { - changes.reciept = await RecieptHandler(changes.reciept); + changes.receipt = await receiptHandler(changes.receipt); const response = await reimbursementsUpdateReimbursement({ body: changes, path: { id: idstring }, @@ -88,6 +89,18 @@ export default function EditReimbursement(propIdString: string) { } }; + const deleter = async () => { + const response = await reimbursementsDeleteReimbursement({ + path: { id: idstring }, + }); + if (response.error) { + throw response.error; + } else { + // Optionally navigate or handle success + return; + } + }; + const fieldConfig = generateFieldConfigs(kst, ledger, true); if (loading || !initialElement) { @@ -102,8 +115,9 @@ export default function EditReimbursement(propIdString: string) { <Container> <ObjectEditor fieldConfigs={fieldConfig} - header="Edit Credit Payment" + header="Edit reimbursement" submitter={submitter} + deleter={deleter} initial={initialElement} /> </Container> diff --git a/src/pages/Ezag.tsx b/src/pages/Ezag.tsx new file mode 100644 index 0000000000000000000000000000000000000000..9c5457d4ab450dee2645bd0b6869acfdd29a9736 --- /dev/null +++ b/src/pages/Ezag.tsx @@ -0,0 +1,87 @@ +import { Button } from "@mui/material"; +import { ezagsGenerateEzag, ezagsReadEzags } from "../client"; +import GenericDataTable from "../components/GenericDataTable"; +import { handleDownload } from "../components/DownloadHandler"; + +const EzagPage: React.FC = () => { + const columns = [ + { name: "name", label: "Name" }, + { name: "id", label: "ID" }, + { name: "size", label: "Size" }, + { name: "time_create", label: "created at" }, + { name: "link", label: "Download" }, + ]; + + const fetchEzags = async ({ + search, + sort, + filters, + }: { + search: string; + sort: { column: string; direction: "asc" | "desc" } | null; + filters: Record<string, any>; + }) => { + const body: any = { + search: search || null, + sort: sort ? `${sort.column}:${sort.direction}` : null, + ...filters, + }; + + try { + const response = await ezagsReadEzags({ query: body }); + const results = response.data?.items || []; + console.log(results); + const transformedData = results.map((item: any) => ({ + name: item.name, + id: item.id, + time_create: String(item.time_create), + size: item.size, + // add download button + link: ( + <Button + variant="contained" + color="primary" + onClick={() => handleDownload(item.link)} + download + > + Download + </Button> + ), + })); + + return transformedData; + } catch (error) { + console.error("Error fetching ezags", error); + return []; + } + }; + const generateEzag = async () => { + const response = await ezagsGenerateEzag(); + if (response.error) { + console.error("unable to generate ezag due to", response.error); + } + const result = response.data; + console.log(result); + }; + + return ( + <div> + <Button + variant="contained" + color="primary" + // item.link contains a link to a xml file that needs to be downlaoded. + onClick={generateEzag} + > + generate new ezag + </Button> + + <GenericDataTable + title="Credit Payments List" + columns={columns} + fetchData={fetchEzags} + /> + </div> + ); +}; + +export default EzagPage; diff --git a/src/pages/GenerateKst.tsx b/src/pages/GenerateKst.tsx index 77f5ad207f0a318d4f1708bd44c70a34bf804a35..894e2d1ae2f613ed495494a2a86bfb3446309a01 100644 --- a/src/pages/GenerateKst.tsx +++ b/src/pages/GenerateKst.tsx @@ -13,7 +13,7 @@ import { Kst_title } from "../components/Titles"; function generateFieldConfigs(): FieldConfig<KstBase>[] { return [ - { name: "kst_number", label: "kst_number", type: FieldType.NUMERIC }, + { name: "kst_number", label: "kst_number", type: FieldType.STRING }, { name: "name_de", label: "name_de", type: FieldType.STRING }, { name: "name_en", label: "name_en", type: FieldType.STRING }, { name: "owner", label: "owner", type: FieldType.STRING }, diff --git a/src/pages/GenerateLedger.tsx b/src/pages/GenerateLedger.tsx index f7d48fc3df7ba6610292b31fb37a0b55b8f8b19d..34ae980d55af41555f7e7e02b502fc3f100b0b22 100644 --- a/src/pages/GenerateLedger.tsx +++ b/src/pages/GenerateLedger.tsx @@ -19,7 +19,7 @@ import { Kst_title, Ledger_title } from "../components/Titles"; function generateFieldConfigs(): FieldConfig<LedgerCreate>[] { return [ - { name: "accountnumber", label: "accountnumber", type: FieldType.NUMERIC }, + { name: "accountnumber", label: "accountnumber", type: FieldType.STRING }, { name: "name_de", label: "name_de", type: FieldType.STRING }, { name: "name_en", label: "name_en", type: FieldType.STRING }, { name: "owner", label: "owner", type: FieldType.STRING }, diff --git a/src/pages/InternalTransfer.tsx b/src/pages/InternalTransfer.tsx index 23975e911777ea6bb3153046da27229f19c497d6..ff4363f81f53e1b8c7060f242cb369b5cc14d7cf 100644 --- a/src/pages/InternalTransfer.tsx +++ b/src/pages/InternalTransfer.tsx @@ -35,22 +35,44 @@ export function generateFieldConfigs( ledger: Ledger[], qmode: boolean, ): FieldConfig<InternalTransferCreate>[] { + let qfields = [] as FieldConfig<InternalTransferCreate>[]; + if (qmode === true) { + qfields = [ + { + name: "textcomment", + label: "text comment", + type: FieldType.COMMENT, + comment: "these fields are only for the quästor:", + }, + { name: "creditor.qcomment", label: "qcomment", type: FieldType.STRING }, + { name: "creditor.name", label: "name", type: FieldType.STRING }, + { name: "creditor.creator_id", label: "creator", type: FieldType.STRING }, + { + name: "creditor.accounting_year", + label: "accounting_year", + type: FieldType.NUMERIC, + }, + { name: "creditor.q_check", label: "q_check", type: FieldType.BOOLEAN }, + ]; + } + return [ + { name: "creditor.comment", label: "Description", type: FieldType.STRING }, { name: "debitor.kst_id", - label: "source kst", + label: "Source Cost Center (KST)", type: FieldType.STRING, items: kst.map((k) => ({ label: Kst_title(k), value: k.id ? k.id : "" })), }, { name: "creditor.kst_id", - label: "destination kst", + label: "Destination Cost Center (KST)", type: FieldType.STRING, items: kst.map((k) => ({ label: Kst_title(k), value: k.id ? k.id : "" })), }, - { name: "creditor.amount", label: "amount", type: FieldType.NUMERIC }, - { name: "creditor.currency", label: "währung", type: FieldType.STRING }, - { name: "creditor.comment", label: "kommentar", type: FieldType.STRING }, + { name: "creditor.amount", label: "Amount", type: FieldType.NUMERIC }, + { name: "creditor.currency", label: "Currency", type: FieldType.STRING }, + ...qfields, ]; } @@ -79,6 +101,7 @@ export default function GenerateInternalTransfer() { ledger_id: ledger[0].id ? ledger[0].id : "", amount: 0, mwst: "0", + creator_id: user.id, }, amount: 0, }; diff --git a/src/pages/Onboarding.tsx b/src/pages/Onboarding.tsx index b37ee0eaf0c74c266df8a470a20c3ba18d2a36c8..eb53e6138264d86940f63257b46f1ae6d8d9ae6e 100644 --- a/src/pages/Onboarding.tsx +++ b/src/pages/Onboarding.tsx @@ -18,6 +18,13 @@ import ObjectEditor, { } from "../components/ObjectEditor"; const fieldConfig: FieldConfig<DbUserCreate>[] = [ + { + name: "textcomment", + label: "text comment", + type: FieldType.COMMENT, + comment: + "Please enter your bank details. Any reimbursements will be sent to this account.", + }, { name: "iban", label: "IBAN", type: FieldType.STRING }, { name: "address.name", label: "Name", type: FieldType.STRING }, @@ -28,7 +35,7 @@ const fieldConfig: FieldConfig<DbUserCreate>[] = [ }, { name: "address.address2", label: "street and Nr", type: FieldType.STRING }, { name: "address.address3", label: "Optional ", type: FieldType.STRING }, - { name: "address.plz", label: "PLZ", type: FieldType.NUMERIC }, + { name: "address.plz", label: "PLZ", type: FieldType.STRING }, { name: "address.city", label: "City", type: FieldType.STRING }, { name: "address.country", label: "Country", type: FieldType.STRING }, ]; @@ -83,14 +90,13 @@ export default function OnboardingPage() { } else { //navigate to / window.location.href = "/"; - + return; } }; return ( <Container> - Please enter your bank details. Any reimbursements will be sent to this account. Once you have entered your bank details, you will be able to submit your first reimbursement. <ObjectEditor fieldConfigs={fieldConfig} header="Onboarding" diff --git a/src/pages/OnboardingQuiz.tsx b/src/pages/OnboardingQuiz.tsx index 8200190917dce22ea2d77f9a923aef68468db9ac..1505d09e18d6193271107062ac2a35f7b914c480 100644 --- a/src/pages/OnboardingQuiz.tsx +++ b/src/pages/OnboardingQuiz.tsx @@ -9,7 +9,7 @@ import { RadioGroup, FormControlLabel, Radio, - Checkbox + Checkbox, } from "@mui/material"; export default function OnboardingCourse() { @@ -18,9 +18,9 @@ export default function OnboardingCourse() { title: string; description: string; question?: string; - options?: string[]; // Multiple-choice options - correctAnswer?: string; // The correct option - isFinalPage?: boolean; // Whether this is the last page + options?: string[]; // Multiple-choice options + correctAnswer?: string; // The correct option + isFinalPage?: boolean; // Whether this is the last page } // Sample content with multiple-choice questions @@ -28,7 +28,8 @@ export default function OnboardingCourse() { { id: 1, title: "Welcome to QTool! ", - description: "In the next few minutes, you will learn how to use the tool correctly. At the end of this onboarding, you will need to enter your IBAN and address, so please have them ready. You will also need to answer a small quiz on each page of this onboarding. Let's begin!", + description: + "In the next few minutes, you will learn how to use the tool correctly. At the end of this onboarding, you will need to enter your IBAN and address, so please have them ready. You will also need to answer a small quiz on each page of this onboarding. Let's begin!", question: "I will pay attention.", options: ["Yes", "No", "Maybe"], correctAnswer: "Yes", @@ -36,49 +37,93 @@ export default function OnboardingCourse() { { id: 2, title: "What is Qtool?", - description: "QTool is used by AMIV to manage most financial processes. For you, it provides the ability to request reimbursements, enter any purchases made with an AMIV credit card, submit large bills that need to be paid by AMIV, and check the current status of the AMIV budget. If you are part of the board or a commission co-president, you will have detailed access to any transactions concerning the cost centers you are responsible for.", + description: + "QTool is used by AMIV to manage most financial processes. For you, it provides the ability to request reimbursements, enter any purchases made with an AMIV credit card, submit large bills that need to be paid by AMIV, and check the current status of the AMIV budget. If you are part of the board or a commission co-president, you will have detailed access to any transactions concerning the cost centers you are responsible for.", question: "What is not a feature of QTool?", - options: ["Reimbursement Requests", "Rights management of AMIV IT services.", "AMIV Invoice Management", "Budget Overview"], + options: [ + "Reimbursement Requests", + "Rights management of AMIV IT services.", + "AMIV Invoice Management", + "Budget Overview", + ], correctAnswer: "Rights management of AMIV IT services.", }, { id: 3, title: "Receipts are important!", - description: "The most common scenario for using QTool is when you spend money for AMIV (e.g., buying snacks for the biweekly EESTEC meeting). When spending money for AMIV, you ALWAYS need to ask for a receipt. If you don’t have the receipt, we cannot guarantee reimbursement. The receipt is always necessary, whether you use your own money or an AMIV credit card.", + description: + "The most common scenario for using QTool is when you spend money for AMIV (e.g., buying snacks for the biweekly EESTEC meeting). When spending money for AMIV, you ALWAYS need to ask for a receipt. If you don’t have the receipt, we cannot guarantee reimbursement. The receipt is always necessary, whether you use your own money or an AMIV credit card.", question: "Do I need a receipt when spending money for AMIV?", - options: ["Only if I need a reimbursement", "Only if I use an AMIV Credit card", "I always need a receipt when spending money for AMIV", "Never, receipts are optional"], + options: [ + "Only if I need a reimbursement", + "Only if I use an AMIV Credit card", + "I always need a receipt when spending money for AMIV", + "Never, receipts are optional", + ], correctAnswer: "I always need a receipt when spending money for AMIV", }, { id: 4, title: "Reimbursement Requests", - description: "When you want to get a reimbursement, choose the appropriate icon in the sidebar of QTool. Enter a short, unique, but precise description of what the money was spent on and what it is. Choose the correct cost center. If you are part of a commission, select the commission; if you spent the money for an AMIV event, select the event; if you are part of the board, you should know which option to choose. If in doubt, please contact the responsible person. Select the most appropriate ledger. Enter the exact amount stated on the receipt. Upload the receipt, making sure it is clear and that the whole receipt is visible. If you are happy with your choice, submit the form.", - question: "Which of the following is the best description of a reimbursement request?", - options: ["Gimme Money, was for snacks", "Snacks", "Beer for EESTEC meeting on 20.02.2014.", "Beer for EESTEC meeting"], + description: + "When you want to get a reimbursement, choose the appropriate icon in the sidebar of QTool. Enter a short, unique, but precise description of what the money was spent on and what it is. Choose the correct cost center. If you are part of a commission, select the commission; if you spent the money for an AMIV event, select the event; if you are part of the board, you should know which option to choose. If in doubt, please contact the responsible person. Select the most appropriate ledger. Enter the exact amount stated on the receipt. Upload the receipt, making sure it is clear and that the whole receipt is visible. If you are happy with your choice, submit the form.", + question: + "Which of the following is the best description of a reimbursement request?", + options: [ + "Gimme Money, was for snacks", + "Snacks", + "Beer for EESTEC meeting on 20.02.2014.", + "Beer for EESTEC meeting", + ], correctAnswer: "Beer for EESTEC meeting on 20.02.2014.", }, { id: 5, title: "AMIV Credit Card", - description: "If you use an AMIV credit card, the receipt also needs to be entered into QTool. The procedure is very similar to the reimbursement process, but you should choose the credit card form. Please be aware that you are responsible for the credit card when you have it with you, and AMIV could charge you for any usage of the card where you cannot provide the receipt.", + description: + "If you use an AMIV credit card, the receipt also needs to be entered into QTool. The procedure is very similar to the reimbursement process, but you should choose the credit card form. Please be aware that you are responsible for the credit card when you have it with you, and AMIV could charge you for any usage of the card where you cannot provide the receipt.", question: "How many expenses does AMIV have approximately in one year?", options: ["30'000,-", "100'000,-", "650'000,-", "1'030'000,-"], correctAnswer: "650'000,-", }, { - id: 6, - title: "Submitting Requests", - description: "Once you submit a request, the AMIV treasury will check it for correctness and either accept or decline it. You will be notified by email, and in the summary of QTool, you can see the status of all your requests.", - question: "When can I discard the original receipt?", - options: ["After I submitted the request", "After I received the money", "Never", "After the request was accepted"], - correctAnswer: "After the request was accepted", + id: 6, + title: "Submitting Requests", + description: + "Once you submit a request, the AMIV treasury will check it for correctness and either accept or decline it. You will be notified by email, and in the summary of QTool, you can see the status of all your requests.", + question: "When can I discard the original receipt?", + options: [ + "After I submitted the request", + "After I received the money", + "Never", + "After the request was accepted", + ], + correctAnswer: "After the request was accepted", }, { - id: 7, - title: "Warning!", - description: "Use QTool responsibly and try your best to do everything correctly. The AMIV treasury will be very grateful. In the end, we all do this work voluntarily. Finally, every request will be thoroughly checked by the AMIV treasury; any fraudulent behavior will have consequences.", - isFinalPage: true, - } + id: 7, + title: "Additional Information", + description: + "You need to submit one form for EACH receipt. You CANNOT group multiple receipts. Additionally, receipts must be entered into QTool within 7 days of the purchase.", + question: + "What is the ideal sequence of actions when you spend money for AMIV? The context is a big event where you use an AMIV credit card to make some purchases.", + options: [ + "After I make all purchases, I throw the receipts in the bin and have fun at the event.", + "After each purchase, I take a high-quality picture of the receipt, and within 7 days of the purchase, I fill out a form for each receipt and upload it.", + "I keep the receipts in my wallet and fill out the forms when I have time.", + "After I make all purchases, I put the receipts next to each other, take a picture, and fill out one form for all receipts.", + ], + correctAnswer: + "After each purchase, I take a high-quality picture of the receipt, and within 7 days of the purchase, I fill out a form for each receipt and upload it.", + }, + + { + id: 8, + title: "Warning!", + description: + "Use QTool responsibly and make every effort to ensure accuracy. The AMIV treasury will greatly appreciate your diligence. Remember, we all do this work voluntarily. Lastly, every request will be thoroughly reviewed by the AMIV treasury, and any fraudulent behavior will result in consequences.", + isFinalPage: true, + }, ]; // State @@ -143,7 +188,7 @@ export default function OnboardingCourse() { const handleAcceptTerms = () => { // Usually you'd call an API or do something else before redirecting // Then redirect once accepted: - window.location.href = "/Onboarding"; + window.location.href = "/Onboarding"; }; return ( @@ -173,7 +218,8 @@ export default function OnboardingCourse() { onChange={() => setTermsAccepted(!termsAccepted)} /> <Typography variant="body2"> - I am aware of my responsibilities and will use QTool responsibly. + I acknowledge my responsibilities and commit to using QTool + responsibly. </Typography> </Box> @@ -252,4 +298,4 @@ export default function OnboardingCourse() { )} </Container> ); -} \ No newline at end of file +} diff --git a/src/pages/OwnList.tsx b/src/pages/OwnList.tsx index cf505827c4d35b082d661d42622d66e48b4e25f6..8710fa80c4fe3e3f9edcc53649774feb59c15a27 100644 --- a/src/pages/OwnList.tsx +++ b/src/pages/OwnList.tsx @@ -3,6 +3,7 @@ import { useLoaderData } from "react-router-dom"; import { combinedReadOwnCombinedPayments } from "../client/services.gen"; import GenericEditableTable from "../components/GenericEditableTable"; import { CombinedCreditor } from "../client/types.gen"; +import { Container, Typography } from "@mui/material"; const OwnList: React.FC = () => { const { kst, ledger, user } = useLoaderData() as { @@ -45,23 +46,26 @@ const OwnList: React.FC = () => { ledger.find((l) => l.id === item.creditor?.ledger_id)?.name_de || "Unknown", creditor__currency: item.creditor?.currency, - creator: user.nethz, type: item.type, id: item.id, reference: item.reference, - iban: item.iban, comment: item.creditor.comment, - reimbursement__recipient: item.reimbursement__recipient, })); }; return ( - <GenericEditableTable - title="All Submissions" - fetchFunction={fetchCombinedPayments} - kst={kst} - ledger={ledger} - /> + <Container> + <Typography variant="h4" component="h1" gutterBottom> + My Requests + </Typography> + + <GenericEditableTable + title="My Requests" + fetchFunction={fetchCombinedPayments} + kst={kst} + ledger={ledger} + /> + </Container> ); }; diff --git a/src/pages/Reimbursement.tsx b/src/pages/Reimbursement.tsx index 5ed68cb504e2e00ce7a8ce8191a4ed138d7b2c43..bc8532e011f319b106998cf34d55d8c2ca51b76b 100644 --- a/src/pages/Reimbursement.tsx +++ b/src/pages/Reimbursement.tsx @@ -10,6 +10,7 @@ import { Ledger, BasicUser, FilesUploadFileData, + q_state, } from "../client/types.gen"; import client from "../apiClientConfig"; //Do not remove @@ -20,7 +21,8 @@ import ObjectEditor, { } from "../components/ObjectEditor"; import { useLoaderData } from "react-router-dom"; import { Kst_title, Ledger_title } from "../components/Titles"; -import RecieptHandler from "../components/RecieptHandler"; +import receiptHandler from "../components/ReceiptHandler"; +import { q_stateSchema } from "../client"; export function generateFieldConfigs( kst: Kst[], @@ -45,7 +47,16 @@ export function generateFieldConfigs( label: "accounting_year", type: FieldType.NUMERIC, }, - { name: "creditor.q_check", label: "q_check", type: FieldType.BOOLEAN }, + { + name: "creditor.q_check", + label: "q_check", + type: FieldType.STRING, + items: [ + { label: "open", value: q_state.OPEN }, + { label: "accepted", value: q_state.ACCEPTED }, + { label: "rejected", value: q_state.REJECTED }, + ], + }, ]; } @@ -68,7 +79,8 @@ export function generateFieldConfigs( value: l.id ? l.id : "", })), }, - { name: "reciept", label: "Receipt", type: FieldType.FILE }, + { name: "receipt", label: "Receipt", type: FieldType.FILE }, + { name: "comment", label: "Comment", type: FieldType.STRING }, ...qfields, ]; } @@ -89,17 +101,18 @@ export default function GenerateReimbursement() { accounting_year: 2024, currency: "CHF", comment: "", + q_check: q_state.OPEN, qcomment: "", name: "", creator_id: user.id ? user.id : "", }, - reciept: "", + receipt: "", creator: user.id, recipient: user.id, }; const submitter = async (changes: ReimbursementCreate) => { - changes.reciept = await RecieptHandler(changes.reciept); + changes.receipt = await receiptHandler(changes.receipt); const response = await reimbursementsCreateReimbursement({ body: changes, }); diff --git a/src/pages/ResponsibleList.tsx b/src/pages/ResponsibleList.tsx index 4d97fa537a88c7b4f72347052af19bec6d8788b6..0d51b391eece4468cadc59af376ec75b84751503 100644 --- a/src/pages/ResponsibleList.tsx +++ b/src/pages/ResponsibleList.tsx @@ -1,6 +1,10 @@ import React from "react"; import { useLoaderData } from "react-router-dom"; -import { combinedReadCombinedPayments, combinedReadResponsibleCombinedPayments, kstsReadKstsResponsible } from "../client/services.gen"; +import { + combinedReadCombinedPayments, + combinedReadResponsibleCombinedPayments, + kstsReadKstsResponsible, +} from "../client/services.gen"; import GenericEditableTable from "../components/GenericEditableTable"; import { CombinedCreditor } from "../client/types.gen"; @@ -10,7 +14,7 @@ const ResponsibleList: React.FC = () => { ledger: any[]; user: any; }; - + const fetchCombinedPayments = async ({ search, sort, @@ -20,8 +24,8 @@ const ResponsibleList: React.FC = () => { sort: { column: string; direction: "asc" | "desc" } | null; filters: Record<string, any>; }) => { - const ownkstresponse = await kstsReadKstsResponsible() - if (ownkstresponse.error){ + const ownkstresponse = await kstsReadKstsResponsible(); + if (ownkstresponse.error) { console.error("Error fetching combined payments:", ownkstresponse.error); return []; } diff --git a/src/pages/UncheckedPayments.tsx b/src/pages/UncheckedPayments.tsx index e1623b544189deb104c9087d73a68100220b54de..f71b2970ac043488da8cb734f06fe5454e175b93 100644 --- a/src/pages/UncheckedPayments.tsx +++ b/src/pages/UncheckedPayments.tsx @@ -4,6 +4,7 @@ import { billsReadBill, billsUpdateBill, combinedReadCombinedPayments, + combinedReadUncheckedCombinedPayments, creditPaymentsReadCreditPayment, creditPaymentsUpdateCreditPayment, internalTransfersReadInternalTransfer, @@ -14,19 +15,19 @@ import { import GenericEditableTable, { fetchDataForView, } from "../components/GenericEditableTable"; -import { CombinedCreditor } from "../client/types.gen"; +import { CombinedCreditor, q_state } from "../client/types.gen"; import { Button } from "@mui/material"; -import RecieptHandler from "../components/RecieptHandler"; +import receiptHandler from "../components/ReceiptHandler"; -async function handleCheck(type, id, data) { +async function handleCheck(type, id, data, state: q_state) { try { const item = data; // 2. Toggle q_check - item.creditor.q_check = !item.creditor.q_check; + item.creditor.q_check = state; // 3. Update on server if (type === "Bill") { - item.reciept = await RecieptHandler(item.reciept); + item.receipt = await receiptHandler(item.receipt); const resp = await billsUpdateBill({ body: item, path: { id } }); if (resp.error) { console.error("Failed to update bill:", resp.error); @@ -35,7 +36,7 @@ async function handleCheck(type, id, data) { } alert("Bill approval status updated"); } else if (type === "CreditPayment") { - item.reciept = await RecieptHandler(item.reciept); + item.receipt = await receiptHandler(item.receipt); const resp = await creditPaymentsUpdateCreditPayment({ body: item, path: { id }, @@ -47,7 +48,7 @@ async function handleCheck(type, id, data) { } alert("Credit Payment approval status updated"); } else if (type === "Reimbursement") { - item.reciept = await RecieptHandler(item.reciept); + item.receipt = await receiptHandler(item.receipt); const resp = await reimbursementsUpdateReimbursement({ body: item, path: { id }, @@ -100,7 +101,7 @@ const CombinedList: React.FC = () => { sort: { column: string; direction: "asc" | "desc" } | null; filters: Record<string, any>; }) => { - const response = await combinedReadCombinedPayments({ + const response = await combinedReadUncheckedCombinedPayments({ query: { search, sort: sort ? `${sort.column}:${sort.direction}` : null, @@ -136,20 +137,26 @@ const CombinedList: React.FC = () => { }; function previewHeader(type: string, id: string, data: any) { - const handleButtonClick = () => { + const acceptButton = () => { // Call the async function and handle errors - handleCheck(type, id, data).catch((error) => { + handleCheck(type, id, data, q_state.ACCEPTED).catch((error) => { + console.error("Error handling check:", error); + }); + }; + + const deniedButton = () => { + // Call the async function and handle errors + handleCheck(type, id, data, q_state.REJECTED).catch((error) => { console.error("Error handling check:", error); }); }; return [ - <Button - variant="contained" - color={data.creditor.q_check ? "success" : "error"} - onClick={handleButtonClick} - > - {data.creditor.q_check ? "Checked" : "Check"} + <Button variant="contained" color="success" onClick={acceptButton}> + {data.creditor.q_check === q_state.OPEN ? "Accept" : "Uncheck"} + </Button>, + <Button variant="contained" color="error" onClick={deniedButton}> + {data.creditor.q_check === q_state.OPEN ? "Reject" : "Uncheck"} </Button>, ]; } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index f08a0315e549811d86f7a2b5d7cb53acc267e06a..6bfa001c2cd3c587e51c37b219acc97b6132165b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -14,12 +14,18 @@ import { Paper, Grid, } from "@mui/material"; -import { combinedReadCombinedPayments, authGetBasicUserInfo, combinedReadOwnCombinedPayments } from "../client/services.gen"; +import { + combinedReadCombinedPayments, + authGetBasicUserInfo, + combinedReadOwnCombinedPayments, +} from "../client/services.gen"; import { CombinedCreditor } from "../client"; import GenericEditableTable from "../components/GenericEditableTable"; export default function WelcomeToQTool() { - const [lastFiveEntries, setLastFiveEntries] = useState<CombinedCreditor[]>([]); + const [lastFiveEntries, setLastFiveEntries] = useState<CombinedCreditor[]>( + [], + ); const [user, setUser] = useState<any | null>(null); const [isFetchingUser, setIsFetchingUser] = useState(true); @@ -43,20 +49,23 @@ export default function WelcomeToQTool() { }, }); if (paymentResponse.error) { - console.error("Error fetching combined payments:", paymentResponse.error); + console.error( + "Error fetching combined payments:", + paymentResponse.error, + ); } else { - console.log("recieved data"); + console.log("received data"); console.log(paymentResponse.data.items); setLastFiveEntries(paymentResponse.data.items); console.log(lastFiveEntries); - }} + } + } } catch (error) { console.error("Error fetching data:", error); setUser(null); } finally { setIsFetchingUser(false); } - }; // Fetch data on mount and when user state changes @@ -89,23 +98,25 @@ export default function WelcomeToQTool() { textAlign: "center", }} > - <Box sx={{ marginBottom: 4 }}> - <Typography variant="h4" sx={{ fontWeight: "bold" }}> - Welcome to QTool! - </Typography> - </Box> - {user ? ( <> + <Box sx={{ marginBottom: 4 }}> + <Typography variant="h4" sx={{ fontWeight: "bold" }}> + Welcome to QTool {user.firstname}! + </Typography> + </Box> <Box sx={{ width: "100%", maxWidth: "600px", marginBottom: 4 }}> <Grid container spacing={2} justifyContent="center"> <Grid item xs={6}> <Link href="/Belegformular" underline="none"> <Button variant="contained" - color="primary" size="large" - sx={{ width: "100%" }} + sx={{ + width: "100%", + backgroundColor: "#d8202a", // Kahoot red + "&:hover": { backgroundColor: "#c11c24" }, // Slightly darker on hover + }} > Reimbursement Request </Button> @@ -115,9 +126,12 @@ export default function WelcomeToQTool() { <Link href="/Belegformular" underline="none"> <Button variant="contained" - color="secondary" size="large" - sx={{ width: "100%" }} + sx={{ + width: "100%", + backgroundColor: "#1368ce", // Kahoot blue + "&:hover": { backgroundColor: "#105bb4" }, // Slightly darker on hover + }} > Credit Card Form </Button> @@ -127,9 +141,12 @@ export default function WelcomeToQTool() { <Link href="/CombinedList" underline="none"> <Button variant="contained" - color="success" size="large" - sx={{ width: "100%" }} + sx={{ + width: "100%", + backgroundColor: "#ffc028", // Kahoot yellow + "&:hover": { backgroundColor: "#e0a520" }, // Slightly darker on hover + }} > My Requests and Payments </Button> @@ -139,9 +156,12 @@ export default function WelcomeToQTool() { <Link href="/support" underline="none"> <Button variant="contained" - color="info" size="large" - sx={{ width: "100%" }} + sx={{ + width: "100%", + backgroundColor: "#2baa41", // Kahoot green + "&:hover": { backgroundColor: "#249136" }, // Slightly darker on hover + }} > Settings </Button> @@ -151,13 +171,22 @@ export default function WelcomeToQTool() { </Box> <Box sx={{ maxWidth: "600px", marginBottom: 4 }}> <Typography variant="body1"> - For more information, please visit the official QTool documentation linked below. If - you face a problem of financial nature, contact the AMIV Finance Team at{" "} - <Link href="mailto:quaestor@amiv.ethz.ch" underline="hover" color="primary"> + For more information, please visit the official QTool + documentation linked below. If you face a problem of financial + nature, contact the AMIV Finance Team at{" "} + <Link + href="mailto:quaestor@amiv.ethz.ch" + underline="hover" + color="primary" + > quaestor@amiv.ethz.ch </Link> . For technical issues, reach out to the AMIV IT Team at{" "} - <Link href="mailto:it@amiv.ethz.ch" underline="hover" color="primary"> + <Link + href="mailto:it@amiv.ethz.ch" + underline="hover" + color="primary" + > it@amiv.ethz.ch </Link> . @@ -170,7 +199,15 @@ export default function WelcomeToQTool() { target="_blank" rel="noopener noreferrer" > - <Button variant="contained" color="warning" size="large" sx={{ width: "300px" }}> + <Button + variant="contained" + size="large" + sx={{ + width: "300px", + backgroundColor: "#46178f", // Purple color + "&:hover": { backgroundColor: "#3d157f" }, // Slightly darker purple on hover + }} + > QTool Documentation </Button> </Link> @@ -189,24 +226,40 @@ export default function WelcomeToQTool() { <TableCell>Status</TableCell> </TableRow> </TableHead> - <TableBody> - </TableBody> + <TableBody></TableBody> </Table> </TableContainer> </Box> </> ) : ( - <Box sx={{ textAlign: "center" }}> - <Typography variant="h6" sx={{ marginBottom: 2 }}> - Please log in to access your dashboard. - If this is your first time using QTool, please complete the onboarding process after logging in. The onboarding process is mandatory and will unlock the full functionality of QTool. - </Typography> - <Link href= {import.meta.env.VITE_API_BASE_URL+ "api/login"} underline="none"> - <Button variant="contained" color="primary" size="large" onClick={handleLogin}> - Log In - </Button> - </Link> - </Box> + <> + <Box> + <Typography variant="h4" sx={{ fontWeight: "bold" }}> + Welcome to QTool! + </Typography> + </Box> + <Box sx={{ textAlign: "center" }}> + <Typography variant="h6" sx={{ marginBottom: 2 }}> + Please log in to access your dashboard. If this is your first time + using QTool, please complete the onboarding process after logging + in. The onboarding process is mandatory and will unlock the full + functionality of QTool. + </Typography> + <Link + href={import.meta.env.VITE_API_BASE_URL + "api/login"} + underline="none" + > + <Button + variant="contained" + color="primary" + size="large" + onClick={handleLogin} + > + Log In + </Button> + </Link> + </Box> + </> )} </Container> ); diff --git a/src/pages/root.tsx b/src/pages/root.tsx index f085fdb79f48cfbcf5c8e14d0d79c23e3c8a45f1..75ce7a699682d9123992ae52a3e4bc8183438f15 100644 --- a/src/pages/root.tsx +++ b/src/pages/root.tsx @@ -15,110 +15,184 @@ import { ListItemText, List, Drawer, - Checkbox, - FormControlLabel, Divider, } from "@mui/material"; import { Outlet, useLocation, useNavigate } from "react-router-dom"; import { - Checklist, - Groups, Home, - Login, - Logout, - Menu, - Payment, - Settings, - ShoppingCart, ReceiptLong, - CreditScore, - Summarize, ViewList, PlaylistRemove, Reorder, Category, Extension, - ShowChart, AccountTree, School, + Settings, + Login, + Logout, + Menu, + ShowChart, ViewListTwoTone, + CreditCard, + Description, + SyncAlt, } from "@mui/icons-material"; -import ReceiptIcon from "@mui/icons-material/Receipt"; // Import the Receipt icon import { Link } from "react-router-dom"; - import AmivLogoSVG from "../assets/amiv.svg"; import AmivWheelSVG from "../assets/amiv-wheel.svg"; -import Callback from "../Callback"; +import { authGetBasicUserInfo } from "../client/services.gen"; -const navContent = [ - { - path: "/Belegformular", - name: "Receipt Form", - icon: <ReceiptLong />, - }, - { path: "/combinedList", - name: "My Payments", - icon: <Reorder /> }, - { - path: "/KstEval", - name: "KST | Cost Center Evaluation", - icon: <ShowChart />, - }, +const sections = [ { - path: "/UncheckedPayments", - name: "Open Requests", - icon: <PlaylistRemove />, + title: "General", + items: [ + { + path: "/", + name: "Home", + icon: <Home />, + }, + { + path: "/ownList", + name: "My Requests", + icon: <ViewList />, + }, + { + path: "/KstEval", + name: "KST | Cost Center Evaluation", + icon: <ShowChart />, + }, + { + path: "/kstResponsibleCreditorList", + name: "KST Responsible List", + icon: <ViewListTwoTone />, + }, + ], }, { - path: "/ownList", - name: "Own Requests", - icon: <ViewList />, + title: "Requests", + items: [ + { + path: "/Reimbursement", + name: "Reimbursement", + icon: <ReceiptLong />, + }, + { + path: "/CreditPayment", + name: "Credit Card Approval", + icon: <CreditCard />, + }, + { + path: "/Bills", + name: "Bill Payment", + icon: <Description />, + }, + { + path: "/InternalTransfer", + name: "Internal Transfer", + icon: <SyncAlt />, + }, + ], }, { - path: "/kstResponsibleCreditorList", - name: "KST Responsible List", - icon: <ViewListTwoTone />, + title: "Receipt Management", + items: [ + { + path: "/UncheckedPayments", + name: "Open Requests", + icon: <PlaylistRemove />, + }, + { + path: "/combinedList", + name: "All Payments", + icon: <Reorder />, + }, + { + path: "/creditlist", + name: "Credit List", + icon: <ViewList />, + }, + { + path: "/Ezag", + name: "Ezag stuff", + icon: <ReceiptLong />, + }, + ], }, { - path: "/creditlist", - name: "Credit List", - icon: <ViewList />, + title: "Edit Qtool", + items: [ + { + path: "/GenerateItem", + name: "Add Invoice Item", + icon: <Category />, + }, + { + path: "/GenerateLedger", + name: "Add Ledger", + icon: <Extension />, + }, + { + path: "/GenerateKst", + name: "Add Cost Center | KST", + icon: <AccountTree />, + }, + ], }, { - path: "/GenerateItem", - name: "Add Item", - icon: <Category />, + title: "Other", + items: [ + { + path: "/Onboarding", + name: "Onboarding", + icon: <School />, + }, + ], }, - { - path: "/GenerateLedger", - name: "Add Ledger", - icon: <Extension />, - }, - { - path: "/GenerateKst", - name: "Add Cost Center | KST", - icon: <AccountTree />, - }, - { - path: "/Onboarding", - name: "Onboarding", - icon: <School />, - }, -] as { path: string; name: string; icon: React.ReactNode }[]; +]; + +function NavigationList({ user }: { user: any }) { + // Ensure sections are filtered based on user.role + const filteredSections = sections.filter((section) => { + if (section.title === "General") { + return true; // Always include the General section + } + if (section.title === "Requests") { + return true; // Always include the Requests section + } + if (section.title === "Receipt Management" && user?.role === "auditor") { + return true; // Include Receipt Management for auditors + } + return user?.role === "quaestor"; // Include other sections only for quaestors + }); -function NavigationList() { return ( <> - <List> - {navContent.map((item, index) => ( - <ListItem key={index}> - <ListItemButton component={Link} to={item.path}> - <ListItemIcon>{item.icon}</ListItemIcon> - <ListItemText primary={item.name} /> - </ListItemButton> - </ListItem> - ))} - </List> + {user ? ( + filteredSections.map((section, sectionIndex) => ( + <Box key={sectionIndex} sx={{ marginBottom: 2 }}> + <Typography + variant="subtitle1" + sx={{ paddingLeft: 2, paddingTop: 1 }} + > + {section.title} + </Typography> + <List> + {section.items.map((item, index) => ( + <ListItem key={index}> + <ListItemButton component={Link} to={item.path}> + <ListItemIcon>{item.icon}</ListItemIcon> + <ListItemText primary={item.name} /> + </ListItemButton> + </ListItem> + ))} + </List> + {sectionIndex < filteredSections.length - 1 && <Divider />} + </Box> + )) + ) : ( + <Typography></Typography> + )} </> ); } @@ -136,13 +210,19 @@ function DesktopAppBar({ onLogin: () => void; onLogout: () => void; }) { + const navigate = useNavigate(); return ( - <AppBar position="static" sx={sx}> + <AppBar position="fixed" sx={sx}> <Toolbar> <IconButton onClick={toggleDrawer}> <Menu /> </IconButton> - <Typography variant="h6" component="div" sx={{ flexGrow: 1 }}> + <Typography + variant="h6" + component="div" + sx={{ flexGrow: 1, cursor: "pointer" }} + onClick={() => navigate("/")} + > <img src={AmivLogoSVG} alt="AMIV Logo" style={{ height: "1.5em" }} /> </Typography> <IconButton> @@ -175,13 +255,19 @@ function MobileAppBar({ onLogin: () => void; onLogout: () => void; }) { + const navigate = useNavigate(); return ( - <AppBar position="static" sx={sx}> + <AppBar position="fixed" sx={sx}> <Toolbar> <IconButton onClick={toggleDrawer}> <Menu /> </IconButton> - <Typography variant="h6" component="div" sx={{ flexGrow: 1 }}> + <Typography + variant="h6" + component="div" + sx={{ flexGrow: 1, cursor: "pointer" }} + onClick={() => navigate("/")} + > <img src={AmivWheelSVG} alt="AMIV Wheel" @@ -210,25 +296,48 @@ function App() { const [drawerOpen, setDrawerOpen] = useState<boolean>(false); const [isAuthenticated, setIsAuthenticated] = useState<boolean>(false); + const [user, setUser] = useState<any | null>(null); + const [isFetchingUser, setIsFetchingUser] = useState(true); + // Function to fetch user info and data + const fetchUser = async () => { + try { + setIsFetchingUser(true); + // Fetch user info + const userResponse = await authGetBasicUserInfo(); + if (userResponse.error) { + console.error("Failed to fetch user info:", userResponse.error); + setUser(null); + } else { + setUser(userResponse.data); + } + } catch (error) { + console.error("Error fetching data:", error); + setUser(null); + } finally { + setIsFetchingUser(false); + } + }; + + // Fetch data on mount and when user state changes + useEffect(() => { + fetchUser(); + }, []); const toggleDrawer = () => { setDrawerOpen((o) => !o); }; - // Check authentication status on mount and when location changes useEffect(() => { const token = localStorage.getItem("access_token"); setIsAuthenticated(!!token); }, [location]); const handleLogin = () => { - // Redirect to the backend login endpoint - window.location.href = import.meta.env.VITE_API_BASE_URL + "api/login"; + fetchUser(); }; const handleLogout = () => { - // Remove token and update state localStorage.removeItem("access_token"); setIsAuthenticated(false); navigate("/"); @@ -260,11 +369,13 @@ function App() { onClose={toggleDrawer} > <Box sx={{ width: "100%" }}> - <NavigationList /> + <NavigationList user={user} /> </Box> </Drawer> - <Outlet /> + <Box sx={{ marginTop: "64px" }}> + <Outlet /> + </Box> </> ); }