diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..a4b9751 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0bd2129 --- /dev/null +++ b/.gitignore @@ -0,0 +1,130 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +client/node_modules +server/node_modules +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..22bb6fa --- /dev/null +++ b/README.md @@ -0,0 +1,43 @@ +# Expense Tracker + +Expense Tracker is a web application designed to help you manage your expenses efficiently. It provides a chart that categorizes your expenses for better visualization. The frontend is built with React.js and Redux, utilizing Material UI for styling. The backend is powered by Node.js and Express.js, with MongoDB serving as the database. + +![image](https://github.com/ajayjainn/expense_tracker/assets/64261776/00eaac80-e0be-4673-bf30-255fbbc6ca3a) + +![image](https://github.com/ajayjainn/expense_tracker/assets/64261776/8634ac8b-4ab1-4ceb-97a0-4f7f7485619b) + +## Features + +- User authentication with login and registration +- Categorize each expense +- Visualize expenses with category-wise charts +- Add and delete categories +- Update and delete previous expenses + +## Usage + +### Environment Variables + +The `.env` file is included intentionally solely for the purpose of this event + +### Install Dependencies and run the project + +1. Clone the repository to your local machine. +2. Navigate to the project directory. +3. Install the necessary packages for both client and server by running: + ``` + cd server + npm install + cd ../client + npm install + cd .. + ``` +4. To run the client on port 5173, use the following command: + ``` + npm run dev + ``` +5. To run the server, use the following command: + ``` + npm run dev + ``` + diff --git a/client/.DS_Store b/client/.DS_Store new file mode 100644 index 0000000..2ed8e54 Binary files /dev/null and b/client/.DS_Store differ diff --git a/client/.eslintrc.cjs b/client/.eslintrc.cjs new file mode 100644 index 0000000..4ed2f01 --- /dev/null +++ b/client/.eslintrc.cjs @@ -0,0 +1,21 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:react/recommended', + 'plugin:react/jsx-runtime', + 'plugin:react-hooks/recommended', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, + settings: { react: { version: '18.2' } }, + plugins: ['react-refresh'], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + 'react/prop-types':0 + }, +} diff --git a/client/dist/assets/index-7950a1c8.js b/client/dist/assets/index-7950a1c8.js new file mode 100644 index 0000000..e6b2c65 --- /dev/null +++ b/client/dist/assets/index-7950a1c8.js @@ -0,0 +1,250 @@ +function BT(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function VT(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Kw={exports:{}},Zd={},Gw={exports:{}},Xe={};/** + * @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 mu=Symbol.for("react.element"),UT=Symbol.for("react.portal"),WT=Symbol.for("react.fragment"),HT=Symbol.for("react.strict_mode"),YT=Symbol.for("react.profiler"),KT=Symbol.for("react.provider"),GT=Symbol.for("react.context"),qT=Symbol.for("react.forward_ref"),XT=Symbol.for("react.suspense"),QT=Symbol.for("react.memo"),ZT=Symbol.for("react.lazy"),p0=Symbol.iterator;function JT(e){return e===null||typeof e!="object"?null:(e=p0&&e[p0]||e["@@iterator"],typeof e=="function"?e:null)}var qw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xw=Object.assign,Qw={};function vs(e,t,n){this.props=e,this.context=t,this.refs=Qw,this.updater=n||qw}vs.prototype.isReactComponent={};vs.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")};vs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zw(){}Zw.prototype=vs.prototype;function jg(e,t,n){this.props=e,this.context=t,this.refs=Qw,this.updater=n||qw}var Fg=jg.prototype=new Zw;Fg.constructor=jg;Xw(Fg,vs.prototype);Fg.isPureReactComponent=!0;var h0=Array.isArray,Jw=Object.prototype.hasOwnProperty,zg={current:null},eS={key:!0,ref:!0,__self:!0,__source:!0};function tS(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Jw.call(t,r)&&!eS.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,ae=I[K];if(0>>1;Ko(te,F))Jo(G,te)?(I[K]=G,I[J]=F,K=J):(I[K]=te,I[B]=F,K=B);else if(Jo(G,F))I[K]=G,I[J]=F,K=J;else break e}}return L}function o(I,L){var F=I.sortIndex-L.sortIndex;return F!==0?F:I.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,g=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(I){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=I)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function b(I){if(m=!1,x(I),!g)if(n(l)!==null)g=!0,N(P);else{var L=n(u);L!==null&&j(b,L.startTime-I)}}function P(I,L){g=!1,m&&(m=!1,v(T),T=-1),h=!0;var F=f;try{for(x(L),d=n(l);d!==null&&(!(d.expirationTime>L)||I&&!O());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var ae=K(d.expirationTime<=L);L=e.unstable_now(),typeof ae=="function"?d.callback=ae:d===n(l)&&r(l),x(L)}else r(l);d=n(l)}if(d!==null)var ie=!0;else{var B=n(u);B!==null&&j(b,B.startTime-L),ie=!1}return ie}finally{d=null,f=F,h=!1}}var k=!1,E=null,T=-1,A=5,M=-1;function O(){return!(e.unstable_now()-MI||125K?(I.sortIndex=F,t(u,I),n(l)===null&&I===n(u)&&(m?(v(T),T=-1):m=!0,j(b,F-K))):(I.sortIndex=ae,t(l,I),g||h||(g=!0,N(P))),I},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(I){var L=f;return function(){var F=f;f=L;try{return I.apply(this,arguments)}finally{f=F}}}})(iS);oS.exports=iS;var cM=oS.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 aS=p,tr=cM;function ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jh=Object.prototype.hasOwnProperty,dM=/^[: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]*$/,g0={},v0={};function fM(e){return Jh.call(v0,e)?!0:Jh.call(g0,e)?!1:dM.test(e)?v0[e]=!0:(g0[e]=!0,!1)}function pM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function hM(e,t,n,r){if(t===null||typeof t>"u"||pM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Rn(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new Rn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new Rn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new Rn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new Rn(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){un[e]=new Rn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){un[e]=new Rn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){un[e]=new Rn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){un[e]=new Rn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){un[e]=new Rn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vg=/[\-:]([a-z])/g;function Ug(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(Vg,Ug);un[t]=new Rn(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(Vg,Ug);un[t]=new Rn(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(Vg,Ug);un[t]=new Rn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){un[e]=new Rn(e,1,!1,e.toLowerCase(),null,!1,!1)});un.xlinkHref=new Rn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){un[e]=new Rn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wg(e,t,n,r){var o=un.hasOwnProperty(t)?un[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Wp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rl(e):""}function mM(e){switch(e.tag){case 5:return rl(e.type);case 16:return rl("Lazy");case 13:return rl("Suspense");case 19:return rl("SuspenseList");case 0:case 2:case 15:return e=Hp(e.type,!1),e;case 11:return e=Hp(e.type.render,!1),e;case 1:return e=Hp(e.type,!0),e;default:return""}}function rm(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 ga:return"Fragment";case ma:return"Portal";case em:return"Profiler";case Hg:return"StrictMode";case tm:return"Suspense";case nm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uS:return(e.displayName||"Context")+".Consumer";case lS:return(e._context.displayName||"Context")+".Provider";case Yg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kg:return t=e.displayName||null,t!==null?t:rm(e.type)||"Memo";case Fo:t=e._payload,e=e._init;try{return rm(e(t))}catch{}}return null}function gM(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 rm(t);case 8:return t===Hg?"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 ai(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vM(e){var t=dS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qu(e){e._valueTracker||(e._valueTracker=vM(e))}function fS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nd(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 om(e,t){var n=t.checked;return Rt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function x0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ai(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pS(e,t){t=t.checked,t!=null&&Wg(e,"checked",t,!1)}function im(e,t){pS(e,t);var n=ai(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?am(e,t.type,n):t.hasOwnProperty("defaultValue")&&am(e,t.type,ai(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function b0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function am(e,t,n){(t!=="number"||nd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ol=Array.isArray;function Da(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Xu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ol(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ul={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},yM=["Webkit","ms","Moz","O"];Object.keys(ul).forEach(function(e){yM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ul[t]=ul[e]})});function vS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ul.hasOwnProperty(e)&&ul[e]?(""+t).trim():t+"px"}function yS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=vS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var xM=Rt({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 um(e,t){if(t){if(xM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function cm(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 dm=null;function Gg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fm=null,Aa=null,Ia=null;function C0(e){if(e=yu(e)){if(typeof fm!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=rf(t),fm(e.stateNode,e.type,t))}}function xS(e){Aa?Ia?Ia.push(e):Ia=[e]:Aa=e}function bS(){if(Aa){var e=Aa,t=Ia;if(Ia=Aa=null,C0(e),t)for(e=0;e>>=0,e===0?32:31-($M(e)/OM|0)|0}var Qu=64,Zu=4194304;function il(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 ad(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=il(s):(i&=a,i!==0&&(r=il(i)))}else a=n&~o,a!==0?r=il(a):i!==0&&(r=il(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-zr(t),e[t]=n}function LM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=dl),D0=String.fromCharCode(32),A0=!1;function zS(e,t){switch(e){case"keyup":return u$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function BS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function d$(e,t){switch(e){case"compositionend":return BS(t);case"keypress":return t.which!==32?null:(A0=!0,D0);case"textInput":return e=t.data,e===D0&&A0?null:e;default:return null}}function f$(e,t){if(va)return e==="compositionend"||!nv&&zS(e,t)?(e=jS(),Fc=Jg=Ho=null,va=!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)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_0(n)}}function HS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?HS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YS(){for(var e=window,t=nd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nd(e.document)}return t}function rv(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 w$(e){var t=YS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&HS(n.ownerDocument.documentElement,n)){if(r!==null&&rv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=j0(n,i);var a=j0(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ya=null,ym=null,pl=null,xm=!1;function F0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xm||ya==null||ya!==nd(r)||(r=ya,"selectionStart"in r&&rv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pl&&_l(pl,r)||(pl=r,r=ud(ym,"onSelect"),0wa||(e.current=Em[wa],Em[wa]=null,wa--)}function mt(e,t){wa++,Em[wa]=e.current,e.current=t}var si={},bn=mi(si),jn=mi(!1),Fi=si;function Ga(e,t){var n=e.type.contextTypes;if(!n)return si;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Fn(e){return e=e.childContextTypes,e!=null}function dd(){vt(jn),vt(bn)}function Y0(e,t,n){if(bn.current!==si)throw Error(ce(168));mt(bn,t),mt(jn,n)}function tC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,gM(e)||"Unknown",o));return Rt({},n,r)}function fd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||si,Fi=bn.current,mt(bn,e),mt(jn,jn.current),!0}function K0(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=tC(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,vt(jn),vt(bn),mt(bn,e)):vt(jn),mt(jn,n)}var po=null,of=!1,ih=!1;function nC(e){po===null?po=[e]:po.push(e)}function A$(e){of=!0,nC(e)}function gi(){if(!ih&&po!==null){ih=!0;var e=0,t=ct;try{var n=po;for(ct=1;e>=a,o-=a,ho=1<<32-zr(t)+o|n<T?(A=E,E=null):A=E.sibling;var M=f(v,E,x[T],b);if(M===null){E===null&&(E=A);break}e&&E&&M.alternate===null&&t(v,E),y=i(M,y,T),k===null?P=M:k.sibling=M,k=M,E=A}if(T===x.length)return n(v,E),Ct&&Si(v,T),P;if(E===null){for(;TT?(A=E,E=null):A=E.sibling;var O=f(v,E,M.value,b);if(O===null){E===null&&(E=A);break}e&&E&&O.alternate===null&&t(v,E),y=i(O,y,T),k===null?P=O:k.sibling=O,k=O,E=A}if(M.done)return n(v,E),Ct&&Si(v,T),P;if(E===null){for(;!M.done;T++,M=x.next())M=d(v,M.value,b),M!==null&&(y=i(M,y,T),k===null?P=M:k.sibling=M,k=M);return Ct&&Si(v,T),P}for(E=r(v,E);!M.done;T++,M=x.next())M=h(E,v,T,M.value,b),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?T:M.key),y=i(M,y,T),k===null?P=M:k.sibling=M,k=M);return e&&E.forEach(function(_){return t(v,_)}),Ct&&Si(v,T),P}function w(v,y,x,b){if(typeof x=="object"&&x!==null&&x.type===ga&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Gu:e:{for(var P=x.key,k=y;k!==null;){if(k.key===P){if(P=x.type,P===ga){if(k.tag===7){n(v,k.sibling),y=o(k,x.props.children),y.return=v,v=y;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Fo&&ex(P)===k.type){n(v,k.sibling),y=o(k,x.props),y.ref=js(v,k,x),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}x.type===ga?(y=Ni(x.props.children,v.mode,b,x.key),y.return=v,v=y):(b=Kc(x.type,x.key,x.props,null,v.mode,b),b.ref=js(v,y,x),b.return=v,v=b)}return a(v);case ma:e:{for(k=x.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(v,y.sibling),y=o(y,x.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=ph(x,v.mode,b),y.return=v,v=y}return a(v);case Fo:return k=x._init,w(v,y,k(x._payload),b)}if(ol(x))return g(v,y,x,b);if(As(x))return m(v,y,x,b);ic(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(v,y.sibling),y=o(y,x),y.return=v,v=y):(n(v,y),y=fh(x,v.mode,b),y.return=v,v=y),a(v)):n(v,y)}return w}var Xa=cC(!0),dC=cC(!1),xu={},to=mi(xu),Bl=mi(xu),Vl=mi(xu);function Oi(e){if(e===xu)throw Error(ce(174));return e}function fv(e,t){switch(mt(Vl,t),mt(Bl,e),mt(to,xu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lm(t,e)}vt(to),mt(to,t)}function Qa(){vt(to),vt(Bl),vt(Vl)}function fC(e){Oi(Vl.current);var t=Oi(to.current),n=lm(t,e.type);t!==n&&(mt(Bl,e),mt(to,n))}function pv(e){Bl.current===e&&(vt(to),vt(Bl))}var Et=mi(0);function yd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ah=[];function hv(){for(var e=0;en?n:4,e(!0);var r=sh.transition;sh.transition={};try{e(!1),t()}finally{ct=n,sh.transition=r}}function TC(){return wr().memoizedState}function _$(e,t,n){var r=ti(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},MC(e))$C(t,n);else if(n=aC(e,t,n,r),n!==null){var o=Pn();Br(n,e,r,o),OC(n,t,r)}}function j$(e,t,n){var r=ti(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(MC(e))$C(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Vr(s,a)){var l=t.interleaved;l===null?(o.next=o,cv(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=aC(e,t,o,r),n!==null&&(o=Pn(),Br(n,e,r,o),OC(n,t,r))}}function MC(e){var t=e.alternate;return e===kt||t!==null&&t===kt}function $C(e,t){hl=xd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function OC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xg(e,n)}}var bd={readContext:br,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useInsertionEffect:fn,useLayoutEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useMutableSource:fn,useSyncExternalStore:fn,useId:fn,unstable_isNewReconciler:!1},F$={readContext:br,useCallback:function(e,t){return Kr().memoizedState=[e,t===void 0?null:t],e},useContext:br,useEffect:nx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Uc(4194308,4,CC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uc(4,2,e,t)},useMemo:function(e,t){var n=Kr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=_$.bind(null,kt,e),[r.memoizedState,e]},useRef:function(e){var t=Kr();return e={current:e},t.memoizedState=e},useState:tx,useDebugValue:xv,useDeferredValue:function(e){return Kr().memoizedState=e},useTransition:function(){var e=tx(!1),t=e[0];return e=N$.bind(null,e[1]),Kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=kt,o=Kr();if(Ct){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),en===null)throw Error(ce(349));Bi&30||mC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,nx(vC.bind(null,r,i,e),[e]),r.flags|=2048,Hl(9,gC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kr(),t=en.identifierPrefix;if(Ct){var n=mo,r=ho;n=(r&~(1<<32-zr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ul++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Zr]=t,e[zl]=r,zC(e,t,!1,!1),t.stateNode=e;e:{switch(a=cm(n,r),n){case"dialog":gt("cancel",e),gt("close",e),o=r;break;case"iframe":case"object":case"embed":gt("load",e),o=r;break;case"video":case"audio":for(o=0;oJa&&(t.flags|=128,r=!0,Fs(i,!1),t.lanes=4194304)}else{if(!r)if(e=yd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ct)return pn(t),null}else 2*Ft()-i.renderingStartTime>Ja&&n!==1073741824&&(t.flags|=128,r=!0,Fs(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ft(),t.sibling=null,n=Et.current,mt(Et,r?n&1|2:n&1),t):(pn(t),null);case 22:case 23:return Ev(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gn&1073741824&&(pn(t),t.subtreeFlags&6&&(t.flags|=8192)):pn(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function K$(e,t){switch(iv(t),t.tag){case 1:return Fn(t.type)&&dd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qa(),vt(jn),vt(bn),hv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pv(t),null;case 13:if(vt(Et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vt(Et),null;case 4:return Qa(),null;case 10:return uv(t.type._context),null;case 22:case 23:return Ev(),null;case 24:return null;default:return null}}var sc=!1,vn=!1,G$=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function Ea(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Dt(e,t,r)}else n.current=null}function _m(e,t,n){try{n()}catch(r){Dt(e,t,r)}}var dx=!1;function q$(e,t){if(bm=sd,e=YS(),rv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=a),f===i&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(wm={focusedElem:e,selectionRange:n},sd=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){t=Pe;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,w=g.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Dr(t.type,m),w);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(b){Dt(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}return g=dx,dx=!1,g}function ml(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&_m(t,n,i)}o=o.next}while(o!==r)}}function lf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function UC(e){var t=e.alternate;t!==null&&(e.alternate=null,UC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zr],delete t[zl],delete t[Pm],delete t[O$],delete t[D$])),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 WC(e){return e.tag===5||e.tag===3||e.tag===4}function fx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||WC(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 Fm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cd));else if(r!==4&&(e=e.child,e!==null))for(Fm(e,t,n),e=e.sibling;e!==null;)Fm(e,t,n),e=e.sibling}function zm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zm(e,t,n),e=e.sibling;e!==null;)zm(e,t,n),e=e.sibling}var on=null,Ar=!1;function _o(e,t,n){for(n=n.child;n!==null;)HC(e,t,n),n=n.sibling}function HC(e,t,n){if(eo&&typeof eo.onCommitFiberUnmount=="function")try{eo.onCommitFiberUnmount(Jd,n)}catch{}switch(n.tag){case 5:vn||Ea(n,t);case 6:var r=on,o=Ar;on=null,_o(e,t,n),on=r,Ar=o,on!==null&&(Ar?(e=on,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):on.removeChild(n.stateNode));break;case 18:on!==null&&(Ar?(e=on,n=n.stateNode,e.nodeType===8?oh(e.parentNode,n):e.nodeType===1&&oh(e,n),Ll(e)):oh(on,n.stateNode));break;case 4:r=on,o=Ar,on=n.stateNode.containerInfo,Ar=!0,_o(e,t,n),on=r,Ar=o;break;case 0:case 11:case 14:case 15:if(!vn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&_m(n,t,a),o=o.next}while(o!==r)}_o(e,t,n);break;case 1:if(!vn&&(Ea(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Dt(n,t,s)}_o(e,t,n);break;case 21:_o(e,t,n);break;case 22:n.mode&1?(vn=(r=vn)||n.memoizedState!==null,_o(e,t,n),vn=r):_o(e,t,n);break;default:_o(e,t,n)}}function px(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new G$),t.forEach(function(r){var o=oO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Or(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ft()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Q$(r/1960))-r,10e?16:e,Yo===null)var r=!1;else{if(e=Yo,Yo=null,Cd=0,Je&6)throw Error(ce(331));var o=Je;for(Je|=4,Pe=e.current;Pe!==null;){var i=Pe,a=i.child;if(Pe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lFt()-Cv?Li(e,0):Sv|=n),zn(e,t)}function JC(e,t){t===0&&(e.mode&1?(t=Zu,Zu<<=1,!(Zu&130023424)&&(Zu=4194304)):t=1);var n=Pn();e=wo(e,t),e!==null&&(gu(e,t,n),zn(e,n))}function rO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),JC(e,n)}function oO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),JC(e,n)}var eP;eP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jn.current)An=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return An=!1,H$(e,t,n);An=!!(e.flags&131072)}else An=!1,Ct&&t.flags&1048576&&rC(t,hd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wc(e,t),e=t.pendingProps;var o=Ga(t,bn.current);Na(t,n),o=gv(null,t,r,e,o,n);var i=vv();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,Fn(r)?(i=!0,fd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dv(t),o.updater=af,t.stateNode=o,o._reactInternals=t,$m(t,r,e,n),t=Am(null,t,r,!0,i,n)):(t.tag=0,Ct&&i&&ov(t),Sn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=aO(r),e=Dr(r,e),o){case 0:t=Dm(null,t,r,e,n);break e;case 1:t=lx(null,t,r,e,n);break e;case 11:t=ax(null,t,r,e,n);break e;case 14:t=sx(null,t,r,Dr(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dr(r,o),Dm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dr(r,o),lx(e,t,r,o,n);case 3:e:{if(_C(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,sC(e,t),vd(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Za(Error(ce(423)),t),t=ux(e,t,r,n,o);break e}else if(r!==o){o=Za(Error(ce(424)),t),t=ux(e,t,r,n,o);break e}else for(Zn=Zo(t.stateNode.containerInfo.firstChild),Jn=t,Ct=!0,Lr=null,n=dC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qa(),r===o){t=So(e,t,n);break e}Sn(e,t,r,n)}t=t.child}return t;case 5:return fC(t),e===null&&Rm(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Sm(r,o)?a=null:i!==null&&Sm(r,i)&&(t.flags|=32),NC(e,t),Sn(e,t,a,n),t.child;case 6:return e===null&&Rm(t),null;case 13:return jC(e,t,n);case 4:return fv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xa(t,null,r,n):Sn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dr(r,o),ax(e,t,r,o,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,mt(md,r._currentValue),r._currentValue=a,i!==null)if(Vr(i.value,a)){if(i.children===o.children&&!jn.current){t=So(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=go(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Tm(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Tm(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Sn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Na(t,n),o=br(o),r=r(o),t.flags|=1,Sn(e,t,r,n),t.child;case 14:return r=t.type,o=Dr(r,t.pendingProps),o=Dr(r.type,o),sx(e,t,r,o,n);case 15:return IC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dr(r,o),Wc(e,t),t.tag=1,Fn(r)?(e=!0,fd(t)):e=!1,Na(t,n),uC(t,r,o),$m(t,r,o,n),Am(null,t,r,!0,e,n);case 19:return FC(e,t,n);case 22:return LC(e,t,n)}throw Error(ce(156,t.tag))};function tP(e,t){return RS(e,t)}function iO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(e,t,n,r){return new iO(e,t,n,r)}function Rv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aO(e){if(typeof e=="function")return Rv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yg)return 11;if(e===Kg)return 14}return 2}function ni(e,t){var n=e.alternate;return n===null?(n=hr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Rv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ga:return Ni(n.children,o,i,t);case Hg:a=8,o|=8;break;case em:return e=hr(12,n,t,o|2),e.elementType=em,e.lanes=i,e;case tm:return e=hr(13,n,t,o),e.elementType=tm,e.lanes=i,e;case nm:return e=hr(19,n,t,o),e.elementType=nm,e.lanes=i,e;case cS:return cf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lS:a=10;break e;case uS:a=9;break e;case Yg:a=11;break e;case Kg:a=14;break e;case Fo:a=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=hr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ni(e,t,n,r){return e=hr(7,e,r,t),e.lanes=n,e}function cf(e,t,n,r){return e=hr(22,e,r,t),e.elementType=cS,e.lanes=n,e.stateNode={isHidden:!1},e}function fh(e,t,n){return e=hr(6,e,null,t),e.lanes=n,e}function ph(e,t,n){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kp(0),this.expirationTimes=Kp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tv(e,t,n,r,o,i,a,s,l){return e=new sO(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dv(i),e}function lO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iP)}catch(e){console.error(e)}}iP(),rS.exports=or;var ri=rS.exports;const cc=pi(ri);var wx=ri;Zh.createRoot=wx.createRoot,Zh.hydrateRoot=wx.hydrateRoot;function ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=cP(e[n])}),t}function vr(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return Ti(e)&&Ti(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ti(t[o])&&o in e&&Ti(e[o])?r[o]=vr(e[o],t[o],n):n.clone?r[o]=Ti(t[o])?cP(t[o]):t[o]:r[o]=t[o])}),r}function li(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Dv(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function yO(e,t){return()=>null}function yl(e,t){return p.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Lt(e){return e&&e.ownerDocument||document}function ui(e){return Lt(e).defaultView||window}function xO(e,t){return()=>null}function Kl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const bO=typeof window<"u"?p.useLayoutEffect:p.useEffect,cn=bO;let Sx=0;function wO(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(Sx+=1,n(`mui-${Sx}`))},[t]),r}const Cx=Ml["useId".toString()];function bu(e){if(Cx!==void 0){const t=Cx();return e??t}return wO(e)}function SO(e,t,n,r,o){return null}function Bn({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(u=>{o||a(u)},[]);return[s,l]}function Ee(e){const t=p.useRef(e);return cn(()=>{t.current=e}),p.useCallback((...n)=>(0,t.current)(...n),[])}function ht(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Kl(n,t)})},e)}let mf=!0,Ym=!1,Px;const CO={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function PO(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&CO[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function EO(e){e.metaKey||e.altKey||e.ctrlKey||(mf=!0)}function hh(){mf=!1}function kO(){this.visibilityState==="hidden"&&Ym&&(mf=!0)}function RO(e){e.addEventListener("keydown",EO,!0),e.addEventListener("mousedown",hh,!0),e.addEventListener("pointerdown",hh,!0),e.addEventListener("touchstart",hh,!0),e.addEventListener("visibilitychange",kO,!0)}function TO(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return mf||PO(t)}function dP(){const e=p.useCallback(o=>{o!=null&&RO(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(Ym=!0,window.clearTimeout(Px),Px=window.setTimeout(()=>{Ym=!1},100),t.current=!1,!0):!1}function r(o){return TO(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fP(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const MO=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current},$O=MO;function Av(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(a=>{n[r][a]=Av(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function ke(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const Ex=e=>e,OO=()=>{let e=Ex;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ex}}},DO=OO(),Iv=DO,AO={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 Re(e,t,n="Mui"){const r=AO[t];return r?`${n}-${r}`:`${Iv.generate(e)}-${t}`}function Te(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Re(e,o,n)}),r}function pP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var IO=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,LO=pP(function(e){return IO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function NO(e){if(e.sheet)return e.sheet;for(var t=0;t0?an(bs,--Wn):0,es--,Vt===10&&(es=1,vf--),Vt}function er(){return Vt=Wn2||ql(Vt)>3?"":" "}function qO(e,t){for(;--t&&er()&&!(Vt<48||Vt>102||Vt>57&&Vt<65||Vt>70&&Vt<97););return wu(e,Gc()+(t<6&&no()==32&&er()==32))}function Gm(e){for(;er();)switch(Vt){case e:return Wn;case 34:case 39:e!==34&&e!==39&&Gm(Vt);break;case 40:e===41&&Gm(e);break;case 92:er();break}return Wn}function XO(e,t){for(;er()&&e+Vt!==47+10;)if(e+Vt===42+42&&no()===47)break;return"/*"+wu(t,Wn-1)+"*"+gf(e===47?e:er())}function QO(e){for(;!ql(no());)er();return wu(e,Wn)}function ZO(e){return xP(Xc("",null,null,null,[""],e=yP(e),0,[0],e))}function Xc(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,g=0,m=1,w=1,v=1,y=0,x="",b=o,P=i,k=r,E=x;w;)switch(g=y,y=er()){case 40:if(g!=108&&an(E,d-1)==58){Km(E+=st(qc(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=qc(y);break;case 9:case 10:case 13:case 32:E+=GO(g);break;case 92:E+=qO(Gc()-1,7);continue;case 47:switch(no()){case 42:case 47:dc(JO(XO(er(),Gc()),t,n),l);break;default:E+="/"}break;case 123*m:s[u++]=qr(E)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+c:v==-1&&(E=st(E,/\f/g,"")),h>0&&qr(E)-d&&dc(h>32?Rx(E+";",r,n,d-1):Rx(st(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(dc(k=kx(E,t,n,u,c,o,s,x,b=[],P=[],d),i),y===123)if(c===0)Xc(E,t,k,k,b,i,d,s,P);else switch(f===99&&an(E,3)===110?100:f){case 100:case 108:case 109:case 115:Xc(e,k,k,r&&dc(kx(e,k,k,0,0,o,s,x,o,b=[],d),P),o,P,d,s,r?b:P);break;default:Xc(E,k,k,k,[""],P,0,s,P)}}u=c=h=0,m=v=1,x=E="",d=a;break;case 58:d=1+qr(E),h=g;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&KO()==125)continue}switch(E+=gf(y),y*m){case 38:v=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(qr(E)-1)*v,v=1;break;case 64:no()===45&&(E+=qc(er())),f=no(),c=d=qr(x=E+=QO(Gc())),y++;break;case 45:g===45&&qr(E)==2&&(m=0)}}return i}function kx(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=o===0?i:[""],h=_v(f),g=0,m=0,w=0;g0?f[v]+" "+y:st(y,/&\f/g,f[v])))&&(l[w++]=x);return yf(e,t,n,o===0?Lv:s,l,u,c)}function JO(e,t,n){return yf(e,t,n,hP,gf(YO()),Gl(e,2,-2),0)}function Rx(e,t,n,r){return yf(e,t,n,Nv,Gl(e,0,r),Gl(e,r+1,-1),r)}function ja(e,t){for(var n="",r=_v(e),o=0;o6)switch(an(e,t+1)){case 109:if(an(e,t+4)!==45)break;case 102:return st(e,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+kd+(an(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Km(e,"stretch")?bP(st(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(an(e,t+1)!==115)break;case 6444:switch(an(e,qr(e)-3-(~Km(e,"!important")&&10))){case 107:return st(e,":",":"+at)+e;case 101:return st(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(an(e,14)===45?"inline-":"")+"box$3$1"+at+"$2$3$1"+mn+"$2box$3")+e}break;case 5936:switch(an(e,t+11)){case 114:return at+e+mn+st(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at+e+mn+st(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at+e+mn+st(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at+e+mn+e+e}return e}var l2=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Nv:t.return=bP(t.value,t.length);break;case mP:return ja([Bs(t,{value:st(t.value,"@","@"+at)})],o);case Lv:if(t.length)return HO(t.props,function(i){switch(WO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ja([Bs(t,{props:[st(i,/:(read-\w+)/,":"+kd+"$1")]})],o);case"::placeholder":return ja([Bs(t,{props:[st(i,/:(plac\w+)/,":"+at+"input-$1")]}),Bs(t,{props:[st(i,/:(plac\w+)/,":"+kd+"$1")]}),Bs(t,{props:[st(i,/:(plac\w+)/,mn+"input-$1")]})],o)}return""})}},u2=[l2],c2=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var w=m.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||u2,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var w=m.getAttribute("data-emotion").split(" "),v=1;v=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var S2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},C2=/[A-Z]|^ms/g,P2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RP=function(t){return t.charCodeAt(1)===45},Mx=function(t){return t!=null&&typeof t!="boolean"},mh=pP(function(e){return RP(e)?e:e.replace(C2,"-$&").toLowerCase()}),$x=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(P2,function(r,o,i){return Xr={name:o,styles:i,next:Xr},o})}return S2[t]!==1&&!RP(t)&&typeof n=="number"&&n!==0?n+"px":n};function Xl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Xr={name:n.name,styles:n.styles,next:Xr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Xr={name:r.name,styles:r.styles,next:Xr},r=r.next;var o=n.styles+";";return o}return E2(e,t,n)}case"function":{if(e!==void 0){var i=Xr,a=n(e);return Xr=i,Xl(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function E2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?$2:O2},Ix=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},D2=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return EP(n,r,o),R2(function(){return kP(n,r,o)}),null},A2=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=Ix(t,n,r),l=s||Ax(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;ht(L2(o)?n:o):t;return C.jsx(T2,{styles:r})}/** + * @mui/styled-engine v5.14.8 + * + * @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 OP(e,t){return qm(e,t)}const _2=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},j2=["values","unit","step"],F2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function z2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ne(e,j2),i=F2(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-r/100}${n})`}function c(f){return a.indexOf(f)+1`@media (min-width:${Uv[e]}px)`};function Sr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Lx;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Lx;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Uv).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function U2(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function W2(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function H2(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function $f({values:e,breakpoints:t,base:n}){const r=n||H2(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Of(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Rd(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Of(e,n)||r,t&&(o=t(o,r,e)),o}function ut(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=Of(l,r)||{};return Sr(a,s,d=>{let f=Rd(u,o,d);return d===f&&typeof d=="string"&&(f=Rd(u,o,`${t}${d==="default"?"":ue(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Y2(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const K2={m:"margin",p:"padding"},G2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},q2=Y2(e=>{if(e.length>2)if(Nx[e])e=Nx[e];else return[e];const[t,n]=e.split(""),r=K2[t],o=G2[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Wv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Wv,...Hv];function Su(e,t,n,r){var o;const i=(o=Of(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function DP(e){return Su(e,"spacing",8)}function Cu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function X2(e,t){return n=>e.reduce((r,o)=>(r[o]=Cu(t,n),r),{})}function Q2(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=q2(n),i=X2(o,r),a=e[n];return Sr(e,a,i)}function AP(e,t){const n=DP(e.theme);return Object.keys(e).map(r=>Q2(e,t,r,n)).reduce(xl,{})}function $t(e){return AP(e,Wv)}$t.propTypes={};$t.filterProps=Wv;function Ot(e){return AP(e,Hv)}Ot.propTypes={};Ot.filterProps=Hv;function Z2(e=8){if(e.mui)return e;const t=DP({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Df(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?xl(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Jr(e){return typeof e!="number"?e:`${e}px solid`}const J2=ut({prop:"border",themeKey:"borders",transform:Jr}),eD=ut({prop:"borderTop",themeKey:"borders",transform:Jr}),tD=ut({prop:"borderRight",themeKey:"borders",transform:Jr}),nD=ut({prop:"borderBottom",themeKey:"borders",transform:Jr}),rD=ut({prop:"borderLeft",themeKey:"borders",transform:Jr}),oD=ut({prop:"borderColor",themeKey:"palette"}),iD=ut({prop:"borderTopColor",themeKey:"palette"}),aD=ut({prop:"borderRightColor",themeKey:"palette"}),sD=ut({prop:"borderBottomColor",themeKey:"palette"}),lD=ut({prop:"borderLeftColor",themeKey:"palette"}),Af=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Su(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Cu(t,r)});return Sr(e,e.borderRadius,n)}return null};Af.propTypes={};Af.filterProps=["borderRadius"];Df(J2,eD,tD,nD,rD,oD,iD,aD,sD,lD,Af);const If=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Su(e.theme,"spacing",8),n=r=>({gap:Cu(t,r)});return Sr(e,e.gap,n)}return null};If.propTypes={};If.filterProps=["gap"];const Lf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Su(e.theme,"spacing",8),n=r=>({columnGap:Cu(t,r)});return Sr(e,e.columnGap,n)}return null};Lf.propTypes={};Lf.filterProps=["columnGap"];const Nf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Su(e.theme,"spacing",8),n=r=>({rowGap:Cu(t,r)});return Sr(e,e.rowGap,n)}return null};Nf.propTypes={};Nf.filterProps=["rowGap"];const uD=ut({prop:"gridColumn"}),cD=ut({prop:"gridRow"}),dD=ut({prop:"gridAutoFlow"}),fD=ut({prop:"gridAutoColumns"}),pD=ut({prop:"gridAutoRows"}),hD=ut({prop:"gridTemplateColumns"}),mD=ut({prop:"gridTemplateRows"}),gD=ut({prop:"gridTemplateAreas"}),vD=ut({prop:"gridArea"});Df(If,Lf,Nf,uD,cD,dD,fD,pD,hD,mD,gD,vD);function Fa(e,t){return t==="grey"?t:e}const yD=ut({prop:"color",themeKey:"palette",transform:Fa}),xD=ut({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fa}),bD=ut({prop:"backgroundColor",themeKey:"palette",transform:Fa});Df(yD,xD,bD);function Qn(e){return e<=1&&e!==0?`${e*100}%`:e}const wD=ut({prop:"width",transform:Qn}),Yv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Uv[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Qn(n)}};return Sr(e,e.maxWidth,t)}return null};Yv.filterProps=["maxWidth"];const SD=ut({prop:"minWidth",transform:Qn}),CD=ut({prop:"height",transform:Qn}),PD=ut({prop:"maxHeight",transform:Qn}),ED=ut({prop:"minHeight",transform:Qn});ut({prop:"size",cssProperty:"width",transform:Qn});ut({prop:"size",cssProperty:"height",transform:Qn});const kD=ut({prop:"boxSizing"});Df(wD,Yv,SD,CD,PD,ED,kD);const RD={border:{themeKey:"borders",transform:Jr},borderTop:{themeKey:"borders",transform:Jr},borderRight:{themeKey:"borders",transform:Jr},borderBottom:{themeKey:"borders",transform:Jr},borderLeft:{themeKey:"borders",transform:Jr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Af},color:{themeKey:"palette",transform:Fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fa},backgroundColor:{themeKey:"palette",transform:Fa},p:{style:Ot},pt:{style:Ot},pr:{style:Ot},pb:{style:Ot},pl:{style:Ot},px:{style:Ot},py:{style:Ot},padding:{style:Ot},paddingTop:{style:Ot},paddingRight:{style:Ot},paddingBottom:{style:Ot},paddingLeft:{style:Ot},paddingX:{style:Ot},paddingY:{style:Ot},paddingInline:{style:Ot},paddingInlineStart:{style:Ot},paddingInlineEnd:{style:Ot},paddingBlock:{style:Ot},paddingBlockStart:{style:Ot},paddingBlockEnd:{style:Ot},m:{style:$t},mt:{style:$t},mr:{style:$t},mb:{style:$t},ml:{style:$t},mx:{style:$t},my:{style:$t},margin:{style:$t},marginTop:{style:$t},marginRight:{style:$t},marginBottom:{style:$t},marginLeft:{style:$t},marginX:{style:$t},marginY:{style:$t},marginInline:{style:$t},marginInlineStart:{style:$t},marginInlineEnd:{style:$t},marginBlock:{style:$t},marginBlockStart:{style:$t},marginBlockEnd:{style:$t},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:If},rowGap:{style:Nf},columnGap:{style:Lf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qn},maxWidth:{style:Yv},minWidth:{transform:Qn},height:{transform:Qn},maxHeight:{transform:Qn},minHeight:{transform:Qn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},_f=RD;function TD(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function MD(e,t){return typeof e=="function"?e(t):e}function $D(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Of(o,u)||{};return d?d(a):Sr(a,r,g=>{let m=Rd(f,c,g);return g===m&&typeof g=="string"&&(m=Rd(f,c,`${n}${g==="default"?"":ue(g)}`,g)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:_f;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=U2(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const g=MD(u[h],i);if(g!=null)if(typeof g=="object")if(a[h])f=xl(f,e(h,g,i,a));else{const m=Sr({theme:i},g,w=>({[h]:w}));TD(m,g)?f[h]=t({sx:g,theme:i}):f=xl(f,m)}else f=xl(f,e(h,g,i,a))}),W2(d,f)}return Array.isArray(o)?o.map(s):s(o)}return t}const IP=$D();IP.filterProps=["sx"];const jf=IP,OD=["breakpoints","palette","spacing","shape"];function Ff(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ne(e,OD),s=z2(n),l=Z2(o);let u=vr({breakpoints:s,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:l,shape:S({},V2,i)},a);return u=t.reduce((c,d)=>vr(c,d),u),u.unstable_sxConfig=S({},_f,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return jf({sx:d,theme:this})},u}function DD(e){return Object.keys(e).length===0}function zf(e=null){const t=p.useContext(Mf);return!t||DD(t)?e:t}const AD=Ff();function ws(e=AD){return zf(e)}function ID({styles:e,themeId:t,defaultTheme:n={}}){const r=ws(n),o=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(N2,{styles:o})}const LD=["sx"],ND=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:_f;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Kv(e){const{sx:t}=e,n=ne(e,LD),{systemProps:r,otherProps:o}=ND(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Ti(s)?S({},r,s):r}:i=S({},r,t),S({},o,{sx:i})}const _D=["className","component"];function jD(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=OP("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(jf);return p.forwardRef(function(l,u){const c=ws(n),d=Kv(l),{className:f,component:h="div"}=d,g=ne(d,_D);return C.jsx(i,S({as:h,ref:u,className:fe(f,o?o(r):r),theme:t&&c[t]||c},g))})}const FD=["variant"];function _x(e){return e.length===0}function LP(e){const{variant:t}=e,n=ne(e,FD);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=_x(r)?e[o]:ue(e[o]):r+=`${_x(r)?o:ue(o)}${ue(e[o].toString())}`}),r}const zD=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BD(e){return Object.keys(e).length===0}function VD(e){return typeof e=="string"&&e.charCodeAt(0)>96}const UD=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,WD=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=LP(o.props);r[i]=o.style}),r},HD=(e,t,n,r)=>{var o;const{ownerState:i={}}=e,a=[],s=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{i[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&a.push(t[LP(l.props)])}),a};function bl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const YD=Ff(),KD=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Vs({defaultTheme:e,theme:t,themeId:n}){return BD(t)?e:t[n]||t}function GD(e){return e?(t,n)=>n[e]:null}function NP(e={}){const{themeId:t,defaultTheme:n=YD,rootShouldForwardProp:r=bl,slotShouldForwardProp:o=bl}=e,i=a=>jf(S({},a,{theme:Vs(S({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{_2(a,b=>b.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=GD(KD(u))}=s,h=ne(s,zD),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=d||!1;let w,v=bl;u==="Root"||u==="root"?v=r:u?v=o:VD(a)&&(v=void 0);const y=OP(a,S({shouldForwardProp:v,label:w},h)),x=(b,...P)=>{const k=P?P.map(M=>typeof M=="function"&&M.__emotion_real!==M?O=>M(S({},O,{theme:Vs(S({},O,{defaultTheme:n,themeId:t}))})):M):[];let E=b;l&&f&&k.push(M=>{const O=Vs(S({},M,{defaultTheme:n,themeId:t})),_=UD(l,O);if(_){const $={};return Object.entries(_).forEach(([D,R])=>{$[D]=typeof R=="function"?R(S({},M,{theme:O})):R}),f(M,$)}return null}),l&&!g&&k.push(M=>{const O=Vs(S({},M,{defaultTheme:n,themeId:t}));return HD(M,WD(l,O),O,l)}),m||k.push(i);const T=k.length-P.length;if(Array.isArray(b)&&T>0){const M=new Array(T).fill("");E=[...b,...M],E.raw=[...b.raw,...M]}else typeof b=="function"&&b.__emotion_real!==b&&(E=M=>b(S({},M,{theme:Vs(S({},M,{defaultTheme:n,themeId:t}))})));const A=y(E,...k);return a.muiName&&(A.muiName=a.muiName),A};return y.withConfig&&(x.withConfig=y.withConfig),x}}const qD=NP(),XD=qD;function _P(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Av(t.components[n].defaultProps,r)}function jP({props:e,name:t,defaultTheme:n,themeId:r}){let o=ws(n);return r&&(o=o[r]||o),_P({theme:o,name:t,props:e})}function Gv(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function QD(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Wi(e){if(e.type)return e;if(e.charAt(0)==="#")return Wi(QD(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(li(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(li(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Bf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ZD(e){e=Wi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Bf({type:s,values:l})}function Xm(e){e=Wi(e);let t=e.type==="hsl"||e.type==="hsla"?Wi(ZD(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function JD(e,t){const n=Xm(e),r=Xm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ge(e,t){return e=Wi(e),t=Gv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Bf(e)}function ts(e,t){if(e=Wi(e),t=Gv(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Bf(e)}function ns(e,t){if(e=Wi(e),t=Gv(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Bf(e)}function eA(e,t=.15){return Xm(e)>.5?ts(e,t):ns(e,t)}const tA=p.createContext(null),FP=tA;function zP(){return p.useContext(FP)}const nA=typeof Symbol=="function"&&Symbol.for,rA=nA?Symbol.for("mui.nested"):"__THEME_NESTED__";function oA(e,t){return typeof t=="function"?t(e):S({},e,t)}function iA(e){const{children:t,theme:n}=e,r=zP(),o=p.useMemo(()=>{const i=r===null?n:oA(r,n);return i!=null&&(i[rA]=r!==null),i},[n,r]);return C.jsx(FP.Provider,{value:o,children:t})}const jx={};function Fx(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?S({},t,{[e]:i}):i;return r?()=>a:a}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function aA(e){const{children:t,theme:n,themeId:r}=e,o=zf(jx),i=zP()||jx,a=Fx(r,o,n),s=Fx(r,i,n,!0);return C.jsx(iA,{theme:s,children:C.jsx(Mf.Provider,{value:a,children:t})})}const sA=["className","component","disableGutters","fixed","maxWidth","classes"],lA=Ff(),uA=XD("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ue(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),cA=e=>jP({props:e,name:"MuiContainer",defaultTheme:lA}),dA=(e,t)=>{const n=l=>Re(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${ue(String(a))}`,o&&"fixed",i&&"disableGutters"]};return ke(s,n,r)};function fA(e={}){const{createStyledComponent:t=uA,useThemeProps:n=cA,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>S({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const c=u,d=a.breakpoints.values[c];return d!==0&&(l[a.breakpoints.up(c)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>S({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return p.forwardRef(function(s,l){const u=n(s),{className:c,component:d="div",disableGutters:f=!1,fixed:h=!1,maxWidth:g="lg"}=u,m=ne(u,sA),w=S({},u,{component:d,disableGutters:f,fixed:h,maxWidth:g}),v=dA(w,r);return C.jsx(o,S({as:d,ownerState:w,className:fe(v.root,c),ref:l},m))})}function pA(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const hA={black:"#000",white:"#fff"},Ql=hA,mA={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"},gA=mA,vA={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"},na=vA,yA={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"},ra=yA,xA={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"},Us=xA,bA={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"},oa=bA,wA={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"},ia=wA,SA={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"},aa=SA,CA=["mode","contrastThreshold","tonalOffset"],zx={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:Ql.white,default:Ql.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}},gh={text:{primary:Ql.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:Ql.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Bx(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ns(e.main,o):t==="dark"&&(e.dark=ts(e.main,i)))}function PA(e="light"){return e==="dark"?{main:oa[200],light:oa[50],dark:oa[400]}:{main:oa[700],light:oa[400],dark:oa[800]}}function EA(e="light"){return e==="dark"?{main:na[200],light:na[50],dark:na[400]}:{main:na[500],light:na[300],dark:na[700]}}function kA(e="light"){return e==="dark"?{main:ra[500],light:ra[300],dark:ra[700]}:{main:ra[700],light:ra[400],dark:ra[800]}}function RA(e="light"){return e==="dark"?{main:ia[400],light:ia[300],dark:ia[700]}:{main:ia[700],light:ia[500],dark:ia[900]}}function TA(e="light"){return e==="dark"?{main:aa[400],light:aa[300],dark:aa[700]}:{main:aa[800],light:aa[500],dark:aa[900]}}function MA(e="light"){return e==="dark"?{main:Us[400],light:Us[300],dark:Us[700]}:{main:"#ed6c02",light:Us[500],dark:Us[900]}}function $A(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ne(e,CA),i=e.primary||PA(t),a=e.secondary||EA(t),s=e.error||kA(t),l=e.info||RA(t),u=e.success||TA(t),c=e.warning||MA(t);function d(m){return JD(m,gh.text.primary)>=n?gh.text.primary:zx.text.primary}const f=({color:m,name:w,mainShade:v=500,lightShade:y=300,darkShade:x=700})=>{if(m=S({},m),!m.main&&m[v]&&(m.main=m[v]),!m.hasOwnProperty("main"))throw new Error(li(11,w?` (${w})`:"",v));if(typeof m.main!="string")throw new Error(li(12,w?` (${w})`:"",JSON.stringify(m.main)));return Bx(m,"light",y,r),Bx(m,"dark",x,r),m.contrastText||(m.contrastText=d(m.main)),m},h={dark:gh,light:zx};return vr(S({common:S({},Ql),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:gA,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),o)}const OA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function DA(e){return Math.round(e*1e5)/1e5}const Vx={textTransform:"uppercase"},Ux='"Roboto", "Helvetica", "Arial", sans-serif';function AA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ux,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=ne(n,OA),h=o/14,g=d||(v=>`${v/u*h}rem`),m=(v,y,x,b,P)=>S({fontFamily:r,fontWeight:v,fontSize:g(y),lineHeight:x},r===Ux?{letterSpacing:`${DA(b/y)}em`}:{},P,c),w={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Vx),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Vx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vr(S({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},w),f,{clone:!1})}const IA=.2,LA=.14,NA=.12;function bt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${IA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${LA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${NA})`].join(",")}const _A=["none",bt(0,2,1,-1,0,1,1,0,0,1,3,0),bt(0,3,1,-2,0,2,2,0,0,1,5,0),bt(0,3,3,-2,0,3,4,0,0,1,8,0),bt(0,2,4,-1,0,4,5,0,0,1,10,0),bt(0,3,5,-1,0,5,8,0,0,1,14,0),bt(0,3,5,-1,0,6,10,0,0,1,18,0),bt(0,4,5,-2,0,7,10,1,0,2,16,1),bt(0,5,5,-3,0,8,10,1,0,3,14,2),bt(0,5,6,-3,0,9,12,1,0,3,16,2),bt(0,6,6,-3,0,10,14,1,0,4,18,3),bt(0,6,7,-4,0,11,15,1,0,4,20,3),bt(0,7,8,-4,0,12,17,2,0,5,22,4),bt(0,7,8,-4,0,13,19,2,0,5,24,4),bt(0,7,9,-4,0,14,21,2,0,5,26,4),bt(0,8,9,-5,0,15,22,2,0,6,28,5),bt(0,8,10,-5,0,16,24,2,0,6,30,5),bt(0,8,11,-5,0,17,26,2,0,6,32,5),bt(0,9,11,-5,0,18,28,2,0,7,34,6),bt(0,9,12,-6,0,19,29,2,0,7,36,6),bt(0,10,13,-6,0,20,31,3,0,8,38,7),bt(0,10,13,-6,0,21,33,3,0,8,40,7),bt(0,10,14,-6,0,22,35,3,0,8,42,7),bt(0,11,14,-7,0,23,36,3,0,9,44,8),bt(0,11,15,-7,0,24,38,3,0,9,46,8)],jA=_A,FA=["duration","easing","delay"],zA={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)"},BA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wx(e){return`${Math.round(e)}ms`}function VA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function UA(e){const t=S({},zA,e.easing),n=S({},BA,e.duration);return S({getAutoHeightDuration:VA,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return ne(i,FA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Wx(a)} ${s} ${typeof l=="string"?l:Wx(l)}`).join(",")}},e,{easing:t,duration:n})}const WA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},HA=WA,YA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Vf(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ne(e,YA);if(e.vars)throw new Error(li(18));const s=$A(r),l=Ff(e);let u=vr(l,{mixins:pA(l.breakpoints,n),palette:s,shadows:jA.slice(),typography:AA(s,i),transitions:UA(o),zIndex:S({},HA)});return u=vr(u,a),u=t.reduce((c,d)=>vr(c,d),u),u.unstable_sxConfig=S({},_f,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return jf({sx:d,theme:this})},u}const KA=Vf(),Uf=KA,Hi="$$material",Mo=e=>bl(e)&&e!=="classes",GA=bl,qA=NP({themeId:Hi,defaultTheme:Uf,rootShouldForwardProp:Mo}),H=qA;function we({props:e,name:t}){return jP({props:e,name:t,defaultTheme:Uf,themeId:Hi})}const XA=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Hx=XA;function $o(){const e=ws(Uf);return e[Hi]||e}function QA(e){return Re("MuiPaper",e)}Te("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const ZA=["className","component","elevation","square","variant"],JA=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ke(i,QA,o)},eI=H("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ge("#fff",Hx(t.elevation))}, ${Ge("#fff",Hx(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),tI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=ne(r,ZA),c=S({},r,{component:i,elevation:a,square:s,variant:l}),d=JA(c);return C.jsx(eI,S({as:i,ownerState:c,className:fe(d.root,o),ref:n},u))}),Rr=tI;function nI(e){return Re("MuiAppBar",e)}Te("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const rI=["className","color","enableColorOnDark","position"],oI=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ue(t)}`,`position${ue(n)}`]};return ke(o,nI,r)},fc=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,iI=H(Rr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],t[`color${ue(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:fc(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:fc(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:fc(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:fc(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),aI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=ne(r,rI),u=S({},r,{color:i,position:s,enableColorOnDark:a}),c=oI(u);return C.jsx(iI,S({square:!0,component:"header",ownerState:u,elevation:4,className:fe(c.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),sI=aI,lI=["theme"];function BP(e){let{theme:t}=e,n=ne(e,lI);const r=t[Hi];return C.jsx(aA,S({},n,{themeId:r?Hi:void 0,theme:r||t}))}const uI=Vf(),cI=jD({themeId:Hi,defaultTheme:uI,defaultClassName:"MuiBox-root",generateClassName:Iv.generate}),Co=cI;function dI(e){return Re("MuiToolbar",e)}Te("MuiToolbar",["root","gutters","regular","dense"]);const fI=["className","component","disableGutters","variant"],pI=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ke({root:["root",!n&&"gutters",r]},dI,t)},hI=H("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),mI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=ne(r,fI),u=S({},r,{component:i,disableGutters:a,variant:s}),c=pI(u);return C.jsx(hI,S({as:i,className:fe(c.root,o),ref:n,ownerState:u},l))}),gI=mI;function vI(e){return Re("MuiTypography",e)}Te("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const yI=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xI=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${ue(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ke(s,vI,a)},bI=H("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ue(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Yx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},SI=e=>wI[e]||e,CI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTypography"}),o=SI(r.color),i=Kv(S({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:h=Yx}=i,g=ne(i,yI),m=S({},i,{align:a,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:h}),w=l||(d?"p":h[f]||Yx[f])||"span",v=xI(m);return C.jsx(bI,S({as:w,ref:n,ownerState:m,className:fe(v.root,s)},g))}),At=CI;function Qm(e,t){return Qm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qm(e,t)}function qv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qm(e,t)}function PI(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function EI(e,t){e.classList?e.classList.add(t):PI(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Kx(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function kI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Kx(e.className,t):e.setAttribute("class",Kx(e.className&&e.className.baseVal||"",t))}const Gx={disabled:!1},Td=Dn.createContext(null);var VP=function(t){return t.scrollTop},sl="unmounted",Pi="exited",Ei="entering",fa="entered",Zm="exiting",Oo=function(e){qv(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Pi,i.appearStatus=Ei):l=fa:r.unmountOnExit||r.mountOnEnter?l=sl:l=Pi,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===sl?{status:Pi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ei&&a!==fa&&(i=Ei):(a===Ei||a===fa)&&(i=Zm)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ei){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:cc.findDOMNode(this);a&&VP(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pi&&this.setState({status:sl})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[cc.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||Gx.disabled){this.safeSetState({status:fa},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Ei},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:fa},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:cc.findDOMNode(this);if(!i||Gx.disabled){this.safeSetState({status:Pi},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Zm},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Pi},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:cc.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===sl)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=ne(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Dn.createElement(Td.Provider,{value:null},typeof a=="function"?a(o,s):Dn.cloneElement(Dn.Children.only(a),s))},t}(Dn.Component);Oo.contextType=Td;Oo.propTypes={};function sa(){}Oo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sa,onEntering:sa,onEntered:sa,onExit:sa,onExiting:sa,onExited:sa};Oo.UNMOUNTED=sl;Oo.EXITED=Pi;Oo.ENTERING=Ei;Oo.ENTERED=fa;Oo.EXITING=Zm;const Xv=Oo;var RI=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return EI(t,r)})},vh=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return kI(t,r)})},Qv=function(e){qv(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a{if(!s&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,s,u]),C.jsx("span",{className:f,style:h,children:C.jsx("span",{className:g})})}const NI=Te("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),dr=NI,_I=["center","classes","className"];let Wf=e=>e,qx,Xx,Qx,Zx;const Jm=550,jI=80,FI=Vv(qx||(qx=Wf` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),zI=Vv(Xx||(Xx=Wf` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),BI=Vv(Qx||(Qx=Wf` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),VI=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),UI=H(LI,{name:"MuiTouchRipple",slot:"Ripple"})(Zx||(Zx=Wf` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),dr.rippleVisible,FI,Jm,({theme:e})=>e.transitions.easing.easeInOut,dr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,dr.child,dr.childLeaving,zI,Jm,({theme:e})=>e.transitions.easing.easeInOut,dr.childPulsate,BI,({theme:e})=>e.transitions.easing.easeInOut),WI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=ne(r,_I),[l,u]=p.useState([]),c=p.useRef(0),d=p.useRef(null);p.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=p.useRef(!1),h=p.useRef(0),g=p.useRef(null),m=p.useRef(null);p.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const w=p.useCallback(b=>{const{pulsate:P,rippleX:k,rippleY:E,rippleSize:T,cb:A}=b;u(M=>[...M,C.jsx(UI,{classes:{ripple:fe(i.ripple,dr.ripple),rippleVisible:fe(i.rippleVisible,dr.rippleVisible),ripplePulsate:fe(i.ripplePulsate,dr.ripplePulsate),child:fe(i.child,dr.child),childLeaving:fe(i.childLeaving,dr.childLeaving),childPulsate:fe(i.childPulsate,dr.childPulsate)},timeout:Jm,pulsate:P,rippleX:k,rippleY:E,rippleSize:T},c.current)]),c.current+=1,d.current=A},[i]),v=p.useCallback((b={},P={},k=()=>{})=>{const{pulsate:E=!1,center:T=o||P.pulsate,fakeElement:A=!1}=P;if((b==null?void 0:b.type)==="mousedown"&&f.current){f.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(f.current=!0);const M=A?null:m.current,O=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,$,D;if(T||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)_=Math.round(O.width/2),$=Math.round(O.height/2);else{const{clientX:R,clientY:N}=b.touches&&b.touches.length>0?b.touches[0]:b;_=Math.round(R-O.left),$=Math.round(N-O.top)}if(T)D=Math.sqrt((2*O.width**2+O.height**2)/3),D%2===0&&(D+=1);else{const R=Math.max(Math.abs((M?M.clientWidth:0)-_),_)*2+2,N=Math.max(Math.abs((M?M.clientHeight:0)-$),$)*2+2;D=Math.sqrt(R**2+N**2)}b!=null&&b.touches?g.current===null&&(g.current=()=>{w({pulsate:E,rippleX:_,rippleY:$,rippleSize:D,cb:k})},h.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},jI)):w({pulsate:E,rippleX:_,rippleY:$,rippleSize:D,cb:k})},[o,w]),y=p.useCallback(()=>{v({},{pulsate:!0})},[v]),x=p.useCallback((b,P)=>{if(clearTimeout(h.current),(b==null?void 0:b.type)==="touchend"&&g.current){g.current(),g.current=null,h.current=setTimeout(()=>{x(b,P)});return}g.current=null,u(k=>k.length>0?k.slice(1):k),d.current=P},[]);return p.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:x}),[y,v,x]),C.jsx(VI,S({className:fe(dr.root,i.root,a),ref:m},s,{children:C.jsx(ey,{component:null,exit:!0,children:l})}))}),HI=WI;function YI(e){return Re("MuiButtonBase",e)}const KI=Te("MuiButtonBase",["root","disabled","focusVisible"]),GI=KI,qI=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],XI=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ke({root:["root",t&&"disabled",n&&"focusVisible"]},YI,o);return n&&r&&(a.root+=` ${r}`),a},QI=H("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"},[`&.${GI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ZI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:h="a",onBlur:g,onClick:m,onContextMenu:w,onDragLeave:v,onFocus:y,onFocusVisible:x,onKeyDown:b,onKeyUp:P,onMouseDown:k,onMouseLeave:E,onMouseUp:T,onTouchEnd:A,onTouchMove:M,onTouchStart:O,tabIndex:_=0,TouchRippleProps:$,touchRippleRef:D,type:R}=r,N=ne(r,qI),j=p.useRef(null),I=p.useRef(null),L=ht(I,D),{isFocusVisibleRef:F,onFocus:K,onBlur:ae,ref:ie}=dP(),[B,te]=p.useState(!1);u&&B&&te(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{te(!0),j.current.focus()}}),[]);const[J,G]=p.useState(!1);p.useEffect(()=>{G(!0)},[]);const se=J&&!c&&!u;p.useEffect(()=>{B&&f&&!c&&J&&I.current.pulsate()},[c,f,B,J]);function pe(Ce,zt,rn=d){return Ee(Oe=>(zt&&zt(Oe),!rn&&I.current&&I.current[Ce](Oe),!0))}const le=pe("start",k),re=pe("stop",w),ee=pe("stop",v),oe=pe("stop",T),me=pe("stop",Ce=>{B&&Ce.preventDefault(),E&&E(Ce)}),V=pe("start",O),ge=pe("stop",A),X=pe("stop",M),he=pe("stop",Ce=>{ae(Ce),F.current===!1&&te(!1),g&&g(Ce)},!1),be=Ee(Ce=>{j.current||(j.current=Ce.currentTarget),K(Ce),F.current===!0&&(te(!0),x&&x(Ce)),y&&y(Ce)}),$e=()=>{const Ce=j.current;return l&&l!=="button"&&!(Ce.tagName==="A"&&Ce.href)},Le=p.useRef(!1),Ue=Ee(Ce=>{f&&!Le.current&&B&&I.current&&Ce.key===" "&&(Le.current=!0,I.current.stop(Ce,()=>{I.current.start(Ce)})),Ce.target===Ce.currentTarget&&$e()&&Ce.key===" "&&Ce.preventDefault(),b&&b(Ce),Ce.target===Ce.currentTarget&&$e()&&Ce.key==="Enter"&&!u&&(Ce.preventDefault(),m&&m(Ce))}),et=Ee(Ce=>{f&&Ce.key===" "&&I.current&&B&&!Ce.defaultPrevented&&(Le.current=!1,I.current.stop(Ce,()=>{I.current.pulsate(Ce)})),P&&P(Ce),m&&Ce.target===Ce.currentTarget&&$e()&&Ce.key===" "&&!Ce.defaultPrevented&&m(Ce)});let Be=l;Be==="button"&&(N.href||N.to)&&(Be=h);const tt={};Be==="button"?(tt.type=R===void 0?"button":R,tt.disabled=u):(!N.href&&!N.to&&(tt.role="button"),u&&(tt["aria-disabled"]=u));const xt=ht(n,ie,j),Ye=S({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:_,focusVisible:B}),Se=XI(Ye);return C.jsxs(QI,S({as:Be,className:fe(Se.root,s),ownerState:Ye,onBlur:he,onClick:m,onContextMenu:re,onFocus:be,onKeyDown:Ue,onKeyUp:et,onMouseDown:le,onMouseLeave:me,onMouseUp:oe,onDragLeave:ee,onTouchEnd:ge,onTouchMove:X,onTouchStart:V,ref:xt,tabIndex:u?-1:_,type:R},tt,N,{children:[a,se?C.jsx(HI,S({ref:L,center:i},$)):null]}))}),rs=ZI;function JI(e){return Re("MuiButton",e)}const eL=Te("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),pc=eL,tL=p.createContext({}),nL=tL,rL=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],oL=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${ue(t)}`,`size${ue(o)}`,`${i}Size${ue(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ue(o)}`],endIcon:["endIcon",`iconSize${ue(o)}`]},l=ke(s,JI,a);return S({},a,l)},UP=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),iL=H(rs,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color)}`],t[`size${ue(n.size)}`],t[`${n.variant}Size${ue(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${pc.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${pc.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ge(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pc.disabled}`]:{boxShadow:"none"}}),aL=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},UP(e))),sL=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},UP(e))),lL=p.forwardRef(function(t,n){const r=p.useContext(nL),o=Av(r,t),i=we({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:g,fullWidth:m=!1,size:w="medium",startIcon:v,type:y,variant:x="text"}=i,b=ne(i,rL),P=S({},i,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:m,size:w,type:y,variant:x}),k=oL(P),E=v&&C.jsx(aL,{className:k.startIcon,ownerState:P,children:v}),T=h&&C.jsx(sL,{className:k.endIcon,ownerState:P,children:h});return C.jsxs(iL,S({ownerState:P,className:fe(r.className,k.root,u),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:fe(k.focusVisible,g),ref:n,type:y},b,{classes:k,children:[E,a,T]}))}),mr=lL;/** + * @remix-run/router v1.8.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 wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function os(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cL(){return Math.random().toString(36).substr(2,8)}function e1(e,t){return{usr:e.state,key:e.key,idx:t}}function Zl(e,t,n,r){return n===void 0&&(n=null),wt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Do(t):t,{state:n,key:t&&t.key||r||cL()})}function Yi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Do(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dL(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Bt.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(wt({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=Bt.Pop;let w=c(),v=w==null?null:w-u;u=w,l&&l({action:s,location:m.location,delta:v})}function f(w,v){s=Bt.Push;let y=Zl(m.location,w,v);n&&n(y,w),u=c()+1;let x=e1(y,u),b=m.createHref(y);try{a.pushState(x,"",b)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(b)}i&&l&&l({action:s,location:m.location,delta:1})}function h(w,v){s=Bt.Replace;let y=Zl(m.location,w,v);n&&n(y,w),u=c();let x=e1(y,u),b=m.createHref(y);a.replaceState(x,"",b),i&&l&&l({action:s,location:m.location,delta:0})}function g(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof w=="string"?w:Yi(w);return He(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let m={get action(){return s},get location(){return e(o,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Jx,d),l=w,()=>{o.removeEventListener(Jx,d),l=null}},createHref(w){return t(o,w)},createURL:g,encodeLocation(w){let v=g(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(w){return a.go(w)}};return m}var jt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(jt||(jt={}));const fL=new Set(["lazy","caseSensitive","path","id","index","children"]);function pL(e){return e.index===!0}function eg(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(He(o.index!==!0||!o.children,"Cannot specify children on an index route"),He(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),pL(o)){let l=wt({},o,t(o),{id:s});return r[s]=l,l}else{let l=wt({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=eg(o.children,t,a,r)),l}})}function Ra(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Do(t):t,o=Ss(r.pathname||"/",n);if(o==null)return null;let i=WP(e);hL(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vo([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(He(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),WP(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:wL(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of HP(i.path))o(i,a,l)}),t}function HP(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=HP(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function hL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:SL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mL=/^:\w+$/,gL=3,vL=2,yL=1,xL=10,bL=-2,t1=e=>e==="*";function wL(e,t){let n=e.split("/"),r=n.length;return n.some(t1)&&(r+=bL),t&&(r+=vL),n.filter(o=>!t1(o)).reduce((o,i)=>o+(mL.test(i)?gL:i===""?yL:xL),r)}function SL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function CL(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(c==="*"){let f=s[d]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return u[c]=RL(s[d]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function EL(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),os(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function kL(e){try{return decodeURI(e)}catch(t){return os(!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 RL(e,t){try{return decodeURIComponent(e)}catch(n){return os(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Ss(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function TL(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Do(e):e;return{pathname:n?n.startsWith("/")?n:ML(n,t):t,search:OL(r),hash:DL(o)}}function ML(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function yh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Pu(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hf(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Do(e):(o=wt({},e),He(!o.pathname||!o.pathname.includes("?"),yh("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),yh("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),yh("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=TL(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vo=e=>e.join("/").replace(/\/\/+/g,"/"),$L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ty{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function YP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const KP=["post","put","patch","delete"],AL=new Set(KP),IL=["get",...KP],LL=new Set(IL),NL=new Set([301,302,303,307,308]),_L=new Set([307,308]),xh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jL={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ws={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},GP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,FL=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function zL(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;He(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 z=e.detectErrorBoundary;o=U=>({hasErrorBoundary:z(U)})}else o=FL;let i={},a=eg(e.routes,o,void 0,i),s,l=e.basename||"/",u=wt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,d=new Set,f=null,h=null,g=null,m=e.hydrationData!=null,w=Ra(a,e.history.location,l),v=null;if(w==null){let z=cr(404,{pathname:e.history.location.pathname}),{matches:U,route:Q}=u1(a);w=U,v={[Q.id]:z}}let y=!w.some(z=>z.route.lazy)&&(!w.some(z=>z.route.loader)||e.hydrationData!=null),x,b={historyAction:e.history.action,location:e.history.location,matches:w,initialized:y,navigation:xh,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||v,fetchers:new Map,blockers:new Map},P=Bt.Pop,k=!1,E,T=!1,A=!1,M=[],O=[],_=new Map,$=0,D=-1,R=new Map,N=new Set,j=new Map,I=new Map,L=new Map,F=!1;function K(){return c=e.history.listen(z=>{let{action:U,location:Q,delta:ve}=z;if(F){F=!1;return}os(L.size===0||ve!=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 Ie=Ye({currentLocation:b.location,nextLocation:Q,historyAction:U});if(Ie&&ve!=null){F=!0,e.history.go(ve*-1),xt(Ie,{state:"blocked",location:Q,proceed(){xt(Ie,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),e.history.go(ve)},reset(){let De=new Map(b.blockers);De.set(Ie,Ws),B({blockers:De})}});return}return se(U,Q)}),b.initialized||se(Bt.Pop,b.location),x}function ae(){c&&c(),d.clear(),E&&E.abort(),b.fetchers.forEach((z,U)=>be(U)),b.blockers.forEach((z,U)=>tt(U))}function ie(z){return d.add(z),()=>d.delete(z)}function B(z){b=wt({},b,z),d.forEach(U=>U(b))}function te(z,U){var Q,ve;let Ie=b.actionData!=null&&b.navigation.formMethod!=null&&Ir(b.navigation.formMethod)&&b.navigation.state==="loading"&&((Q=z.state)==null?void 0:Q._isRedirect)!==!0,De;U.actionData?Object.keys(U.actionData).length>0?De=U.actionData:De=null:Ie?De=b.actionData:De=null;let Ae=U.loaderData?l1(b.loaderData,U.loaderData,U.matches||[],U.errors):b.loaderData,Me=b.blockers;Me.size>0&&(Me=new Map(Me),Me.forEach((Qe,_e)=>Me.set(_e,Ws)));let ye=k===!0||b.navigation.formMethod!=null&&Ir(b.navigation.formMethod)&&((ve=z.state)==null?void 0:ve._isRedirect)!==!0;s&&(a=s,s=void 0),T||P===Bt.Pop||(P===Bt.Push?e.history.push(z,z.state):P===Bt.Replace&&e.history.replace(z,z.state)),B(wt({},U,{actionData:De,loaderData:Ae,historyAction:P,location:z,initialized:!0,navigation:xh,revalidation:"idle",restoreScrollPosition:Oe(z,U.matches||b.matches),preventScrollReset:ye,blockers:Me})),P=Bt.Pop,k=!1,T=!1,A=!1,M=[],O=[]}async function J(z,U){if(typeof z=="number"){e.history.go(z);return}let Q=tg(b.location,b.matches,l,u.v7_prependBasename,z,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:ve,submission:Ie,error:De}=n1(u.v7_normalizeFormMethod,!1,Q,U),Ae=b.location,Me=Zl(b.location,ve,U&&U.state);Me=wt({},Me,e.history.encodeLocation(Me));let ye=U&&U.replace!=null?U.replace:void 0,Qe=Bt.Push;ye===!0?Qe=Bt.Replace:ye===!1||Ie!=null&&Ir(Ie.formMethod)&&Ie.formAction===b.location.pathname+b.location.search&&(Qe=Bt.Replace);let _e=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,Fe=Ye({currentLocation:Ae,nextLocation:Me,historyAction:Qe});if(Fe){xt(Fe,{state:"blocked",location:Me,proceed(){xt(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:Me}),J(z,U)},reset(){let ot=new Map(b.blockers);ot.set(Fe,Ws),B({blockers:ot})}});return}return await se(Qe,Me,{submission:Ie,pendingError:De,preventScrollReset:_e,replace:U&&U.replace})}function G(){if(X(),B({revalidation:"loading"}),b.navigation.state!=="submitting"){if(b.navigation.state==="idle"){se(b.historyAction,b.location,{startUninterruptedRevalidation:!0});return}se(P||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation})}}async function se(z,U,Q){E&&E.abort(),E=null,P=z,T=(Q&&Q.startUninterruptedRevalidation)===!0,rn(b.location,b.matches),k=(Q&&Q.preventScrollReset)===!0;let ve=s||a,Ie=Q&&Q.overrideNavigation,De=Ra(ve,U,l);if(!De){let ot=cr(404,{pathname:U.pathname}),{matches:it,route:$r}=u1(ve);Se(),te(U,{matches:it,loaderData:{},errors:{[$r.id]:ot}});return}if(b.initialized&&!A&&HL(b.location,U)&&!(Q&&Q.submission&&Ir(Q.submission.formMethod))){te(U,{matches:De});return}E=new AbortController;let Ae=Ys(e.history,U,E.signal,Q&&Q.submission),Me,ye;if(Q&&Q.pendingError)ye={[Ta(De).route.id]:Q.pendingError};else if(Q&&Q.submission&&Ir(Q.submission.formMethod)){let ot=await pe(Ae,U,Q.submission,De,{replace:Q.replace});if(ot.shortCircuited)return;Me=ot.pendingActionData,ye=ot.pendingActionError,Ie=hc(U,Q.submission),Ae=new Request(Ae.url,{signal:Ae.signal})}let{shortCircuited:Qe,loaderData:_e,errors:Fe}=await le(Ae,U,De,Ie,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,Me,ye);Qe||(E=null,te(U,wt({matches:De},Me?{actionData:Me}:{},{loaderData:_e,errors:Fe})))}async function pe(z,U,Q,ve,Ie){Ie===void 0&&(Ie={}),X();let De=XL(U,Q);B({navigation:De});let Ae,Me=rg(ve,U);if(!Me.route.action&&!Me.route.lazy)Ae={type:jt.error,error:cr(405,{method:z.method,pathname:U.pathname,routeId:Me.route.id})};else if(Ae=await Hs("action",z,Me,ve,i,o,l),z.signal.aborted)return{shortCircuited:!0};if(za(Ae)){let ye;return Ie&&Ie.replace!=null?ye=Ie.replace:ye=Ae.location===b.location.pathname+b.location.search,await V(b,Ae,{submission:Q,replace:ye}),{shortCircuited:!0}}if(wl(Ae)){let ye=Ta(ve,Me.route.id);return(Ie&&Ie.replace)!==!0&&(P=Bt.Push),{pendingActionData:{},pendingActionError:{[ye.route.id]:Ae.error}}}if(Ai(Ae))throw cr(400,{type:"defer-action"});return{pendingActionData:{[Me.route.id]:Ae.data}}}async function le(z,U,Q,ve,Ie,De,Ae,Me,ye){let Qe=ve||hc(U,Ie),_e=Ie||De||f1(Qe),Fe=s||a,[ot,it]=r1(e.history,b,Q,_e,U,A,M,O,j,N,Fe,l,Me,ye);if(Se(qe=>!(Q&&Q.some(Zt=>Zt.route.id===qe))||ot&&ot.some(Zt=>Zt.route.id===qe)),D=++$,ot.length===0&&it.length===0){let qe=Ue();return te(U,wt({matches:Q,loaderData:{},errors:ye||null},Me?{actionData:Me}:{},qe?{fetchers:new Map(b.fetchers)}:{})),{shortCircuited:!0}}if(!T){it.forEach(Zt=>{let Y=b.fetchers.get(Zt.key),W=Ks(void 0,Y?Y.data:void 0);b.fetchers.set(Zt.key,W)});let qe=Me||b.actionData;B(wt({navigation:Qe},qe?Object.keys(qe).length===0?{actionData:null}:{actionData:qe}:{},it.length>0?{fetchers:new Map(b.fetchers)}:{}))}it.forEach(qe=>{_.has(qe.key)&&$e(qe.key),qe.controller&&_.set(qe.key,qe.controller)});let $r=()=>it.forEach(qe=>$e(qe.key));E&&E.signal.addEventListener("abort",$r);let{results:Kn,loaderResults:Tt,fetcherResults:Mt}=await ge(b.matches,Q,ot,it,z);if(z.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",$r),it.forEach(qe=>_.delete(qe.key));let Nt=c1(Kn);if(Nt){if(Nt.idx>=ot.length){let qe=it[Nt.idx-ot.length].key;N.add(qe)}return await V(b,Nt.result,{replace:Ae}),{shortCircuited:!0}}let{loaderData:lr,errors:uo}=s1(b,Q,ot,Tt,ye,it,Mt,I);I.forEach((qe,Zt)=>{qe.subscribe(Y=>{(Y||qe.done)&&I.delete(Zt)})});let ea=Ue(),xi=et(D),No=ea||xi||it.length>0;return wt({loaderData:lr,errors:uo},No?{fetchers:new Map(b.fetchers)}:{})}function re(z){return b.fetchers.get(z)||jL}function ee(z,U,Q,ve){if(r)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.");_.has(z)&&$e(z);let Ie=s||a,De=tg(b.location,b.matches,l,u.v7_prependBasename,Q,U,ve==null?void 0:ve.relative),Ae=Ra(Ie,De,l);if(!Ae){he(z,U,cr(404,{pathname:De}));return}let{path:Me,submission:ye,error:Qe}=n1(u.v7_normalizeFormMethod,!0,De,ve);if(Qe){he(z,U,Qe);return}let _e=rg(Ae,Me);if(k=(ve&&ve.preventScrollReset)===!0,ye&&Ir(ye.formMethod)){oe(z,U,Me,_e,Ae,ye);return}j.set(z,{routeId:U,path:Me}),me(z,U,Me,_e,Ae,ye)}async function oe(z,U,Q,ve,Ie,De){if(X(),j.delete(z),!ve.route.action&&!ve.route.lazy){let Z=cr(405,{method:De.formMethod,pathname:Q,routeId:U});he(z,U,Z);return}let Ae=b.fetchers.get(z),Me=QL(De,Ae);b.fetchers.set(z,Me),B({fetchers:new Map(b.fetchers)});let ye=new AbortController,Qe=Ys(e.history,Q,ye.signal,De);_.set(z,ye);let _e=$,Fe=await Hs("action",Qe,ve,Ie,i,o,l);if(Qe.signal.aborted){_.get(z)===ye&&_.delete(z);return}if(za(Fe))if(_.delete(z),D>_e){let Z=pa(void 0);b.fetchers.set(z,Z),B({fetchers:new Map(b.fetchers)});return}else{N.add(z);let Z=Ks(De);return b.fetchers.set(z,Z),B({fetchers:new Map(b.fetchers)}),V(b,Fe,{submission:De,isFetchActionRedirect:!0})}if(wl(Fe)){he(z,U,Fe.error);return}if(Ai(Fe))throw cr(400,{type:"defer-action"});let ot=b.navigation.location||b.location,it=Ys(e.history,ot,ye.signal),$r=s||a,Kn=b.navigation.state!=="idle"?Ra($r,b.navigation.location,l):b.matches;He(Kn,"Didn't find any matches after fetcher action");let Tt=++$;R.set(z,Tt);let Mt=Ks(De,Fe.data);b.fetchers.set(z,Mt);let[Nt,lr]=r1(e.history,b,Kn,De,ot,A,M,O,j,N,$r,l,{[ve.route.id]:Fe.data},void 0);lr.filter(Z=>Z.key!==z).forEach(Z=>{let xe=Z.key,We=b.fetchers.get(xe),_t=Ks(void 0,We?We.data:void 0);b.fetchers.set(xe,_t),_.has(xe)&&$e(xe),Z.controller&&_.set(xe,Z.controller)}),B({fetchers:new Map(b.fetchers)});let uo=()=>lr.forEach(Z=>$e(Z.key));ye.signal.addEventListener("abort",uo);let{results:ea,loaderResults:xi,fetcherResults:No}=await ge(b.matches,Kn,Nt,lr,it);if(ye.signal.aborted)return;ye.signal.removeEventListener("abort",uo),R.delete(z),_.delete(z),lr.forEach(Z=>_.delete(Z.key));let qe=c1(ea);if(qe){if(qe.idx>=Nt.length){let Z=lr[qe.idx-Nt.length].key;N.add(Z)}return V(b,qe.result)}let{loaderData:Zt,errors:Y}=s1(b,b.matches,Nt,xi,void 0,lr,No,I);if(b.fetchers.has(z)){let Z=pa(Fe.data);b.fetchers.set(z,Z)}let W=et(Tt);b.navigation.state==="loading"&&Tt>D?(He(P,"Expected pending action"),E&&E.abort(),te(b.navigation.location,{matches:Kn,loaderData:Zt,errors:Y,fetchers:new Map(b.fetchers)})):(B(wt({errors:Y,loaderData:l1(b.loaderData,Zt,Kn,Y)},W||lr.length>0?{fetchers:new Map(b.fetchers)}:{})),A=!1)}async function me(z,U,Q,ve,Ie,De){let Ae=b.fetchers.get(z),Me=Ks(De,Ae?Ae.data:void 0);b.fetchers.set(z,Me),B({fetchers:new Map(b.fetchers)});let ye=new AbortController,Qe=Ys(e.history,Q,ye.signal);_.set(z,ye);let _e=$,Fe=await Hs("loader",Qe,ve,Ie,i,o,l);if(Ai(Fe)&&(Fe=await QP(Fe,Qe.signal,!0)||Fe),_.get(z)===ye&&_.delete(z),Qe.signal.aborted)return;if(za(Fe))if(D>_e){let it=pa(void 0);b.fetchers.set(z,it),B({fetchers:new Map(b.fetchers)});return}else{N.add(z),await V(b,Fe);return}if(wl(Fe)){let it=Ta(b.matches,U);b.fetchers.delete(z),B({fetchers:new Map(b.fetchers),errors:{[it.route.id]:Fe.error}});return}He(!Ai(Fe),"Unhandled fetcher deferred data");let ot=pa(Fe.data);b.fetchers.set(z,ot),B({fetchers:new Map(b.fetchers)})}async function V(z,U,Q){let{submission:ve,replace:Ie,isFetchActionRedirect:De}=Q===void 0?{}:Q;U.revalidate&&(A=!0);let Ae=Zl(z.location,U.location,wt({_isRedirect:!0},De?{_isFetchActionRedirect:!0}:{}));if(He(Ae,"Expected a location on the redirect navigation"),n){let Qe=!1;if(U.reloadDocument)Qe=!0;else if(GP.test(U.location)){const _e=e.history.createURL(U.location);Qe=_e.origin!==t.location.origin||Ss(_e.pathname,l)==null}if(Qe){Ie?t.location.replace(U.location):t.location.assign(U.location);return}}E=null;let Me=Ie===!0?Bt.Replace:Bt.Push,ye=ve||f1(z.navigation);if(_L.has(U.status)&&ye&&Ir(ye.formMethod))await se(Me,Ae,{submission:wt({},ye,{formAction:U.location}),preventScrollReset:k});else if(De)await se(Me,Ae,{overrideNavigation:hc(Ae),fetcherSubmission:ye,preventScrollReset:k});else{let Qe=hc(Ae,ye);await se(Me,Ae,{overrideNavigation:Qe,preventScrollReset:k})}}async function ge(z,U,Q,ve,Ie){let De=await Promise.all([...Q.map(ye=>Hs("loader",Ie,ye,U,i,o,l)),...ve.map(ye=>ye.matches&&ye.match&&ye.controller?Hs("loader",Ys(e.history,ye.path,ye.controller.signal),ye.match,ye.matches,i,o,l):{type:jt.error,error:cr(404,{pathname:ye.path})})]),Ae=De.slice(0,Q.length),Me=De.slice(Q.length);return await Promise.all([d1(z,Q,Ae,Ae.map(()=>Ie.signal),!1,b.loaderData),d1(z,ve.map(ye=>ye.match),Me,ve.map(ye=>ye.controller?ye.controller.signal:null),!0)]),{results:De,loaderResults:Ae,fetcherResults:Me}}function X(){A=!0,M.push(...Se()),j.forEach((z,U)=>{_.has(U)&&(O.push(U),$e(U))})}function he(z,U,Q){let ve=Ta(b.matches,U);be(z),B({errors:{[ve.route.id]:Q},fetchers:new Map(b.fetchers)})}function be(z){let U=b.fetchers.get(z);_.has(z)&&!(U&&U.state==="loading"&&R.has(z))&&$e(z),j.delete(z),R.delete(z),N.delete(z),b.fetchers.delete(z)}function $e(z){let U=_.get(z);He(U,"Expected fetch controller: "+z),U.abort(),_.delete(z)}function Le(z){for(let U of z){let Q=re(U),ve=pa(Q.data);b.fetchers.set(U,ve)}}function Ue(){let z=[],U=!1;for(let Q of N){let ve=b.fetchers.get(Q);He(ve,"Expected fetcher: "+Q),ve.state==="loading"&&(N.delete(Q),z.push(Q),U=!0)}return Le(z),U}function et(z){let U=[];for(let[Q,ve]of R)if(ve0}function Be(z,U){let Q=b.blockers.get(z)||Ws;return L.get(z)!==U&&L.set(z,U),Q}function tt(z){b.blockers.delete(z),L.delete(z)}function xt(z,U){let Q=b.blockers.get(z)||Ws;He(Q.state==="unblocked"&&U.state==="blocked"||Q.state==="blocked"&&U.state==="blocked"||Q.state==="blocked"&&U.state==="proceeding"||Q.state==="blocked"&&U.state==="unblocked"||Q.state==="proceeding"&&U.state==="unblocked","Invalid blocker state transition: "+Q.state+" -> "+U.state);let ve=new Map(b.blockers);ve.set(z,U),B({blockers:ve})}function Ye(z){let{currentLocation:U,nextLocation:Q,historyAction:ve}=z;if(L.size===0)return;L.size>1&&os(!1,"A router only supports one blocker at a time");let Ie=Array.from(L.entries()),[De,Ae]=Ie[Ie.length-1],Me=b.blockers.get(De);if(!(Me&&Me.state==="proceeding")&&Ae({currentLocation:U,nextLocation:Q,historyAction:ve}))return De}function Se(z){let U=[];return I.forEach((Q,ve)=>{(!z||z(ve))&&(Q.cancel(),U.push(ve),I.delete(ve))}),U}function Ce(z,U,Q){if(f=z,g=U,h=Q||null,!m&&b.navigation===xh){m=!0;let ve=Oe(b.location,b.matches);ve!=null&&B({restoreScrollPosition:ve})}return()=>{f=null,g=null,h=null}}function zt(z,U){return h&&h(z,U.map(ve=>qL(ve,b.loaderData)))||z.key}function rn(z,U){if(f&&g){let Q=zt(z,U);f[Q]=g()}}function Oe(z,U){if(f){let Q=zt(z,U),ve=f[Q];if(typeof ve=="number")return ve}return null}function je(z){i={},s=eg(z,o,void 0,i)}return x={get basename(){return l},get state(){return b},get routes(){return a},initialize:K,subscribe:ie,enableScrollRestoration:Ce,navigate:J,fetch:ee,revalidate:G,createHref:z=>e.history.createHref(z),encodeLocation:z=>e.history.encodeLocation(z),getFetcher:re,deleteFetcher:be,dispose:ae,getBlocker:Be,deleteBlocker:tt,_internalFetchControllers:_,_internalActiveDeferreds:I,_internalSetRoutes:je},x}function BL(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tg(e,t,n,r,o,i,a){let s,l;if(i!=null&&a!=="path"){s=[];for(let c of t)if(s.push(c),c.route.id===i){l=c;break}}else s=t,l=t[t.length-1];let u=Hf(o||".",Pu(s).map(c=>c.pathnameBase),Ss(e.pathname,n)||e.pathname,a==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!ny(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:vo([n,u.pathname])),Yi(u)}function n1(e,t,n,r){if(!r||!BL(r))return{path:n};if(r.formMethod&&!GL(r.formMethod))return{path:n,error:cr(405,{method:r.formMethod})};let o=()=>({path:n,error:cr(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=XP(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ir(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,g)=>{let[m,w]=g;return""+h+m+"="+w+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!Ir(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}He(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=ng(r.formData),u=r.formData;else if(r.body instanceof FormData)l=ng(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=a1(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=a1(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ir(c.formMethod))return{path:n,submission:c};let d=Do(n);return t&&d.search&&ny(d.search)&&l.append("index",""),d.search="?"+l,{path:Yi(d),submission:c}}function VL(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function r1(e,t,n,r,o,i,a,s,l,u,c,d,f,h){let g=h?Object.values(h)[0]:f?Object.values(f)[0]:void 0,m=e.createURL(t.location),w=e.createURL(o),v=h?Object.keys(h)[0]:void 0,x=VL(n,v).filter((P,k)=>{if(P.route.lazy)return!0;if(P.route.loader==null)return!1;if(UL(t.loaderData,t.matches[k],P)||a.some(A=>A===P.route.id))return!0;let E=t.matches[k],T=P;return o1(P,wt({currentUrl:m,currentParams:E.params,nextUrl:w,nextParams:T.params},r,{actionResult:g,defaultShouldRevalidate:i||m.pathname+m.search===w.pathname+w.search||m.search!==w.search||qP(E,T)}))}),b=[];return l.forEach((P,k)=>{if(!n.some(O=>O.route.id===P.routeId))return;let E=Ra(c,P.path,d);if(!E){b.push({key:k,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(k),A=rg(E,P.path),M=!1;u.has(k)?M=!1:s.includes(k)?M=!0:T&&T.state!=="idle"&&T.data===void 0?M=i:M=o1(A,wt({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:i})),M&&b.push({key:k,routeId:P.routeId,path:P.path,matches:E,match:A,controller:new AbortController})}),[x,b]}function UL(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function qP(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function o1(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function i1(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];He(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";os(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!fL.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,wt({},t(o),{lazy:void 0}))}async function Hs(e,t,n,r,o,i,a,s){s===void 0&&(s={});let l,u,c,d=g=>{let m,w=new Promise((v,y)=>m=y);return c=()=>m(),t.signal.addEventListener("abort",c),Promise.race([g({request:t,params:n.params,context:s.requestContext}),w])};try{let g=n.route[e];if(n.route.lazy)if(g)u=(await Promise.all([d(g),i1(n.route,i,o)]))[0];else if(await i1(n.route,i,o),g=n.route[e],g)u=await d(g);else if(e==="action"){let m=new URL(t.url),w=m.pathname+m.search;throw cr(405,{method:t.method,pathname:w,routeId:n.route.id})}else return{type:jt.data,data:void 0};else if(g)u=await d(g);else{let m=new URL(t.url),w=m.pathname+m.search;throw cr(404,{pathname:w})}He(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){l=jt.error,u=g}finally{c&&t.signal.removeEventListener("abort",c)}if(KL(u)){let g=u.status;if(NL.has(g)){let v=u.headers.get("Location");if(He(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!GP.test(v))v=tg(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,v);else if(!s.isStaticRequest){let y=new URL(t.url),x=v.startsWith("//")?new URL(y.protocol+v):new URL(v),b=Ss(x.pathname,a)!=null;x.origin===y.origin&&b&&(v=x.pathname+x.search+x.hash)}if(s.isStaticRequest)throw u.headers.set("Location",v),u;return{type:jt.redirect,status:g,location:v,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===jt.error?jt.error:jt.data,response:u};let m,w=u.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?m=await u.json():m=await u.text(),l===jt.error?{type:l,error:new ty(g,u.statusText,m),headers:u.headers}:{type:jt.data,data:m,statusCode:u.status,headers:u.headers}}if(l===jt.error)return{type:l,error:u};if(YL(u)){var f,h;return{type:jt.deferred,deferredData:u,statusCode:(f=u.init)==null?void 0:f.status,headers:((h=u.init)==null?void 0:h.headers)&&new Headers(u.init.headers)}}return{type:jt.data,data:u}}function Ys(e,t,n,r){let o=e.createURL(XP(t)).toString(),i={signal:n};if(r&&Ir(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=ng(r.formData):i.body=r.formData}return new Request(o,i)}function ng(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function a1(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function WL(e,t,n,r,o){let i={},a=null,s,l=!1,u={};return n.forEach((c,d)=>{let f=t[d].route.id;if(He(!za(c),"Cannot handle redirect results in processLoaderData"),wl(c)){let h=Ta(e,f),g=c.error;r&&(g=Object.values(r)[0],r=void 0),a=a||{},a[h.route.id]==null&&(a[h.route.id]=g),i[f]=void 0,l||(l=!0,s=YP(c.error)?c.error.status:500),c.headers&&(u[f]=c.headers)}else Ai(c)?(o.set(f,c.deferredData),i[f]=c.deferredData.data):i[f]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[f]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function s1(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=WL(t,n,r,o,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function u1(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function cr(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new ty(e||500,a,new Error(s),!0)}function c1(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(za(n))return{result:n,idx:t}}}function XP(e){let t=typeof e=="string"?Do(e):e;return Yi(wt({},t,{hash:""}))}function HL(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ai(e){return e.type===jt.deferred}function wl(e){return e.type===jt.error}function za(e){return(e&&e.type)===jt.redirect}function YL(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 KL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function GL(e){return LL.has(e.toLowerCase())}function Ir(e){return AL.has(e.toLowerCase())}async function d1(e,t,n,r,o,i){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!qP(u,l)&&(i&&i[l.route.id])!==void 0;if(Ai(s)&&(o||c)){let d=r[a];He(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await QP(s,d,o).then(f=>{f&&(n[a]=f||n[a])})}}}async function QP(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:jt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:jt.error,error:o}}return{type:jt.data,data:e.deferredData.data}}}function ny(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function qL(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function rg(e,t){let n=typeof t=="string"?Do(t).search:t.search;if(e[e.length-1].route.index&&ny(n||""))return e[e.length-1];let r=Pu(e);return r[r.length-1]}function f1(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function hc(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 XL(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 Ks(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," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function QL(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," _hasFetcherDoneAnything ":!0}}function pa(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + * React Router v6.15.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 Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=p.useRef(!1);return eE(()=>{a.current=!0}),p.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=Hf(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:vo([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}const eN=p.createContext(null);function tN(e){let t=p.useContext(Ao).outlet;return t&&p.createElement(eN.Provider,{value:e},t)}function tE(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=p.useContext(Ao),{pathname:o}=Eu(),i=JSON.stringify(Pu(r).map(a=>a.pathnameBase));return p.useMemo(()=>Hf(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function nN(e,t,n){Ps()||He(!1);let{navigator:r}=p.useContext(Cs),{matches:o}=p.useContext(Ao),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Eu(),u;if(t){var c;let m=typeof t=="string"?Do(t):t;s==="/"||(c=m.pathname)!=null&&c.startsWith(s)||He(!1),u=m}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=Ra(e,{pathname:f}),g=sN(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:vo([s,r.encodeLocation?r.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:vo([s,r.encodeLocation?r.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,n);return t&&g?p.createElement(Kf.Provider,{value:{location:Md({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Bt.Pop}},g):g}function rN(){let e=dN(),t=YP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,i)}const oN=p.createElement(rN,null);class iN extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?p.createElement(Ao.Provider,{value:this.props.routeContext},p.createElement(JP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aN(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Yf);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Ao.Provider,{value:t},r)}function sN(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||He(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?a==null?void 0:a[l.route.id]:null,d=null;n&&(d=l.route.errorElement||oN);let f=t.concat(i.slice(0,u+1)),h=()=>{let g;return c?g=d:l.route.Component?g=p.createElement(l.route.Component,null):l.route.element?g=l.route.element:g=s,p.createElement(aN,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:n!=null},children:g})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?p.createElement(iN,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var nE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(nE||{}),$d=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}($d||{});function lN(e){let t=p.useContext(Yf);return t||He(!1),t}function uN(e){let t=p.useContext(ZP);return t||He(!1),t}function cN(e){let t=p.useContext(Ao);return t||He(!1),t}function rE(e){let t=cN(),n=t.matches[t.matches.length-1];return n.route.id||He(!1),n.route.id}function dN(){var e;let t=p.useContext(JP),n=uN($d.UseRouteError),r=rE($d.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function fN(){let{router:e}=lN(nE.UseNavigateStable),t=rE($d.UseNavigateStable),n=p.useRef(!1);return eE(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Md({fromRouteId:t},i)))},[e,t])}const pN="startTransition",p1=Ml[pN];function hN(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=p.useState(n.state),{v7_startTransition:a}=r||{},s=p.useCallback(d=>{a&&p1?p1(()=>i(d)):i(d)},[i,a]);p.useLayoutEffect(()=>n.subscribe(s),[n,s]);let l=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:d=>n.navigate(d),push:(d,f,h)=>n.navigate(d,{state:f,preventScrollReset:h==null?void 0:h.preventScrollReset}),replace:(d,f,h)=>n.navigate(d,{replace:!0,state:f,preventScrollReset:h==null?void 0:h.preventScrollReset})}),[n]),u=n.basename||"/",c=p.useMemo(()=>({router:n,navigator:l,static:!1,basename:u}),[n,l,u]);return p.createElement(p.Fragment,null,p.createElement(Yf.Provider,{value:c},p.createElement(ZP.Provider,{value:o},p.createElement(vN,{basename:u,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?p.createElement(mN,{routes:n.routes,state:o}):t))),null)}function mN(e){let{routes:t,state:n}=e;return nN(t,void 0,n)}function oE(e){let{to:t,replace:n,state:r,relative:o}=e;Ps()||He(!1);let{matches:i}=p.useContext(Ao),{pathname:a}=Eu(),s=ku(),l=Hf(t,Pu(i).map(c=>c.pathnameBase),a,o==="path"),u=JSON.stringify(l);return p.useEffect(()=>s(JSON.parse(u),{replace:n,state:r,relative:o}),[s,u,o,n,r]),null}function gN(e){return tN(e.context)}function vN(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Bt.Pop,navigator:i,static:a=!1}=e;Ps()&&He(!1);let s=t.replace(/^\/*/,"/"),l=p.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=Do(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,g=p.useMemo(()=>{let m=Ss(u,s);return m==null?null:{location:{pathname:m,search:c,hash:d,state:f,key:h},navigationType:o}},[s,u,c,d,f,h,o]);return g==null?null:p.createElement(Cs.Provider,{value:l},p.createElement(Kf.Provider,{children:n,value:g}))}new Promise(()=>{});function yN(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.15.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 Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function bN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wN(e,t){return e.button===0&&(!t||t==="_self")&&!bN(e)}const SN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function CN(e,t){return zL({basename:t==null?void 0:t.basename,future:Jl({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:uL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||PN(),routes:e,mapRouteProperties:yN}).initialize()}function PN(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Jl({},t,{errors:EN(t.errors)})),t}function EN(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new ty(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const kN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ko=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,d=xN(t,SN),{basename:f}=p.useContext(Cs),h,g=!1;if(typeof u=="string"&&RN.test(u)&&(h=u,kN))try{let y=new URL(window.location.href),x=u.startsWith("//")?new URL(y.protocol+u):new URL(u),b=Ss(x.pathname,f);x.origin===y.origin&&b!=null?u=b+x.search+x.hash:g=!0}catch{}let m=ZL(u,{relative:o}),w=TN(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function v(y){r&&r(y),y.defaultPrevented||w(y)}return p.createElement("a",Jl({},d,{href:h||m,onClick:g||i?r:v,ref:n,target:l}))});var h1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(h1||(h1={}));var m1;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(m1||(m1={}));function TN(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=ku(),l=Eu(),u=tE(e,{relative:a});return p.useCallback(c=>{if(wN(c,n)){c.preventDefault();let d=r!==void 0?r:Yi(l)===Yi(u);s(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}var iE={exports:{}},aE={};/** + * @license React + * use-sync-external-store-shim.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 is=p;function MN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $N=typeof Object.is=="function"?Object.is:MN,ON=is.useState,DN=is.useEffect,AN=is.useLayoutEffect,IN=is.useDebugValue;function LN(e,t){var n=t(),r=ON({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return AN(function(){o.value=n,o.getSnapshot=t,bh(o)&&i({inst:o})},[e,n,t]),DN(function(){return bh(o)&&i({inst:o}),e(function(){bh(o)&&i({inst:o})})},[e]),IN(n),n}function bh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$N(e,n)}catch{return!0}}function NN(e,t){return t()}var _N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?NN:LN;aE.useSyncExternalStore=is.useSyncExternalStore!==void 0?is.useSyncExternalStore:_N;iE.exports=aE;var jN=iE.exports,sE={exports:{}},lE={};/** + * @license React + * use-sync-external-store-shim/with-selector.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 Gf=p,FN=jN;function zN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var BN=typeof Object.is=="function"?Object.is:zN,VN=FN.useSyncExternalStore,UN=Gf.useRef,WN=Gf.useEffect,HN=Gf.useMemo,YN=Gf.useDebugValue;lE.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=UN(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=HN(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&a.hasValue){var g=a.value;if(o(g,h))return d=g}return d=h}if(g=d,BN(c,h))return g;var m=r(h);return o!==void 0&&o(g,m)?g:(c=h,d=m)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,o]);var s=VN(e,i[0],i[1]);return WN(function(){a.hasValue=!0,a.value=s},[s]),YN(s),s};sE.exports=lE;var KN=sE.exports;function GN(e){e()}let uE=GN;const qN=e=>uE=e,XN=()=>uE,g1=Symbol.for("react-redux-context"),v1=typeof globalThis<"u"?globalThis:{};function QN(){var e;if(!p.createContext)return{};const t=(e=v1[g1])!=null?e:v1[g1]=new Map;let n=t.get(p.createContext);return n||(n=p.createContext(null),t.set(p.createContext,n)),n}const ci=QN();function ry(e=ci){return function(){return p.useContext(e)}}const cE=ry(),ZN=()=>{throw new Error("uSES not initialized!")};let dE=ZN;const JN=e=>{dE=e},e_=(e,t)=>e===t;function t_(e=ci){const t=e===ci?cE:ry(e);return function(r,o={}){const{equalityFn:i=e_,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:u,getServerState:c,stabilityCheck:d,noopCheck:f}=t();p.useRef(!0);const h=p.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,a]),g=dE(u.addNestedSub,l.getState,c||l.getState,h,i);return p.useDebugValue(g),g}}const ro=t_();var ft={};/** + * @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 oy=Symbol.for("react.element"),iy=Symbol.for("react.portal"),qf=Symbol.for("react.fragment"),Xf=Symbol.for("react.strict_mode"),Qf=Symbol.for("react.profiler"),Zf=Symbol.for("react.provider"),Jf=Symbol.for("react.context"),n_=Symbol.for("react.server_context"),ep=Symbol.for("react.forward_ref"),tp=Symbol.for("react.suspense"),np=Symbol.for("react.suspense_list"),rp=Symbol.for("react.memo"),op=Symbol.for("react.lazy"),r_=Symbol.for("react.offscreen"),fE;fE=Symbol.for("react.module.reference");function Tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case oy:switch(e=e.type,e){case qf:case Qf:case Xf:case tp:case np:return e;default:switch(e=e&&e.$$typeof,e){case n_:case Jf:case ep:case op:case rp:case Zf:return e;default:return t}}case iy:return t}}}ft.ContextConsumer=Jf;ft.ContextProvider=Zf;ft.Element=oy;ft.ForwardRef=ep;ft.Fragment=qf;ft.Lazy=op;ft.Memo=rp;ft.Portal=iy;ft.Profiler=Qf;ft.StrictMode=Xf;ft.Suspense=tp;ft.SuspenseList=np;ft.isAsyncMode=function(){return!1};ft.isConcurrentMode=function(){return!1};ft.isContextConsumer=function(e){return Tr(e)===Jf};ft.isContextProvider=function(e){return Tr(e)===Zf};ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===oy};ft.isForwardRef=function(e){return Tr(e)===ep};ft.isFragment=function(e){return Tr(e)===qf};ft.isLazy=function(e){return Tr(e)===op};ft.isMemo=function(e){return Tr(e)===rp};ft.isPortal=function(e){return Tr(e)===iy};ft.isProfiler=function(e){return Tr(e)===Qf};ft.isStrictMode=function(e){return Tr(e)===Xf};ft.isSuspense=function(e){return Tr(e)===tp};ft.isSuspenseList=function(e){return Tr(e)===np};ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qf||e===Qf||e===Xf||e===tp||e===np||e===r_||typeof e=="object"&&e!==null&&(e.$$typeof===op||e.$$typeof===rp||e.$$typeof===Zf||e.$$typeof===Jf||e.$$typeof===ep||e.$$typeof===fE||e.getModuleId!==void 0)};ft.typeOf=Tr;function o_(){const e=XN();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const y1={notify(){},get:()=>[]};function i_(e,t){let n,r=y1;function o(d){return l(),r.subscribe(d)}function i(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return!!n}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=o_())}function u(){n&&(n(),n=void 0,r.clear(),r=y1)}const c={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const a_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",s_=a_?p.useLayoutEffect:p.useEffect;function l_({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const a=p.useMemo(()=>{const u=i_(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}},[e,r,o,i]),s=p.useMemo(()=>e.getState(),[e]);s_(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||ci;return p.createElement(l.Provider,{value:a},n)}function pE(e=ci){const t=e===ci?cE:ry(e);return function(){const{store:r}=t();return r}}const u_=pE();function c_(e=ci){const t=e===ci?u_:pE(e);return function(){return t().dispatch}}const Io=c_();JN(KN.useSyncExternalStoreWithSelector);qN(ri.unstable_batchedUpdates);function Nr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:ay(e)?2:sy(e)?3:0}function Ba(e,t){return Es(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function d_(e,t){return Es(e)===2?e.get(t):e[t]}function hE(e,t,n){var r=Es(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function mE(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ay(e){return v_&&e instanceof Map}function sy(e){return y_&&e instanceof Set}function ki(e){return e.o||e.t}function ly(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=vE(e);delete t[St];for(var n=Va(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=f_),Object.freeze(e),t&&Ki(e,function(n,r){return uy(r,!0)},!0)),e}function f_(){Nr(2)}function cy(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function oo(e){var t=sg[e];return t||Nr(18,e),t}function p_(e,t){sg[e]||(sg[e]=t)}function og(){return eu}function wh(e,t){t&&(oo("Patches"),e.u=[],e.s=[],e.v=t)}function Od(e){ig(e),e.p.forEach(h_),e.p=null}function ig(e){e===eu&&(eu=e.l)}function x1(e){return eu={p:[],l:eu,h:e,m:!0,_:0}}function h_(e){var t=e[St];t.i===0||t.i===1?t.j():t.g=!0}function Sh(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||oo("ES5").S(t,e,r),r?(n[St].P&&(Od(t),Nr(4)),Po(e)&&(e=Dd(t,e),t.l||Ad(t,e)),t.u&&oo("Patches").M(n[St].t,e,t.u,t.s)):e=Dd(t,n,[]),Od(t),t.u&&t.v(t.u,t.s),e!==gE?e:void 0}function Dd(e,t,n){if(cy(t))return t;var r=t[St];if(!r)return Ki(t,function(s,l){return b1(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Ad(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=ly(r.k):r.o,i=o,a=!1;r.i===3&&(i=new Set(o),o.clear(),a=!0),Ki(i,function(s,l){return b1(e,r,o,s,l,n,a)}),Ad(e,o,!1),n&&e.u&&oo("Patches").N(r,n,e.u,e.s)}return r.o}function b1(e,t,n,r,o,i,a){if(di(o)){var s=Dd(e,o,i&&t&&t.i!==3&&!Ba(t.R,r)?i.concat(r):void 0);if(hE(n,r,s),!di(s))return;e.m=!1}else a&&n.add(o);if(Po(o)&&!cy(o)){if(!e.h.D&&e._<1)return;Dd(e,o),t&&t.A.l||Ad(e,o)}}function Ad(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&uy(t,n)}function Ch(e,t){var n=e[St];return(n?ki(n):e)[t]}function w1(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Uo(e){e.P||(e.P=!0,e.l&&Uo(e.l))}function Ph(e){e.o||(e.o=ly(e.t))}function ag(e,t,n){var r=ay(t)?oo("MapSet").F(t,n):sy(t)?oo("MapSet").T(t,n):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:og(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=s,u=tu;a&&(l=[s],u=ll);var c=Proxy.revocable(l,u),d=c.revoke,f=c.proxy;return s.k=f,s.j=d,f}(t,n):oo("ES5").J(t,n);return(n?n.A:og()).p.push(r),r}function m_(e){return di(e)||Nr(22,e),function t(n){if(!Po(n))return n;var r,o=n[St],i=Es(n);if(o){if(!o.P&&(o.i<4||!oo("ES5").K(o)))return o.t;o.I=!0,r=S1(n,i),o.I=!1}else r=S1(n,i);return Ki(r,function(a,s){o&&d_(o.t,a)===s||hE(r,a,t(s))}),i===3?new Set(r):r}(e)}function S1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ly(e)}function g_(){function e(i,a){var s=o[i];return s?s.enumerable=a:o[i]=s={configurable:!0,enumerable:a,get:function(){var l=this[St];return tu.get(l,i)},set:function(l){var u=this[St];tu.set(u,i,l)}},s}function t(i){for(var a=i.length-1;a>=0;a--){var s=i[a][St];if(!s.P)switch(s.i){case 5:r(s)&&Uo(s);break;case 4:n(s)&&Uo(s)}}}function n(i){for(var a=i.t,s=i.k,l=Va(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==St){var d=a[c];if(d===void 0&&!Ba(a,c))return!0;var f=s[c],h=f&&f[St];if(h?h.t!==d:!mE(f,d))return!0}}var g=!!a[St];return l.length!==Va(a).length+(g?0:1)}function r(i){var a=i.k;if(a.length!==i.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l1?v-1:0),x=1;x1?c-1:0),f=1;f=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=oo("Patches").$;return di(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),nr=new b_,yE=nr.produce;nr.produceWithPatches.bind(nr);nr.setAutoFreeze.bind(nr);nr.setUseProxies.bind(nr);nr.applyPatches.bind(nr);nr.createDraft.bind(nr);nr.finishDraft.bind(nr);function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function w_(e,t){if(nu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function S_(e){var t=w_(e,"string");return nu(t)==="symbol"?t:String(t)}function C_(e,t,n){return t=S_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R1(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(gn(1));return n(xE)(e,t)}if(typeof e!="function")throw new Error(gn(2));var o=e,i=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(gn(3));return i}function d(m){if(typeof m!="function")throw new Error(gn(4));if(l)throw new Error(gn(5));var w=!0;return u(),s.push(m),function(){if(w){if(l)throw new Error(gn(6));w=!1,u();var y=s.indexOf(m);s.splice(y,1),a=null}}}function f(m){if(!P_(m))throw new Error(gn(7));if(typeof m.type>"u")throw new Error(gn(8));if(l)throw new Error(gn(9));try{l=!0,i=o(i,m)}finally{l=!1}for(var w=a=s,v=0;v"u")throw new Error(gn(12));if(typeof n(void 0,{type:Id.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(gn(13))})}function k_(e){for(var t=Object.keys(e),n={},r=0;r"u")throw u&&u.type,new Error(gn(14));d[h]=w,c=c||w!==m}return c=c||i.length!==Object.keys(l).length,c?d:l}}function Ld(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]o.auth.user),n=Io(),r=()=>{localStorage.removeItem("expenseTrackerToken"),n(ej()),e("/login"),n(qt(["User logged out",!0])),setTimeout(()=>n(qt(null)),5e3)};return C.jsx(Co,{sx:{flexGrow:1},children:C.jsx(sI,{position:"static",children:C.jsxs(gI,{children:[C.jsx(At,{variant:"h6",component:"div",sx:{flexGrow:1},children:C.jsx(Ko,{style:mc,to:"/",children:"Expense Tracker"})}),t&&C.jsxs(C.Fragment,{children:[C.jsx(mr,{color:"inherit",children:C.jsx(Ko,{style:mc,to:"/category",children:"category"})}),C.jsx(mr,{color:"inherit",onClick:r,children:"Logout"})]}),!t&&C.jsxs(C.Fragment,{children:[C.jsx(mr,{color:"inherit",children:C.jsx(Ko,{style:mc,to:"/login",children:"Login"})}),C.jsx(mr,{color:"inherit",children:C.jsx(Ko,{style:mc,to:"/register",children:"Register"})})]})]})})})}function kE(e,t){return function(){return e.apply(t,arguments)}}const{toString:rj}=Object.prototype,{getPrototypeOf:py}=Object,sp=(e=>t=>{const n=rj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lo=e=>(e=e.toLowerCase(),t=>sp(t)===e),lp=e=>t=>typeof t===e,{isArray:ks}=Array,ru=lp("undefined");function oj(e){return e!==null&&!ru(e)&&e.constructor!==null&&!ru(e.constructor)&&yr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const RE=lo("ArrayBuffer");function ij(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&RE(e.buffer),t}const aj=lp("string"),yr=lp("function"),TE=lp("number"),up=e=>e!==null&&typeof e=="object",sj=e=>e===!0||e===!1,Qc=e=>{if(sp(e)!=="object")return!1;const t=py(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lj=lo("Date"),uj=lo("File"),cj=lo("Blob"),dj=lo("FileList"),fj=e=>up(e)&&yr(e.pipe),pj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yr(e.append)&&((t=sp(e))==="formdata"||t==="object"&&yr(e.toString)&&e.toString()==="[object FormData]"))},hj=lo("URLSearchParams"),mj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ru(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ks(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const $E=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),OE=e=>!ru(e)&&e!==$E;function ug(){const{caseless:e}=OE(this)&&this||{},t={},n=(r,o)=>{const i=e&&ME(t,o)||o;Qc(t[i])&&Qc(r)?t[i]=ug(t[i],r):Qc(r)?t[i]=ug({},r):ks(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Ru(t,(o,i)=>{n&&yr(o)?e[i]=kE(o,n):e[i]=o},{allOwnKeys:r}),e),vj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yj=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xj=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&py(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},wj=e=>{if(!e)return null;if(ks(e))return e;let t=e.length;if(!TE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&py(Uint8Array)),Cj=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Pj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ej=lo("HTMLFormElement"),kj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),I1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Rj=lo("RegExp"),DE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ru(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Tj=e=>{DE(e,(t,n)=>{if(yr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(yr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Mj=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ks(e)?r(e):r(String(e).split(t)),n},$j=()=>{},Oj=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Th="abcdefghijklmnopqrstuvwxyz",L1="0123456789",AE={DIGIT:L1,ALPHA:Th,ALPHA_DIGIT:Th+Th.toUpperCase()+L1},Dj=(e=16,t=AE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Aj(e){return!!(e&&yr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ij=e=>{const t=new Array(10),n=(r,o)=>{if(up(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=ks(r)?[]:{};return Ru(r,(a,s)=>{const l=n(a,o+1);!ru(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Lj=lo("AsyncFunction"),Nj=e=>e&&(up(e)||yr(e))&&yr(e.then)&&yr(e.catch),q={isArray:ks,isArrayBuffer:RE,isBuffer:oj,isFormData:pj,isArrayBufferView:ij,isString:aj,isNumber:TE,isBoolean:sj,isObject:up,isPlainObject:Qc,isUndefined:ru,isDate:lj,isFile:uj,isBlob:cj,isRegExp:Rj,isFunction:yr,isStream:fj,isURLSearchParams:hj,isTypedArray:Sj,isFileList:dj,forEach:Ru,merge:ug,extend:gj,trim:mj,stripBOM:vj,inherits:yj,toFlatObject:xj,kindOf:sp,kindOfTest:lo,endsWith:bj,toArray:wj,forEachEntry:Cj,matchAll:Pj,isHTMLForm:Ej,hasOwnProperty:I1,hasOwnProp:I1,reduceDescriptors:DE,freezeMethods:Tj,toObjectSet:Mj,toCamelCase:kj,noop:$j,toFiniteNumber:Oj,findKey:ME,global:$E,isContextDefined:OE,ALPHABET:AE,generateString:Dj,isSpecCompliantForm:Aj,toJSONObject:Ij,isAsyncFn:Lj,isThenable:Nj};function Ze(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}q.inherits(Ze,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const IE=Ze.prototype,LE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{LE[e]={value:e}});Object.defineProperties(Ze,LE);Object.defineProperty(IE,"isAxiosError",{value:!0});Ze.from=(e,t,n,r,o,i)=>{const a=Object.create(IE);return q.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Ze.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const _j=null;function cg(e){return q.isPlainObject(e)||q.isArray(e)}function NE(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function N1(e,t,n){return e?e.concat(t).map(function(o,i){return o=NE(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function jj(e){return q.isArray(e)&&!e.some(cg)}const Fj=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function cp(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,w){return!q.isUndefined(w[m])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(q.isDate(g))return g.toISOString();if(!l&&q.isBlob(g))throw new Ze("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(g)||q.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,m,w){let v=g;if(g&&!w&&typeof g=="object"){if(q.endsWith(m,"{}"))m=r?m:m.slice(0,-2),g=JSON.stringify(g);else if(q.isArray(g)&&jj(g)||(q.isFileList(g)||q.endsWith(m,"[]"))&&(v=q.toArray(g)))return m=NE(m),v.forEach(function(x,b){!(q.isUndefined(x)||x===null)&&t.append(a===!0?N1([m],b,i):a===null?m:m+"[]",u(x))}),!1}return cg(g)?!0:(t.append(N1(w,m,i),u(g)),!1)}const d=[],f=Object.assign(Fj,{defaultVisitor:c,convertValue:u,isVisitable:cg});function h(g,m){if(!q.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),q.forEach(g,function(v,y){(!(q.isUndefined(v)||v===null)&&o.call(t,v,q.isString(y)?y.trim():y,m,f))===!0&&h(v,m?m.concat(y):[y])}),d.pop()}}if(!q.isObject(e))throw new TypeError("data must be an object");return h(e),t}function _1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function hy(e,t){this._pairs=[],e&&cp(e,this,t)}const _E=hy.prototype;_E.append=function(t,n){this._pairs.push([t,n])};_E.toString=function(t){const n=t?function(r){return t.call(this,r,_1)}:_1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jE(e,t,n){if(!t)return e;const r=n&&n.encode||zj,o=n&&n.serialize;let i;if(o?i=o(t,n):i=q.isURLSearchParams(t)?t.toString():new hy(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bj{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const j1=Bj,FE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vj=typeof URLSearchParams<"u"?URLSearchParams:hy,Uj=typeof FormData<"u"?FormData:null,Wj=typeof Blob<"u"?Blob:null,Hj=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Yj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),jr={isBrowser:!0,classes:{URLSearchParams:Vj,FormData:Uj,Blob:Wj},isStandardBrowserEnv:Hj,isStandardBrowserWebWorkerEnv:Yj,protocols:["http","https","file","blob","url","data"]};function Kj(e,t){return cp(e,new jr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return jr.isNode&&q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Gj(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qj(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&q.isArray(o)?o.length:a,l?(q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&q.isArray(o[a])&&(o[a]=qj(o[a])),!s)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,(r,o)=>{t(Gj(r),o,n,0)}),n}return null}function Xj(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const my={transitional:FE,adapter:jr.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=q.isObject(t);if(i&&q.isHTMLForm(t)&&(t=new FormData(t)),q.isFormData(t))return o&&o?JSON.stringify(zE(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Kj(t,this.formSerializer).toString();if((s=q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cp(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Xj(t)):t}],transformResponse:[function(t){const n=this.transitional||my.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Ze.from(s,Ze.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jr.classes.FormData,Blob:jr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],e=>{my.headers[e]={}});const gy=my,Qj=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zj=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Qj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},F1=Symbol("internals");function Gs(e){return e&&String(e).trim().toLowerCase()}function Zc(e){return e===!1||e==null?e:q.isArray(e)?e.map(Zc):String(e)}function Jj(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Mh(e,t,n,r,o){if(q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function tF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nF(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class dp{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,u){const c=Gs(l);if(!c)throw new Error("header name must be a non-empty string");const d=q.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Zc(s))}const a=(s,l)=>q.forEach(s,(u,c)=>i(u,c,l));return q.isPlainObject(t)||t instanceof this.constructor?a(t,n):q.isString(t)&&(t=t.trim())&&!eF(t)?a(Zj(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Gs(t),t){const r=q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Jj(o);if(q.isFunction(n))return n.call(this,o,r);if(q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Gs(t),t){const r=q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Mh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Gs(a),a){const s=q.findKey(r,a);s&&(!n||Mh(r,r[s],s,n))&&(delete r[s],o=!0)}}return q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Mh(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return q.forEach(this,(o,i)=>{const a=q.findKey(r,i);if(a){n[a]=Zc(o),delete n[i];return}const s=t?tF(i):String(i).trim();s!==i&&delete n[i],n[s]=Zc(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[F1]=this[F1]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=Gs(a);r[s]||(nF(o,a),r[s]=!0)}return q.isArray(t)?t.forEach(i):i(t),this}}dp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.reduceDescriptors(dp.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});q.freezeMethods(dp);const yo=dp;function $h(e,t){const n=this||gy,r=t||n,o=yo.from(r.headers);let i=r.data;return q.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function BE(e){return!!(e&&e.__CANCEL__)}function Tu(e,t,n){Ze.call(this,e??"canceled",Ze.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(Tu,Ze,{__CANCEL__:!0});function rF(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const oF=jr.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,a,s){const l=[];l.push(n+"="+encodeURIComponent(r)),q.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),q.isString(i)&&l.push("path="+i),q.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function iF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aF(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function VE(e,t){return e&&!iF(t)?aF(e,t):t}const sF=jr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=q.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function lF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uF(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];a||(a=u),n[o]=l,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const cF=typeof XMLHttpRequest<"u",dF=cF&&function(e){return new Promise(function(n,r){let o=e.data;const i=yo.from(e.headers).normalize(),a=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}q.isFormData(o)&&(jr.isStandardBrowserEnv||jr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+g))}const c=VE(e.baseURL,e.url);u.open(e.method.toUpperCase(),jE(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const h=yo.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};rF(function(v){n(v),l()},function(v){r(v),l()},m),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Ze("Network Error",Ze.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||FE;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new Ze(g,m.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,u)),u=null},jr.isStandardBrowserEnv){const h=(e.withCredentials||sF(c))&&e.xsrfCookieName&&oF.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&q.forEach(i.toJSON(),function(g,m){u.setRequestHeader(m,g)}),q.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",z1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",z1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{u&&(r(!h||h.type?new Tu(null,e,u):h),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=lF(c);if(f&&jr.protocols.indexOf(f)===-1){r(new Ze("Unsupported protocol "+f+":",Ze.ERR_BAD_REQUEST,e));return}u.send(o||null)})},Jc={http:_j,xhr:dF};q.forEach(Jc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const UE={getAdapter:e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof yo?e.toJSON():e;function ss(e,t){t=t||{};const n={};function r(u,c,d){return q.isPlainObject(u)&&q.isPlainObject(c)?q.merge.call({caseless:d},u,c):q.isPlainObject(c)?q.merge({},c):q.isArray(c)?c.slice():c}function o(u,c,d){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!q.isUndefined(c))return r(void 0,c)}function a(u,c){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>o(V1(u),V1(c),!0)};return q.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);q.isUndefined(f)&&d!==s||(n[c]=f)}),n}const WE="1.5.0",vy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const U1={};vy.transitional=function(t,n,r){function o(i,a){return"[Axios v"+WE+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Ze(o(a," has been removed"+(n?" in "+n:"")),Ze.ERR_DEPRECATED);return n&&!U1[a]&&(U1[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function fF(e,t,n){if(typeof e!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Ze("option "+i+" must be "+l,Ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ze("Unknown option "+i,Ze.ERR_BAD_OPTION)}}const dg={assertOptions:fF,validators:vy},jo=dg.validators;class Nd{constructor(t){this.defaults=t,this.interceptors={request:new j1,response:new j1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ss(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&dg.assertOptions(r,{silentJSONParsing:jo.transitional(jo.boolean),forcedJSONParsing:jo.transitional(jo.boolean),clarifyTimeoutError:jo.transitional(jo.boolean)},!1),o!=null&&(q.isFunction(o)?n.paramsSerializer={serialize:o}:dg.assertOptions(o,{encode:jo.function,serialize:jo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&q.merge(i.common,i[n.method]);i&&q.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=yo.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const g=[B1.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),f=g.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Tu(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new yy(function(o){t=o}),cancel:t}}}const pF=yy;function hF(e){return function(n){return e.apply(null,n)}}function mF(e){return q.isObject(e)&&e.isAxiosError===!0}const fg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fg).forEach(([e,t])=>{fg[t]=e});const gF=fg;function HE(e){const t=new ed(e),n=kE(ed.prototype.request,t);return q.extend(n,ed.prototype,t,{allOwnKeys:!0}),q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return HE(ss(e,o))},n}const Wt=HE(gy);Wt.Axios=ed;Wt.CanceledError=Tu;Wt.CancelToken=pF;Wt.isCancel=BE;Wt.VERSION=WE;Wt.toFormData=cp;Wt.AxiosError=Ze;Wt.Cancel=Wt.CanceledError;Wt.all=function(t){return Promise.all(t)};Wt.spread=hF;Wt.isAxiosError=mF;Wt.mergeConfig=ss;Wt.AxiosHeaders=yo;Wt.formToJSON=e=>zE(q.isHTMLForm(e)?new FormData(e):e);Wt.getAdapter=UE.getAdapter;Wt.HttpStatusCode=gF;Wt.default=Wt;const Lo=Wt,vF=e=>({authorization:`Bearer ${e}`}),yF=async e=>(await Lo.post("/auth/register/",e)).data,xF=async e=>{const t=await Lo.post("/auth/login/",e);return localStorage.setItem("expenseTrackerToken",t.data.token),t.data},bF=async e=>await Lo.get("/user",{headers:vF(e)}),xy={register:yF,login:xF,fetchUser:bF};function wF(e){return Re("MuiSvgIcon",e)}Te("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const SF=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],CF=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(n)}`]};return ke(o,wF,r)},PF=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ue(n.color)}`],t[`fontSize${ue(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,d,f,h,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),YE=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=ne(r,SF),g=p.isValidElement(o)&&o.type==="svg",m=S({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:g}),w={};c||(w.viewBox=f);const v=CF(m);return C.jsxs(PF,S({as:s,className:fe(v.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},w,h,g&&o.props,{ownerState:m,children:[g?o.props.children:o,d?C.jsx("title",{children:d}):null]}))});YE.muiName="SvgIcon";const W1=YE;function wn(e,t){function n(r,o){return C.jsx(W1,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=W1.muiName,p.memo(p.forwardRef(n))}const EF={configure:e=>{Iv.configure(e)}},kF=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ue,createChainedFunction:Hm,createSvgIcon:wn,debounce:Dv,deprecatedPropType:yO,isMuiElement:yl,ownerDocument:Lt,ownerWindow:ui,requirePropFactory:xO,setRef:Kl,unstable_ClassNameGenerator:EF,unstable_useEnhancedEffect:cn,unstable_useId:bu,unsupportedProp:SO,useControlled:Bn,useEventCallback:Ee,useForkRef:ht,useIsFocusVisible:dP},Symbol.toStringTag,{value:"Module"}));var pt={};/** + * @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 by=Symbol.for("react.element"),wy=Symbol.for("react.portal"),fp=Symbol.for("react.fragment"),pp=Symbol.for("react.strict_mode"),hp=Symbol.for("react.profiler"),mp=Symbol.for("react.provider"),gp=Symbol.for("react.context"),RF=Symbol.for("react.server_context"),vp=Symbol.for("react.forward_ref"),yp=Symbol.for("react.suspense"),xp=Symbol.for("react.suspense_list"),bp=Symbol.for("react.memo"),wp=Symbol.for("react.lazy"),TF=Symbol.for("react.offscreen"),KE;KE=Symbol.for("react.module.reference");function Mr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case by:switch(e=e.type,e){case fp:case hp:case pp:case yp:case xp:return e;default:switch(e=e&&e.$$typeof,e){case RF:case gp:case vp:case wp:case bp:case mp:return e;default:return t}}case wy:return t}}}pt.ContextConsumer=gp;pt.ContextProvider=mp;pt.Element=by;pt.ForwardRef=vp;pt.Fragment=fp;pt.Lazy=wp;pt.Memo=bp;pt.Portal=wy;pt.Profiler=hp;pt.StrictMode=pp;pt.Suspense=yp;pt.SuspenseList=xp;pt.isAsyncMode=function(){return!1};pt.isConcurrentMode=function(){return!1};pt.isContextConsumer=function(e){return Mr(e)===gp};pt.isContextProvider=function(e){return Mr(e)===mp};pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===by};pt.isForwardRef=function(e){return Mr(e)===vp};pt.isFragment=function(e){return Mr(e)===fp};pt.isLazy=function(e){return Mr(e)===wp};pt.isMemo=function(e){return Mr(e)===bp};pt.isPortal=function(e){return Mr(e)===wy};pt.isProfiler=function(e){return Mr(e)===hp};pt.isStrictMode=function(e){return Mr(e)===pp};pt.isSuspense=function(e){return Mr(e)===yp};pt.isSuspenseList=function(e){return Mr(e)===xp};pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fp||e===hp||e===pp||e===yp||e===xp||e===TF||typeof e=="object"&&e!==null&&(e.$$typeof===wp||e.$$typeof===bp||e.$$typeof===mp||e.$$typeof===gp||e.$$typeof===vp||e.$$typeof===KE||e.getModuleId!==void 0)};pt.typeOf=Mr;const GE=e=>e.scrollTop;function _d(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function MF(e){return Re("MuiAlert",e)}const $F=Te("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),H1=$F;function OF(e){return Re("MuiIconButton",e)}const DF=Te("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),AF=DF,IF=["edge","children","className","color","disabled","disableFocusRipple","size"],LF=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ue(r)}`,o&&`edge${ue(o)}`,`size${ue(i)}`]};return ke(a,OF,t)},NF=H(rs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${AF.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),_F=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=ne(r,IF),f=S({},r,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),h=LF(f);return C.jsx(NF,S({className:fe(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:f},d,{children:i}))}),Eo=_F,jF=wn(C.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"),FF=wn(C.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),zF=wn(C.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"),BF=wn(C.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"),qE=wn(C.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"),VF=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],UF=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${ue(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ke(i,MF,o)},WF=H(Rr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?ts:ns,r=e.palette.mode==="light"?ns:ts,o=t.color||t.severity;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${H1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${H1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),HF=H("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),YF=H("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Y1=H("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),K1={success:C.jsx(jF,{fontSize:"inherit"}),warning:C.jsx(FF,{fontSize:"inherit"}),error:C.jsx(zF,{fontSize:"inherit"}),info:C.jsx(BF,{fontSize:"inherit"})},KF=p.forwardRef(function(t,n){var r,o,i,a,s,l;const u=we({props:t,name:"MuiAlert"}),{action:c,children:d,className:f,closeText:h="Close",color:g,components:m={},componentsProps:w={},icon:v,iconMapping:y=K1,onClose:x,role:b="alert",severity:P="success",slotProps:k={},slots:E={},variant:T="standard"}=u,A=ne(u,VF),M=S({},u,{color:g,severity:P,variant:T}),O=UF(M),_=(r=(o=E.closeButton)!=null?o:m.CloseButton)!=null?r:Eo,$=(i=(a=E.closeIcon)!=null?a:m.CloseIcon)!=null?i:qE,D=(s=k.closeButton)!=null?s:w.closeButton,R=(l=k.closeIcon)!=null?l:w.closeIcon;return C.jsxs(WF,S({role:b,elevation:0,ownerState:M,className:fe(O.root,f),ref:n},A,{children:[v!==!1?C.jsx(HF,{ownerState:M,className:O.icon,children:v||y[P]||K1[P]}):null,C.jsx(YF,{ownerState:M,className:O.message,children:d}),c!=null?C.jsx(Y1,{ownerState:M,className:O.action,children:c}):null,c==null&&x?C.jsx(Y1,{ownerState:M,className:O.action,children:C.jsx(_,S({size:"small","aria-label":h,title:h,color:"inherit",onClick:x},D,{children:C.jsx($,S({fontSize:"small"},R))}))}):null]}))}),GF=KF;function ls(e){return typeof e=="string"}function qF(e,t,n){return e===void 0||ls(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const XF={disableDefaultClasses:!1},QF=p.createContext(XF);function ZF(e){const{disableDefaultClasses:t}=p.useContext(QF);return n=>t?"":e(n)}function Sy(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function XE(e,t,n){return typeof e=="function"?e(t,n):e}function G1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function JF(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=fe(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),g=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},n,o,r);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const a=Sy(S({},o,r)),s=G1(r),l=G1(o),u=t(a),c=fe(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=S({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=S({},u,n,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const e5=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function yt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ne(e,e5),s=i?{}:XE(r,o),{props:l,internalRef:u}=JF(S({},a,{externalSlotProps:s})),c=ht(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return qF(n,S({},l,{ref:c}),o)}function q1(e){return e.substring(2).toLowerCase()}function t5(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=ht(t.ref,s),d=Ee(g=>{const m=u.current;u.current=!1;const w=Lt(s.current);if(!l.current||!s.current||"clientX"in g&&t5(g,w))return;if(a.current){a.current=!1;return}let v;g.composedPath?v=g.composedPath().indexOf(s.current)>-1:v=!w.documentElement.contains(g.target)||s.current.contains(g.target),!v&&(n||!m)&&o(g)}),f=g=>m=>{u.current=!0;const w=t.props[g];w&&w(m)},h={ref:c};return i!==!1&&(h[i]=f(i)),p.useEffect(()=>{if(i!==!1){const g=q1(i),m=Lt(s.current),w=()=>{a.current=!0};return m.addEventListener(g,d),m.addEventListener("touchmove",w),()=>{m.removeEventListener(g,d),m.removeEventListener("touchmove",w)}}},[d,i]),r!==!1&&(h[r]=f(r)),p.useEffect(()=>{if(r!==!1){const g=q1(r),m=Lt(s.current);return m.addEventListener(g,d),()=>{m.removeEventListener(g,d)}}},[d,r]),C.jsx(p.Fragment,{children:p.cloneElement(t,h)})}const r5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function o5(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 i5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function a5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||i5(e))}function s5(e){const t=[],n=[];return Array.from(e.querySelectorAll(r5)).forEach((r,o)=>{const i=o5(r);i===-1||!a5(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function l5(){return!0}function QE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=s5,isEnabled:a=l5,open:s}=e,l=p.useRef(!1),u=p.useRef(null),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(!1),g=p.useRef(null),m=ht(t.ref,g),w=p.useRef(null);p.useEffect(()=>{!s||!g.current||(h.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!g.current)return;const x=Lt(g.current);return g.current.contains(x.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),p.useEffect(()=>{if(!s||!g.current)return;const x=Lt(g.current),b=E=>{const{current:T}=g;if(T!==null){if(!x.hasFocus()||r||!a()||l.current){l.current=!1;return}if(!T.contains(x.activeElement)){if(E&&f.current!==E.target||x.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let O=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(O=i(g.current)),O.length>0){var A,M;const _=!!((A=w.current)!=null&&A.shiftKey&&((M=w.current)==null?void 0:M.key)==="Tab"),$=O[0],D=O[O.length-1];typeof $!="string"&&typeof D!="string"&&(_?D.focus():$.focus())}else T.focus()}}},P=E=>{w.current=E,!(r||!a()||E.key!=="Tab")&&x.activeElement===g.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())};x.addEventListener("focusin",b),x.addEventListener("keydown",P,!0);const k=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&b(null)},50);return()=>{clearInterval(k),x.removeEventListener("focusin",b),x.removeEventListener("keydown",P,!0)}},[n,r,o,a,s,i]);const v=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0,f.current=x.target;const b=t.props.onFocus;b&&b(x)},y=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0};return C.jsxs(p.Fragment,{children:[C.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:m,onFocus:v}),C.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}var Vn="top",Cr="bottom",Pr="right",Un="left",Cy="auto",Mu=[Vn,Cr,Pr,Un],us="start",ou="end",u5="clippingParents",ZE="viewport",qs="popper",c5="reference",X1=Mu.reduce(function(e,t){return e.concat([t+"-"+us,t+"-"+ou])},[]),JE=[].concat(Mu,[Cy]).reduce(function(e,t){return e.concat([t,t+"-"+us,t+"-"+ou])},[]),d5="beforeRead",f5="read",p5="afterRead",h5="beforeMain",m5="main",g5="afterMain",v5="beforeWrite",y5="write",x5="afterWrite",b5=[d5,f5,p5,h5,m5,g5,v5,y5,x5];function so(e){return e?(e.nodeName||"").toLowerCase():null}function rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gi(e){var t=rr(e).Element;return e instanceof t||e instanceof Element}function xr(e){var t=rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Py(e){if(typeof ShadowRoot>"u")return!1;var t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function w5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!xr(i)||!so(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function S5(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!xr(o)||!so(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const C5={name:"applyStyles",enabled:!0,phase:"write",fn:w5,effect:S5,requires:["computeStyles"]};function io(e){return e.split("-")[0]}var _i=Math.max,jd=Math.min,cs=Math.round;function pg(){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 ek(){return!/^((?!chrome|android).)*safari/i.test(pg())}function ds(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&xr(e)&&(o=e.offsetWidth>0&&cs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&cs(r.height)/e.offsetHeight||1);var a=Gi(e)?rr(e):window,s=a.visualViewport,l=!ek()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function Ey(e){var t=ds(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function tk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Py(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ko(e){return rr(e).getComputedStyle(e)}function P5(e){return["table","td","th"].indexOf(so(e))>=0}function vi(e){return((Gi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sp(e){return so(e)==="html"?e:e.assignedSlot||e.parentNode||(Py(e)?e.host:null)||vi(e)}function Q1(e){return!xr(e)||ko(e).position==="fixed"?null:e.offsetParent}function E5(e){var t=/firefox/i.test(pg()),n=/Trident/i.test(pg());if(n&&xr(e)){var r=ko(e);if(r.position==="fixed")return null}var o=Sp(e);for(Py(o)&&(o=o.host);xr(o)&&["html","body"].indexOf(so(o))<0;){var i=ko(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function $u(e){for(var t=rr(e),n=Q1(e);n&&P5(n)&&ko(n).position==="static";)n=Q1(n);return n&&(so(n)==="html"||so(n)==="body"&&ko(n).position==="static")?t:n||E5(e)||t}function ky(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sl(e,t,n){return _i(e,jd(t,n))}function k5(e,t,n){var r=Sl(e,t,n);return r>n?n:r}function nk(){return{top:0,right:0,bottom:0,left:0}}function rk(e){return Object.assign({},nk(),e)}function ok(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var R5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,rk(typeof t!="number"?t:ok(t,Mu))};function T5(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=io(n.placement),l=ky(s),u=[Un,Pr].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var d=R5(o.padding,n),f=Ey(i),h=l==="y"?Vn:Un,g=l==="y"?Cr:Pr,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],w=a[l]-n.rects.reference[l],v=$u(i),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,x=m/2-w/2,b=d[h],P=y-f[c]-d[g],k=y/2-f[c]/2+x,E=Sl(b,k,P),T=l;n.modifiersData[r]=(t={},t[T]=E,t.centerOffset=E-k,t)}}function M5(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||tk(t.elements.popper,o)&&(t.elements.arrow=o))}const $5={name:"arrow",enabled:!0,phase:"main",fn:T5,effect:M5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fs(e){return e.split("-")[1]}var O5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function D5(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:cs(n*o)/o||0,y:cs(r*o)/o||0}}function Z1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,g=a.y,m=g===void 0?0:g,w=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=w.x,m=w.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),x=Un,b=Vn,P=window;if(u){var k=$u(n),E="clientHeight",T="clientWidth";if(k===rr(n)&&(k=vi(n),ko(k).position!=="static"&&s==="absolute"&&(E="scrollHeight",T="scrollWidth")),k=k,o===Vn||(o===Un||o===Pr)&&i===ou){b=Cr;var A=d&&k===P&&P.visualViewport?P.visualViewport.height:k[E];m-=A-r.height,m*=l?1:-1}if(o===Un||(o===Vn||o===Cr)&&i===ou){x=Pr;var M=d&&k===P&&P.visualViewport?P.visualViewport.width:k[T];h-=M-r.width,h*=l?1:-1}}var O=Object.assign({position:s},u&&O5),_=c===!0?D5({x:h,y:m},rr(n)):{x:h,y:m};if(h=_.x,m=_.y,l){var $;return Object.assign({},O,($={},$[b]=y?"0":"",$[x]=v?"0":"",$.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",$))}return Object.assign({},O,(t={},t[b]=y?m+"px":"",t[x]=v?h+"px":"",t.transform="",t))}function A5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:io(t.placement),variation:fs(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,Z1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const I5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A5,data:{}};var gc={passive:!0};function L5(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=rr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,gc)}),s&&l.addEventListener("resize",n.update,gc),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,gc)}),s&&l.removeEventListener("resize",n.update,gc)}}const N5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:L5,data:{}};var _5={left:"right",right:"left",bottom:"top",top:"bottom"};function td(e){return e.replace(/left|right|bottom|top/g,function(t){return _5[t]})}var j5={start:"end",end:"start"};function J1(e){return e.replace(/start|end/g,function(t){return j5[t]})}function Ry(e){var t=rr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ty(e){return ds(vi(e)).left+Ry(e).scrollLeft}function F5(e,t){var n=rr(e),r=vi(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=ek();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Ty(e),y:l}}function z5(e){var t,n=vi(e),r=Ry(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Ty(e),l=-r.scrollTop;return ko(o||n).direction==="rtl"&&(s+=_i(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function My(e){var t=ko(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ik(e){return["html","body","#document"].indexOf(so(e))>=0?e.ownerDocument.body:xr(e)&&My(e)?e:ik(Sp(e))}function Cl(e,t){var n;t===void 0&&(t=[]);var r=ik(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=rr(r),a=o?[i].concat(i.visualViewport||[],My(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Cl(Sp(a)))}function hg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function B5(e,t){var n=ds(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function eb(e,t,n){return t===ZE?hg(F5(e,n)):Gi(t)?B5(t,n):hg(z5(vi(e)))}function V5(e){var t=Cl(Sp(e)),n=["absolute","fixed"].indexOf(ko(e).position)>=0,r=n&&xr(e)?$u(e):e;return Gi(r)?t.filter(function(o){return Gi(o)&&tk(o,r)&&so(o)!=="body"}):[]}function U5(e,t,n,r){var o=t==="clippingParents"?V5(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=eb(e,u,r);return l.top=_i(c.top,l.top),l.right=jd(c.right,l.right),l.bottom=jd(c.bottom,l.bottom),l.left=_i(c.left,l.left),l},eb(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ak(e){var t=e.reference,n=e.element,r=e.placement,o=r?io(r):null,i=r?fs(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Vn:l={x:a,y:t.y-n.height};break;case Cr:l={x:a,y:t.y+t.height};break;case Pr:l={x:t.x+t.width,y:s};break;case Un:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?ky(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case us:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ou:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function iu(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?u5:s,u=n.rootBoundary,c=u===void 0?ZE:u,d=n.elementContext,f=d===void 0?qs:d,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,w=m===void 0?0:m,v=rk(typeof w!="number"?w:ok(w,Mu)),y=f===qs?c5:qs,x=e.rects.popper,b=e.elements[g?y:f],P=U5(Gi(b)?b:b.contextElement||vi(e.elements.popper),l,c,a),k=ds(e.elements.reference),E=ak({reference:k,element:x,strategy:"absolute",placement:o}),T=hg(Object.assign({},x,E)),A=f===qs?T:k,M={top:P.top-A.top+v.top,bottom:A.bottom-P.bottom+v.bottom,left:P.left-A.left+v.left,right:A.right-P.right+v.right},O=e.modifiersData.offset;if(f===qs&&O){var _=O[o];Object.keys(M).forEach(function($){var D=[Pr,Cr].indexOf($)>=0?1:-1,R=[Vn,Cr].indexOf($)>=0?"y":"x";M[$]+=_[R]*D})}return M}function W5(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?JE:l,c=fs(r),d=c?s?X1:X1.filter(function(g){return fs(g)===c}):Mu,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var h=f.reduce(function(g,m){return g[m]=iu(e,{placement:m,boundary:o,rootBoundary:i,padding:a})[io(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function H5(e){if(io(e)===Cy)return[];var t=td(e);return[J1(e),t,J1(t)]}function Y5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,m=n.allowedAutoPlacements,w=t.options.placement,v=io(w),y=v===w,x=l||(y||!g?[td(w)]:H5(w)),b=[w].concat(x).reduce(function(B,te){return B.concat(io(te)===Cy?W5(t,{placement:te,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:m}):te)},[]),P=t.rects.reference,k=t.rects.popper,E=new Map,T=!0,A=b[0],M=0;M=0,R=D?"width":"height",N=iu(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),j=D?$?Pr:Un:$?Cr:Vn;P[R]>k[R]&&(j=td(j));var I=td(j),L=[];if(i&&L.push(N[_]<=0),s&&L.push(N[j]<=0,N[I]<=0),L.every(function(B){return B})){A=O,T=!1;break}E.set(O,L)}if(T)for(var F=g?3:1,K=function(te){var J=b.find(function(G){var se=E.get(G);if(se)return se.slice(0,te).every(function(pe){return pe})});if(J)return A=J,"break"},ae=F;ae>0;ae--){var ie=K(ae);if(ie==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const K5={name:"flip",enabled:!0,phase:"main",fn:Y5,requiresIfExists:["offset"],data:{_skip:!1}};function tb(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function nb(e){return[Vn,Pr,Cr,Un].some(function(t){return e[t]>=0})}function G5(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=iu(t,{elementContext:"reference"}),s=iu(t,{altBoundary:!0}),l=tb(a,r),u=tb(s,o,i),c=nb(l),d=nb(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const q5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:G5};function X5(e,t,n){var r=io(e),o=[Un,Vn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Un,Pr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Q5(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=JE.reduce(function(c,d){return c[d]=X5(d,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Z5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Q5};function J5(e){var t=e.state,n=e.name;t.modifiersData[n]=ak({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ez={name:"popperOffsets",enabled:!0,phase:"read",fn:J5,data:{}};function tz(e){return e==="x"?"y":"x"}function nz(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,w=iu(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=io(t.placement),y=fs(t.placement),x=!y,b=ky(v),P=tz(b),k=t.modifiersData.popperOffsets,E=t.rects.reference,T=t.rects.popper,A=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,M=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(i){var $,D=b==="y"?Vn:Un,R=b==="y"?Cr:Pr,N=b==="y"?"height":"width",j=k[b],I=j+w[D],L=j-w[R],F=h?-T[N]/2:0,K=y===us?E[N]:T[N],ae=y===us?-T[N]:-E[N],ie=t.elements.arrow,B=h&&ie?Ey(ie):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nk(),J=te[D],G=te[R],se=Sl(0,E[N],B[N]),pe=x?E[N]/2-F-se-J-M.mainAxis:K-se-J-M.mainAxis,le=x?-E[N]/2+F+se+G+M.mainAxis:ae+se+G+M.mainAxis,re=t.elements.arrow&&$u(t.elements.arrow),ee=re?b==="y"?re.clientTop||0:re.clientLeft||0:0,oe=($=O==null?void 0:O[b])!=null?$:0,me=j+pe-oe-ee,V=j+le-oe,ge=Sl(h?jd(I,me):I,j,h?_i(L,V):L);k[b]=ge,_[b]=ge-j}if(s){var X,he=b==="x"?Vn:Un,be=b==="x"?Cr:Pr,$e=k[P],Le=P==="y"?"height":"width",Ue=$e+w[he],et=$e-w[be],Be=[Vn,Un].indexOf(v)!==-1,tt=(X=O==null?void 0:O[P])!=null?X:0,xt=Be?Ue:$e-E[Le]-T[Le]-tt+M.altAxis,Ye=Be?$e+E[Le]+T[Le]-tt-M.altAxis:et,Se=h&&Be?k5(xt,$e,Ye):Sl(h?xt:Ue,$e,h?Ye:et);k[P]=Se,_[P]=Se-$e}t.modifiersData[r]=_}}const rz={name:"preventOverflow",enabled:!0,phase:"main",fn:nz,requiresIfExists:["offset"]};function oz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iz(e){return e===rr(e)||!xr(e)?Ry(e):oz(e)}function az(e){var t=e.getBoundingClientRect(),n=cs(t.width)/e.offsetWidth||1,r=cs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sz(e,t,n){n===void 0&&(n=!1);var r=xr(t),o=xr(t)&&az(t),i=vi(t),a=ds(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((so(t)!=="body"||My(i))&&(s=iz(t)),xr(t)?(l=ds(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ty(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function lz(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function uz(e){var t=lz(e);return b5.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function cz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dz(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var rb={placement:"bottom",modifiers:[],strategy:"absolute"};function ob(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(mz(o)||document.body)},[o,i]),cn(()=>{if(a&&!i)return Kl(n,a),()=>{Kl(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const u={ref:l};return p.cloneElement(r,u)}return C.jsx(p.Fragment,{children:r})}return C.jsx(p.Fragment,{children:a&&ri.createPortal(r,a)})});function gz(e){return Re("MuiPopper",e)}Te("MuiPopper",["root"]);const vz=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],yz=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function xz(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 mg(e){return typeof e=="function"?e():e}function bz(e){return e.nodeType!==void 0}const wz=()=>ke({root:["root"]},ZF(gz)),Sz={},Cz=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:h={},slots:g={},TransitionProps:m}=t,w=ne(t,vz),v=p.useRef(null),y=ht(v,n),x=p.useRef(null),b=ht(x,f),P=p.useRef(b);cn(()=>{P.current=b},[b]),p.useImperativeHandle(f,()=>x.current,[]);const k=xz(c,a),[E,T]=p.useState(k),[A,M]=p.useState(mg(o));p.useEffect(()=>{x.current&&x.current.forceUpdate()}),p.useEffect(()=>{o&&M(mg(o))},[o]),cn(()=>{if(!A||!u)return;const R=I=>{T(I.placement)};let N=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{R(I)}}];l!=null&&(N=N.concat(l)),d&&d.modifiers!=null&&(N=N.concat(d.modifiers));const j=hz(A,v.current,S({placement:k},d,{modifiers:N}));return P.current(j),()=>{j.destroy(),P.current(null)}},[A,s,l,u,d,k]);const O={placement:E};m!==null&&(O.TransitionProps=m);const _=wz(),$=(r=g.root)!=null?r:"div",D=yt({elementType:$,externalSlotProps:h.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:_.root});return C.jsx($,S({},D,{children:typeof i=="function"?i(O):i}))}),Pz=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=Sz,popperRef:h,style:g,transition:m=!1,slotProps:w={},slots:v={}}=t,y=ne(t,yz),[x,b]=p.useState(!0),P=()=>{b(!1)},k=()=>{b(!0)};if(!l&&!c&&(!m||x))return null;let E;if(i)E=i;else if(r){const M=mg(r);E=M&&bz(M)?Lt(M).body:Lt(null).body}const T=!c&&l&&(!m||x)?"none":void 0,A=m?{in:c,onEnter:P,onExited:k}:void 0;return C.jsx(sk,{disablePortal:s,container:E,children:C.jsx(Cz,S({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:m?!x:c,placement:d,popperOptions:f,popperRef:h,slotProps:w,slots:v},y,{style:S({position:"fixed",top:0,left:0,display:T},g),TransitionProps:A,children:o}))})});function Ez(e){const t=Lt(e);return t.body===e?ui(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Pl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ib(e){return parseInt(ui(e).getComputedStyle(e).paddingRight,10)||0}function kz(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ab(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!kz(a);s&&l&&Pl(a,o)})}function Dh(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Rz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Ez(r)){const a=fP(Lt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ib(r)+a}px`;const s=Lt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${ib(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Lt(r).body;else{const a=r.parentElement,s=ui(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function Tz(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Mz{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Pl(t.modalRef,!1);const o=Tz(n);ab(n,t.mount,t.modalRef,o,!0);const i=Dh(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Dh(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Rz(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Dh(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Pl(t.modalRef,n),ab(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Pl(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function $z(e){return typeof e=="function"?e():e}function Oz(e){return e?e.props.hasOwnProperty("in"):!1}const Dz=new Mz;function Az(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Dz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,f=p.useRef({}),h=p.useRef(null),g=p.useRef(null),m=ht(g,d),[w,v]=p.useState(!c),y=Oz(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const b=()=>Lt(h.current),P=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),k=()=>{o.mount(P(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},E=Ee(()=>{const N=$z(t)||b().body;o.add(P(),N),g.current&&k()}),T=p.useCallback(()=>o.isTopModal(P()),[o]),A=Ee(N=>{h.current=N,N&&(c&&T()?k():g.current&&Pl(g.current,x))}),M=p.useCallback(()=>{o.remove(P(),x)},[x,o]);p.useEffect(()=>()=>{M()},[M]),p.useEffect(()=>{c?E():(!y||!i)&&M()},[c,M,y,i,E]);const O=N=>j=>{var I;(I=N.onKeyDown)==null||I.call(N,j),!(j.key!=="Escape"||!T())&&(n||(j.stopPropagation(),u&&u(j,"escapeKeyDown")))},_=N=>j=>{var I;(I=N.onClick)==null||I.call(N,j),j.target===j.currentTarget&&u&&u(j,"backdropClick")};return{getRootProps:(N={})=>{const j=Sy(e);delete j.onTransitionEnter,delete j.onTransitionExited;const I=S({},j,N);return S({role:"presentation"},I,{onKeyDown:O(I),ref:m})},getBackdropProps:(N={})=>{const j=N;return S({"aria-hidden":!0},j,{onClick:_(j),open:c})},getTransitionProps:()=>{const N=()=>{v(!1),a&&a()},j=()=>{v(!0),s&&s(),i&&M()};return{onEnter:Hm(N,l.props.onEnter),onExited:Hm(j,l.props.onExited)}},rootRef:m,portalRef:A,isTopModal:T,exited:w,hasTransition:y}}function Iz(e){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=p.useRef();p.useEffect(()=>{if(!o)return;function v(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(r==null||r(y,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const s=Ee((v,y)=>{r==null||r(v,y)}),l=Ee(v=>{!r||v==null||(clearTimeout(a.current),a.current=setTimeout(()=>{s(null,"timeout")},v))});p.useEffect(()=>(o&&l(t),()=>{clearTimeout(a.current)}),[o,t,l]);const u=v=>{r==null||r(v,"clickaway")},c=()=>{clearTimeout(a.current)},d=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=v=>y=>{const x=v.onBlur;x==null||x(y),d()},h=v=>y=>{const x=v.onFocus;x==null||x(y),c()},g=v=>y=>{const x=v.onMouseEnter;x==null||x(y),c()},m=v=>y=>{const x=v.onMouseLeave;x==null||x(y),d()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",c)}},[n,d,o]),{getRootProps:(v={})=>{const y=Sy(e),x=S({},y,v);return S({role:"presentation"},x,{onBlur:f(x),onFocus:h(x),onMouseEnter:g(x),onMouseLeave:m(x)})},onClickAway:u}}const Lz=["onChange","maxRows","minRows","style","value"];function vc(e){return parseInt(e,10)||0}const Nz={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function sb(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const _z=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=ne(t,Lz),{current:u}=p.useRef(s!=null),c=p.useRef(null),d=ht(n,c),f=p.useRef(null),h=p.useRef(0),[g,m]=p.useState({outerHeightStyle:0}),w=p.useCallback(()=>{const P=c.current,E=ui(P).getComputedStyle(P);if(E.width==="0px")return{outerHeightStyle:0};const T=f.current;T.style.width=E.width,T.value=P.value||t.placeholder||"x",T.value.slice(-1)===` +`&&(T.value+=" ");const A=E.boxSizing,M=vc(E.paddingBottom)+vc(E.paddingTop),O=vc(E.borderBottomWidth)+vc(E.borderTopWidth),_=T.scrollHeight;T.value="x";const $=T.scrollHeight;let D=_;i&&(D=Math.max(Number(i)*$,D)),o&&(D=Math.min(Number(o)*$,D)),D=Math.max(D,$);const R=D+(A==="border-box"?M+O:0),N=Math.abs(D-_)<=1;return{outerHeightStyle:R,overflow:N}},[o,i,t.placeholder]),v=(P,k)=>{const{outerHeightStyle:E,overflow:T}=k;return h.current<20&&(E>0&&Math.abs((P.outerHeightStyle||0)-E)>1||P.overflow!==T)?(h.current+=1,{overflow:T,outerHeightStyle:E}):P},y=p.useCallback(()=>{const P=w();sb(P)||m(k=>v(k,P))},[w]),x=()=>{const P=w();sb(P)||ri.flushSync(()=>{m(k=>v(k,P))})};p.useEffect(()=>{const P=()=>{h.current=0,c.current&&x()},k=Dv(()=>{h.current=0,c.current&&x()});let E;const T=c.current,A=ui(T);return A.addEventListener("resize",k),typeof ResizeObserver<"u"&&(E=new ResizeObserver(P),E.observe(T)),()=>{k.clear(),A.removeEventListener("resize",k),E&&E.disconnect()}}),cn(()=>{y()}),p.useEffect(()=>{h.current=0},[s]);const b=P=>{h.current=0,u||y(),r&&r(P)};return C.jsxs(p.Fragment,{children:[C.jsx("textarea",S({value:s,onChange:b,ref:d,rows:i,style:S({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},a)},l)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:S({},Nz.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function lb(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function jz(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=lb(c));const d=c?s.filter(f=>{let h=(i||u)(f);return n&&(h=h.toLowerCase()),t&&(h=lb(h)),o==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function Ah(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Bz(e){const{unstable_isActiveElementInListbox:t=zz,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:m=!1,filterOptions:w=Fz,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionLabel:b=Y=>{var W;return(W=Y.label)!=null?W:Y},groupBy:P,handleHomeEndKeys:k=!e.freeSolo,id:E,includeInputInList:T=!1,inputValue:A,isOptionEqualToValue:M=(Y,W)=>Y===W,multiple:O=!1,onChange:_,onClose:$,onHighlightChange:D,onInputChange:R,onOpen:N,open:j,openOnFocus:I=!1,options:L,readOnly:F=!1,selectOnFocus:K=!e.freeSolo,value:ae}=e,ie=bu(E);let B=b;B=Y=>{const W=b(Y);return typeof W!="string"?String(W):W};const te=p.useRef(!1),J=p.useRef(!0),G=p.useRef(null),se=p.useRef(null),[pe,le]=p.useState(null),[re,ee]=p.useState(-1),oe=o?0:-1,me=p.useRef(oe),[V,ge]=Bn({controlled:ae,default:c,name:u}),[X,he]=Bn({controlled:A,default:"",name:u,state:"inputValue"}),[be,$e]=p.useState(!1),Le=p.useCallback((Y,W)=>{if(!(O?V.length!(v&&(O?V:[V]).some(W=>W!==null&&M(Y,W)))),{inputValue:xt&&Be?"":X,getOptionLabel:B}):[],Ce=$O({filteredOptions:Se,value:V,inputValue:X});p.useEffect(()=>{const Y=V!==Ce.value;be&&!Y||y&&!Y||Le(null,V)},[V,Le,be,Ce.value,y]);const zt=Ue&&Se.length>0&&!F,rn=Ee(Y=>{Y===-1?G.current.focus():pe.querySelector(`[data-tag-index="${Y}"]`).focus()});p.useEffect(()=>{O&&re>V.length-1&&(ee(-1),rn(-1))},[V,O,re,rn]);function Oe(Y,W){if(!se.current||Y===-1)return-1;let Z=Y;for(;;){if(W==="next"&&Z===Se.length||W==="previous"&&Z===-1)return-1;const xe=se.current.querySelector(`[data-option-index="${Z}"]`),We=g?!1:!xe||xe.disabled||xe.getAttribute("aria-disabled")==="true";if(xe&&!xe.hasAttribute("tabindex")||We)Z+=W==="next"?1:-1;else return Z}}const je=Ee(({event:Y,index:W,reason:Z="auto"})=>{if(me.current=W,W===-1?G.current.removeAttribute("aria-activedescendant"):G.current.setAttribute("aria-activedescendant",`${ie}-option-${W}`),D&&D(Y,W===-1?null:Se[W],Z),!se.current)return;const xe=se.current.querySelector(`[role="option"].${n}-focused`);xe&&(xe.classList.remove(`${n}-focused`),xe.classList.remove(`${n}-focusVisible`));let We=se.current;if(se.current.getAttribute("role")!=="listbox"&&(We=se.current.parentElement.querySelector('[role="listbox"]')),!We)return;if(W===-1){We.scrollTop=0;return}const _t=se.current.querySelector(`[data-option-index="${W}"]`);if(_t&&(_t.classList.add(`${n}-focused`),Z==="keyboard"&&_t.classList.add(`${n}-focusVisible`),We.scrollHeight>We.clientHeight&&Z!=="mouse"&&Z!=="touch")){const Yt=_t,Wr=We.clientHeight+We.scrollTop,f0=Yt.offsetTop+Yt.offsetHeight;f0>Wr?We.scrollTop=f0-We.clientHeight:Yt.offsetTop-Yt.offsetHeight*(P?1.3:0){if(!Ye)return;const _t=Oe((()=>{const Yt=Se.length-1;if(W==="reset")return oe;if(W==="start")return 0;if(W==="end")return Yt;const Wr=me.current+W;return Wr<0?Wr===-1&&T?-1:m&&me.current!==-1||Math.abs(W)>1?0:Yt:Wr>Yt?Wr===Yt+1&&T?-1:m||Math.abs(W)>1?Yt:0:Wr})(),Z);if(je({index:_t,reason:xe,event:Y}),r&&W!=="reset")if(_t===-1)G.current.value=X;else{const Yt=B(Se[_t]);G.current.value=Yt,Yt.toLowerCase().indexOf(X.toLowerCase())===0&&X.length>0&&G.current.setSelectionRange(X.length,Yt.length)}}),U=()=>{const Y=(W,Z)=>{const xe=W?B(W):"",We=Z?B(Z):"";return xe===We};if(me.current!==-1&&Ce.filteredOptions&&Ce.filteredOptions.length!==Se.length&&Ce.inputValue===X&&(O?V.length===Ce.value.length&&Ce.value.every((W,Z)=>B(V[Z])===B(W)):Y(Ce.value,V))){const W=Ce.filteredOptions[me.current];if(W&&Se.some(xe=>B(xe)===B(W)))return!0}return!1},Q=p.useCallback(()=>{if(!Ye||U())return;const Y=O?V[0]:V;if(Se.length===0||Y==null){z({diff:"reset"});return}if(se.current){if(Y!=null){const W=Se[me.current];if(O&&W&&Ah(V,xe=>M(W,xe))!==-1)return;const Z=Ah(Se,xe=>M(xe,Y));Z===-1?z({diff:"reset"}):je({index:Z});return}if(me.current>=Se.length-1){je({index:Se.length-1});return}je({index:me.current})}},[Se.length,O?!1:V,v,z,je,Ye,X,O]),ve=Ee(Y=>{Kl(se,Y),Y&&Q()});p.useEffect(()=>{Q()},[Q]);const Ie=Y=>{Ue||(et(!0),tt(!0),N&&N(Y))},De=(Y,W)=>{Ue&&(et(!1),$&&$(Y,W))},Ae=(Y,W,Z,xe)=>{if(O){if(V.length===W.length&&V.every((We,_t)=>We===W[_t]))return}else if(V===W)return;_&&_(Y,W,Z,xe),ge(W)},Me=p.useRef(!1),ye=(Y,W,Z="selectOption",xe="options")=>{let We=Z,_t=W;if(O){_t=Array.isArray(V)?V.slice():[];const Yt=Ah(_t,Wr=>M(W,Wr));Yt===-1?_t.push(W):xe!=="freeSolo"&&(_t.splice(Yt,1),We="removeOption")}Le(Y,_t),Ae(Y,_t,We,{option:W}),!f&&(!Y||!Y.ctrlKey&&!Y.metaKey)&&De(Y,We),(a===!0||a==="touch"&&Me.current||a==="mouse"&&!Me.current)&&G.current.blur()};function Qe(Y,W){if(Y===-1)return-1;let Z=Y;for(;;){if(W==="next"&&Z===V.length||W==="previous"&&Z===-1)return-1;const xe=pe.querySelector(`[data-tag-index="${Z}"]`);if(!xe||!xe.hasAttribute("tabindex")||xe.disabled||xe.getAttribute("aria-disabled")==="true")Z+=W==="next"?1:-1;else return Z}}const _e=(Y,W)=>{if(!O)return;X===""&&De(Y,"toggleInput");let Z=re;re===-1?X===""&&W==="previous"&&(Z=V.length-1):(Z+=W==="next"?1:-1,Z<0&&(Z=0),Z===V.length&&(Z=-1)),Z=Qe(Z,W),ee(Z),rn(Z)},Fe=Y=>{te.current=!0,he(""),R&&R(Y,"","clear"),Ae(Y,O?[]:null,"clear")},ot=Y=>W=>{if(Y.onKeyDown&&Y.onKeyDown(W),!W.defaultMuiPrevented&&(re!==-1&&["ArrowLeft","ArrowRight"].indexOf(W.key)===-1&&(ee(-1),rn(-1)),W.which!==229))switch(W.key){case"Home":Ye&&k&&(W.preventDefault(),z({diff:"start",direction:"next",reason:"keyboard",event:W}));break;case"End":Ye&&k&&(W.preventDefault(),z({diff:"end",direction:"previous",reason:"keyboard",event:W}));break;case"PageUp":W.preventDefault(),z({diff:-ub,direction:"previous",reason:"keyboard",event:W}),Ie(W);break;case"PageDown":W.preventDefault(),z({diff:ub,direction:"next",reason:"keyboard",event:W}),Ie(W);break;case"ArrowDown":W.preventDefault(),z({diff:1,direction:"next",reason:"keyboard",event:W}),Ie(W);break;case"ArrowUp":W.preventDefault(),z({diff:-1,direction:"previous",reason:"keyboard",event:W}),Ie(W);break;case"ArrowLeft":_e(W,"previous");break;case"ArrowRight":_e(W,"next");break;case"Enter":if(me.current!==-1&&Ye){const Z=Se[me.current],xe=x?x(Z):!1;if(W.preventDefault(),xe)return;ye(W,Z,"selectOption"),r&&G.current.setSelectionRange(G.current.value.length,G.current.value.length)}else y&&X!==""&&xt===!1&&(O&&W.preventDefault(),ye(W,X,"createOption","freeSolo"));break;case"Escape":Ye?(W.preventDefault(),W.stopPropagation(),De(W,"escape")):l&&(X!==""||O&&V.length>0)&&(W.preventDefault(),W.stopPropagation(),Fe(W));break;case"Backspace":if(O&&!F&&X===""&&V.length>0){const Z=re===-1?V.length-1:re,xe=V.slice();xe.splice(Z,1),Ae(W,xe,"removeOption",{option:V[Z]})}break;case"Delete":if(O&&!F&&X===""&&V.length>0&&re!==-1){const Z=re,xe=V.slice();xe.splice(Z,1),Ae(W,xe,"removeOption",{option:V[Z]})}break}},it=Y=>{$e(!0),I&&!te.current&&Ie(Y)},$r=Y=>{if(t(se)){G.current.focus();return}$e(!1),J.current=!0,te.current=!1,i&&me.current!==-1&&Ye?ye(Y,Se[me.current],"blur"):i&&y&&X!==""?ye(Y,X,"blur","freeSolo"):s&&Le(Y,V),De(Y,"blur")},Kn=Y=>{const W=Y.target.value;X!==W&&(he(W),tt(!1),R&&R(Y,W,"input")),W===""?!d&&!O&&Ae(Y,null,"clear"):Ie(Y)},Tt=Y=>{const W=Number(Y.currentTarget.getAttribute("data-option-index"));me.current!==W&&je({event:Y,index:W,reason:"mouse"})},Mt=Y=>{je({event:Y,index:Number(Y.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Me.current=!0},Nt=Y=>{const W=Number(Y.currentTarget.getAttribute("data-option-index"));ye(Y,Se[W],"selectOption"),Me.current=!1},lr=Y=>W=>{const Z=V.slice();Z.splice(Y,1),Ae(W,Z,"removeOption",{option:V[Y]})},uo=Y=>{Ue?De(Y,"toggleInput"):Ie(Y)},ea=Y=>{Y.currentTarget.contains(Y.target)&&Y.target.getAttribute("id")!==ie&&Y.preventDefault()},xi=Y=>{Y.currentTarget.contains(Y.target)&&(G.current.focus(),K&&J.current&&G.current.selectionEnd-G.current.selectionStart===0&&G.current.select(),J.current=!1)},No=Y=>{!h&&(X===""||!Ue)&&uo(Y)};let qe=y&&X.length>0;qe=qe||(O?V.length>0:V!==null);let Zt=Se;return P&&(Zt=Se.reduce((Y,W,Z)=>{const xe=P(W);return Y.length>0&&Y[Y.length-1].group===xe?Y[Y.length-1].options.push(W):Y.push({key:Z,index:Z,group:xe,options:[W]}),Y},[])),h&&be&&$r(),{getRootProps:(Y={})=>S({"aria-owns":zt?`${ie}-listbox`:null},Y,{onKeyDown:ot(Y),onMouseDown:ea,onClick:xi}),getInputLabelProps:()=>({id:`${ie}-label`,htmlFor:ie}),getInputProps:()=>({id:ie,value:X,onBlur:$r,onFocus:it,onChange:Kn,onMouseDown:No,"aria-activedescendant":Ye?"":null,"aria-autocomplete":r?"both":"list","aria-controls":zt?`${ie}-listbox`:void 0,"aria-expanded":zt,autoComplete:"off",ref:G,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,onClick:Fe}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:uo}),getTagProps:({index:Y})=>S({key:Y,"data-tag-index":Y,tabIndex:-1},!F&&{onDelete:lr(Y)}),getListboxProps:()=>({role:"listbox",id:`${ie}-listbox`,"aria-labelledby":`${ie}-label`,ref:ve,onMouseDown:Y=>{Y.preventDefault()}}),getOptionProps:({index:Y,option:W})=>{const Z=(O?V:[V]).some(We=>We!=null&&M(W,We)),xe=x?x(W):!1;return{key:B(W),tabIndex:-1,role:"option",id:`${ie}-option-${Y}`,onMouseMove:Tt,onClick:Nt,onTouchStart:Mt,"data-option-index":Y,"aria-disabled":xe,"aria-selected":Z}},id:ie,inputValue:X,value:V,dirty:qe,expanded:Ye&&pe,popupOpen:Ye,focused:be||re!==-1,anchorEl:pe,setAnchorEl:le,focusedTag:re,groupedOptions:Zt}}const Vz=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Uz=H(Pz,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wz=p.forwardRef(function(t,n){var r;const o=zf(),i=we({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:g,placement:m,popperOptions:w,popperRef:v,transition:y,slots:x,slotProps:b}=i,P=ne(i,Vz),k=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,E=S({anchorEl:a,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:g,placement:m,popperOptions:w,popperRef:v,transition:y},P);return C.jsx(Uz,S({as:s,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:b??u},E,{ref:n}))}),Cp=Wz;function Hz(e){return Re("MuiListSubheader",e)}Te("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Yz=["className","color","component","disableGutters","disableSticky","inset"],Kz=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${ue(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return ke(a,Hz,t)},Gz=H("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>S({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),lk=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=ne(r,Yz),d=S({},r,{color:i,component:a,disableGutters:s,disableSticky:l,inset:u}),f=Kz(d);return C.jsx(Gz,S({as:a,className:fe(f.root,o),ref:n,ownerState:d},c))});lk.muiSkipListHighlight=!0;const qz=lk,Xz=wn(C.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 Qz(e){return Re("MuiChip",e)}const Zz=Te("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),nt=Zz,Jz=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],e4=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${ue(r)}`,`color${ue(o)}`,s&&"clickable",s&&`clickableColor${ue(o)}`,a&&"deletable",a&&`deletableColor${ue(o)}`,`${l}${ue(o)}`],label:["label",`label${ue(r)}`],avatar:["avatar",`avatar${ue(r)}`,`avatarColor${ue(o)}`],icon:["icon",`icon${ue(r)}`,`iconColor${ue(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(r)}`,`deleteIconColor${ue(o)}`,`deleteIcon${ue(l)}Color${ue(o)}`]};return ke(u,Qz,t)},t4=H("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${nt.avatar}`]:t.avatar},{[`& .${nt.avatar}`]:t[`avatar${ue(s)}`]},{[`& .${nt.avatar}`]:t[`avatarColor${ue(r)}`]},{[`& .${nt.icon}`]:t.icon},{[`& .${nt.icon}`]:t[`icon${ue(s)}`]},{[`& .${nt.icon}`]:t[`iconColor${ue(o)}`]},{[`& .${nt.deleteIcon}`]:t.deleteIcon},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${ue(s)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIconColor${ue(r)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${ue(l)}Color${ue(r)}`]},t.root,t[`size${ue(s)}`],t[`color${ue(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ue(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ue(r)}`],t[l],t[`${l}${ue(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${nt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${nt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nt.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${nt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ge(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)`:Ge(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ge(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ge(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ge(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ge(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${nt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nt.avatar}`]:{marginLeft:4},[`& .${nt.avatarSmall}`]:{marginLeft:2},[`& .${nt.icon}`]:{marginLeft:4},[`& .${nt.iconSmall}`]:{marginLeft:2},[`& .${nt.deleteIcon}`]:{marginRight:5},[`& .${nt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ge(e.palette[t.color].main,.7)}`,[`&.${nt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ge(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${nt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ge(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),n4=H("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ue(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function cb(e){return e.key==="Backspace"||e.key==="Delete"}const r4=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:h,onDelete:g,onKeyDown:m,onKeyUp:w,size:v="medium",variant:y="filled",tabIndex:x,skipFocusWhenDisabled:b=!1}=r,P=ne(r,Jz),k=p.useRef(null),E=ht(k,n),T=L=>{L.stopPropagation(),g&&g(L)},A=L=>{L.currentTarget===L.target&&cb(L)&&L.preventDefault(),m&&m(L)},M=L=>{L.currentTarget===L.target&&(g&&cb(L)?g(L):L.key==="Escape"&&k.current&&k.current.blur()),w&&w(L)},O=a!==!1&&h?!0:a,_=O||g?rs:l||"div",$=S({},r,{component:_,disabled:c,size:v,color:s,iconColor:p.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:O,variant:y}),D=e4($),R=_===rs?S({component:l||"div",focusVisibleClassName:D.focusVisible},g&&{disableRipple:!0}):{};let N=null;g&&(N=u&&p.isValidElement(u)?p.cloneElement(u,{className:fe(u.props.className,D.deleteIcon),onClick:T}):C.jsx(Xz,{className:fe(D.deleteIcon),onClick:T}));let j=null;o&&p.isValidElement(o)&&(j=p.cloneElement(o,{className:fe(D.avatar,o.props.className)}));let I=null;return d&&p.isValidElement(d)&&(I=p.cloneElement(d,{className:fe(D.icon,d.props.className)})),C.jsxs(t4,S({as:_,className:fe(D.root,i),disabled:O&&c?!0:void 0,onClick:h,onKeyDown:A,onKeyUp:M,ref:E,tabIndex:b&&c?-1:x,ownerState:$},R,P,{children:[j||I,C.jsx(n4,{className:fe(D.label),ownerState:$,children:f}),N]}))}),uk=r4;function Rs({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const o4=p.createContext(void 0),Pp=o4;function Qi(){return p.useContext(Pp)}function ck(e){return C.jsx(ID,S({},e,{defaultTheme:Uf,themeId:Hi}))}function db(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Fd(e,t=!1){return e&&(db(e.value)&&e.value!==""||t&&db(e.defaultValue)&&e.defaultValue!=="")}function i4(e){return e.startAdornment}function a4(e){return Re("MuiInputBase",e)}const s4=Te("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qn=s4,l4=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ep=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ue(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kp=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},u4=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:h,type:g}=e,m={root:["root",`color${ue(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${ue(f)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ke(m,a4,t)},Rp=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ep})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${qn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Tp=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${qn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${qn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),c4=C.jsx(ck,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),d4=p.forwardRef(function(t,n){var r;const o=we({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:g,fullWidth:m=!1,id:w,inputComponent:v="input",inputProps:y={},inputRef:x,maxRows:b,minRows:P,multiline:k=!1,name:E,onBlur:T,onChange:A,onClick:M,onFocus:O,onKeyDown:_,onKeyUp:$,placeholder:D,readOnly:R,renderSuffix:N,rows:j,slotProps:I={},slots:L={},startAdornment:F,type:K="text",value:ae}=o,ie=ne(o,l4),B=y.value!=null?y.value:ae,{current:te}=p.useRef(B!=null),J=p.useRef(),G=p.useCallback(Se=>{},[]),se=ht(J,x,y.ref,G),[pe,le]=p.useState(!1),re=Qi(),ee=Rs({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ee.focused=re?re.focused:pe,p.useEffect(()=>{!re&&f&&pe&&(le(!1),T&&T())},[re,f,pe,T]);const oe=re&&re.onFilled,me=re&&re.onEmpty,V=p.useCallback(Se=>{Fd(Se)?oe&&oe():me&&me()},[oe,me]);cn(()=>{te&&V({value:B})},[B,V,te]);const ge=Se=>{if(ee.disabled){Se.stopPropagation();return}O&&O(Se),y.onFocus&&y.onFocus(Se),re&&re.onFocus?re.onFocus(Se):le(!0)},X=Se=>{T&&T(Se),y.onBlur&&y.onBlur(Se),re&&re.onBlur?re.onBlur(Se):le(!1)},he=(Se,...Ce)=>{if(!te){const zt=Se.target||J.current;if(zt==null)throw new Error(li(1));V({value:zt.value})}y.onChange&&y.onChange(Se,...Ce),A&&A(Se,...Ce)};p.useEffect(()=>{V(J.current)},[]);const be=Se=>{J.current&&Se.currentTarget===Se.target&&J.current.focus(),M&&M(Se)};let $e=v,Le=y;k&&$e==="input"&&(j?Le=S({type:void 0,minRows:j,maxRows:j},Le):Le=S({type:void 0,maxRows:b,minRows:P},Le),$e=_z);const Ue=Se=>{V(Se.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};p.useEffect(()=>{re&&re.setAdornedStart(!!F)},[re,F]);const et=S({},o,{color:ee.color||"primary",disabled:ee.disabled,endAdornment:g,error:ee.error,focused:ee.focused,formControl:re,fullWidth:m,hiddenLabel:ee.hiddenLabel,multiline:k,size:ee.size,startAdornment:F,type:K}),Be=u4(et),tt=L.root||u.Root||Rp,xt=I.root||c.root||{},Ye=L.input||u.Input||Tp;return Le=S({},Le,(r=I.input)!=null?r:c.input),C.jsxs(p.Fragment,{children:[!h&&c4,C.jsxs(tt,S({},xt,!ls(tt)&&{ownerState:S({},et,xt.ownerState)},{ref:n,onClick:be},ie,{className:fe(Be.root,xt.className,l,R&&"MuiInputBase-readOnly"),children:[F,C.jsx(Pp.Provider,{value:null,children:C.jsx(Ye,S({ownerState:et,"aria-invalid":ee.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:ee.disabled,id:w,onAnimationStart:Ue,name:E,placeholder:D,readOnly:R,required:ee.required,rows:j,value:B,onKeyDown:_,onKeyUp:$,type:K},Le,!ls(Ye)&&{as:$e,ownerState:S({},et,Le.ownerState)},{ref:se,className:fe(Be.input,Le.className,R&&"MuiInputBase-readOnly"),onBlur:X,onChange:he,onFocus:ge}))}),g,N?N(S({},ee,{startAdornment:F})):null]}))]})}),$y=d4;function f4(e){return Re("MuiInput",e)}const p4=S({},qn,Te("MuiInput",["root","underline","input"])),Wo=p4;function h4(e){return Re("MuiOutlinedInput",e)}const m4=S({},qn,Te("MuiOutlinedInput",["root","notchedOutline","input"])),Gr=m4;function g4(e){return Re("MuiFilledInput",e)}const v4=S({},qn,Te("MuiFilledInput",["root","underline","input"])),Xn=v4,dk=wn(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function y4(e){return Re("MuiAutocomplete",e)}const x4=Te("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Ke=x4;var fb,pb;const b4=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],w4=["ref"],S4=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ue(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ke(d,y4,t)},C4=H("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Ke.tag}`]:t.tag},{[`& .${Ke.tag}`]:t[`tagSize${ue(s)}`]},{[`& .${Ke.inputRoot}`]:t.inputRoot},{[`& .${Ke.input}`]:t.input},{[`& .${Ke.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>S({[`&.${Ke.focused} .${Ke.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ke.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Ke.tag}`]:S({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Ke.inputRoot}`]:{flexWrap:"wrap",[`.${Ke.hasPopupIcon}&, .${Ke.hasClearIcon}&`]:{paddingRight:26+4},[`.${Ke.hasPopupIcon}.${Ke.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Ke.input}`]:{width:0,minWidth:30}},[`& .${Wo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Wo.root}.${qn.sizeSmall}`]:{[`& .${Wo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Gr.root}`]:{padding:9,[`.${Ke.hasPopupIcon}&, .${Ke.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Ke.hasPopupIcon}.${Ke.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ke.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ke.endAdornment}`]:{right:9}},[`& .${Gr.root}.${qn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ke.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Xn.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ke.hasPopupIcon}&, .${Ke.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Ke.hasPopupIcon}.${Ke.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Xn.input}`]:{padding:"7px 4px"},[`& .${Ke.endAdornment}`]:{right:9}},[`& .${Xn.root}.${qn.sizeSmall}`]:{paddingBottom:1,[`& .${Xn.input}`]:{padding:"2.5px 4px"}},[`& .${qn.hiddenLabel}`]:{paddingTop:8},[`& .${Xn.root}.${qn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ke.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Xn.root}.${qn.hiddenLabel}.${qn.sizeSmall}`]:{[`& .${Ke.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ke.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),P4=H("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),E4=H(Eo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),k4=H(Eo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>S({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>S({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),R4=H(Cp,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ke.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),T4=H(Rr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),M4=H("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),$4=H("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),O4=H("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ke.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ke.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ke.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),D4=H(qz,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),A4=H("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ke.option}`]:{paddingLeft:24}}),I4=p.forwardRef(function(t,n){var r,o,i,a;const s=we({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:f,className:h,clearIcon:g=fb||(fb=C.jsx(qE,{fontSize:"small"})),clearOnBlur:m=!s.freeSolo,clearOnEscape:w=!1,clearText:v="Clear",closeText:y="Close",componentsProps:x={},defaultValue:b=s.multiple?[]:null,disableClearable:P=!1,disableCloseOnSelect:k=!1,disabled:E=!1,disabledItemsFocusable:T=!1,disableListWrap:A=!1,disablePortal:M=!1,filterSelectedOptions:O=!1,forcePopupIcon:_="auto",freeSolo:$=!1,fullWidth:D=!1,getLimitTagsText:R=Z=>`+${Z}`,getOptionLabel:N,groupBy:j,handleHomeEndKeys:I=!s.freeSolo,includeInputInList:L=!1,limitTags:F=-1,ListboxComponent:K="ul",ListboxProps:ae,loading:ie=!1,loadingText:B="Loading…",multiple:te=!1,noOptionsText:J="No options",openOnFocus:G=!1,openText:se="Open",PaperComponent:pe=Rr,PopperComponent:le=Cp,popupIcon:re=pb||(pb=C.jsx(dk,{})),readOnly:ee=!1,renderGroup:oe,renderInput:me,renderOption:V,renderTags:ge,selectOnFocus:X=!s.freeSolo,size:he="medium",slotProps:be={}}=s,$e=ne(s,b4),{getRootProps:Le,getInputProps:Ue,getInputLabelProps:et,getPopupIndicatorProps:Be,getClearProps:tt,getTagProps:xt,getListboxProps:Ye,getOptionProps:Se,value:Ce,dirty:zt,expanded:rn,id:Oe,popupOpen:je,focused:z,focusedTag:U,anchorEl:Q,setAnchorEl:ve,inputValue:Ie,groupedOptions:De}=Bz(S({},s,{componentName:"Autocomplete"})),Ae=!P&&!E&&zt&&!ee,Me=(!$||_===!0)&&_!==!1,{onMouseDown:ye}=Ue(),{ref:Qe}=ae??{},_e=Ye(),{ref:Fe}=_e,ot=ne(_e,w4),it=ht(Fe,Qe),Kn=N||(Z=>{var xe;return(xe=Z.label)!=null?xe:Z}),Tt=S({},s,{disablePortal:M,expanded:rn,focused:z,fullWidth:D,getOptionLabel:Kn,hasClearIcon:Ae,hasPopupIcon:Me,inputFocused:U===-1,popupOpen:je,size:he}),Mt=S4(Tt);let Nt;if(te&&Ce.length>0){const Z=xe=>S({className:Mt.tag,disabled:E},xt(xe));ge?Nt=ge(Ce,Z,Tt):Nt=Ce.map((xe,We)=>C.jsx(uk,S({label:Kn(xe),size:he},Z({index:We}),f)))}if(F>-1&&Array.isArray(Nt)){const Z=Nt.length-F;!z&&Z>0&&(Nt=Nt.splice(0,F),Nt.push(C.jsx("span",{className:Mt.tag,children:R(Z)},Nt.length)))}const uo=oe||(Z=>C.jsxs("li",{children:[C.jsx(D4,{className:Mt.groupLabel,ownerState:Tt,component:"div",children:Z.group}),C.jsx(A4,{className:Mt.groupUl,ownerState:Tt,children:Z.children})]},Z.key)),xi=V||((Z,xe)=>C.jsx("li",S({},Z,{children:Kn(xe)}))),No=(Z,xe)=>{const We=Se({option:Z,index:xe});return xi(S({},We,{className:Mt.option}),Z,{selected:We["aria-selected"],index:xe,inputValue:Ie},Tt)},qe=(r=be.clearIndicator)!=null?r:x.clearIndicator,Zt=(o=be.paper)!=null?o:x.paper,Y=(i=be.popper)!=null?i:x.popper,W=(a=be.popupIndicator)!=null?a:x.popupIndicator;return C.jsxs(p.Fragment,{children:[C.jsx(C4,S({ref:n,className:fe(Mt.root,h),ownerState:Tt},Le($e),{children:me({id:Oe,disabled:E,fullWidth:!0,size:he==="small"?"small":void 0,InputLabelProps:et(),InputProps:S({ref:ve,className:Mt.inputRoot,startAdornment:Nt,onClick:Z=>{Z.target===Z.currentTarget&&ye(Z)}},(Ae||Me)&&{endAdornment:C.jsxs(P4,{className:Mt.endAdornment,ownerState:Tt,children:[Ae?C.jsx(E4,S({},tt(),{"aria-label":v,title:v,ownerState:Tt},qe,{className:fe(Mt.clearIndicator,qe==null?void 0:qe.className),children:g})):null,Me?C.jsx(k4,S({},Be(),{disabled:E,"aria-label":je?y:se,title:je?y:se,ownerState:Tt},W,{className:fe(Mt.popupIndicator,W==null?void 0:W.className),children:re})):null]})}),inputProps:S({className:Mt.input,disabled:E,readOnly:ee},Ue())})})),Q?C.jsx(R4,S({as:le,disablePortal:M,style:{width:Q?Q.clientWidth:null},ownerState:Tt,role:"presentation",anchorEl:Q,open:je},Y,{className:fe(Mt.popper,Y==null?void 0:Y.className),children:C.jsxs(T4,S({ownerState:Tt,as:pe},Zt,{className:fe(Mt.paper,Zt==null?void 0:Zt.className),children:[ie&&De.length===0?C.jsx(M4,{className:Mt.loading,ownerState:Tt,children:B}):null,De.length===0&&!$&&!ie?C.jsx($4,{className:Mt.noOptions,ownerState:Tt,role:"presentation",onMouseDown:Z=>{Z.preventDefault()},children:J}):null,De.length>0?C.jsx(O4,S({as:K,className:Mt.listbox,ownerState:Tt},ot,ae,{ref:it,children:De.map((Z,xe)=>j?uo({key:Z.key,group:Z.group,children:Z.options.map((We,_t)=>No(We,Z.index+_t))}):No(Z,xe))})):null]}))})):null]})}),L4=I4,N4=wn(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function _4(e){return Re("MuiAvatar",e)}Te("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const j4=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],F4=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ke({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},_4,t)},z4=H("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),B4=H("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),V4=H(N4,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function U4({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const W4=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:f="circular"}=r,h=ne(r,j4);let g=null;const m=U4(S({},l,{src:c,srcSet:d})),w=c||d,v=w&&m!=="error",y=S({},r,{colorDefault:!v,component:s,variant:f}),x=F4(y);return v?g=C.jsx(B4,S({alt:o,src:c,srcSet:d,sizes:u,ownerState:y,className:x.img},l)):i!=null?g=i:w&&o?g=o[0]:g=C.jsx(V4,{ownerState:y,className:x.fallback}),C.jsx(z4,S({as:s,ownerState:y,className:fe(x.root,a),ref:n},h,{children:g}))}),fk=W4,H4=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Y4={entering:{opacity:1},entered:{opacity:1}},K4=p.forwardRef(function(t,n){const r=$o(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:h,onExited:g,onExiting:m,style:w,timeout:v=o,TransitionComponent:y=Xv}=t,x=ne(t,H4),b=p.useRef(null),P=ht(b,s.ref,n),k=D=>R=>{if(D){const N=b.current;R===void 0?D(N):D(N,R)}},E=k(f),T=k((D,R)=>{GE(D);const N=_d({style:w,timeout:v,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",N),D.style.transition=r.transitions.create("opacity",N),c&&c(D,R)}),A=k(d),M=k(m),O=k(D=>{const R=_d({style:w,timeout:v,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",R),D.style.transition=r.transitions.create("opacity",R),h&&h(D)}),_=k(g),$=D=>{i&&i(b.current,D)};return C.jsx(y,S({appear:a,in:u,nodeRef:b,onEnter:T,onEntered:A,onEntering:E,onExit:O,onExited:_,onExiting:M,addEndListener:$,timeout:v},x,{children:(D,R)=>p.cloneElement(s,S({style:S({opacity:0,visibility:D==="exited"&&!u?"hidden":void 0},Y4[D],w,s.props.style),ref:P},R))}))}),Mp=K4;function G4(e){return Re("MuiBackdrop",e)}Te("MuiBackdrop",["root","invisible"]);const q4=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],X4=e=>{const{classes:t,invisible:n}=e;return ke({root:["root",n&&"invisible"]},G4,t)},Q4=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Z4=p.forwardRef(function(t,n){var r,o,i;const a=we({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:h,slotProps:g={},slots:m={},TransitionComponent:w=Mp,transitionDuration:v}=a,y=ne(a,q4),x=S({},a,{component:u,invisible:f}),b=X4(x),P=(r=g.root)!=null?r:d.root;return C.jsx(w,S({in:h,timeout:v},y,{children:C.jsx(Q4,S({"aria-hidden":!0},P,{as:(o=(i=m.root)!=null?i:c.Root)!=null?o:u,className:fe(b.root,l,P==null?void 0:P.className),ownerState:S({},x,P==null?void 0:P.ownerState),classes:b,ref:n,children:s}))}))}),J4=Z4;function eB(e){return Re("MuiCard",e)}Te("MuiCard",["root"]);const tB=["className","raised"],nB=e=>{const{classes:t}=e;return ke({root:["root"]},eB,t)},rB=H(Rr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),oB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=ne(r,tB),s=S({},r,{raised:i}),l=nB(s);return C.jsx(rB,S({className:fe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))}),pk=oB;function iB(e){return Re("MuiCardActions",e)}Te("MuiCardActions",["root","spacing"]);const aB=["disableSpacing","className"],sB=e=>{const{classes:t,disableSpacing:n}=e;return ke({root:["root",!n&&"spacing"]},iB,t)},lB=H("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),uB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i}=r,a=ne(r,aB),s=S({},r,{disableSpacing:o}),l=sB(s);return C.jsx(lB,S({className:fe(l.root,i),ownerState:s,ref:n},a))}),hk=uB;function cB(e){return Re("MuiCardContent",e)}Te("MuiCardContent",["root"]);const dB=["className","component"],fB=e=>{const{classes:t}=e;return ke({root:["root"]},cB,t)},pB=H("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),hB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=ne(r,dB),s=S({},r,{component:i}),l=fB(s);return C.jsx(pB,S({as:i,className:fe(l.root,o),ownerState:s,ref:n},a))}),mk=hB,mB=fA({createStyledComponent:H("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ue(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>we({props:e,name:"MuiContainer"})}),Oy=mB,gB=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),vB=e=>S({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}}),yB=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=S({html:gB(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},vB(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function gk(e){const t=we({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(p.Fragment,{children:[C.jsx(ck,{styles:o=>yB(o,r)}),n]})}function xB(e){return Re("MuiModal",e)}Te("MuiModal",["root","hidden","backdrop"]);const bB=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],wB=e=>{const{open:t,exited:n,classes:r}=e;return ke({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},xB,r)},SB=H("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),CB=H(J4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),PB=p.forwardRef(function(t,n){var r,o,i,a,s,l;const u=we({name:"MuiModal",props:t}),{BackdropComponent:c=CB,BackdropProps:d,className:f,closeAfterTransition:h=!1,children:g,container:m,component:w,components:v={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:P=!1,disablePortal:k=!1,disableRestoreFocus:E=!1,disableScrollLock:T=!1,hideBackdrop:A=!1,keepMounted:M=!1,onBackdropClick:O,open:_,slotProps:$,slots:D}=u,R=ne(u,bB),N=S({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:b,disableEscapeKeyDown:P,disablePortal:k,disableRestoreFocus:E,disableScrollLock:T,hideBackdrop:A,keepMounted:M}),{getRootProps:j,getBackdropProps:I,getTransitionProps:L,portalRef:F,isTopModal:K,exited:ae,hasTransition:ie}=Az(S({},N,{rootRef:n})),B=S({},N,{exited:ae}),te=wB(B),J={};if(g.props.tabIndex===void 0&&(J.tabIndex="-1"),ie){const{onEnter:oe,onExited:me}=L();J.onEnter=oe,J.onExited=me}const G=(r=(o=D==null?void 0:D.root)!=null?o:v.Root)!=null?r:SB,se=(i=(a=D==null?void 0:D.backdrop)!=null?a:v.Backdrop)!=null?i:c,pe=(s=$==null?void 0:$.root)!=null?s:y.root,le=(l=$==null?void 0:$.backdrop)!=null?l:y.backdrop,re=yt({elementType:G,externalSlotProps:pe,externalForwardedProps:R,getSlotProps:j,additionalProps:{ref:n,as:w},ownerState:B,className:fe(f,pe==null?void 0:pe.className,te==null?void 0:te.root,!B.open&&B.exited&&(te==null?void 0:te.hidden))}),ee=yt({elementType:se,externalSlotProps:le,additionalProps:d,getSlotProps:oe=>I(S({},oe,{onClick:me=>{O&&O(me),oe!=null&&oe.onClick&&oe.onClick(me)}})),className:fe(le==null?void 0:le.className,d==null?void 0:d.className,te==null?void 0:te.backdrop),ownerState:B});return!M&&!_&&(!ie||ae)?null:C.jsx(sk,{ref:F,container:m,disablePortal:k,children:C.jsxs(G,S({},re,{children:[!A&&c?C.jsx(se,S({},ee)):null,C.jsx(QE,{disableEnforceFocus:b,disableAutoFocus:x,disableRestoreFocus:E,isEnabled:K,open:_,children:p.cloneElement(g,J)})]}))})}),EB=PB;function kB(e){return Re("MuiDialogActions",e)}Te("MuiDialogActions",["root","spacing"]);const RB=["className","disableSpacing"],TB=e=>{const{classes:t,disableSpacing:n}=e;return ke({root:["root",!n&&"spacing"]},kB,t)},MB=H("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),$B=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=ne(r,RB),s=S({},r,{disableSpacing:i}),l=TB(s);return C.jsx(MB,S({className:fe(l.root,o),ownerState:s,ref:n},a))}),OB=$B,DB=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],AB=e=>{const{classes:t,disableUnderline:n}=e,o=ke({root:["root",!n&&"underline"],input:["input"]},g4,t);return S({},t,o)},IB=H(Rp,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ep(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Xn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Xn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xn.disabled}, .${Xn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xn.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),LB=H(Tp,{name:"MuiFilledInput",slot:"Input",overridesResolver:kp})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),vk=p.forwardRef(function(t,n){var r,o,i,a;const s=we({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:h,slots:g={},type:m="text"}=s,w=ne(s,DB),v=S({},s,{fullWidth:c,inputComponent:d,multiline:f,type:m}),y=AB(s),x={root:{ownerState:v},input:{ownerState:v}},b=h??u?vr(h??u,x):x,P=(r=(o=g.root)!=null?o:l.Root)!=null?r:IB,k=(i=(a=g.input)!=null?a:l.Input)!=null?i:LB;return C.jsx($y,S({slots:{root:P,input:k},componentsProps:b,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:m},w,{classes:y}))});vk.muiName="Input";const yk=vk;function NB(e){return Re("MuiFormControl",e)}Te("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _B=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],jB=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ue(n)}`,r&&"fullWidth"]};return ke(o,NB,t)},FB=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${ue(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),zB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:g=!1,size:m="medium",variant:w="outlined"}=r,v=ne(r,_B),y=S({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:h,required:g,size:m,variant:w}),x=jB(y),[b,P]=p.useState(()=>{let $=!1;return o&&p.Children.forEach(o,D=>{if(!yl(D,["Input","Select"]))return;const R=yl(D,["Select"])?D.props.input:D;R&&i4(R.props)&&($=!0)}),$}),[k,E]=p.useState(()=>{let $=!1;return o&&p.Children.forEach(o,D=>{yl(D,["Input","Select"])&&(Fd(D.props,!0)||Fd(D.props.inputProps,!0))&&($=!0)}),$}),[T,A]=p.useState(!1);l&&T&&A(!1);const M=c!==void 0&&!l?c:T;let O;const _=p.useMemo(()=>({adornedStart:b,setAdornedStart:P,color:a,disabled:l,error:u,filled:k,focused:M,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{A(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{A(!0)},registerEffect:O,required:g,variant:w}),[b,a,l,u,k,M,d,f,O,g,m,w]);return C.jsx(Pp.Provider,{value:_,children:C.jsx(FB,S({as:s,ownerState:y,className:fe(x.root,i),ref:n},v,{children:o}))})}),BB=zB;function VB(e){return Re("MuiFormHelperText",e)}const UB=Te("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hb=UB;var mb;const WB=["children","className","component","disabled","error","filled","focused","margin","required","variant"],HB=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${ue(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return ke(u,VB,t)},YB=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ue(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hb.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),KB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=ne(r,WB),l=Qi(),u=Rs({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=S({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=HB(c);return C.jsx(YB,S({as:a,ownerState:c,className:fe(d.root,i),ref:n},s,{children:o===" "?mb||(mb=C.jsx("span",{className:"notranslate",children:"​"})):o}))}),GB=KB;function qB(e){return Re("MuiFormLabel",e)}const XB=Te("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),El=XB,QB=["children","className","color","component","disabled","error","filled","focused","required"],ZB=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${ue(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return ke(l,qB,t)},JB=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${El.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${El.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${El.error}`]:{color:(e.vars||e).palette.error.main}})),e3=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${El.error}`]:{color:(e.vars||e).palette.error.main}})),t3=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=ne(r,QB),l=Qi(),u=Rs({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=S({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=ZB(c);return C.jsxs(JB,S({as:a,ownerState:c,className:fe(d.root,i),ref:n},s,{children:[o,u.required&&C.jsxs(e3,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),n3=t3,r3=p.createContext(),gb=r3;function o3(e){return Re("MuiGrid",e)}const i3=[0,1,2,3,4,5,6,7,8,9,10],a3=["column-reverse","column","row-reverse","row"],s3=["nowrap","wrap-reverse","wrap"],Xs=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],au=Te("MuiGrid",["root","container","item","zeroMinWidth",...i3.map(e=>`spacing-xs-${e}`),...a3.map(e=>`direction-xs-${e}`),...s3.map(e=>`wrap-xs-${e}`),...Xs.map(e=>`grid-xs-${e}`),...Xs.map(e=>`grid-sm-${e}`),...Xs.map(e=>`grid-md-${e}`),...Xs.map(e=>`grid-lg-${e}`),...Xs.map(e=>`grid-xl-${e}`)]),l3=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Ua(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function u3({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=$f({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${Ua(c)})`;u={flexBasis:d,maxWidth:d}}}i=S({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function c3({theme:e,ownerState:t}){const n=$f({values:t.direction,breakpoints:e.breakpoints.values});return Sr({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${au.item}`]={maxWidth:"none"}),o})}function xk({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function d3({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=$f({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=xk({breakpoints:e.breakpoints.values,values:i})),o=Sr({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${Ua(c)}`,[`& > .${au.item}`]:{paddingTop:Ua(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${au.item}`]:{paddingTop:0}}})}return o}function f3({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=$f({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=xk({breakpoints:e.breakpoints.values,values:i})),o=Sr({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${Ua(c)})`,marginLeft:`-${Ua(c)}`,[`& > .${au.item}`]:{paddingLeft:Ua(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${au.item}`]:{paddingLeft:0}}})}return o}function p3(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const h3=H("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=p3(a,u,t));const d=[];return u.forEach(f=>{const h=n[f];h&&d.push(t[`grid-${f}-${String(h)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>S({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),c3,d3,f3,u3);function m3(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const g3=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=m3(i,l));const c=[];l.forEach(f=>{const h=e[f];h&&c.push(`grid-${f}-${String(h)}`)});const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return ke(d,o3,t)},v3=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiGrid"}),{breakpoints:o}=$o(),i=Kv(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:h,spacing:g=0,wrap:m="wrap",zeroMinWidth:w=!1}=i,v=ne(i,l3),y=h||g,x=l||g,b=p.useContext(gb),P=c?s||12:b,k={},E=S({},v);o.keys.forEach(M=>{v[M]!=null&&(k[M]=v[M],delete E[M])});const T=S({},i,{columns:P,container:c,direction:d,item:f,rowSpacing:y,columnSpacing:x,wrap:m,zeroMinWidth:w,spacing:g},k,{breakpoints:o.keys}),A=g3(T);return C.jsx(gb.Provider,{value:P,children:C.jsx(h3,S({ownerState:T,className:fe(A.root,a),as:u,ref:n},E))})}),fo=v3,y3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gg(e){return`scale(${e}, ${e**2})`}const x3={entering:{opacity:1,transform:gg(1)},entered:{opacity:1,transform:"none"}},Ih=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bk=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:h,style:g,timeout:m="auto",TransitionComponent:w=Xv}=t,v=ne(t,y3),y=p.useRef(),x=p.useRef(),b=$o(),P=p.useRef(null),k=ht(P,i.ref,n),E=R=>N=>{if(R){const j=P.current;N===void 0?R(j):R(j,N)}},T=E(c),A=E((R,N)=>{GE(R);const{duration:j,delay:I,easing:L}=_d({style:g,timeout:m,easing:a},{mode:"enter"});let F;m==="auto"?(F=b.transitions.getAutoHeightDuration(R.clientHeight),x.current=F):F=j,R.style.transition=[b.transitions.create("opacity",{duration:F,delay:I}),b.transitions.create("transform",{duration:Ih?F:F*.666,delay:I,easing:L})].join(","),l&&l(R,N)}),M=E(u),O=E(h),_=E(R=>{const{duration:N,delay:j,easing:I}=_d({style:g,timeout:m,easing:a},{mode:"exit"});let L;m==="auto"?(L=b.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=N,R.style.transition=[b.transitions.create("opacity",{duration:L,delay:j}),b.transitions.create("transform",{duration:Ih?L:L*.666,delay:Ih?j:j||L*.333,easing:I})].join(","),R.style.opacity=0,R.style.transform=gg(.75),d&&d(R)}),$=E(f),D=R=>{m==="auto"&&(y.current=setTimeout(R,x.current||0)),r&&r(P.current,R)};return p.useEffect(()=>()=>{clearTimeout(y.current)},[]),C.jsx(w,S({appear:o,in:s,nodeRef:P,onEnter:A,onEntered:M,onEntering:T,onExit:_,onExited:$,onExiting:O,addEndListener:D,timeout:m==="auto"?null:m},v,{children:(R,N)=>p.cloneElement(i,S({style:S({opacity:0,transform:gg(.75),visibility:R==="exited"&&!s?"hidden":void 0},x3[R],g,i.props.style),ref:k},N))}))});bk.muiSupportAuto=!0;const Dy=bk;function b3(e,t,n,r,o){const[i,a]=p.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return cn(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),i}const wk=Ml["useSyncExternalStore"];function w3(e,t,n,r,o){const i=p.useCallback(()=>t,[t]),a=p.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,o,n]),[s,l]=p.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[i,n,e]);return wk(l,s,a)}function S3(e,t={}){const n=zf(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=_P({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(wk!==void 0?w3:b3)(l,o,i,a,s)}const C3=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],P3=e=>{const{classes:t,disableUnderline:n}=e,o=ke({root:["root",!n&&"underline"],input:["input"]},f4,t);return S({},t,o)},E3=H(Rp,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ep(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wo.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(.${Wo.disabled}, .${Wo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),k3=H(Tp,{name:"MuiInput",slot:"Input",overridesResolver:kp})({}),Sk=p.forwardRef(function(t,n){var r,o,i,a;const s=we({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:g,slots:m={},type:w="text"}=s,v=ne(s,C3),y=P3(s),b={root:{ownerState:{disableUnderline:l}}},P=g??c?vr(g??c,b):b,k=(r=(o=m.root)!=null?o:u.Root)!=null?r:E3,E=(i=(a=m.input)!=null?a:u.Input)!=null?i:k3;return C.jsx($y,S({slots:{root:k,input:E},slotProps:P,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:w},v,{classes:y}))});Sk.muiName="Input";const Ck=Sk;function R3(e){return Re("MuiInputAdornment",e)}const T3=Te("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),vb=T3;var yb;const M3=["children","className","component","disablePointerEvents","disableTypography","position","variant"],$3=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},O3=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${ue(o)}`,a,r&&"hiddenLabel",i&&`size${ue(i)}`]};return ke(s,R3,t)},D3=H("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:$3})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${vb.positionStart}&:not(.${vb.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),A3=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=ne(r,M3),f=Qi()||{};let h=c;c&&f.variant,f&&!h&&(h=f.variant);const g=S({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:u,variant:h}),m=O3(g);return C.jsx(Pp.Provider,{value:null,children:C.jsx(D3,S({as:a,ownerState:g,className:fe(m.root,i),ref:n},d,{children:typeof o=="string"&&!l?C.jsx(At,{color:"text.secondary",children:o}):C.jsxs(p.Fragment,{children:[u==="start"?yb||(yb=C.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),I3=A3;function L3(e){return Re("MuiInputLabel",e)}Te("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const N3=["disableAnimation","margin","shrink","variant","className"],_3=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ue(r)}`,a],asterisk:[s&&"asterisk"]},u=ke(l,L3,t);return S({},t,u)},j3=H(n3,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${El.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),F3=p.forwardRef(function(t,n){const r=we({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=ne(r,N3),l=Qi();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Rs({props:r,muiFormControl:l,states:["size","variant","required"]}),d=S({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),f=_3(d);return C.jsx(j3,S({"data-shrink":u,ownerState:d,ref:n,className:fe(f.root,a)},s,{classes:f}))}),z3=F3,B3=p.createContext({}),Wa=B3;function V3(e){return Re("MuiList",e)}Te("MuiList",["root","padding","dense","subheader"]);const U3=["children","className","component","dense","disablePadding","subheader"],W3=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ke({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},V3,t)},H3=H("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Y3=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=ne(r,U3),d=p.useMemo(()=>({dense:s}),[s]),f=S({},r,{component:a,dense:s,disablePadding:l}),h=W3(f);return C.jsx(Wa.Provider,{value:d,children:C.jsxs(H3,S({as:a,className:fe(h.root,i),ref:n,ownerState:f},c,{children:[u,o]}))})}),Ay=Y3;function K3(e){return Re("MuiListItem",e)}const G3=Te("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ha=G3,q3=Te("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),X3=q3;function Q3(e){return Re("MuiListItemSecondaryAction",e)}Te("MuiListItemSecondaryAction",["root","disableGutters"]);const Z3=["className"],J3=e=>{const{disableGutters:t,classes:n}=e;return ke({root:["root",t&&"disableGutters"]},Q3,n)},eV=H("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Pk=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=ne(r,Z3),a=p.useContext(Wa),s=S({},r,{disableGutters:a.disableGutters}),l=J3(s);return C.jsx(eV,S({className:fe(l.root,o),ownerState:s,ref:n},i))});Pk.muiName="ListItemSecondaryAction";const tV=Pk,nV=["className"],rV=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],oV=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},iV=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return ke({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},K3,r)},aV=H("div",{name:"MuiListItem",slot:"Root",overridesResolver:oV})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${X3.root}`]:{paddingRight:48}},{[`&.${ha.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ha.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ha.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ha.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ha.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ge(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})`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),sV=H("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),lV=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:h}={},dense:g=!1,disabled:m=!1,disableGutters:w=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:b,selected:P=!1,slotProps:k={},slots:E={}}=r,T=ne(r.ContainerProps,nV),A=ne(r,rV),M=p.useContext(Wa),O=p.useMemo(()=>({dense:g||M.dense||!1,alignItems:o,disableGutters:w}),[o,M.dense,g,w]),_=p.useRef(null);cn(()=>{i&&_.current&&_.current.focus()},[i]);const $=p.Children.toArray(s),D=$.length&&yl($[$.length-1],["ListItemSecondaryAction"]),R=S({},r,{alignItems:o,autoFocus:i,button:a,dense:O.dense,disabled:m,disableGutters:w,disablePadding:v,divider:y,hasSecondaryAction:D,selected:P}),N=iV(R),j=ht(_,n),I=E.root||c.Root||aV,L=k.root||d.root||{},F=S({className:fe(N.root,L.className,l),disabled:m},A);let K=u||"li";return a&&(F.component=u||"div",F.focusVisibleClassName=fe(ha.focusVisible,x),K=rs),D?(K=!F.component&&!u?"div":K,f==="li"&&(K==="li"?K="div":F.component==="li"&&(F.component="div")),C.jsx(Wa.Provider,{value:O,children:C.jsxs(sV,S({as:f,className:fe(N.container,h),ref:j,ownerState:R},T,{children:[C.jsx(I,S({},L,!ls(I)&&{as:K,ownerState:S({},R,L.ownerState)},F,{children:$})),$.pop()]}))})):C.jsx(Wa.Provider,{value:O,children:C.jsxs(I,S({},L,{as:K,ref:j},!ls(I)&&{ownerState:S({},R,L.ownerState)},F,{children:[$,b&&C.jsx(tV,{children:b})]}))})}),Ek=lV;function uV(e){return Re("MuiListItemText",e)}const cV=Te("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xb=cV,dV=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],fV=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ke({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},uV,t)},pV=H("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xb.primary}`]:t.primary},{[`& .${xb.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),hV=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=ne(r,dV),{dense:h}=p.useContext(Wa);let g=l??o,m=c;const w=S({},r,{disableTypography:a,inset:s,primary:!!g,secondary:!!m,dense:h}),v=fV(w);return g!=null&&g.type!==At&&!a&&(g=C.jsx(At,S({variant:h?"body2":"body1",className:v.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),m!=null&&m.type!==At&&!a&&(m=C.jsx(At,S({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:m}))),C.jsxs(pV,S({className:fe(v.root,i),ownerState:w,ref:n},f,{children:[g,m]}))}),mV=hV,gV=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Lh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function bb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function kk(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Qs(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!kk(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const vV=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=ne(t,gV),h=p.useRef(null),g=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cn(()=>{o&&h.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,b)=>{const P=!h.current.style.width;if(x.clientHeight{const b=h.current,P=x.key,k=Lt(b).activeElement;if(P==="ArrowDown")x.preventDefault(),Qs(b,k,u,l,Lh);else if(P==="ArrowUp")x.preventDefault(),Qs(b,k,u,l,bb);else if(P==="Home")x.preventDefault(),Qs(b,null,u,l,Lh);else if(P==="End")x.preventDefault(),Qs(b,null,u,l,bb);else if(P.length===1){const E=g.current,T=P.toLowerCase(),A=performance.now();E.keys.length>0&&(A-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&T!==E.keys[0]&&(E.repeating=!1)),E.lastTime=A,E.keys.push(T);const M=k&&!E.repeating&&kk(k,E);E.previousKeyMatched&&(M||Qs(b,k,!1,l,Lh,E))?x.preventDefault():E.previousKeyMatched=!1}c&&c(x)},w=ht(h,n);let v=-1;p.Children.forEach(a,(x,b)=>{if(!p.isValidElement(x)){v===b&&(v+=1,v>=a.length&&(v=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||v===-1)&&(v=b),v===b&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const y=p.Children.map(a,(x,b)=>{if(b===v){const P={};return i&&(P.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),p.cloneElement(x,P)}return x});return C.jsx(Ay,S({role:"menu",ref:w,className:s,onKeyDown:m,tabIndex:o?0:-1},f,{children:y}))}),yV=vV;function xV(e){return Re("MuiPopover",e)}Te("MuiPopover",["root","paper"]);const bV=["onEntering"],wV=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],SV=["slotProps"];function wb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Sb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Cb(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Nh(e){return typeof e=="function"?e():e}const CV=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"]},xV,t)},PV=H(EB,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rk=H(Rr,{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}),EV=p.forwardRef(function(t,n){var r,o,i;const a=we({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:h,container:g,elevation:m=8,marginThreshold:w=16,open:v,PaperProps:y={},slots:x,slotProps:b,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:k=Dy,transitionDuration:E="auto",TransitionProps:{onEntering:T}={},disableScrollLock:A=!1}=a,M=ne(a.TransitionProps,bV),O=ne(a,wV),_=(r=b==null?void 0:b.paper)!=null?r:y,$=p.useRef(),D=ht($,_.ref),R=S({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:w,externalPaperSlotProps:_,transformOrigin:P,TransitionComponent:k,transitionDuration:E,TransitionProps:M}),N=CV(R),j=p.useCallback(()=>{if(d==="anchorPosition")return c;const oe=Nh(l),V=(oe&&oe.nodeType===1?oe:Lt($.current).body).getBoundingClientRect();return{top:V.top+wb(V,u.vertical),left:V.left+Sb(V,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),I=p.useCallback(oe=>({vertical:wb(oe,P.vertical),horizontal:Sb(oe,P.horizontal)}),[P.horizontal,P.vertical]),L=p.useCallback(oe=>{const me={width:oe.offsetWidth,height:oe.offsetHeight},V=I(me);if(d==="none")return{top:null,left:null,transformOrigin:Cb(V)};const ge=j();let X=ge.top-V.vertical,he=ge.left-V.horizontal;const be=X+me.height,$e=he+me.width,Le=ui(Nh(l)),Ue=Le.innerHeight-w,et=Le.innerWidth-w;if(w!==null&&XUe){const Be=be-Ue;X-=Be,V.vertical+=Be}if(w!==null&&heet){const Be=$e-et;he-=Be,V.horizontal+=Be}return{top:`${Math.round(X)}px`,left:`${Math.round(he)}px`,transformOrigin:Cb(V)}},[l,d,j,I,w]),[F,K]=p.useState(v),ae=p.useCallback(()=>{const oe=$.current;if(!oe)return;const me=L(oe);me.top!==null&&(oe.style.top=me.top),me.left!==null&&(oe.style.left=me.left),oe.style.transformOrigin=me.transformOrigin,K(!0)},[L]);p.useEffect(()=>(A&&window.addEventListener("scroll",ae),()=>window.removeEventListener("scroll",ae)),[l,A,ae]);const ie=(oe,me)=>{T&&T(oe,me),ae()},B=()=>{K(!1)};p.useEffect(()=>{v&&ae()}),p.useImperativeHandle(s,()=>v?{updatePosition:()=>{ae()}}:null,[v,ae]),p.useEffect(()=>{if(!v)return;const oe=Dv(()=>{ae()}),me=ui(l);return me.addEventListener("resize",oe),()=>{oe.clear(),me.removeEventListener("resize",oe)}},[l,v,ae]);let te=E;E==="auto"&&!k.muiSupportAuto&&(te=void 0);const J=g||(l?Lt(Nh(l)).body:void 0),G=(o=x==null?void 0:x.root)!=null?o:PV,se=(i=x==null?void 0:x.paper)!=null?i:Rk,pe=yt({elementType:se,externalSlotProps:S({},_,{style:F?_.style:S({},_.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:R,className:fe(N.paper,_==null?void 0:_.className)}),le=yt({elementType:G,externalSlotProps:(b==null?void 0:b.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:v},ownerState:R,className:fe(N.root,h)}),{slotProps:re}=le,ee=ne(le,SV);return C.jsx(G,S({},ee,!ls(G)&&{slotProps:re,disableScrollLock:A},{children:C.jsx(k,S({appear:!0,in:v,onEntering:ie,onExited:B,timeout:te},M,{children:C.jsx(se,S({},pe,{children:f}))}))}))}),kV=EV;function RV(e){return Re("MuiMenu",e)}Te("MuiMenu",["root","paper","list"]);const TV=["onEntering"],MV=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$V={vertical:"top",horizontal:"right"},OV={vertical:"top",horizontal:"left"},DV=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"],list:["list"]},RV,t)},AV=H(kV,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IV=H(Rk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),LV=H(yV,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),NV=p.forwardRef(function(t,n){var r,o;const i=we({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:h={},PopoverClasses:g,transitionDuration:m="auto",TransitionProps:{onEntering:w}={},variant:v="selectedMenu",slots:y={},slotProps:x={}}=i,b=ne(i.TransitionProps,TV),P=ne(i,MV),k=$o(),E=k.direction==="rtl",T=S({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:w,PaperProps:h,transitionDuration:m,TransitionProps:b,variant:v}),A=DV(T),M=a&&!u&&f,O=p.useRef(null),_=(L,F)=>{O.current&&O.current.adjustStyleForScrollbar(L,k),w&&w(L,F)},$=L=>{L.key==="Tab"&&(L.preventDefault(),d&&d(L,"tabKeyDown"))};let D=-1;p.Children.map(s,(L,F)=>{p.isValidElement(L)&&(L.props.disabled||(v==="selectedMenu"&&L.props.selected||D===-1)&&(D=F))});const R=(r=y.paper)!=null?r:IV,N=(o=x.paper)!=null?o:h,j=yt({elementType:y.root,externalSlotProps:x.root,ownerState:T,className:[A.root,l]}),I=yt({elementType:R,externalSlotProps:N,ownerState:T,className:A.paper});return C.jsx(AV,S({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?$V:OV,slots:{paper:R,root:y.root},slotProps:{root:j,paper:I},open:f,ref:n,transitionDuration:m,TransitionProps:S({onEntering:_},b),ownerState:T},P,{classes:g,children:C.jsx(LV,S({onKeyDown:$,actions:O,autoFocus:a&&(D===-1||u),autoFocusItem:M,variant:v},c,{className:fe(A.list,c.className),children:s}))}))}),_V=NV;function jV(e){return Re("MuiNativeSelect",e)}const FV=Te("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Iy=FV,zV=["className","disabled","error","IconComponent","inputRef","variant"],BV=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"]};return ke(s,jV,t)},Tk=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Iy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),VV=H("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Iy.multiple}`]:t.multiple}]}})(Tk),Mk=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Iy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),UV=H("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(Mk),WV=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=ne(t,zV),c=S({},t,{disabled:o,variant:l,error:i}),d=BV(c);return C.jsxs(p.Fragment,{children:[C.jsx(VV,S({ownerState:c,className:fe(d.select,r),disabled:o,ref:s||n},u)),t.multiple?null:C.jsx(UV,{as:a,ownerState:c,className:d.icon})]})}),HV=WV;var Pb;const YV=["children","classes","className","label","notched"],KV=H("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),GV=H("legend")(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function qV(e){const{className:t,label:n,notched:r}=e,o=ne(e,YV),i=n!=null&&n!=="",a=S({},e,{notched:r,withLabel:i});return C.jsx(KV,S({"aria-hidden":!0,className:t,ownerState:a},o,{children:C.jsx(GV,{ownerState:a,children:i?C.jsx("span",{children:n}):Pb||(Pb=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const XV=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],QV=e=>{const{classes:t}=e,r=ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},h4,t);return S({},t,r)},ZV=H(Rp,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ep})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Gr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Gr.focused} .${Gr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Gr.error} .${Gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Gr.disabled} .${Gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),JV=H(qV,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),e6=H(Tp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kp})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),$k=p.forwardRef(function(t,n){var r,o,i,a,s;const l=we({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:h=!1,notched:g,slots:m={},type:w="text"}=l,v=ne(l,XV),y=QV(l),x=Qi(),b=Rs({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=S({},l,{color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:x,fullWidth:c,hiddenLabel:b.hiddenLabel,multiline:h,size:b.size,type:w}),k=(r=(o=m.root)!=null?o:u.Root)!=null?r:ZV,E=(i=(a=m.input)!=null?a:u.Input)!=null?i:e6;return C.jsx($y,S({slots:{root:k,input:E},renderSuffix:T=>C.jsx(JV,{ownerState:P,className:y.notchedOutline,label:f!=null&&f!==""&&b.required?s||(s=C.jsxs(p.Fragment,{children:[f," ","*"]})):f,notched:typeof g<"u"?g:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:w},v,{classes:S({},y,{notchedOutline:null})}))});$k.muiName="Input";const Ok=$k;function t6(e){return Re("MuiSelect",e)}const n6=Te("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zs=n6;var Eb;const r6=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],o6=H("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Zs.select}`]:t.select},{[`&.${Zs.select}`]:t[n.variant]},{[`&.${Zs.error}`]:t.error},{[`&.${Zs.multiple}`]:t.multiple}]}})(Tk,{[`&.${Zs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),i6=H("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(Mk),a6=H("input",{shouldForwardProp:e=>GA(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 kb(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function s6(e){return e==null||typeof e=="string"&&!e.trim()}const l6=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ke(s,t6,t)},u6=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:h,error:g=!1,IconComponent:m,inputRef:w,labelId:v,MenuProps:y={},multiple:x,name:b,onBlur:P,onChange:k,onClose:E,onFocus:T,onOpen:A,open:M,readOnly:O,renderValue:_,SelectDisplayProps:$={},tabIndex:D,value:R,variant:N="standard"}=t,j=ne(t,r6),[I,L]=Bn({controlled:R,default:d,name:"Select"}),[F,K]=Bn({controlled:M,default:c,name:"Select"}),ae=p.useRef(null),ie=p.useRef(null),[B,te]=p.useState(null),{current:J}=p.useRef(M!=null),[G,se]=p.useState(),pe=ht(n,w),le=p.useCallback(Oe=>{ie.current=Oe,Oe&&te(Oe)},[]),re=B==null?void 0:B.parentNode;p.useImperativeHandle(pe,()=>({focus:()=>{ie.current.focus()},node:ae.current,value:I}),[I]),p.useEffect(()=>{c&&F&&B&&!J&&(se(s?null:re.clientWidth),ie.current.focus())},[B,s]),p.useEffect(()=>{a&&ie.current.focus()},[a]),p.useEffect(()=>{if(!v)return;const Oe=Lt(ie.current).getElementById(v);if(Oe){const je=()=>{getSelection().isCollapsed&&ie.current.focus()};return Oe.addEventListener("click",je),()=>{Oe.removeEventListener("click",je)}}},[v]);const ee=(Oe,je)=>{Oe?A&&A(je):E&&E(je),J||(se(s?null:re.clientWidth),K(Oe))},oe=Oe=>{Oe.button===0&&(Oe.preventDefault(),ie.current.focus(),ee(!0,Oe))},me=Oe=>{ee(!1,Oe)},V=p.Children.toArray(l),ge=Oe=>{const je=V.find(z=>z.props.value===Oe.target.value);je!==void 0&&(L(je.props.value),k&&k(Oe,je))},X=Oe=>je=>{let z;if(je.currentTarget.hasAttribute("tabindex")){if(x){z=Array.isArray(I)?I.slice():[];const U=I.indexOf(Oe.props.value);U===-1?z.push(Oe.props.value):z.splice(U,1)}else z=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(je),I!==z&&(L(z),k)){const U=je.nativeEvent||je,Q=new U.constructor(U.type,U);Object.defineProperty(Q,"target",{writable:!0,value:{value:z,name:b}}),k(Q,Oe)}x||ee(!1,je)}},he=Oe=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Oe.key)!==-1&&(Oe.preventDefault(),ee(!0,Oe))},be=B!==null&&F,$e=Oe=>{!be&&P&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:I,name:b}}),P(Oe))};delete j["aria-invalid"];let Le,Ue;const et=[];let Be=!1;(Fd({value:I})||h)&&(_?Le=_(I):Be=!0);const tt=V.map(Oe=>{if(!p.isValidElement(Oe))return null;let je;if(x){if(!Array.isArray(I))throw new Error(li(2));je=I.some(z=>kb(z,Oe.props.value)),je&&Be&&et.push(Oe.props.children)}else je=kb(I,Oe.props.value),je&&Be&&(Ue=Oe.props.children);return p.cloneElement(Oe,{"aria-selected":je?"true":"false",onClick:X(Oe),onKeyUp:z=>{z.key===" "&&z.preventDefault(),Oe.props.onKeyUp&&Oe.props.onKeyUp(z)},role:"option",selected:je,value:void 0,"data-value":Oe.props.value})});Be&&(x?et.length===0?Le=null:Le=et.reduce((Oe,je,z)=>(Oe.push(je),z{const{classes:t}=e;return t},Ly={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mo(e)&&e!=="variant",slot:"Root"},h6=H(Ck,Ly)(""),m6=H(Ok,Ly)(""),g6=H(yk,Ly)(""),Dk=p.forwardRef(function(t,n){const r=we({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=dk,id:d,input:f,inputProps:h,label:g,labelId:m,MenuProps:w,multiple:v=!1,native:y=!1,onClose:x,onOpen:b,open:P,renderValue:k,SelectDisplayProps:E,variant:T="outlined"}=r,A=ne(r,d6),M=y?HV:c6,O=Qi(),_=Rs({props:r,muiFormControl:O,states:["variant","error"]}),$=_.variant||T,D=S({},r,{variant:$,classes:a}),R=p6(D),N=ne(R,f6),j=f||{standard:C.jsx(h6,{ownerState:D}),outlined:C.jsx(m6,{label:g,ownerState:D}),filled:C.jsx(g6,{ownerState:D})}[$],I=ht(n,j.ref);return C.jsx(p.Fragment,{children:p.cloneElement(j,S({inputComponent:M,inputProps:S({children:i,error:_.error,IconComponent:c,variant:$,type:void 0,multiple:v},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:w,onClose:x,onOpen:b,open:P,renderValue:k,SelectDisplayProps:S({id:d},E)},h,{classes:h?vr(N,h.classes):N},f?f.props.inputProps:{})},v&&y&&$==="outlined"?{notched:!0}:{},{ref:I,className:fe(j.props.className,s,R.root)},!f&&{variant:$},A))})});Dk.muiName="Select";const v6=Dk;function y6(e){return Re("MuiSnackbarContent",e)}Te("MuiSnackbarContent",["root","message","action"]);const x6=["action","className","message","role"],b6=e=>{const{classes:t}=e;return ke({root:["root"],action:["action"],message:["message"]},y6,t)},w6=H(Rr,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=eA(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,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}})}),S6=H("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),C6=H("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),P6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert"}=r,l=ne(r,x6),u=r,c=b6(u);return C.jsxs(w6,S({role:s,square:!0,elevation:6,className:fe(c.root,i),ownerState:u,ref:n},l,{children:[C.jsx(S6,{className:c.message,ownerState:u,children:a}),o?C.jsx(C6,{className:c.action,ownerState:u,children:o}):null]}))}),E6=P6;function k6(e){return Re("MuiSnackbar",e)}Te("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const R6=["onEnter","onExited"],T6=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],M6=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ue(n.vertical)}${ue(n.horizontal)}`]};return ke(r,k6,t)},Rb=H("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ue(n.anchorOrigin.vertical)}${ue(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),$6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbar"}),o=$o(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:c,className:d,ClickAwayListenerProps:f,ContentProps:h,disableWindowBlurListener:g=!1,message:m,open:w,TransitionComponent:v=Dy,transitionDuration:y=i,TransitionProps:{onEnter:x,onExited:b}={}}=r,P=ne(r.TransitionProps,R6),k=ne(r,T6),E=S({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:v,transitionDuration:y}),T=M6(E),{getRootProps:A,onClickAway:M}=Iz(S({},E)),[O,_]=p.useState(!0),$=yt({elementType:Rb,getSlotProps:A,externalForwardedProps:k,ownerState:E,additionalProps:{ref:n},className:[T.root,d]}),D=N=>{_(!0),b&&b(N)},R=(N,j)=>{_(!1),x&&x(N,j)};return!w&&O?null:C.jsx(n5,S({onClickAway:M},f,{children:C.jsx(Rb,S({},$,{children:C.jsx(v,S({appear:!0,in:w,timeout:y,direction:s==="top"?"down":"up",onEnter:R,onExited:D},P,{children:c||C.jsx(E6,S({message:m,action:a},h))}))}))}))}),O6=$6,D6=p.createContext(),Ak=D6;function A6(e){return Re("MuiTable",e)}Te("MuiTable",["root","stickyHeader"]);const I6=["className","component","padding","size","stickyHeader"],L6=e=>{const{classes:t,stickyHeader:n}=e;return ke({root:["root",n&&"stickyHeader"]},A6,t)},N6=H("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":S({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Tb="table",_6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTable"}),{className:o,component:i=Tb,padding:a="normal",size:s="medium",stickyHeader:l=!1}=r,u=ne(r,I6),c=S({},r,{component:i,padding:a,size:s,stickyHeader:l}),d=L6(c),f=p.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return C.jsx(Ak.Provider,{value:f,children:C.jsx(N6,S({as:i,role:i===Tb?null:"table",ref:n,className:fe(d.root,o),ownerState:c},u))})}),Ik=_6,j6=p.createContext(),$p=j6;function F6(e){return Re("MuiTableBody",e)}Te("MuiTableBody",["root"]);const z6=["className","component"],B6=e=>{const{classes:t}=e;return ke({root:["root"]},F6,t)},V6=H("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),U6={variant:"body"},Mb="tbody",W6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableBody"}),{className:o,component:i=Mb}=r,a=ne(r,z6),s=S({},r,{component:i}),l=B6(s);return C.jsx($p.Provider,{value:U6,children:C.jsx(V6,S({className:fe(l.root,o),as:i,ref:n,role:i===Mb?null:"rowgroup",ownerState:s},a))})}),Lk=W6;function H6(e){return Re("MuiTableCell",e)}const Y6=Te("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),K6=Y6,G6=["align","className","component","padding","scope","size","sortDirection","variant"],q6=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ue(r)}`,o!=="normal"&&`padding${ue(o)}`,`size${ue(i)}`]};return ke(s,H6,t)},X6=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ue(n.size)}`],n.padding!=="normal"&&t[`padding${ue(n.padding)}`],n.align!=="inherit"&&t[`align${ue(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?ns(Ge(e.palette.divider,1),.88):ts(Ge(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${K6.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Q6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:u,sortDirection:c,variant:d}=r,f=ne(r,G6),h=p.useContext(Ak),g=p.useContext($p),m=g&&g.variant==="head";let w;a?w=a:w=m?"th":"td";let v=l;w==="td"?v=void 0:!v&&m&&(v="col");const y=d||g&&g.variant,x=S({},r,{align:o,component:w,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),b=q6(x);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),C.jsx(X6,S({as:w,ref:n,className:fe(b.root,i),"aria-sort":P,scope:v,ownerState:x},f))}),$n=Q6;function Z6(e){return Re("MuiTableContainer",e)}Te("MuiTableContainer",["root"]);const J6=["className","component"],eU=e=>{const{classes:t}=e;return ke({root:["root"]},Z6,t)},tU=H("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),nU=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableContainer"}),{className:o,component:i="div"}=r,a=ne(r,J6),s=S({},r,{component:i}),l=eU(s);return C.jsx(tU,S({ref:n,as:i,className:fe(l.root,o),ownerState:s},a))}),Nk=nU;function rU(e){return Re("MuiTableHead",e)}Te("MuiTableHead",["root"]);const oU=["className","component"],iU=e=>{const{classes:t}=e;return ke({root:["root"]},rU,t)},aU=H("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),sU={variant:"head"},$b="thead",lU=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableHead"}),{className:o,component:i=$b}=r,a=ne(r,oU),s=S({},r,{component:i}),l=iU(s);return C.jsx($p.Provider,{value:sU,children:C.jsx(aU,S({as:i,className:fe(l.root,o),ref:n,role:i===$b?null:"rowgroup",ownerState:s},a))})}),_k=lU;function uU(e){return Re("MuiTableRow",e)}const cU=Te("MuiTableRow",["root","selected","hover","head","footer"]),Ob=cU,dU=["className","component","hover","selected"],fU=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return ke({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},uU,t)},pU=H("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ob.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ob.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ge(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}))`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Db="tr",hU=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableRow"}),{className:o,component:i=Db,hover:a=!1,selected:s=!1}=r,l=ne(r,dU),u=p.useContext($p),c=S({},r,{component:i,hover:a,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=fU(c);return C.jsx(pU,S({as:i,ref:n,className:fe(d.root,o),role:i===Db?null:"row",ownerState:c},l))}),zd=hU;function mU(e){return Re("MuiTextField",e)}Te("MuiTextField",["root"]);const gU=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],vU={standard:Ck,filled:yk,outlined:Ok},yU=e=>{const{classes:t}=e;return ke({root:["root"]},mU,t)},xU=H(BB,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bU=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:w,inputProps:v,InputProps:y,inputRef:x,label:b,maxRows:P,minRows:k,multiline:E=!1,name:T,onBlur:A,onChange:M,onFocus:O,placeholder:_,required:$=!1,rows:D,select:R=!1,SelectProps:N,type:j,value:I,variant:L="outlined"}=r,F=ne(r,gU),K=S({},r,{autoFocus:i,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:$,select:R,variant:L}),ae=yU(K),ie={};L==="outlined"&&(w&&typeof w.shrink<"u"&&(ie.notched=w.shrink),ie.label=b),R&&((!N||!N.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const B=bu(m),te=g&&B?`${B}-helper-text`:void 0,J=b&&B?`${B}-label`:void 0,G=vU[L],se=C.jsx(G,S({"aria-describedby":te,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:h,multiline:E,name:T,rows:D,maxRows:P,minRows:k,type:j,value:I,id:B,inputRef:x,onBlur:A,onChange:M,onFocus:O,placeholder:_,inputProps:v},ie,y));return C.jsxs(xU,S({className:fe(ae.root,s),disabled:c,error:d,fullWidth:h,ref:n,required:$,color:l,variant:L,ownerState:K},F,{children:[b!=null&&b!==""&&C.jsx(z3,S({htmlFor:B,id:J},w,{children:b})),R?C.jsx(v6,S({"aria-describedby":te,id:B,labelId:J,value:I,input:se},N,{children:a})):se,g&&C.jsx(GB,S({id:te},f,{children:g}))]}))}),Fr=bU,wU=()=>{const e=Io(),[t,n]=p.useState(!0),r=ro(o=>o.message);return p.useEffect(()=>{(async()=>{const i=localStorage.getItem("expenseTrackerToken");if(i)try{const a=await xy.fetchUser(i);e(ap(a.data.user))}catch(a){a.response.status===401&&localStorage.removeItem("expenseTrackerToken")}n(!1)})()},[]),t?C.jsx("div",{children:"Loading...."}):C.jsxs("div",{children:[C.jsx(nj,{}),!t&&C.jsx(gN,{}),r&&C.jsx(O6,{open:r!=null,autoHideDuration:6e3,children:C.jsx(GF,{severity:r[1]?"success":"error",sx:{width:"100%"},children:r[0]})})]})};const Op="/transactions/",Dp=e=>({authorization:`Bearer ${e}`}),SU=async e=>{const t=localStorage.getItem("expenseTrackerToken");return(await Lo.post(Op,e,{headers:Dp(t)})).data},CU=async()=>{const e=localStorage.getItem("expenseTrackerToken");return(await Lo.get(Op,{headers:Dp(e)})).data},PU=async e=>{const t=localStorage.getItem("expenseTrackerToken");return await Lo.delete(Op+e,{headers:Dp(t)})},EU=async e=>{const t=localStorage.getItem("expenseTrackerToken");return(await Lo.put(Op+e.id,e,{headers:Dp(t)})).data},Bd={create:SU,fetchAll:CU,remove:PU,update:EU},kU=["localeText"],vg=p.createContext(null),jk=function(t){var n;const{localeText:r}=t,o=ne(t,kU),{utils:i,localeText:a}=(n=p.useContext(vg))!=null?n:{utils:void 0,localeText:void 0},s=we({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:f,localeText:h}=s,g=p.useMemo(()=>S({},h,a,r),[h,a,r]),m=p.useMemo(()=>{if(!u)return i||null;const y=new u({locale:f,formats:c,instance:d});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[u,f,c,d,i]),w=p.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),v=p.useMemo(()=>({utils:m,defaultDates:w,localeText:g}),[w,m,g]);return C.jsx(vg.Provider,{value:v,children:l})},RU=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:S({},e)}}}}),Fk={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",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"},TU=Fk;RU(Fk);const Zi=()=>{const e=p.useContext(vg);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=p.useMemo(()=>S({},TU,e.localeText),[e.localeText]);return p.useMemo(()=>S({},e,{localeText:t}),[e,t])},Pt=()=>Zi().utils,Ou=()=>Zi().defaultDates,Ts=()=>Zi().localeText,Du=e=>{const t=Pt(),n=p.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},MU=wn(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$U=wn(C.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),OU=wn(C.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),DU=wn(C.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");wn(C.jsxs(p.Fragment,{children:[C.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"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");wn(C.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");wn(C.jsxs(p.Fragment,{children:[C.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"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function AU(e){return Re("MuiPickersArrowSwitcher",e)}Te("MuiPickersArrowSwitcher",["root","spacer","button"]);const IU=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],LU=["ownerState"],NU=["ownerState"],_U=H("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),jU=H("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Ab=H(Eo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>S({},e.hidden&&{visibility:"hidden"})),FU=e=>{const{classes:t}=e;return ke({root:["root"],spacer:["spacer"],button:["button"]},AU,t)},zU=p.forwardRef(function(t,n){var r,o,i,a;const l=$o().direction==="rtl",u=we({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:d,slots:f,slotProps:h,isNextDisabled:g,isNextHidden:m,onGoToNext:w,nextLabel:v,isPreviousDisabled:y,isPreviousHidden:x,onGoToPrevious:b,previousLabel:P}=u,k=ne(u,IU),E=u,T=FU(E),A={isDisabled:g,isHidden:m,goTo:w,label:v},M={isDisabled:y,isHidden:x,goTo:b,label:P},O=(r=f==null?void 0:f.previousIconButton)!=null?r:Ab,_=yt({elementType:O,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:S({},E,{hidden:M.isHidden}),className:T.button}),$=(o=f==null?void 0:f.nextIconButton)!=null?o:Ab,D=yt({elementType:$,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"start",onClick:A.goTo},ownerState:S({},E,{hidden:A.isHidden}),className:T.button}),R=(i=f==null?void 0:f.leftArrowIcon)!=null?i:$U,N=yt({elementType:R,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=ne(N,LU),I=(a=f==null?void 0:f.rightArrowIcon)!=null?a:OU,L=yt({elementType:I,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),F=ne(L,NU);return C.jsxs(_U,S({ref:n,className:fe(T.root,d),ownerState:E},k,{children:[C.jsx(O,S({},_,{children:l?C.jsx(I,S({},F)):C.jsx(R,S({},j))})),c?C.jsx(At,{variant:"subtitle1",component:"span",children:c}):C.jsx(jU,{className:T.spacer,ownerState:E}),C.jsx($,S({},D,{children:l?C.jsx(R,S({},j)):C.jsx(I,S({},F))}))]}))}),Js=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),BU=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:i}},VU=["hours","minutes","seconds"],UU=e=>VU.includes(e),Ib=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),WU=(e,t)=>(n,r)=>e?t.isAfter(n,r):Ib(n,t)>Ib(r,t);function zk({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){var l,u;const c=p.useRef(n),d=p.useRef(o),f=p.useRef(o.includes(n)?n:o[0]),[h,g]=Bn({name:"useViews",state:"view",controlled:r,default:f.current}),m=p.useRef(i?h:null),[w,v]=Bn({name:"useViews",state:"focusedView",controlled:a,default:m.current});p.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(M=>!o.includes(M)))&&(g(o.includes(n)?n:o[0]),d.current=o,c.current=n)},[n,g,h,o]);const y=o.indexOf(h),x=(l=o[y-1])!=null?l:null,b=(u=o[y+1])!=null?u:null,P=Ee((M,O)=>{v(O?M:_=>M===_?null:_),s==null||s(M,O)}),k=Ee(M=>{M!==h&&(g(M),P(M,!0),t&&t(M))}),E=Ee(()=>{b&&k(b),P(b,!0)}),T=Ee((M,O,_)=>{const $=O==="finish",D=_?o.indexOf(_){e(M,O?"partial":"finish",_),O&&(k(O),P(O,!0))});return{view:h,setView:k,focusedView:w,setFocusedView:P,nextView:b,previousView:x,defaultView:f.current,goToNextView:E,setValueAndGoToNextView:T,setValueAndGoToView:A}}function HU(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Pt();return p.useMemo(()=>{const i=o.dateWithTimezone(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function YU(e,{disablePast:t,minDate:n,timezone:r}){const o=Pt();return p.useMemo(()=>{const i=o.dateWithTimezone(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}const su=36,Ap=2,KU=320,Bk=358,GU=H("div")({overflow:"hidden",width:KU,maxHeight:Bk,display:"flex",flexDirection:"column",margin:"0 auto"}),Ny=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var i,a;const s=Pt(),l=p.useRef(n),u=(i=t??l.current)!=null?i:o.emptyValue,c=p.useMemo(()=>o.getTimezone(s,u),[s,o,u]),d=Ee(m=>c==null?m:o.setTimezone(s,c,m)),f=(a=e??c)!=null?a:"default",h=p.useMemo(()=>o.setTimezone(s,f,u),[o,s,f,u]),g=Ee((m,...w)=>{const v=d(m);r==null||r(v,...w)});return{value:h,handleValueChange:g,timezone:f}},_y=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:i})=>{const[a,s]=Bn({name:e,state:"value",controlled:n,default:r??i.emptyValue}),l=Ee((u,...c)=>{s(u),o==null||o(u,...c)});return Ny({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:i})},kl=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=a.startOfDay(a.dateWithTimezone(void 0,s));n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,o)&&(u=o,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,o)&&(c=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(c){if(!i(c))return c;c=a.addDays(c,-1)}}return null},qU=(e,t)=>t==null||!e.isValid(t)?null:t,Er=(e,t,n)=>t==null||!e.isValid(t)?n:t,XU=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),jy=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},yg=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},Vk=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),QU=["year","month","day"],Lb=e=>QU.includes(e),Uk=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Js(n,["year"])?o.year:Js(n,["month"])?o.month:Js(n,["day"])?o.dayOfMonth:Js(n,["month","year"])?`${o.month} ${o.year}`:Js(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Qr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},ZU=e=>Math.max(...e.map(t=>{var n;return(n=Qr[t.type])!=null?n:1})),el=(e,t,n)=>{if(t===Qr.year)return e.startOfYear(n);if(t===Qr.month)return e.startOfMonth(n);if(t===Qr.day)return e.startOfDay(n);let r=n;return t{var i;let a=o?o():el(t,n,Vk(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=el(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=el(t,n,e.maxDate));const s=WU((i=e.disableIgnoringDatePartForTimeValidation)!=null?i:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=el(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:yg(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=el(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:yg(t,a,e.maxTime))),a},Wk=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},eW=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ip=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),i=e.startOfWeek(o),a=e.endOfWeek(o);let s=i;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},Hk=(e,t,n,r)=>{switch(n){case"month":return jy(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Ip(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},Yk=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(r.longestMonth,n);return e.formatByString(a,o.format)}const i=n.toString();return o.hasLeadingZerosInInput?Yk(e,i,o.maxLength):i},tW=(e,t,n,r,o,i,a)=>{const s=eW(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,d=()=>{const h=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),g=y=>Kk(e,t,y,h,n),m=n.type==="minutes"&&a!=null&&a.minutesStep?a.minutesStep:1;let v=parseInt(n.value,10)+s*m;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?v=h.minimum:v=h.maximum}return v%m!==0&&((s<0||l)&&(v+=m-(m+v)%m),(s>0||u)&&(v-=v%m)),v>h.maximum?g(h.minimum+(v-h.maximum-1)%(h.maximum-h.minimum+1)):v{const h=Hk(e,t,n.type,n.format);if(h.length===0)return n.value;if(c)return s>0||l?h[0]:h[h.length-1];const m=(h.indexOf(n.value)+h.length+s)%h.length;return h[m]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():f()},Fy=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Ma=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Gk=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let i=0;i{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},Nb=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),qk=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Xk=(e,t,n,r,o)=>{if(n!=="digit")return!1;const i=e.dateWithTimezone(void 0,t);switch(r){case"year":return qk(e,t,o)?e.formatByString(e.setYear(i,1),o)==="0001":e.formatByString(e.setYear(i,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(i),o).length>1;case"day":return e.formatByString(e.startOfMonth(i),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),o).length>1;case"hours":return e.formatByString(e.setHours(i,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(i,1),o).length>1;default:throw new Error("Invalid section type")}},rW=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},_b=(e,t,n,r,o,i,a,s)=>{let l="";const u=[],c=e.date(),d=x=>{if(x==="")return null;const b=Wk(e,x),P=Xk(e,t,b.contentType,b.type,x),k=a?P:b.contentType==="digit",E=o!=null&&e.isValid(o);let T=E?e.formatByString(o,x):"",A=null;if(k)if(P)A=T===""?e.formatByString(c,x).length:T.length;else{if(b.maxLength==null)throw new Error(`MUI: The token ${x} should have a 'maxDigitNumber' property on it's adapter`);A=b.maxLength,E&&(T=Yk(e,T,A))}return u.push(S({},b,{format:x,maxLength:A,value:T,placeholder:nW(e,t,n,b,x),hasLeadingZeros:P,hasLeadingZerosInFormat:P,hasLeadingZerosInInput:k,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let f=10,h=r,g=e.expandFormat(r);for(;g!==h;)if(h=g,g=e.expandFormat(h),f-=1,f<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const m=g,w=rW(e,m),v=new RegExp(`^(${Object.keys(e.formatTokenMap).join("|")})`);let y="";for(let x=0;xT.start<=x&&T.end>=x),P=m[x],k=b!=null,E=`${y}${m.slice(x)}`;!k&&P.match(/([A-Za-z]+)/)&&v.test(E)?y+=P:k&&(b==null?void 0:b.start)===x||(b==null?void 0:b.end)===x||(d(y),y="",u.length===0?l+=P:u[u.length-1].endSeparator+=P)}return d(y),u.map(x=>{const b=P=>{let k=P;return s&&k!==null&&k.includes(" ")&&(k=`⁩${k}⁦`),i==="spacious"&&["/",".","-"].includes(k)&&(k=` ${k} `),k};return x.startSeparator=b(x.startSeparator),x.endSeparator=b(x.endSeparator),x})},oW=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const i=Fy(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${i}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},aW=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:a}=jy(e,n).reduce((s,l)=>{const u=e.getDaysInMonth(l);return u>s.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:qk(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):i,longestMonth:a}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const u=Ip(e,t,s).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},sW=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const i=Ip(e,t,n.format),a=e.formatByString(r,n.format),s=i.indexOf(a),u=i.indexOf(n.value)-s;return e.addDays(r,u)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const i=e.getHours(r)<12,a=e.getHours(o);return i&&a>=12?e.addHours(o,-12):!i&&a<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},jb={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Fb=(e,t,n,r,o,i)=>[...r].sort((a,s)=>jb[a.type]-jb[s.type]).reduce((a,s)=>!i||s.modified?sW(e,t,s,n,a):a,o),lW=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,uW=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,d=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,u)=>{var c;return u>=i&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,u)=>{const c=o[u],d=c===0?null:r[c-1],f=c===e.length-1?null:r[c+1];n[u]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},cW=["value","referenceDate"],fi={emptyValue:null,getTodayValue:Vk,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ne(e,cW);return t!=null&&r.utils.isValid(t)?t:n??JU(r)},cleanValue:qU,areValuesEqual:XU,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},dW={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:Gk(o(t),r),getValueStrFromSections:iW,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Qk=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function fW(e){return Re("MuiPickersDay",e)}const bi=Te("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),pW=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],hW=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return ke({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},fW,l)},Zk=({theme:e,ownerState:t})=>S({},e.typography.caption,{width:su,height:su,borderRadius:"50%",padding:0,backgroundColor:"transparent",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})`:Ge(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ge(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${bi.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${bi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${bi.disabled}:not(.${bi.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${bi.disabled}&.${bi.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${Ap}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${bi.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Jk=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},mW=H(rs,{name:"MuiPickersDay",slot:"Root",overridesResolver:Jk})(Zk),gW=H("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Jk})(({theme:e,ownerState:t})=>S({},Zk({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),tl=()=>{},vW=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:h=tl,onBlur:g=tl,onKeyDown:m=tl,onMouseDown:w=tl,onMouseEnter:v=tl,outsideCurrentMonth:y,selected:x=!1,showDaysOutsideCurrentMonth:b=!1,children:P,today:k=!1}=r,E=ne(r,pW),T=S({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:b,today:k}),A=hW(T),M=Pt(),O=p.useRef(null),_=ht(O,n);cn(()=>{o&&!s&&!c&&!y&&O.current.focus()},[o,s,c,y]);const $=R=>{w(R),y&&R.preventDefault()},D=R=>{s||f(a),y&&R.currentTarget.focus(),d&&d(R)};return y&&!b?C.jsx(gW,{className:fe(A.root,A.hiddenDaySpacingFiller,i),ownerState:T,role:E.role}):C.jsx(mW,S({className:fe(A.root,i),ref:_,centerRipple:!0,disabled:s,tabIndex:x?0:-1,onKeyDown:R=>m(R,a),onFocus:R=>h(R,a),onBlur:R=>g(R,a),onMouseEnter:R=>v(R,a),onClick:D,onMouseDown:$},E,{ownerState:T,children:P||M.format(a,"dayOfMonth")}))}),yW=p.memo(vW);function eR(e,t,n,r){const{value:o,onError:i}=e,a=Zi(),s=p.useRef(r),l=t({adapter:a,value:o,props:e});return p.useEffect(()=>{i&&!n(l,s.current)&&i(l,o),s.current=l},[n,i,s,l,o]),l}const xW=e=>{const t=Pt(),n=Ts(),r=Zi(),i=$o().direction==="rtl",{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:c,internalProps:{value:d,defaultValue:f,referenceDate:h,onChange:g,format:m,formatDensity:w="dense",selectedSections:v,onSelectedSectionsChange:y,shouldRespectLeadingZeros:x=!1,timezone:b}}=e,{timezone:P,value:k,handleValueChange:E}=Ny({timezone:b,value:d,defaultValue:f,onChange:g,valueManager:a}),T=p.useMemo(()=>aW(t,P),[t,P]),A=p.useCallback((B,te=null)=>s.getSectionsFromValue(t,B,te,i,J=>_b(t,P,n,m,J,w,x,i)),[s,m,n,i,x,t,w,P]),M=p.useMemo(()=>s.getValueStrFromSections(A(a.emptyValue),i),[s,A,a.emptyValue,i]),[O,_]=p.useState(()=>{const B=A(k),te={sections:B,value:k,referenceValue:a.emptyValue,tempValueStrAndroid:null},J=ZU(B),G=a.getInitialReferenceValue({referenceDate:h,value:k,utils:t,props:c,granularity:J,timezone:P});return S({},te,{referenceValue:G})}),[$,D]=Bn({controlled:v,default:null,name:"useField",state:"selectedSectionIndexes"}),R=B=>{D(B),y==null||y(B),_(te=>S({},te,{selectedSectionQuery:null}))},N=p.useMemo(()=>{if($==null)return null;if($==="all")return{startIndex:0,endIndex:O.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof $=="number")return{startIndex:$,endIndex:$};if(typeof $=="string"){const B=O.sections.findIndex(te=>te.type===$);return{startIndex:B,endIndex:B}}return $},[$,O.sections]),j=({value:B,referenceValue:te,sections:J})=>{_(se=>S({},se,{sections:J,value:B,referenceValue:te,tempValueStrAndroid:null}));const G={validationError:u({adapter:r,value:B,props:S({},c,{value:B,timezone:P})})};E(B,G)},I=(B,te)=>{const J=[...O.sections];return J[B]=S({},J[B],{value:te,modified:!0}),Gk(J,i)},L=()=>{a.areValuesEqual(t,O.value,a.emptyValue)||j({value:a.emptyValue,referenceValue:O.referenceValue,sections:A(a.emptyValue)})},F=()=>{if(N==null)return;const B=O.sections[N.startIndex];if(B.value==="")return;const te=s.getActiveDateManager(t,O,B),G=te.getSections(O.sections).filter(re=>re.value!=="").length===1,se=I(N.startIndex,""),pe=G?null:t.date(new Date("")),le=te.getNewValuesFromNewActiveDate(pe);(pe!=null&&!t.isValid(pe))!=(te.date!=null&&!t.isValid(te.date))?j(S({},le,{sections:se})):_(re=>S({},re,le,{sections:se,tempValueStrAndroid:null}))},K=B=>{const te=(se,pe)=>{const le=t.parse(se,m);if(le==null||!t.isValid(le))return null;const re=_b(t,P,n,m,le,w,x,i);return Fb(t,P,le,re,pe,!1)},J=s.parseValueStr(B,O.referenceValue,te),G=s.updateReferenceValue(t,J,O.referenceValue);j({value:J,referenceValue:G,sections:A(J,O.sections)})},ae=({activeSection:B,newSectionValue:te,shouldGoToNextSection:J})=>{J&&N&&N.startIndexS({},oe,re,{sections:se,tempValueStrAndroid:null}))},ie=B=>_(te=>S({},te,{tempValueStrAndroid:B}));return p.useEffect(()=>{const B=A(O.value);_(te=>S({},te,{sections:B}))},[m,t.locale]),p.useEffect(()=>{let B=!1;a.areValuesEqual(t,O.value,k)?B=a.getTimezone(t,O.value)!==a.getTimezone(t,k):B=!0,B&&_(te=>S({},te,{value:k,referenceValue:s.updateReferenceValue(t,k,te.referenceValue),sections:A(k)}))},[k]),{state:O,selectedSectionIndexes:N,setSelectedSections:R,clearValue:L,clearActiveSection:F,updateSectionValue:ae,updateValueFromValueStr:K,setTempAndroidValueStr:ie,sectionsValueBoundaries:T,placeholder:M,timezone:P}},bW=5e3,la=e=>e.saveQuery!=null,wW=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const i=Pt(),[a,s]=p.useState(null),l=Ee(()=>s(null));p.useEffect(()=>{var h;a!=null&&((h=e[a.sectionIndex])==null?void 0:h.type)!==a.sectionType&&l()},[e,a,l]),p.useEffect(()=>{if(a!=null){const h=setTimeout(()=>l(),bW);return()=>{window.clearTimeout(h)}}return()=>{}},[a,l]);const u=({keyPressed:h,sectionIndex:g},m,w)=>{const v=h.toLowerCase(),y=e[g];if(a!=null&&(!w||w(a.value))&&a.sectionIndex===g){const b=`${a.value}${v}`,P=m(b,y);if(!la(P))return s({sectionIndex:g,value:b,sectionType:y.type}),P}const x=m(v,y);return la(x)&&!x.saveQuery?(l(),null):(s({sectionIndex:g,value:v,sectionType:y.type}),la(x)?null:x)},c=h=>{const g=(v,y,x)=>{const b=y.filter(P=>P.toLowerCase().startsWith(x));return b.length===0?{saveQuery:!1}:{sectionValue:b[0],shouldGoToNextSection:b.length===1}},m=(v,y,x,b)=>{const P=k=>Hk(i,o,y.type,k);if(y.contentType==="letter")return g(y.format,P(y.format),v);if(x&&b!=null&&Wk(i,x).contentType==="letter"){const k=P(x),E=g(x,k,v);return la(E)?{saveQuery:!1}:S({},E,{sectionValue:b(E.sectionValue,k)})}return{saveQuery:!1}};return u(h,(v,y)=>{switch(y.type){case"month":{const x=b=>Nb(i,b,i.formats.month,y.format);return m(v,y,i.formats.month,x)}case"weekDay":{const x=(b,P)=>P.indexOf(b).toString();return m(v,y,i.formats.weekday,x)}case"meridiem":return m(v,y);default:return{saveQuery:!1}}})},d=h=>{const g=(w,v)=>{const y=+`${w}`,x=n[v.type]({currentDate:null,format:v.format,contentType:v.contentType});if(y>x.maximum)return{saveQuery:!1};if(yx.maximum||w.length===x.maximum.toString().length;return{sectionValue:Kk(i,o,y,x,v),shouldGoToNextSection:b}};return u(h,(w,v)=>{if(v.contentType==="digit"||v.contentType==="digit-with-letter")return g(w,v);if(v.type==="month"){const y=Xk(i,o,"digit","month","MM"),x=g(w,{type:v.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(la(x))return x;const b=Nb(i,x.sectionValue,"MM",v.format);return S({},x,{sectionValue:b})}if(v.type==="weekDay"){const y=g(w,v);if(la(y))return y;const x=Ip(i,o,v.format)[Number(y.sectionValue)-1];return S({},y,{sectionValue:x})}return{saveQuery:!1}},w=>!Number.isNaN(Number(w)))};return{applyCharacterEditing:Ee(h=>{const g=e[h.sectionIndex],w=!Number.isNaN(Number(h.keyPressed))?d(h):c(h);w==null?r(null):t({activeSection:g,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:l}};function SW(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Vd=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Vd(t.shadowRoot):t:null},CW=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error"],PW=e=>{const t=Pt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:i,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:d,timezone:f}=xW(e),{inputRef:h,internalProps:g,internalProps:{readOnly:m=!1,unstableFieldRef:w,minutesStep:v},forwardedProps:{onClick:y,onKeyDown:x,onFocus:b,onBlur:P,onMouseUp:k,onPaste:E,error:T},fieldValueManager:A,valueManager:M,validator:O}=e,_=ne(e.forwardedProps,CW),{applyCharacterEditing:$,resetCharacterQuery:D}=wW({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:f}),R=p.useRef(null),N=ht(h,R),j=p.useRef(void 0),L=$o().direction==="rtl",F=p.useMemo(()=>uW(n.sections,L),[n.sections,L]),K=()=>{var V;if(m){o(null);return}const ge=(V=R.current.selectionStart)!=null?V:0;let X;ge<=n.sections[0].startInInput||ge>=n.sections[n.sections.length-1].endInInput?X=1:X=n.sections.findIndex(be=>be.startInInput-be.startSeparator.length>ge);const he=X===-1?n.sections.length-1:X-1;o(he)},ae=Ee((...V)=>{y==null||y(...V),K()}),ie=Ee(V=>{k==null||k(V),V.preventDefault()}),B=Ee((...V)=>{b==null||b(...V);const ge=R.current;window.clearTimeout(j.current),j.current=setTimeout(()=>{!ge||ge!==R.current||r!=null||m||(ge.value.length&&Number(ge.selectionEnd)-Number(ge.selectionStart)===ge.value.length?o("all"):K())})}),te=Ee((...V)=>{P==null||P(...V),o(null)}),J=Ee(V=>{if(E==null||E(V),m){V.preventDefault();return}const ge=V.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const X=n.sections[r.startIndex],he=/^[a-zA-Z]+$/.test(ge),be=/^[0-9]+$/.test(ge),$e=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ge);if(X.contentType==="letter"&&he||X.contentType==="digit"&&be||X.contentType==="digit-with-letter"&&$e)return;if(he||be){V.preventDefault();return}}V.preventDefault(),D(),l(ge)}),G=Ee(V=>{if(m)return;const ge=V.target.value,X=V.nativeEvent.data,he=X&&X.length>1,be=he?X:ge,$e=Ma(be);if(r==null||he){l(he?X:$e);return}let Le;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&$e.length===1)Le=$e;else{const Ue=Ma(A.getValueStrFromSections(n.sections,L));let et=-1,Be=-1;for(let Se=0;Sett.end)return;const Ye=$e.length-Ue.length+tt.end-Ma(tt.endSeparator||"").length;Le=$e.slice(tt.start+Ma(tt.startSeparator||"").length,Ye)}if(lW()&&Le.length===0){u(be);return}$({keyPressed:Le,sectionIndex:r.startIndex})}),se=Ee(V=>{switch(x==null||x(V),!0){case(V.key==="a"&&(V.ctrlKey||V.metaKey)):{V.preventDefault(),o("all");break}case V.key==="ArrowRight":{if(V.preventDefault(),r==null)o(F.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const ge=F.neighbors[r.startIndex].rightIndex;ge!==null&&o(ge)}break}case V.key==="ArrowLeft":{if(V.preventDefault(),r==null)o(F.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const ge=F.neighbors[r.startIndex].leftIndex;ge!==null&&o(ge)}break}case["Backspace","Delete"].includes(V.key):{if(V.preventDefault(),m)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?i():a(),D();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(V.key):{if(V.preventDefault(),m||r==null)break;const ge=n.sections[r.startIndex],X=A.getActiveDateManager(t,n,ge),he=tW(t,f,ge,V.key,c,X.date,{minutesStep:v});s({activeSection:ge,newSectionValue:he,shouldGoToNextSection:!1});break}}});cn(()=>{if(!R.current)return;if(r==null){R.current.scrollLeft&&(R.current.scrollLeft=0);return}const V=n.sections[r.startIndex],ge=n.sections[r.endIndex];let X=V.startInInput,he=ge.endInInput;if(r.shouldSelectBoundarySelectors&&(X-=V.startSeparator.length,he+=ge.endSeparator.length),X!==R.current.selectionStart||he!==R.current.selectionEnd){const be=R.current.scrollTop;R.current===Vd(document)&&R.current.setSelectionRange(X,he),R.current.scrollTop=be}});const pe=eR(S({},g,{value:n.value,timezone:f}),O,M.isSameError,M.defaultErrorState),le=p.useMemo(()=>T!==void 0?T:M.hasError(pe),[M,pe,T]);p.useEffect(()=>{!le&&!r&&D()},[n.referenceValue,r,le]),p.useEffect(()=>(R.current&&R.current===document.activeElement&&o("all"),()=>window.clearTimeout(j.current)),[]),p.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(D(),a())},[n.tempValueStrAndroid]);const re=p.useMemo(()=>{var V;return(V=n.tempValueStrAndroid)!=null?V:A.getValueStrFromSections(n.sections,L)},[n.sections,A,n.tempValueStrAndroid,L]),ee=p.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),me=!(R.current&&R.current===Vd(document))&&M.areValuesEqual(t,n.value,M.emptyValue);return p.useImperativeHandle(w,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var V,ge;const X=(V=R.current.selectionStart)!=null?V:0,he=(ge=R.current.selectionEnd)!=null?ge:0;if(X===0&&he===0)return null;const be=X<=n.sections[0].startInInput?1:n.sections.findIndex($e=>$e.startInInput-$e.startSeparator.length>X);return be===-1?n.sections.length-1:be-1},setSelectedSections:V=>o(V)})),S({placeholder:d,autoComplete:"off"},_,{value:me?"":re,inputMode:ee,readOnly:m,onClick:ae,onFocus:B,onBlur:te,onPaste:J,onChange:G,onKeyDown:se,onMouseUp:ie,error:le,ref:N})},zy=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:i,disablePast:a,disableFuture:s,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=Er(n.utils,e.minDate,n.defaultDates.minDate),d=Er(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(a&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}},xg=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],bg=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],tR=["minDateTime","maxDateTime"],EW=[...xg,...bg,...tR],kW=e=>EW.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),RW=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],TW=(e,t)=>{const n=S({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return RW.forEach(o),t==="date"?xg.forEach(o):t==="time"?bg.forEach(o):t==="date-time"&&(xg.forEach(o),bg.forEach(o),tR.forEach(o)),{forwardedProps:n,internalProps:r}},MW=e=>{var t,n,r;const o=Pt(),i=Ou();return S({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Er(o,e.minDate,i.minDate),maxDate:Er(o,e.maxDate,i.maxDate)})},$W=({props:e,inputRef:t})=>{const n=MW(e),{forwardedProps:r,internalProps:o}=TW(n,"date");return PW({inputRef:t,forwardedProps:r,internalProps:o,valueManager:fi,fieldValueManager:dW,validator:zy,valueType:"date"})},OW=["components","componentsProps","slots","slotProps","InputProps","inputProps"],DW=["inputRef"],AW=["ref","onPaste","onKeyDown","inputMode","readOnly"],IW=p.forwardRef(function(t,n){var r,o,i;const a=we({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:f}=a,h=ne(a,OW),g=a,m=(r=(o=u==null?void 0:u.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Fr,w=yt({elementType:m,externalSlotProps:(i=c==null?void 0:c.textField)!=null?i:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:g}),{inputRef:v}=w,y=ne(w,DW);y.inputProps=S({},f,y.inputProps),y.InputProps=S({},d,y.InputProps);const x=$W({props:y,inputRef:v}),{ref:b,onPaste:P,onKeyDown:k,inputMode:E,readOnly:T}=x,A=ne(x,AW);return C.jsx(m,S({ref:n},A,{InputProps:S({},A.InputProps,{readOnly:T}),inputProps:S({},A.inputProps,{inputMode:E,onPaste:P,onKeyDown:k,ref:b})}))}),nR=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Zi();return p.useCallback(u=>zy({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s}})!==null,[l,e,t,n,r,o,i,a,s])},LW=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return S({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return S({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return S({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},NW=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:i,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:d,timezone:f}=e,h=Du(f),g=Pt(),m=p.useRef(LW(!!c,a,g)).current,w=p.useMemo(()=>{let T=null;return n?T=n:r&&(T=g.startOfMonth(r)),fi.getInitialReferenceValue({value:t,utils:g,timezone:f,props:e,referenceDate:T,granularity:Qr.day})},[]),[v,y]=p.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:t||h,currentMonth:g.startOfMonth(w),slideDirection:"left"}),x=p.useCallback(T=>{y(S({type:"changeMonth"},T)),u&&u(T.newMonth)},[u]),b=p.useCallback(T=>{const A=T;g.isSameMonth(A,v.currentMonth)||x({newMonth:g.startOfMonth(A),direction:g.isAfterDay(A,v.currentMonth)?"left":"right"})},[v.currentMonth,x,g]),P=nR({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:o,disablePast:i,timezone:f}),k=p.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=Ee((T,A)=>{P(T)||y({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:A})});return{referenceDate:w,calendarState:v,changeMonth:b,changeFocusedDay:E,isDateDisabled:P,onMonthSwitchingAnimationEnd:k,handleChangeMonth:x}},_W=e=>Re("MuiPickersFadeTransitionGroup",e);Te("MuiPickersFadeTransitionGroup",["root"]);const jW=e=>{const{classes:t}=e;return ke({root:["root"]},_W,t)},zb=500,FW=H(ey,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function rR(e){const t=we({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=jW(t);return o?n:C.jsx(FW,{className:fe(a.root,r),children:C.jsx(Mp,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:zb,enter:zb/2,exit:0},children:n},i)})}const zW=e=>Re("MuiPickersSlideTransition",e),ur=Te("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),BW=["children","className","reduceAnimations","slideDirection","transKey","classes"],VW=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ke(r,zW,t)},oR=350,UW=H(ey,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ur["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ur["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ur.slideEnterActive}`]:t.slideEnterActive},{[`.${ur.slideExit}`]:t.slideExit},{[`.${ur["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ur["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:oR,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},[`& .${ur["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ur["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ur.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ur.slideExit}`]:{transform:"translate(0%)"},[`& .${ur["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ur["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function WW(e){const t=we({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=ne(t,BW),s=VW(t);if(o)return C.jsx("div",{className:fe(s.root,r),children:n});const l={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return C.jsx(UW,{className:fe(s.root,r),childFactory:u=>p.cloneElement(u,{classNames:l}),role:"presentation",children:C.jsx(TI,S({mountOnEnter:!0,unmountOnExit:!0,timeout:oR,classNames:l},a,{children:n}),i)})}const HW=e=>Re("MuiDayCalendar",e);Te("MuiDayCalendar",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const YW=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],KW=["ownerState"],GW=e=>{const{classes:t}=e;return ke({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},HW,t)},qW=e=>e.charAt(0).toUpperCase(),iR=(su+Ap*2)*6,XW=H("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),QW=H(At,{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})),ZW=H(At,{name:"MuiDayPicker",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})),JW=H(At,{name:"MuiDayPicker",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>S({},e.typography.caption,{width:su,height:su,padding:0,margin:`0 ${Ap}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),e8=H("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:iR}),t8=H(WW,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:iR}),n8=H("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),r8=H("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ap}px 0`,display:"flex",justifyContent:"center"});function o8(e){var t,n,r;let{parentProps:o,day:i,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=ne(e,YW);const{disabled:f,disableHighlightToday:h,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:m,components:w,componentsProps:v,slots:y,slotProps:x,timezone:b}=o,P=Pt(),k=Du(b),E=a!==null&&P.isSameDay(i,a),T=s.some(j=>P.isSameDay(j,i)),A=P.isSameDay(i,k),M=(t=(n=y==null?void 0:y.day)!=null?n:w==null?void 0:w.Day)!=null?t:yW,O=yt({elementType:M,externalSlotProps:(r=x==null?void 0:x.day)!=null?r:v==null?void 0:v.day,additionalProps:S({disableHighlightToday:h,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:g,"data-timestamp":P.toJsDate(i).valueOf()},d),ownerState:S({},o,{day:i,selected:T})}),_=ne(O,KW),$=p.useMemo(()=>f||l(i),[f,l,i]),D=p.useMemo(()=>P.getMonth(i)!==u,[P,i,u]),R=p.useMemo(()=>{const j=P.startOfMonth(P.setMonth(i,u));return m?P.isSameDay(i,P.startOfWeek(j)):P.isSameDay(i,j)},[u,i,m,P]),N=p.useMemo(()=>{const j=P.endOfMonth(P.setMonth(i,u));return m?P.isSameDay(i,P.endOfWeek(j)):P.isSameDay(i,j)},[u,i,m,P]);return C.jsx(M,S({},_,{day:i,disabled:$,autoFocus:c&&E,today:A,outsideCurrentMonth:D,isFirstVisibleCell:R,isLastVisibleCell:N,selected:T,tabIndex:E?0:-1,"aria-selected":T,"aria-current":A?"date":void 0}))}function i8(e){const t=we({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:i,focusedDay:a,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:d,renderLoading:f=()=>C.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:g,disablePast:m,disableFuture:w,minDate:v,maxDate:y,shouldDisableDate:x,shouldDisableMonth:b,shouldDisableYear:P,dayOfWeekFormatter:k=qW,hasFocus:E,onFocusedViewChange:T,gridLabelId:A,displayWeekNumber:M,fixedWeekNumber:O,autoFocus:_,timezone:$}=t,D=Du($),R=Pt(),N=GW(t),I=$o().direction==="rtl",L=nR({shouldDisableDate:x,shouldDisableMonth:b,shouldDisableYear:P,minDate:v,maxDate:y,disablePast:m,disableFuture:w,timezone:$}),F=Ts(),[K,ae]=Bn({name:"DayCalendar",state:"hasFocus",controlled:E,default:_??!1}),[ie,B]=p.useState(()=>a||D),te=Ee(X=>{c||l(X)}),J=X=>{L(X)||(n(X),B(X),T==null||T(!0),ae(!0))},G=Ee((X,he)=>{switch(X.key){case"ArrowUp":J(R.addDays(he,-7)),X.preventDefault();break;case"ArrowDown":J(R.addDays(he,7)),X.preventDefault();break;case"ArrowLeft":{const be=R.addDays(he,I?1:-1),$e=R.addMonths(he,I?1:-1),Le=kl({utils:R,date:be,minDate:I?be:R.startOfMonth($e),maxDate:I?R.endOfMonth($e):be,isDateDisabled:L,timezone:$});J(Le||be),X.preventDefault();break}case"ArrowRight":{const be=R.addDays(he,I?-1:1),$e=R.addMonths(he,I?-1:1),Le=kl({utils:R,date:be,minDate:I?R.startOfMonth($e):be,maxDate:I?be:R.endOfMonth($e),isDateDisabled:L,timezone:$});J(Le||be),X.preventDefault();break}case"Home":J(R.startOfWeek(he)),X.preventDefault();break;case"End":J(R.endOfWeek(he)),X.preventDefault();break;case"PageUp":J(R.addMonths(he,1)),X.preventDefault();break;case"PageDown":J(R.addMonths(he,-1)),X.preventDefault();break}}),se=Ee((X,he)=>J(he)),pe=Ee((X,he)=>{K&&R.isSameDay(ie,he)&&(T==null||T(!1))}),le=R.getMonth(o),re=p.useMemo(()=>i.filter(X=>!!X).map(X=>R.startOfDay(X)),[R,i]),ee=le,oe=p.useMemo(()=>p.createRef(),[ee]),me=R.startOfWeek(D),V=p.useMemo(()=>{const X=R.startOfMonth(o),he=R.endOfMonth(o);return L(ie)||R.isAfterDay(ie,he)||R.isBeforeDay(ie,X)?kl({utils:R,date:ie,minDate:X,maxDate:he,disablePast:m,disableFuture:w,isDateDisabled:L,timezone:$}):ie},[o,w,m,ie,L,R,$]),ge=p.useMemo(()=>{const X=R.setTimezone(o,$),he=R.getWeekArray(X);let be=R.addMonths(X,1);for(;O&&he.length{he.length{var be;return C.jsx(QW,{variant:"caption",role:"columnheader","aria-label":R.format(R.addDays(me,he),"weekday"),className:N.weekDayLabel,children:(be=k==null?void 0:k(X))!=null?be:X},X+he.toString())})]}),s?C.jsx(e8,{className:N.loadingContainer,children:f()}):C.jsx(t8,S({transKey:ee,onExited:u,reduceAnimations:d,slideDirection:h,className:fe(r,N.slideTransition)},g,{nodeRef:oe,children:C.jsx(n8,{ref:oe,role:"rowgroup",className:N.monthContainer,children:ge.map((X,he)=>C.jsxs(r8,{role:"row",className:N.weekContainer,"aria-rowindex":he+1,children:[M&&C.jsx(JW,{className:N.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(R.getWeekNumber(X[0])),children:F.calendarWeekNumberText(R.getWeekNumber(X[0]))}),X.map((be,$e)=>C.jsx(o8,{parentProps:t,day:be,selectedDays:re,focusableDay:V,onKeyDown:G,onFocus:se,onBlur:pe,onDaySelect:te,isDateDisabled:L,currentMonthNumber:le,isViewFocused:K,"aria-colindex":$e+1},be.toString()))]},`week-${X[0]}`))})}))]})}function a8(e){return Re("MuiPickersMonth",e)}const yc=Te("MuiPickersMonth",["root","monthButton","disabled","selected"]),s8=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","monthsPerRow"],l8=e=>{const{disabled:t,selected:n,classes:r}=e;return ke({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},a8,r)},u8=H("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),c8=H("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${yc.disabled}`]:t.disabled},{[`&.${yc.selected}`]:t.selected}]})(({theme:e})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${yc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${yc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),d8=p.memo(function(t){const n=we({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:i,value:a,tabIndex:s,onClick:l,onKeyDown:u,onFocus:c,onBlur:d,"aria-current":f}=n,h=ne(n,s8),g=p.useRef(null),m=l8(n);return cn(()=>{if(r){var w;(w=g.current)==null||w.focus()}},[r]),C.jsx(u8,S({className:m.root,ownerState:n},h,{children:C.jsx(c8,{ref:g,disabled:i,type:"button",tabIndex:i?-1:s,"aria-current":f,onClick:w=>l(w,a),onKeyDown:w=>u(w,a),onFocus:w=>c(w,a),onBlur:w=>d(w,a),className:m.monthButton,ownerState:n,children:o})}))});function f8(e){return Re("MuiMonthCalendar",e)}Te("MuiMonthCalendar",["root"]);const p8=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone"],h8=e=>{const{classes:t}=e;return ke({root:["root"]},f8,t)};function m8(e,t){const n=Pt(),r=Ou(),o=we({props:e,name:t});return S({disableFuture:!1,disablePast:!1},o,{minDate:Er(n,o.minDate,r.minDate),maxDate:Er(n,o.maxDate,r.maxDate)})}const g8=H("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:320}),v8=p.forwardRef(function(t,n){const r=m8(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:h,shouldDisableMonth:g,readOnly:m,disableHighlightToday:w,autoFocus:v=!1,onMonthFocus:y,hasFocus:x,onFocusedViewChange:b,monthsPerRow:P=3,timezone:k}=r,E=ne(r,p8),{value:T,handleValueChange:A,timezone:M}=_y({name:"MonthCalendar",timezone:k,value:i,defaultValue:a,onChange:h,valueManager:fi}),O=Du(M),_=ws(),$=Pt(),D=p.useMemo(()=>fi.getInitialReferenceValue({value:T,utils:$,props:r,timezone:M,referenceDate:s,granularity:Qr.month}),[]),R=r,N=h8(R),j=p.useMemo(()=>$.getMonth(O),[$,O]),I=p.useMemo(()=>T!=null?$.getMonth(T):w?null:$.getMonth(D),[T,$,w,D]),[L,F]=p.useState(()=>I||j),[K,ae]=Bn({name:"MonthCalendar",state:"hasFocus",controlled:x,default:v??!1}),ie=Ee(le=>{ae(le),b&&b(le)}),B=p.useCallback(le=>{const re=$.startOfMonth(c&&$.isAfter(O,f)?O:f),ee=$.startOfMonth(u&&$.isBefore(O,d)?O:d),oe=$.startOfMonth(le);return $.isBefore(oe,re)||$.isAfter(oe,ee)?!0:g?g(oe):!1},[u,c,d,f,O,g,$]),te=Ee((le,re)=>{if(m)return;const ee=$.setMonth(T??D,re);A(ee)}),J=Ee(le=>{B($.setMonth(T??D,le))||(F(le),ie(!0),y&&y(le))});p.useEffect(()=>{F(le=>I!==null&&le!==I?I:le)},[I]);const G=Ee((le,re)=>{switch(le.key){case"ArrowUp":J((12+re-3)%12),le.preventDefault();break;case"ArrowDown":J((12+re+3)%12),le.preventDefault();break;case"ArrowLeft":J((12+re+(_.direction==="ltr"?-1:1))%12),le.preventDefault();break;case"ArrowRight":J((12+re+(_.direction==="ltr"?1:-1))%12),le.preventDefault();break}}),se=Ee((le,re)=>{J(re)}),pe=Ee((le,re)=>{L===re&&ie(!1)});return C.jsx(g8,S({ref:n,className:fe(N.root,o),ownerState:R},E,{children:jy($,T??D).map(le=>{const re=$.getMonth(le),ee=$.format(le,"monthShort"),oe=re===I,me=l||B(le);return C.jsx(d8,{selected:oe,value:re,onClick:te,onKeyDown:G,autoFocus:K&&re===L,disabled:me,tabIndex:re===L?0:-1,onFocus:se,onBlur:pe,"aria-current":j===re?"date":void 0,monthsPerRow:P,children:ee},ee)})}))});function y8(e){return Re("MuiPickersYear",e)}const xc=Te("MuiPickersYear",["root","yearButton","selected","disabled"]),x8=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],b8=e=>{const{disabled:t,selected:n,classes:r}=e;return ke({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},y8,r)},w8=H("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),S8=H("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${xc.disabled}`]:t.disabled},{[`&.${xc.selected}`]:t.selected}]})(({theme:e})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Ge(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${xc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),C8=p.memo(function(t){const n=we({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:d,onBlur:f,"aria-current":h}=n,g=ne(n,x8),m=p.useRef(null),w=b8(n);return p.useEffect(()=>{r&&m.current.focus()},[r]),C.jsx(w8,S({className:fe(w.root,o),ownerState:n},g,{children:C.jsx(S8,{ref:m,disabled:a,type:"button",tabIndex:a?-1:l,"aria-current":h,onClick:v=>u(v,s),onKeyDown:v=>c(v,s),onFocus:v=>d(v,s),onBlur:v=>f(v,s),className:w.yearButton,ownerState:n,children:i})}))});function P8(e){return Re("MuiYearCalendar",e)}Te("MuiYearCalendar",["root"]);const E8=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone"],k8=e=>{const{classes:t}=e;return ke({root:["root"]},P8,t)};function R8(e,t){const n=Pt(),r=Ou(),o=we({props:e,name:t});return S({disablePast:!1,disableFuture:!1},o,{minDate:Er(n,o.minDate,r.minDate),maxDate:Er(n,o.maxDate,r.maxDate)})}const T8=H("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:320,maxHeight:304,boxSizing:"border-box",position:"relative"}),M8=p.forwardRef(function(t,n){const r=R8(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:f,minDate:h,onChange:g,readOnly:m,shouldDisableYear:w,disableHighlightToday:v,onYearFocus:y,hasFocus:x,onFocusedViewChange:b,yearsPerRow:P=3,timezone:k}=r,E=ne(r,E8),{value:T,handleValueChange:A,timezone:M}=_y({name:"YearCalendar",timezone:k,value:a,defaultValue:s,onChange:g,valueManager:fi}),O=Du(M),_=ws(),$=Pt(),D=p.useMemo(()=>fi.getInitialReferenceValue({value:T,utils:$,props:r,timezone:M,referenceDate:l,granularity:Qr.year}),[]),R=r,N=k8(R),j=p.useMemo(()=>$.getYear(O),[$,O]),I=p.useMemo(()=>T!=null?$.getYear(T):v?null:$.getYear(D),[T,$,v,D]),[L,F]=p.useState(()=>I||j),[K,ae]=Bn({name:"YearCalendar",state:"hasFocus",controlled:x,default:o??!1}),ie=Ee(ee=>{ae(ee),b&&b(ee)}),B=p.useCallback(ee=>{if(d&&$.isBeforeYear(ee,O)||c&&$.isAfterYear(ee,O)||h&&$.isBeforeYear(ee,h)||f&&$.isAfterYear(ee,f))return!0;if(!w)return!1;const oe=$.startOfYear(ee);return w(oe)},[c,d,f,h,O,w,$]),te=Ee((ee,oe)=>{if(m)return;const me=$.setYear(T??D,oe);A(me)}),J=Ee(ee=>{B($.setYear(T??D,ee))||(F(ee),ie(!0),y==null||y(ee))});p.useEffect(()=>{F(ee=>I!==null&&ee!==I?I:ee)},[I]);const G=Ee((ee,oe)=>{switch(ee.key){case"ArrowUp":J(oe-P),ee.preventDefault();break;case"ArrowDown":J(oe+P),ee.preventDefault();break;case"ArrowLeft":J(oe+(_.direction==="ltr"?-1:1)),ee.preventDefault();break;case"ArrowRight":J(oe+(_.direction==="ltr"?1:-1)),ee.preventDefault();break}}),se=Ee((ee,oe)=>{J(oe)}),pe=Ee((ee,oe)=>{L===oe&&ie(!1)}),le=p.useRef(null),re=ht(n,le);return p.useEffect(()=>{if(o||le.current===null)return;const ee=le.current.querySelector('[tabindex="0"]');if(!ee)return;const oe=ee.offsetHeight,me=ee.offsetTop,V=le.current.clientHeight,ge=le.current.scrollTop,X=me+oe;oe>V||me{const oe=$.getYear(ee),me=oe===I,V=u||B(ee);return C.jsx(C8,{selected:me,value:oe,onClick:te,onKeyDown:G,autoFocus:K&&oe===L,disabled:V,tabIndex:oe===L?0:-1,onFocus:se,onBlur:pe,"aria-current":j===oe?"date":void 0,yearsPerRow:P,children:$.format(ee,"year")},$.format(ee,"year"))})}))}),$8=e=>Re("MuiPickersCalendarHeader",e),O8=Te("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),D8=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],A8=["ownerState"],I8=e=>{const{classes:t}=e;return ke({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},$8,t)},L8=H("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),N8=H("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>S({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),_8=H("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),j8=H(Eo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>S({marginRight:"auto"},e.view==="year"&&{[`.${O8.switchViewIcon}`]:{transform:"rotate(180deg)"}})),F8=H(MU,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),z8=p.forwardRef(function(t,n){var r,o;const i=Ts(),a=Pt(),s=we({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:u,currentMonth:c,disabled:d,disableFuture:f,disablePast:h,maxDate:g,minDate:m,onMonthChange:w,onViewChange:v,view:y,reduceAnimations:x,views:b,labelId:P,className:k,timezone:E}=s,T=ne(s,D8),A=s,M=I8(s),O=(r=l==null?void 0:l.switchViewButton)!=null?r:j8,_=yt({elementType:O,externalSlotProps:u==null?void 0:u.switchViewButton,additionalProps:{size:"small","aria-label":i.calendarViewSwitchingButtonAriaLabel(y)},ownerState:A,className:M.switchViewButton}),$=(o=l==null?void 0:l.switchViewIcon)!=null?o:F8,D=yt({elementType:$,externalSlotProps:u==null?void 0:u.switchViewIcon,ownerState:void 0,className:M.switchViewIcon}),R=ne(D,A8),N=()=>w(a.addMonths(c,1),"left"),j=()=>w(a.addMonths(c,-1),"right"),I=HU(c,{disableFuture:f,maxDate:g,timezone:E}),L=YU(c,{disablePast:h,minDate:m,timezone:E}),F=()=>{if(!(b.length===1||!v||d))if(b.length===2)v(b.find(K=>K!==y)||b[0]);else{const K=b.indexOf(y)!==0?0:1;v(b[K])}};return b.length===1&&b[0]==="year"?null:C.jsxs(L8,S({},T,{ownerState:A,className:fe(k,M.root),ref:n,children:[C.jsxs(N8,{role:"presentation",onClick:F,ownerState:A,"aria-live":"polite",className:M.labelContainer,children:[C.jsx(rR,{reduceAnimations:x,transKey:a.format(c,"monthAndYear"),children:C.jsx(_8,{id:P,ownerState:A,className:M.label,children:a.format(c,"monthAndYear")})}),b.length>1&&!d&&C.jsx(O,S({},_,{children:C.jsx($,S({},R))}))]}),C.jsx(Mp,{in:y==="day",children:C.jsx(zU,{slots:l,slotProps:u,onGoToPrevious:j,isPreviousDisabled:L,previousLabel:i.previousMonth,onGoToNext:N,isNextDisabled:I,nextLabel:i.nextMonth})})]}))}),B8="@media (prefers-reduced-motion: reduce)",Ha=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Bb=Ha&&Ha[1]?parseInt(Ha[1],10):null,Vb=Ha&&Ha[2]?parseInt(Ha[2],10):null,V8=Bb&&Bb<10||Vb&&Vb<13||!1,aR=()=>S3(B8,{defaultMatches:!1})||V8,U8=e=>Re("MuiDateCalendar",e);Te("MuiDateCalendar",["root","viewTransitionContainer"]);const W8=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],H8=e=>{const{classes:t}=e;return ke({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},U8,t)};function Y8(e,t){var n,r,o,i,a,s,l;const u=Pt(),c=Ou(),d=aR(),f=we({props:e,name:t});return S({},f,{loading:(n=f.loading)!=null?n:!1,disablePast:(r=f.disablePast)!=null?r:!1,disableFuture:(o=f.disableFuture)!=null?o:!1,openTo:(i=f.openTo)!=null?i:"day",views:(a=f.views)!=null?a:["year","day"],reduceAnimations:(s=f.reduceAnimations)!=null?s:d,renderLoading:(l=f.renderLoading)!=null?l:()=>C.jsx("span",{children:"..."}),minDate:Er(u,f.minDate,c.minDate),maxDate:Er(u,f.maxDate,c.maxDate)})}const K8=H(GU,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),G8=H(rR,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),q8=p.forwardRef(function(t,n){var r,o,i;const a=Pt(),s=bu(),l=Y8(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:f,referenceDate:h,disableFuture:g,disablePast:m,defaultCalendarMonth:w,onChange:v,onYearChange:y,onMonthChange:x,reduceAnimations:b,shouldDisableDate:P,shouldDisableMonth:k,shouldDisableYear:E,view:T,views:A,openTo:M,className:O,disabled:_,readOnly:$,minDate:D,maxDate:R,disableHighlightToday:N,focusedView:j,onFocusedViewChange:I,showDaysOutsideCurrentMonth:L,fixedWeekNumber:F,dayOfWeekFormatter:K,components:ae,componentsProps:ie,slots:B,slotProps:te,loading:J,renderLoading:G,displayWeekNumber:se,yearsPerRow:pe,monthsPerRow:le,timezone:re}=l,ee=ne(l,W8),{value:oe,handleValueChange:me,timezone:V}=_y({name:"DateCalendar",timezone:re,value:d,defaultValue:f,onChange:v,valueManager:fi}),{view:ge,setView:X,focusedView:he,setFocusedView:be,goToNextView:$e,setValueAndGoToNextView:Le}=zk({view:T,views:A,openTo:M,onChange:me,onViewChange:c,autoFocus:u,focusedView:j,onFocusedViewChange:I}),{referenceDate:Ue,calendarState:et,changeFocusedDay:Be,changeMonth:tt,handleChangeMonth:xt,isDateDisabled:Ye,onMonthSwitchingAnimationEnd:Se}=NW({value:oe,defaultCalendarMonth:w,referenceDate:h,reduceAnimations:b,onMonthChange:x,minDate:D,maxDate:R,shouldDisableDate:P,disablePast:m,disableFuture:g,timezone:V}),Ce=_&&oe||D,zt=_&&oe||R,rn=`${s}-grid-label`,Oe=he!==null,je=(r=(o=B==null?void 0:B.calendarHeader)!=null?o:ae==null?void 0:ae.CalendarHeader)!=null?r:z8,z=yt({elementType:je,externalSlotProps:(i=te==null?void 0:te.calendarHeader)!=null?i:ie==null?void 0:ie.calendarHeader,additionalProps:{views:A,view:ge,currentMonth:et.currentMonth,onViewChange:X,onMonthChange:(_e,Fe)=>xt({newMonth:_e,direction:Fe}),minDate:Ce,maxDate:zt,disabled:_,disablePast:m,disableFuture:g,reduceAnimations:b,timezone:V,labelId:rn,slots:B,slotProps:te},ownerState:l}),U=Ee(_e=>{const Fe=a.startOfMonth(_e),ot=a.endOfMonth(_e),it=Ye(_e)?kl({utils:a,date:_e,minDate:a.isBefore(D,Fe)?Fe:D,maxDate:a.isAfter(R,ot)?ot:R,disablePast:m,disableFuture:g,isDateDisabled:Ye,timezone:V}):_e;it?(Le(it,"finish"),x==null||x(Fe)):($e(),tt(Fe)),Be(it,!0)}),Q=Ee(_e=>{const Fe=a.startOfYear(_e),ot=a.endOfYear(_e),it=Ye(_e)?kl({utils:a,date:_e,minDate:a.isBefore(D,Fe)?Fe:D,maxDate:a.isAfter(R,ot)?ot:R,disablePast:m,disableFuture:g,isDateDisabled:Ye,timezone:V}):_e;it?(Le(it,"finish"),y==null||y(it)):($e(),tt(Fe)),Be(it,!0)}),ve=Ee(_e=>me(_e&&yg(a,_e,oe??Ue),"finish"));p.useEffect(()=>{oe!=null&&a.isValid(oe)&&tt(oe)},[oe]);const Ie=l,De=H8(Ie),Ae={disablePast:m,disableFuture:g,maxDate:R,minDate:D},Me={disableHighlightToday:N,readOnly:$,disabled:_,timezone:V},ye=p.useRef(ge);p.useEffect(()=>{ye.current!==ge&&(he===ye.current&&be(ge,!0),ye.current=ge)},[he,be,ge]);const Qe=p.useMemo(()=>[oe],[oe]);return C.jsxs(K8,S({ref:n,className:fe(De.root,O),ownerState:Ie},ee,{children:[C.jsx(je,S({},z)),C.jsx(G8,{reduceAnimations:b,className:De.viewTransitionContainer,transKey:ge,ownerState:Ie,children:C.jsxs("div",{children:[ge==="year"&&C.jsx(M8,S({},Ae,Me,{value:oe,onChange:Q,shouldDisableYear:E,hasFocus:Oe,onFocusedViewChange:_e=>be("year",_e),yearsPerRow:pe,referenceDate:Ue})),ge==="month"&&C.jsx(v8,S({},Ae,Me,{hasFocus:Oe,className:O,value:oe,onChange:U,shouldDisableMonth:k,onFocusedViewChange:_e=>be("month",_e),monthsPerRow:le,referenceDate:Ue})),ge==="day"&&C.jsx(i8,S({},et,Ae,Me,{onMonthSwitchingAnimationEnd:Se,onFocusedDayChange:Be,reduceAnimations:b,selectedDays:Qe,onSelectedDaysChange:ve,shouldDisableDate:P,shouldDisableMonth:k,shouldDisableYear:E,hasFocus:Oe,onFocusedViewChange:_e=>be("day",_e),gridLabelId:rn,showDaysOutsideCurrentMonth:L,fixedWeekNumber:F,dayOfWeekFormatter:K,displayWeekNumber:se,components:ae,componentsProps:ie,slots:B,slotProps:te,loading:J,renderLoading:G}))]})})]}))});function X8(e){return Re("MuiPickersToolbar",e)}Te("MuiPickersToolbar",["root","content"]);const Q8=e=>{const{classes:t,isLandscape:n}=e;return ke({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},X8,t)},Z8=H("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>S({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),J8=H("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),eH=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,u=r,c=Q8(u);return s?null:C.jsxs(Z8,{ref:n,className:fe(c.root,i),ownerState:u,children:[C.jsx(At,{color:"text.secondary",variant:"overline",id:l,children:a}),C.jsx(J8,{className:c.content,ownerState:u,children:o})]})});function tH(e){return Re("MuiDatePickerToolbar",e)}Te("MuiDatePickerToolbar",["root","title"]);const nH=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],rH=e=>{const{classes:t}=e;return ke({root:["root"],title:["title"]},tH,t)},oH=H(eH,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iH=H(At,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>S({},e.isLandscape&&{margin:"auto 16px auto auto"})),aH=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l}=r,u=ne(r,nH),c=Pt(),d=Ts(),f=rH(r),h=p.useMemo(()=>{if(!o)return s;const m=Uk(c,{format:a,views:l},!0);return c.formatByString(o,m)},[o,a,s,c,l]),g=r;return C.jsx(oH,S({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:i,className:f.root},u,{children:C.jsx(iH,{variant:"h4",align:i?"left":"center",ownerState:g,className:f.title,children:h})}))});function sH(e,t){var n,r,o,i;const a=Pt(),s=Ou(),l=we({props:e,name:t}),u=p.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:S({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:Qk(l.components);return S({},l,{localeText:u},BU({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Er(a,l.minDate,s.minDate),maxDate:Er(a,l.maxDate,s.maxDate),slots:S({toolbar:aH},c),slotProps:(i=l.slotProps)!=null?i:l.componentsProps})}function lH(e){return Re("MuiPickersPopper",e)}Te("MuiPickersPopper",["root","paper"]);const uH=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],cH=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"]},lH,t)},dH=H(Cp,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),fH=H(Rr,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>S({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function pH(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Ee(l=>{if(!i.current)return;const u=r.current;r.current=!1;const c=Lt(o.current);if(!o.current||"clientX"in l&&pH(l,c))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!c.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!u&&t(l)}),s=()=>{r.current=!0};return p.useEffect(()=>{if(e){const l=Lt(o.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),p.useEffect(()=>{if(e){const l=Lt(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const mH=p.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=ne(e,uH),d=S({},o,{placement:r}),f=yt({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return C.jsx(n,S({},c,f,{onClick:h=>{var g;l(h),(g=f.onClick)==null||g.call(f,h)},onTouchStart:h=>{var g;u(h),(g=f.onTouchStart)==null||g.call(f,h)},ownerState:d,children:i}))});function gH(e){var t,n,r,o;const i=we({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:d,open:f,role:h,placement:g,slots:m,slotProps:w,reduceAnimations:v}=i;p.useEffect(()=>{function L(F){f&&(F.key==="Escape"||F.key==="Esc")&&d()}return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[d,f]);const y=p.useRef(null);p.useEffect(()=>{h==="tooltip"||u&&!u()||(f?y.current=Vd(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[f,h,u]);const[x,b,P]=hH(f,c??d),k=p.useRef(null),E=ht(k,l),T=ht(E,x),A=i,M=cH(A),O=aR(),_=v??O,$=L=>{L.key==="Escape"&&(L.stopPropagation(),d())},D=((t=m==null?void 0:m.desktopTransition)!=null?t:_)?Mp:Dy,R=(n=m==null?void 0:m.desktopTrapFocus)!=null?n:QE,N=(r=m==null?void 0:m.desktopPaper)!=null?r:fH,j=(o=m==null?void 0:m.popper)!=null?o:dH,I=yt({elementType:j,externalSlotProps:w==null?void 0:w.popper,additionalProps:{transition:!0,role:h,open:f,anchorEl:a,placement:g,onKeyDown:$},className:M.root,ownerState:i});return C.jsx(j,S({},I,{children:({TransitionProps:L,placement:F})=>C.jsx(R,S({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},w==null?void 0:w.desktopTrapFocus,{children:C.jsx(D,S({},L,w==null?void 0:w.desktopTransition,{children:C.jsx(mH,{PaperComponent:N,ownerState:A,popperPlacement:F,ref:T,onPaperClick:b,onPaperTouchStart:P,paperClasses:M.paper,paperSlotProps:w==null?void 0:w.desktopPaper,children:s})}))}))}))}const vH=({open:e,onOpen:t,onClose:n})=>{const r=p.useRef(typeof e=="boolean").current,[o,i]=p.useState(!1);p.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const a=p.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},yH=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},xH=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},bH=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},wH=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:d,timezone:f}=e,{current:h}=p.useRef(l),{current:g}=p.useRef(s!==void 0),m=Pt(),w=Zi(),[v,y]=Bn({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:b}=vH(e),[P,k]=p.useState(()=>{let G;return s!==void 0?G=s:h!==void 0?G=h:G=t.emptyValue,{draft:G,lastPublishedValue:G,lastCommittedValue:G,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:T}=Ny({timezone:f,value:s,defaultValue:h,onChange:a,valueManager:t});eR(S({},e,{value:P.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const A=Ee(G=>{const se={action:G,dateState:P,hasChanged:ee=>!t.areValuesEqual(m,G.value,ee),isControlled:g,closeOnSelect:u},pe=yH(se),le=xH(se),re=bH(se);if(k(ee=>S({},ee,{draft:G.value,lastPublishedValue:pe?G.value:ee.lastPublishedValue,lastCommittedValue:le?G.value:ee.lastCommittedValue,hasBeenModifiedSinceMount:!0})),pe){const oe={validationError:G.name==="setValueFromField"?G.context.validationError:o({adapter:w,value:G.value,props:S({},e,{value:G.value,timezone:E})})};G.name==="setValueFromShortcut"&&G.shortcut!=null&&(oe.shortcut=G.shortcut),T(G.value,oe)}le&&i&&i(G.value),re&&b(!1)});if(s!==void 0&&(P.lastControlledValue===void 0||!t.areValuesEqual(m,P.lastControlledValue,s))){const G=t.areValuesEqual(m,P.draft,s);k(se=>S({},se,{lastControlledValue:s},G?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const M=Ee(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),O=Ee(()=>{A({value:P.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),_=Ee(()=>{A({value:P.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Ee(()=>{A({value:P.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),D=Ee(()=>{A({value:t.getTodayValue(m,E,n),name:"setValueFromAction",pickerAction:"today"})}),R=Ee(()=>b(!0)),N=Ee(()=>b(!1)),j=Ee((G,se="partial")=>A({name:"setValueFromView",value:G,selectionState:se})),I=Ee((G,se,pe)=>A({name:"setValueFromShortcut",value:G,changeImportance:se??"accept",shortcut:pe})),L=Ee((G,se)=>A({name:"setValueFromField",value:G,context:se})),F=Ee(G=>{y(G),d==null||d(G)}),K={onClear:M,onAccept:O,onDismiss:_,onCancel:$,onSetToday:D,onOpen:R,onClose:N},ae={value:P.draft,onChange:L,selectedSections:v,onSelectedSectionsChange:F},ie=p.useMemo(()=>t.cleanValue(m,P.draft),[m,t,P.draft]),B={value:ie,onChange:j,onClose:N,open:x,onSelectedSectionsChange:F},J=S({},K,{value:ie,onChange:j,onSelectShortcut:I,isValid:G=>{const se=o({adapter:w,value:G,props:S({},e,{value:G,timezone:E})});return!t.hasError(se)}});return{open:x,fieldProps:ae,viewProps:B,layoutProps:J,actions:K}},SH=["className","sx"],CH=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:i,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:d,disableOpenPicker:f,viewRenderers:h,timezone:g}=e,m=ne(e,SH),{view:w,setView:v,defaultView:y,focusedView:x,setFocusedView:b,setValueAndGoToNextView:P}=zk({view:void 0,views:u,openTo:c,onChange:i,onViewChange:d,autoFocus:o}),{hasUIView:k,viewModeLookup:E}=p.useMemo(()=>u.reduce((D,R)=>{let N;return f?N="field":h[R]!=null?N="UI":N="field",D.viewModeLookup[R]=N,N==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[f,h,u]),T=p.useMemo(()=>u.reduce((D,R)=>h[R]!=null&&UU(R)?D+1:D,0),[h,u]),A=E[w],M=Ee(()=>A==="UI"),[O,_]=p.useState(A==="UI"?w:null);return O!==w&&E[w]==="UI"&&_(w),cn(()=>{A==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(w)}))},[w]),cn(()=>{if(!a)return;let D=w;A==="field"&&O!=null&&(D=O),D!==y&&E[D]==="UI"&&E[y]==="UI"&&(D=y),D!==w&&v(D),b(D,!0)},[a]),{hasUIView:k,shouldRestoreFocus:M,layoutProps:{views:u,view:O,onViewChange:v},renderCurrentView:()=>{if(O==null)return null;const D=h[O];return D==null?null:D(S({},m,n,t,{views:u,timezone:g,onChange:P,view:O,onViewChange:v,focusedView:x,onFocusedViewChange:b,showViewSwitcher:T>1,timeViewsCount:T}))}}};function Ub(){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 PH=(e,t)=>{const[n,r]=p.useState(Ub);return cn(()=>{const i=()=>{r(Ub())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),SW(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},EH=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=PH(n.views,o);return{layoutProps:S({},n,t,{isLandscape:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},sR=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};sR(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const kH=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:i,validator:a,autoFocusView:s})=>{const l=wH({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=CH({props:e,inputRef:o,additionalViewProps:i,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=EH({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function lR(e){return Re("MuiPickersLayout",e)}const _h=Te("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),RH=["onAccept","onClear","onCancel","onSetToday","actions"];function TH(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=ne(e,RH),s=Ts();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(u=>{switch(u){case"clear":return C.jsx(mr,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return C.jsx(mr,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return C.jsx(mr,{onClick:t,children:s.okButtonLabel},u);case"today":return C.jsx(mr,{onClick:o,children:s.todayButtonLabel},u);default:return null}});return C.jsx(OB,S({},a,{children:l}))}const MH=["items","changeImportance","isLandscape","onChange","isValid"],$H=["getValue"];function OH(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,i=ne(e,MH);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=ne(s,$H);const c=l({isValid:o});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!o(c)}});return C.jsx(Ay,S({dense:!0,sx:[{maxHeight:Bk,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>C.jsx(Ek,{children:C.jsx(uk,S({},s))},s.label))}))}function DH(e){return e.view!==null}const AH=e=>{const{classes:t,isLandscape:n}=e;return ke({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},lR,t)},IH=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:i,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:d,onChange:f,onSelectShortcut:h,isValid:g,isLandscape:m,disabled:w,readOnly:v,children:y,components:x,componentsProps:b,slots:P,slotProps:k}=e,E=P??Qk(x),T=k??b,A=AH(e),M=(t=E==null?void 0:E.actionBar)!=null?t:TH,O=yt({elementType:M,externalSlotProps:T==null?void 0:T.actionBar,additionalProps:{onAccept:o,onClear:i,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:A.actionBar},ownerState:S({},e,{wrapperVariant:r})}),_=C.jsx(M,S({},O)),$=E==null?void 0:E.toolbar,D=yt({elementType:$,externalSlotProps:T==null?void 0:T.toolbar,additionalProps:{isLandscape:m,onChange:f,value:d,view:l,onViewChange:c,views:u,disabled:w,readOnly:v,className:A.toolbar},ownerState:S({},e,{wrapperVariant:r})}),R=DH(D)&&$?C.jsx($,S({},D)):null,N=y,j=E==null?void 0:E.tabs,I=l&&j?C.jsx(j,S({view:l,onViewChange:c},T==null?void 0:T.tabs)):null,L=(n=E==null?void 0:E.shortcuts)!=null?n:OH,F=yt({elementType:L,externalSlotProps:T==null?void 0:T.shortcuts,additionalProps:{isValid:g,isLandscape:m,onChange:h,className:A.shortcuts},ownerState:{isValid:g,isLandscape:m,onChange:h,className:A.shortcuts,wrapperVariant:r}}),K=l&&L?C.jsx(L,S({},F)):null;return{toolbar:R,content:N,tabs:I,actionBar:_,shortcuts:K}},LH=IH,NH=e=>{const{isLandscape:t,classes:n}=e;return ke({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},lR,n)},uR=H("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${_h.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${_h.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${_h.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));uR.propTypes={as:de.elementType,ownerState:de.shape({isLandscape:de.bool.isRequired}).isRequired,sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object])};const _H=H("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),jH=function(t){const n=we({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:i,actionBar:a,shortcuts:s}=LH(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:f}=n,h=n,g=NH(h);return C.jsxs(uR,{ref:d,sx:l,className:fe(u,g.root),ownerState:h,children:[c?s:r,c?r:s,C.jsx(_H,{className:g.contentWrapper,children:f==="desktop"?C.jsxs(p.Fragment,{children:[o,i]}):C.jsxs(p.Fragment,{children:[i,o]})}),a]})},FH=["props","getOpenDialogAriaText"],zH=["ownerState"],BH=["ownerState"],VH=e=>{var t,n,r,o,i;let{props:a,getOpenDialogAriaText:s}=e,l=ne(e,FH);const{slots:u,slotProps:c,className:d,sx:f,format:h,formatDensity:g,timezone:m,label:w,inputRef:v,readOnly:y,disabled:x,autoFocus:b,localeText:P,reduceAnimations:k}=a,E=Pt(),T=p.useRef(null),A=p.useRef(null),M=bu(),O=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:_,actions:$,hasUIView:D,layoutProps:R,renderCurrentView:N,shouldRestoreFocus:j,fieldProps:I}=kH(S({},l,{props:a,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=(r=u.inputAdornment)!=null?r:I3,F=yt({elementType:L,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),K=ne(F,zH),ae=(o=u.openPickerButton)!=null?o:Eo,ie=yt({elementType:ae,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:x||y,onClick:_?$.onClose:$.onOpen,"aria-label":s(I.value,E),edge:K.position},ownerState:a}),B=ne(ie,BH),te=u.openPickerIcon,J=u.field,G=yt({elementType:J,externalSlotProps:c==null?void 0:c.field,additionalProps:S({},I,O&&{id:M},{readOnly:y,disabled:x,className:d,sx:f,format:h,formatDensity:g,timezone:m,label:w,autoFocus:b&&!a.open,focused:_?!0:void 0}),ownerState:a});D&&(G.InputProps=S({},G.InputProps,{ref:A,[`${K.position}Adornment`]:C.jsx(L,S({},K,{children:C.jsx(ae,S({},B,{children:C.jsx(te,S({},c==null?void 0:c.openPickerIcon))}))}))}));const se=S({textField:u.textField},G.slots),pe=(i=u.layout)!=null?i:jH,le=ht(T,G.inputRef,v);let re=M;O&&(w?re=`${M}-label`:re=void 0);const ee=S({},c,{toolbar:S({},c==null?void 0:c.toolbar,{titleId:M}),popper:S({"aria-labelledby":re},c==null?void 0:c.popper)});return{renderPicker:()=>C.jsxs(jk,{localeText:P,children:[C.jsx(J,S({},G,{slots:se,slotProps:ee,inputRef:le})),C.jsx(gH,S({role:"dialog",placement:"bottom-start",anchorEl:A.current},$,{open:_,slots:u,slotProps:ee,shouldRestoreFocus:j,reduceAnimations:k,children:C.jsx(pe,S({},R,ee==null?void 0:ee.layout,{slots:u,slotProps:ee,children:N()}))}))]})}},jh=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:w,shouldDisableYear:v,reduceAnimations:y,onMonthChange:x,monthsPerRow:b,onYearChange:P,yearsPerRow:k,defaultCalendarMonth:E,components:T,componentsProps:A,slots:M,slotProps:O,loading:_,renderLoading:$,disableHighlightToday:D,readOnly:R,disabled:N,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:I,sx:L,autoFocus:F,fixedWeekNumber:K,displayWeekNumber:ae,timezone:ie})=>C.jsx(q8,{view:e,onViewChange:t,views:n.filter(Lb),focusedView:r&&Lb(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:w,shouldDisableYear:v,reduceAnimations:y,onMonthChange:x,monthsPerRow:b,onYearChange:P,yearsPerRow:k,defaultCalendarMonth:E,components:T,componentsProps:A,slots:M,slotProps:O,loading:_,renderLoading:$,disableHighlightToday:D,readOnly:R,disabled:N,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:I,sx:L,autoFocus:F,fixedWeekNumber:K,displayWeekNumber:ae,timezone:ie}),cR=p.forwardRef(function(t,n){var r,o,i,a;const s=Ts(),l=Pt(),u=sH(t,"MuiDesktopDatePicker"),c=S({day:jh,month:jh,year:jh},u.viewRenderers),d=S({},u,{viewRenderers:c,format:Uk(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:S({openPickerIcon:DU,field:IW},u.slots),slotProps:S({},u.slotProps,{field:h=>{var g;return S({},XE((g=u.slotProps)==null?void 0:g.field,h),kW(u),{ref:n})},toolbar:S({hidden:!0},(o=u.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:f}=VH({props:d,valueManager:fi,valueType:"date",getOpenDialogAriaText:(i=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?i:s.openDatePickerDialogue,validator:zy});return f()});cR.propTypes={autoFocus:de.bool,className:de.string,closeOnSelect:de.bool,components:de.object,componentsProps:de.object,dayOfWeekFormatter:de.func,defaultCalendarMonth:de.any,defaultValue:de.any,disabled:de.bool,disableFuture:de.bool,disableHighlightToday:de.bool,disableOpenPicker:de.bool,disablePast:de.bool,displayWeekNumber:de.bool,fixedWeekNumber:de.number,format:de.string,formatDensity:de.oneOf(["dense","spacious"]),inputRef:de.oneOfType([de.func,de.shape({current:de.object})]),label:de.node,loading:de.bool,localeText:de.object,maxDate:de.any,minDate:de.any,monthsPerRow:de.oneOf([3,4]),onAccept:de.func,onChange:de.func,onClose:de.func,onError:de.func,onMonthChange:de.func,onOpen:de.func,onSelectedSectionsChange:de.func,onViewChange:de.func,onYearChange:de.func,open:de.bool,openTo:de.oneOf(["day","month","year"]),orientation:de.oneOf(["landscape","portrait"]),readOnly:de.bool,reduceAnimations:de.bool,referenceDate:de.any,renderLoading:de.func,selectedSections:de.oneOfType([de.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),de.number,de.shape({endIndex:de.number.isRequired,startIndex:de.number.isRequired})]),shouldDisableDate:de.func,shouldDisableMonth:de.func,shouldDisableYear:de.func,showDaysOutsideCurrentMonth:de.bool,slotProps:de.object,slots:de.object,sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object]),timezone:de.string,value:de.any,view:de.oneOf(["day","month","year"]),viewRenderers:de.shape({day:de.func,month:de.func,year:de.func}),views:de.arrayOf(de.oneOf(["day","month","year"]).isRequired),yearsPerRow:de.oneOf([3,4])};var dR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hu,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",u="day",c="week",d="month",f="quarter",h="year",g="date",m="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var D=["th","st","nd","rd"],R=$%100;return"["+$+(D[(R-20)%10]||D[R]||D[0])+"]"}},x=function($,D,R){var N=String($);return!N||N.length>=D?$:""+Array(D+1-N.length).join(R)+$},b={s:x,z:function($){var D=-$.utcOffset(),R=Math.abs(D),N=Math.floor(R/60),j=R%60;return(D<=0?"+":"-")+x(N,2,"0")+":"+x(j,2,"0")},m:function $(D,R){if(D.date()1)return $(L[0])}else{var F=D.name;k[F]=D,j=F}return!N&&j&&(P=j),j||!N&&P},A=function($,D){if(E($))return $.clone();var R=typeof D=="object"?D:{};return R.date=$,R.args=arguments,new O(R)},M=b;M.l=T,M.i=E,M.w=function($,D){return A($,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var O=function(){function $(R){this.$L=T(R.locale,null,!0),this.parse(R)}var D=$.prototype;return D.parse=function(R){this.$d=function(N){var j=N.date,I=N.utc;if(j===null)return new Date(NaN);if(M.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var L=j.match(w);if(L){var F=L[2]-1||0,K=(L[7]||"0").substring(0,3);return I?new Date(Date.UTC(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,K)):new Date(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,K)}}return new Date(j)}(R),this.$x=R.x||{},this.init()},D.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},D.$utils=function(){return M},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(R,N){var j=A(R);return this.startOf(N)<=j&&j<=this.endOf(N)},D.isAfter=function(R,N){return A(R)25){var c=a(this).startOf(r).add(1,r).date(u),d=a(this).endOf(n);if(c.isBefore(d))return 1}var f=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(f,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(fR);var WH=fR.exports;const HH=pi(WH);var pR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hu,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},l=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(w){this[m]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var v=w.match(/([+-]|\d\d)/g),y=60*v[1]+(+v[2]||0);return y===0?0:v[0]==="+"?-y:y}(m)}],d=function(m){var w=s[m];return w&&(w.indexOf?w:w.s.concat(w.f))},f=function(m,w){var v,y=s.meridiem;if(y){for(var x=1;x<=24;x+=1)if(m.indexOf(y(x,0,w))>-1){v=x>12;break}}else v=m===(w?"pm":"PM");return v},h={A:[a,function(m){this.afternoon=f(m,!1)}],a:[a,function(m){this.afternoon=f(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[o,u("day")],Do:[a,function(m){var w=s.ordinal,v=m.match(/\d+/);if(this.day=v[0],w)for(var y=1;y<=31;y+=1)w(y).replace(/\[|\]/g,"")===m&&(this.day=y)}],M:[i,u("month")],MM:[o,u("month")],MMM:[a,function(m){var w=d("months"),v=(d("monthsShort")||w.map(function(y){return y.slice(0,3)})).indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[a,function(m){var w=d("months").indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(m){this.year=l(m)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function g(m){var w,v;w=m,v=s&&s.formats;for(var y=(m=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,M,O){var _=O&&O.toUpperCase();return M||v[O]||n[O]||v[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,D,R){return D||R.slice(1)})})).match(r),x=y.length,b=0;b-1)return new Date((j==="X"?1e3:1)*N);var L=g(j)(N),F=L.year,K=L.month,ae=L.day,ie=L.hours,B=L.minutes,te=L.seconds,J=L.milliseconds,G=L.zone,se=new Date,pe=ae||(F||K?1:se.getDate()),le=F||se.getFullYear(),re=0;F&&!K||(re=K>0?K-1:se.getMonth());var ee=ie||0,oe=B||0,me=te||0,V=J||0;return G?new Date(Date.UTC(le,re,pe,ee,oe,me,V+60*G.offset*1e3)):I?new Date(Date.UTC(le,re,pe,ee,oe,me,V)):new Date(le,re,pe,ee,oe,me,V)}catch{return new Date("")}}(P,T,k),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),O&&P!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var $=T.length,D=1;D<=$;D+=1){E[1]=T[D-1];var R=v.apply(this,E);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}D===$&&(this.$d=new Date(""))}else x.call(this,b)}}})})(pR);var YH=pR.exports;const KH=pi(YH);var hR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hu,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,s=a.format;i.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,g,m){var w=m&&m.toUpperCase();return g||f[m]||n[m]||f[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,x){return y||x.slice(1)})})}(l,u===void 0?{}:u);return s.call(this,c)}}})})(hR);var GH=hR.exports;const qH=pi(GH);var mR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hu,function(){return function(n,r,o){r.prototype.isBetween=function(i,a,s,l){var u=o(i),c=o(a),d=(l=l||"()")[0]==="(",f=l[1]===")";return(d?this.isAfter(u,s):!this.isBefore(u,s))&&(f?this.isBefore(c,s):!this.isAfter(c,s))||(d?this.isBefore(u,s):!this.isAfter(u,s))&&(f?this.isAfter(c,s):!this.isBefore(c,s))}}})})(mR);var XH=mR.exports;const QH=pi(XH);Kt.extend(KH);Kt.extend(qH);Kt.extend(QH);const ZH=sR(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),JH={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},e9={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Fh=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),Wb=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),t9=(e,t)=>t?(...n)=>e(...n).locale(t):e;class n9{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=JH,this.setLocaleToValue=i=>{const a=this.getCurrentLocaleCode();return a===i.locale()?i:i.locale(a)},this.hasUTCPlugin=()=>typeof Kt.utc<"u",this.hasTimezonePlugin=()=>typeof Kt.tz<"u",this.isSame=(i,a,s)=>{const l=this.setTimezone(a,this.getTimezone(i));return i.format(s)===l.format(s)},this.cleanTimezone=i=>{switch(i){case"default":return;case"system":return Kt.tz.guess();default:return i}},this.createSystemDate=i=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(i);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const a=Kt.tz.guess();return a!=="UTC"?Kt.tz(i,a):Kt(i)}return Kt(i)},this.createUTCDate=i=>{if(!this.hasUTCPlugin())throw new Error(Fh);return Kt.utc(i)},this.createTZDate=(i,a)=>{if(!this.hasUTCPlugin())throw new Error(Fh);if(!this.hasTimezonePlugin())throw new Error(Wb);const s=i!==void 0&&!i.endsWith("Z");return Kt(i).tz(this.cleanTimezone(a),s)},this.getLocaleFormats=()=>{const i=Kt.Ls,a=this.locale||"en";let s=i[a];return s===void 0&&(ZH(),s=i.en),s.formats},this.adjustOffset=i=>{if(!this.hasTimezonePlugin())return i;const a=this.getTimezone(i);if(a!=="UTC"){var s,l;const u=i.tz(this.cleanTimezone(a),!0);return((s=u.$offset)!=null?s:0)===((l=i.$offset)!=null?l:0)?i:u}return i},this.date=i=>i===null?null:this.dayjs(i),this.dateWithTimezone=(i,a)=>{if(i===null)return null;let s;return a==="UTC"?s=this.createUTCDate(i):a==="system"||a==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(i):s=this.createTZDate(i,a),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=i=>{if(this.hasUTCPlugin()&&i.isUTC())return"UTC";if(this.hasTimezonePlugin()){var a;const s=(a=i.$x)==null?void 0:a.$timezone;return s??"system"}return"system"},this.setTimezone=(i,a)=>{if(this.getTimezone(i)===a)return i;if(a==="UTC"){if(!this.hasUTCPlugin())throw new Error(Fh);return i.utc()}if(a==="system")return i.local();if(!this.hasTimezonePlugin()){if(a==="default")return i;throw new Error(Wb)}return Kt.tz(i,this.cleanTimezone(a))},this.toJsDate=i=>i.toDate(),this.parseISO=i=>this.dayjs(i),this.toISO=i=>i.toISOString(),this.parse=(i,a)=>i===""?null:this.dayjs(i,a,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=i=>{const a=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(u,c,d)=>c||d.slice(1));return i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,u,c)=>{const d=c&&c.toUpperCase();return u||a[c]||s(a[d])})},this.getFormatHelperText=i=>this.expandFormat(i).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=i=>i===null,this.isValid=i=>this.dayjs(i).isValid(),this.format=(i,a)=>this.formatByString(i,this.formats[a]),this.formatByString=(i,a)=>this.dayjs(i).format(a),this.formatNumber=i=>i,this.getDiff=(i,a,s)=>i.diff(a,s),this.isEqual=(i,a)=>i===null&&a===null?!0:this.dayjs(i).toDate().getTime()===this.dayjs(a).toDate().getTime(),this.isSameYear=(i,a)=>this.isSame(i,a,"YYYY"),this.isSameMonth=(i,a)=>this.isSame(i,a,"YYYY-MM"),this.isSameDay=(i,a)=>this.isSame(i,a,"YYYY-MM-DD"),this.isSameHour=(i,a)=>i.isSame(a,"hour"),this.isAfter=(i,a)=>i>a,this.isAfterYear=(i,a)=>this.hasUTCPlugin()?!this.isSameYear(i,a)&&i.utc()>a.utc():i.isAfter(a,"year"),this.isAfterDay=(i,a)=>this.hasUTCPlugin()?!this.isSameDay(i,a)&&i.utc()>a.utc():i.isAfter(a,"day"),this.isBefore=(i,a)=>ithis.hasUTCPlugin()?!this.isSameYear(i,a)&&i.utc()this.hasUTCPlugin()?!this.isSameDay(i,a)&&i.utc()i>=a&&i<=s,this.startOfYear=i=>this.adjustOffset(i.startOf("year")),this.startOfMonth=i=>this.adjustOffset(i.startOf("month")),this.startOfWeek=i=>this.adjustOffset(i.startOf("week")),this.startOfDay=i=>this.adjustOffset(i.startOf("day")),this.endOfYear=i=>this.adjustOffset(i.endOf("year")),this.endOfMonth=i=>this.adjustOffset(i.endOf("month")),this.endOfWeek=i=>this.adjustOffset(i.endOf("week")),this.endOfDay=i=>this.adjustOffset(i.endOf("day")),this.addYears=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"year"):i.add(a,"year")),this.addMonths=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"month"):i.add(a,"month")),this.addWeeks=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"week"):i.add(a,"week")),this.addDays=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"day"):i.add(a,"day")),this.addHours=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"hour"):i.add(a,"hour")),this.addMinutes=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"minute"):i.add(a,"minute")),this.addSeconds=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"second"):i.add(a,"second")),this.getYear=i=>i.year(),this.getMonth=i=>i.month(),this.getDate=i=>i.date(),this.getHours=i=>i.hour(),this.getMinutes=i=>i.minute(),this.getSeconds=i=>i.second(),this.getMilliseconds=i=>i.millisecond(),this.setYear=(i,a)=>this.adjustOffset(i.set("year",a)),this.setMonth=(i,a)=>this.adjustOffset(i.set("month",a)),this.setDate=(i,a)=>this.adjustOffset(i.set("date",a)),this.setHours=(i,a)=>this.adjustOffset(i.set("hour",a)),this.setMinutes=(i,a)=>this.adjustOffset(i.set("minute",a)),this.setSeconds=(i,a)=>this.adjustOffset(i.set("second",a)),this.setMilliseconds=(i,a)=>this.adjustOffset(i.set("millisecond",a)),this.getDaysInMonth=i=>i.daysInMonth(),this.getNextMonth=i=>this.addMonths(i,1),this.getPreviousMonth=i=>this.addMonths(i,-1),this.getMonthArray=i=>{const s=[i.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(i,a)=>i.hour(a.hour()).minute(a.minute()).second(a.second()),this.getWeekdays=()=>{const i=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(a=>this.formatByString(this.addDays(i,a),"dd"))},this.getWeekArray=i=>{const a=this.setLocaleToValue(i),s=a.startOf("month").startOf("week"),l=a.endOf("month").endOf("week");let u=0,c=s;const d=[];for(;ci.week(),this.getYearRange=(i,a)=>{const s=i.startOf("year"),l=a.endOf("year"),u=[];let c=s;for(;ci==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=t9((o=this.rawDayJsInstance)!=null?o:Kt,t),this.locale=t,this.formats=S({},e9,n),Kt.extend(HH)}}const gR=ip({name:"transaction",initialState:[],reducers:{addTransaction:(e,t)=>e.concat(t.payload),setTransactions(e,t){return t.payload},removeTransaction(e,t){return e.filter(n=>n.id!=t.payload)}}}),r9=gR.reducer,{addTransaction:o9,setTransactions:vR,removeTransaction:i9}=gR.actions,yR=ip({name:"editTransaction",initialState:null,reducers:{setEditTransaction(e,t){return t.payload}}}),a9=yR.reducer,{setEditTransaction:xR}=yR.actions,s9=()=>{const e=ro(u=>u.auth.user.categories),t=ro(u=>u.transactions),n=ro(u=>u.editTransaction),r=Io(),o={amount:"",description:"",date:Kt("2022-04-17"),category:e[0]},[i,a]=p.useState(o);p.useEffect(()=>{n!=null&&a(n)},[n]);const s=u=>{a({...i,[u.target.name]:u.target.value})},l=async u=>{if(u.preventDefault(),n){const c=await Bd.update(i);r(xR(null)),a(o);const d=t.map(f=>f.id===c.id?c:f);r(vR(d)),r(qt(["Expense updated successfully",!0]))}else{const c=await Bd.create(i);r(o9(c)),a(o),r(qt(["Expense added successfully",!0]))}setTimeout(()=>r(qt(null)),5e3)};return C.jsxs(Dn.Fragment,{children:[C.jsx(mk,{children:C.jsxs(Co,{component:"form",onSubmit:l,sx:{display:"flex",flexWrap:"wrap"},children:[C.jsx(Fr,{size:"small",sx:{marginRight:5,marginTop:5},onChange:s,value:i.amount,type:"number",name:"amount",placeholder:"Transaction Amount"}),C.jsx(Fr,{size:"small",sx:{marginRight:5,marginTop:5},onChange:s,value:i.description,type:"text",name:"description",placeholder:"description"}),C.jsx(jk,{dateAdapter:n9,children:C.jsx(cR,{label:"Transaction Date",name:"date",value:Kt(i.date),sx:{marginRight:5,marginTop:5},onChange:u=>a({...i,date:u}),slotProps:{textField:{variant:"outlined",size:"small"}}})}),C.jsx(L4,{value:i.category,onChange:(u,c)=>a({...i,category:c}),disableClearable:!0,options:e,size:"small",sx:{width:200,marginRight:5,marginTop:5},renderInput:u=>C.jsx(Fr,{...u,label:"Categories"})}),C.jsx(mr,{style:{display:"block",margin:"auto",marginTop:20},variant:"contained",type:"submit",children:n?"Update":"Submit"})]})}),C.jsx(hk,{})]})};function l9(){return C.jsx(Co,{sx:{minWidth:275,margin:5},children:C.jsx(pk,{variant:"outlined",children:C.jsx(s9,{})})})}var By={},bR={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(bR);var Vy=bR.exports,zh={};const u9=VT(kF);var Hb;function Uy(){return Hb||(Hb=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=u9}(zh)),zh}var c9=Vy;Object.defineProperty(By,"__esModule",{value:!0});var Wy=By.default=void 0,d9=c9(Uy()),f9=C,p9=(0,d9.default)((0,f9.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");Wy=By.default=p9;var Hy={},h9=Vy;Object.defineProperty(Hy,"__esModule",{value:!0});var wR=Hy.default=void 0,m9=h9(Uy()),g9=C,v9=(0,m9.default)((0,g9.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");wR=Hy.default=v9;function y9(){const e=Io(),n=ro(i=>i.transactions).slice().sort((i,a)=>i.date>a.date?-1:1),r=i=>{e(xR(i))},o=async i=>{if(confirm("Are you sure you want to delete the transaction?")){const a=await Bd.remove(i);e(i9(i)),a.status===204&&(e(qt(["Deleted Successfully",!0])),setTimeout(()=>e(qt(null)),5e3))}};return!n.length>0?C.jsx(At,{variant:"h4",sx:{textAlign:"center",marginBottom:5},children:"No data to display"}):C.jsxs(C.Fragment,{children:[C.jsx(At,{variant:"h4",sx:{textAlign:"center",marginBottom:5},children:"List of transactions"}),C.jsx(Nk,{style:{marginBottom:15},component:Rr,children:C.jsxs(Ik,{sx:{minWidth:650},"aria-label":"simple table",children:[C.jsx(_k,{children:C.jsxs(zd,{children:[C.jsx($n,{children:C.jsx("strong",{children:"Amount"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Description"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Category"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Date"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Action"})})]})}),C.jsx(Lk,{children:n.map(i=>C.jsxs(zd,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[C.jsx($n,{component:"th",scope:"row",children:i.amount}),C.jsx($n,{align:"center",children:i.description}),C.jsx($n,{align:"center",children:i.category}),C.jsx($n,{align:"center",children:Kt(i.date).format("MMMM D, YYYY")}),C.jsxs($n,{align:"center",children:[C.jsx(Eo,{color:"primary",sx:{marginLeft:1,cursor:"pointer"},onClick:()=>r(i),children:C.jsx(wR,{})}),C.jsx(Eo,{color:"error",onClick:()=>o(i.id),sx:{cursor:"pointer"},children:C.jsx(Wy,{})})]})]},i.id))})]})})]})}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function Yb(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function Kb(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;rr[o])return 1}return n.length-r.length},x9=function(e,t){var n=e.slice(),r=e.findIndex(function(c){return Gb(t,c)<=0}),o=r<0?e.length:r,i=o>=0&&o1)for(var l=o+1;l=0?Kb(Kb([],Yb(e.slice(0,n)),!1),Yb(e.slice(n+1)),!1):e},w9=function(){return typeof window<"u"},qb=function(e,t){return new Error("The '".concat(e,"' plugin requires '").concat(t,"' to be defined before it."))},S9=function(){function e(){this.gettersCache={},this.knownKeysCache={},this.validationRequired=!0,this.plugins=[],this.subscriptions=new Set}return e.prototype.ensureDependencies=function(){var t=new Set,n=new Map;this.plugins.filter(function(r){return r.container}).forEach(function(r){var o=r.name||"";if(n.has(o))throw qb(n.get(o),o);(r.dependencies||[]).forEach(function(i){if(!t.has(i.name)){if(i.optional){n.has(i.name)||n.set(i.name,o);return}throw qb(o,i.name)}}),t.add(o)})},e.prototype.registerPlugin=function(t){this.plugins=x9(this.plugins,t),this.cleanPluginsCache()},e.prototype.unregisterPlugin=function(t){this.plugins=b9(this.plugins,t),this.cleanPluginsCache()},e.prototype.knownKeys=function(t){return this.knownKeysCache[t]||(this.knownKeysCache[t]=Array.from(this.plugins.map(function(n){return Object.keys(n)}).map(function(n){return n.filter(function(r){return r.endsWith(t)})[0]}).filter(function(n){return!!n}).reduce(function(n,r){return n.add(r)},new Set)).map(function(n){return n.replace(t,"")})),this.knownKeysCache[t]},e.prototype.collect=function(t,n){this.validationRequired&&(this.ensureDependencies(),this.validationRequired=!1);var r=this.gettersCache[t];if(!r){var o=this.plugins.map(function(u,c){return{key:u[t],index:c}}).filter(function(u){return!!u.key});this.gettersCache["".concat(t,"_i")]=o,r=o.map(function(u){return u.key}),this.gettersCache[t]=r}if(!n)return r;var i=this.plugins.indexOf(n),a=t+i,s=this.gettersCache[a];if(!s){var l=this.gettersCache["".concat(t,"_i")];s=this.gettersCache[t].filter(function(u,c){return l[c].index0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function Xb(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r-1&&(this.rootNode.scrollTop=r),o!==void 0&&o>-1&&(this.rootNode.scrollLeft=o),this.updateScrolling(this.getSize())},t.prototype.componentWillUnmount=function(){this.expandTrigger.removeEventListener("scroll",this.setupListeners),this.contractTrigger.removeEventListener("scroll",this.setupListeners)},t.prototype.setupListeners=function(){var n=this.getSize(),r=n.width,o=n.height;this.expandNotifier.style.width="".concat(r+Pc,"px"),this.expandNotifier.style.height="".concat(o+Pc,"px"),this.updateScrolling(n);var i=this.props.onSizeChange;i(n)},t.prototype.createListeners=function(){this.triggersRoot=document.createElement("div"),Object.assign(this.triggersRoot.style,ua.triggersRoot),this.rootNode.appendChild(this.triggersRoot),this.expandTrigger=document.createElement("div"),Object.assign(this.expandTrigger.style,ua.expandTrigger),this.expandTrigger.addEventListener("scroll",this.setupListeners),this.triggersRoot.appendChild(this.expandTrigger),this.expandNotifier=document.createElement("div"),this.expandTrigger.appendChild(this.expandNotifier),this.contractTrigger=document.createElement("div"),Object.assign(this.contractTrigger.style,ua.contractTrigger),this.contractTrigger.addEventListener("scroll",this.setupListeners),this.triggersRoot.appendChild(this.contractTrigger),this.contractNotifier=document.createElement("div"),Object.assign(this.contractNotifier.style,ua.contractNotifier),this.contractTrigger.appendChild(this.contractNotifier)},t.prototype.updateScrolling=function(n){var r=n.width,o=n.height;this.contractTrigger.scrollTop=o,this.contractTrigger.scrollLeft=r,this.expandTrigger.scrollTop=Pc,this.expandTrigger.scrollLeft=Pc},t.prototype.render=function(){var n=this.props;n.onSizeChange;var r=n.containerComponent,o=n.style;n.scrollTop,n.scrollLeft;var i=P9(n,["onSizeChange","containerComponent","style","scrollTop","scrollLeft"]);return p.createElement(r,In({forwardedRef:this.rootRef,style:o?In(In({},ua.root),o):ua.root},i))},t.defaultProps={containerComponent:"div"},t}(p.Component),U9=function(e,t){t===void 0&&(t={});var n=function(c,d){Object.keys(t).forEach(function(f){var h=t[f]();h&&c[f]!==d[f]&&h(c[f])})},r,o=null,i=null,a=null,s=!1,l=function(c,d,f){var h=function(g){o===null&&(o=g);var m=c(In({},g),d),w=In(In({},g),m);return typeof f=="function"&&f(w,g),h===r&&(i!==o&&(a=w,s||(i=o,s=!0)),o=null),m};r=h,e.setState(h,function(){s&&(n(a,i),s=!1)})},u=function(c,d,f){l(function(h){var g;return g={},g[c]=d(h[c],f),g})};return{applyReducer:l,applyFieldReducer:u}},W9=function(e,t,n){var r=function(o){Ur(i,o);function i(){return o!==null&&o.apply(this,arguments)||this}return i.prototype.render=function(){return p.createElement(e,In({},t,this.props))},i}(p.PureComponent);return r.components=e.components,Object.assign(r,n),r},sr=function(e){return function(t){var n={},r={},o=t.components;return Object.entries(o).forEach(function(i){var a=lu(i,2),s=a[0],l=a[1],u=e[l];u&&u!==t[l]&&(n[s]=u),r[l]=u||t[l]}),Object.keys(n).length>0?W9(t,n,r):t}};de.shape({current:de.instanceOf(typeof Element<"u"?Element:Object)});function MR(e,t){return et?1:e>=t?0:NaN}function $R(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=H9(e));function r(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)<0?l=c+1:u=c}return l}function o(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)>0?u=c:l=c+1}return l}function i(a,s,l,u){l==null&&(l=0),u==null&&(u=a.length);const c=r(a,s,l,u-1);return c>l&&t(a[c-1],s)>-t(a[c],s)?c-1:c}return{left:r,center:i,right:o}}function H9(e){return(t,n)=>MR(e(t),n)}function Y9(e){return e===null?NaN:+e}const K9=$R(MR),G9=K9.right;$R(Y9).center;const q9=G9;function X9(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r=i&&(n=r=i):(n>i&&(n=i),r0)return[e];if((r=t0){let l=Math.round(e/s),u=Math.round(t/s);for(l*st&&--u,a=new Array(i=u-l+1);++ot&&--u,a=new Array(i=u-l+1);++o=0?(i>=Pg?10:i>=Eg?5:i>=kg?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Pg?10:i>=Eg?5:i>=kg?2:1)}function t7(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Pg?o*=10:i>=Eg?o*=5:i>=kg&&(o*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ec(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ec(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=o7.exec(e))?new Ln(t[1],t[2],t[3],1):(t=i7.exec(e))?new Ln(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=a7.exec(e))?Ec(t[1],t[2],t[3],t[4]):(t=s7.exec(e))?Ec(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=l7.exec(e))?cw(t[1],t[2]/100,t[3]/100,1):(t=u7.exec(e))?cw(t[1],t[2]/100,t[3]/100,t[4]):ow.hasOwnProperty(e)?sw(ow[e]):e==="transparent"?new Ln(NaN,NaN,NaN,0):null}function sw(e){return new Ln(e>>16&255,e>>8&255,e&255,1)}function Ec(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ln(e,t,n,r)}function f7(e){return e instanceof Iu||(e=du(e)),e?(e=e.rgb(),new Ln(e.r,e.g,e.b,e.opacity)):new Ln}function Rg(e,t,n,r){return arguments.length===1?f7(e):new Ln(e,t,n,r??1)}function Ln(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Qy(Ln,Rg,IR(Iu,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new Ln(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?uu:Math.pow(uu,e),new Ln(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ln(ji(this.r),ji(this.g),ji(this.b),Hd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lw,formatHex:lw,formatHex8:p7,formatRgb:uw,toString:uw}));function lw(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}`}function p7(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}${Ii((isNaN(this.opacity)?1:this.opacity)*255)}`}function uw(){const e=Hd(this.opacity);return`${e===1?"rgb(":"rgba("}${ji(this.r)}, ${ji(this.g)}, ${ji(this.b)}${e===1?")":`, ${e})`}`}function Hd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ji(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ii(e){return e=ji(e),(e<16?"0":"")+e.toString(16)}function cw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _r(e,t,n,r)}function LR(e){if(e instanceof _r)return new _r(e.h,e.s,e.l,e.opacity);if(e instanceof Iu||(e=du(e)),!e)return new _r;if(e instanceof _r)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new _r(a,s,l,e.opacity)}function h7(e,t,n,r){return arguments.length===1?LR(e):new _r(e,t,n,r??1)}function _r(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Qy(_r,h7,IR(Iu,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new _r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?uu:Math.pow(uu,e),new _r(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ln(Vh(e>=240?e-240:e+120,o,r),Vh(e,o,r),Vh(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _r(dw(this.h),kc(this.s),kc(this.l),Hd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Hd(this.opacity);return`${e===1?"hsl(":"hsla("}${dw(this.h)}, ${kc(this.s)*100}%, ${kc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dw(e){return e=(e||0)%360,e<0?e+360:e}function kc(e){return Math.max(0,Math.min(1,e||0))}function Vh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Zy=e=>()=>e;function m7(e,t){return function(n){return e+n*t}}function g7(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function v7(e){return(e=+e)==1?NR:function(t,n){return n-t?g7(t,n,e):Zy(isNaN(t)?n:t)}}function NR(e,t){var n=t-e;return n?m7(e,n):Zy(isNaN(e)?t:e)}const fw=function e(t){var n=v7(t);function r(o,i){var a=n((o=Rg(o)).r,(i=Rg(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),u=NR(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=s(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function y7(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Yd(r,o)})),n=Uh.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function $7(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?O7:$7,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(o((u||(u=s(t,e.map(r),Yd)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,T7),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=k7,c()},d.clamp=function(f){return arguments.length?(a=f?!0:$a,c()):a!==$a},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,h){return r=f,o=h,c()}}function I7(){return A7()($a,$a)}function L7(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Kd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ps(e){return e=Kd(Math.abs(e)),e?e[1]:NaN}function N7(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function _7(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var j7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gd(e){if(!(t=j7.exec(e)))throw new Error("invalid format: "+e);var t;return new e0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Gd.prototype=e0.prototype;function e0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}e0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function F7(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var _R;function z7(e,t){var n=Kd(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(_R=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Kd(e,Math.max(0,t+i-1))[0]}function hw(e,t){var n=Kd(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const mw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:L7,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>hw(e*100,t),r:hw,s:z7,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gw(e){return e}var vw=Array.prototype.map,yw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function B7(e){var t=e.grouping===void 0||e.thousands===void 0?gw:N7(vw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?gw:_7(vw.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Gd(d);var f=d.fill,h=d.align,g=d.sign,m=d.symbol,w=d.zero,v=d.width,y=d.comma,x=d.precision,b=d.trim,P=d.type;P==="n"?(y=!0,P="g"):mw[P]||(x===void 0&&(x=12),b=!0,P="g"),(w||f==="0"&&h==="=")&&(w=!0,f="0",h="=");var k=m==="$"?n:m==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",E=m==="$"?r:/[%p]/.test(P)?a:"",T=mw[P],A=/[defgprs%]/.test(P);x=x===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function M(O){var _=k,$=E,D,R,N;if(P==="c")$=T(O)+$,O="";else{O=+O;var j=O<0||1/O<0;if(O=isNaN(O)?l:T(Math.abs(O),x),b&&(O=F7(O)),j&&+O==0&&g!=="+"&&(j=!1),_=(j?g==="("?g:s:g==="-"||g==="("?"":g)+_,$=(P==="s"?yw[8+_R/3]:"")+$+(j&&g==="("?")":""),A){for(D=-1,R=O.length;++DN||N>57){$=(N===46?o+O.slice(D+1):O.slice(D))+$,O=O.slice(0,D);break}}}y&&!w&&(O=t(O,1/0));var I=_.length+O.length+$.length,L=I>1)+_+O+$+L.slice(I);break;default:O=L+_+O+$;break}return i(O)}return M.toString=function(){return d+""},M}function c(d,f){var h=u((d=Gd(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(ps(f)/3)))*3,m=Math.pow(10,-g),w=yw[8+g/3];return function(v){return h(m*v)+w}}return{format:u,formatPrefix:c}}var Rc,jR,FR;V7({thousands:",",grouping:[3],currency:["$",""]});function V7(e){return Rc=B7(e),jR=Rc.format,FR=Rc.formatPrefix,Rc}function U7(e){return Math.max(0,-ps(Math.abs(e)))}function W7(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ps(t)/3)))*3-ps(Math.abs(e)))}function H7(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ps(t)-ps(e))+1}function Y7(e,t,n,r){var o=t7(e,t,n),i;switch(r=Gd(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=W7(o,a))&&(r.precision=i),FR(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=H7(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=U7(o))&&(r.precision=i-(r.type==="%")*2);break}}return jR(r)}function K7(e){var t=e.domain;return e.ticks=function(n){var r=t();return e7(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return Y7(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,u,c=10;for(s0;){if(u=OR(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function zR(){var e=I7();return e.copy=function(){return D7(e,zR())},Xy.apply(e,arguments),K7(e)}var $g=Math.PI,Og=2*$g,Ri=1e-6,G7=Og-Ri;function Dg(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Lu(){return new Dg}Dg.prototype=Lu.prototype={constructor:Dg,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-e,l=r-t,u=i-e,c=a-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Ri)if(!(Math.abs(c*s-l*u)>Ri)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,h=r-a,g=s*s+l*l,m=f*f+h*h,w=Math.sqrt(g),v=Math.sqrt(d),y=o*Math.tan(($g-Math.acos((g+d-m)/(2*w*v)))/2),x=y/v,b=y/w;Math.abs(x-1)>Ri&&(this._+="L"+(e+x*u)+","+(t+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*l)}},arc:function(e,t,n,r,o,i){e=+e,t=+t,n=+n,i=!!i;var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Ri||Math.abs(this._y1-u)>Ri)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%Og+Og),d>G7?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>Ri&&(this._+="A"+n+","+n+",0,"+ +(d>=$g)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function rt(e){return function(){return e}}var xw=Math.abs,hn=Math.atan2,wi=Math.cos,q7=Math.max,Wh=Math.min,Yr=Math.sin,Oa=Math.sqrt,Mn=1e-12,hs=Math.PI,qd=hs/2,Rl=2*hs;function X7(e){return e>1?0:e<-1?hs:Math.acos(e)}function bw(e){return e>=1?qd:e<=-1?-qd:Math.asin(e)}function Q7(e){return e.innerRadius}function Z7(e){return e.outerRadius}function J7(e){return e.startAngle}function eY(e){return e.endAngle}function tY(e){return e&&e.padAngle}function nY(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,f=d*l-c*u;if(!(f*fD*D+R*R&&(T=M,A=O),{cx:T,cy:A,x01:-c,y01:-d,x11:T*(o/P-1),y11:A*(o/P-1)}}function BR(){var e=Q7,t=Z7,n=rt(0),r=null,o=J7,i=eY,a=tY,s=null;function l(){var u,c,d=+e.apply(this,arguments),f=+t.apply(this,arguments),h=o.apply(this,arguments)-qd,g=i.apply(this,arguments)-qd,m=xw(g-h),w=g>h;if(s||(s=u=Lu()),fMn))s.moveTo(0,0);else if(m>Rl-Mn)s.moveTo(f*wi(h),f*Yr(h)),s.arc(0,0,f,h,g,!w),d>Mn&&(s.moveTo(d*wi(g),d*Yr(g)),s.arc(0,0,d,g,h,w));else{var v=h,y=g,x=h,b=g,P=m,k=m,E=a.apply(this,arguments)/2,T=E>Mn&&(r?+r.apply(this,arguments):Oa(d*d+f*f)),A=Wh(xw(f-d)/2,+n.apply(this,arguments)),M=A,O=A,_,$;if(T>Mn){var D=bw(T/d*Yr(E)),R=bw(T/f*Yr(E));(P-=D*2)>Mn?(D*=w?1:-1,x+=D,b-=D):(P=0,x=b=(h+g)/2),(k-=R*2)>Mn?(R*=w?1:-1,v+=R,y-=R):(k=0,v=y=(h+g)/2)}var N=f*wi(v),j=f*Yr(v),I=d*wi(b),L=d*Yr(b);if(A>Mn){var F=f*wi(y),K=f*Yr(y),ae=d*wi(x),ie=d*Yr(x),B;if(mMn?O>Mn?(_=Tc(ae,ie,N,j,f,O,w),$=Tc(F,K,I,L,f,O,w),s.moveTo(_.cx+_.x01,_.cy+_.y01),OMn)||!(P>Mn)?s.lineTo(I,L):M>Mn?(_=Tc(I,L,F,K,d,-M,w),$=Tc(N,j,ae,ie,d,-M,w),s.lineTo(_.cx+_.x01,_.cy+_.y01),M=f;--h)s.point(y[h],x[h]);s.lineEnd(),s.areaEnd()}w&&(y[d]=+e(m,d,c),x[d]=+n(m,d,c),s.point(t?+t(m,d,c):y[d],r?+r(m,d,c):x[d]))}if(v)return s=null,v+""||null}function u(){return Nu().defined(o).curve(a).context(i)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:rt(+c),t=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:rt(+c),l):e},l.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:rt(+c),l):t},l.y=function(c){return arguments.length?(n=typeof c=="function"?c:rt(+c),r=null,l):n},l.y0=function(c){return arguments.length?(n=typeof c=="function"?c:rt(+c),l):n},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:rt(+c),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(c){return arguments.length?(o=typeof c=="function"?c:rt(!!c),l):o},l.curve=function(c){return arguments.length?(a=c,i!=null&&(s=a(i)),l):a},l.context=function(c){return arguments.length?(c==null?i=s=null:s=a(i=c),l):i},l}function rY(e,t){return te?1:t>=e?0:NaN}function oY(e){return e}function iY(){var e=oY,t=rY,n=null,r=rt(0),o=rt(Rl),i=rt(0);function a(s){var l,u=s.length,c,d,f=0,h=new Array(u),g=new Array(u),m=+r.apply(this,arguments),w=Math.min(Rl,Math.max(-Rl,o.apply(this,arguments)-m)),v,y=Math.min(Math.abs(w)/u,i.apply(this,arguments)),x=y*(w<0?-1:1),b;for(l=0;l0&&(f+=b);for(t!=null?h.sort(function(P,k){return t(g[P],g[k])}):n!=null&&h.sort(function(P,k){return n(s[P],s[k])}),l=0,d=f?(w-u*x)/f:0;l0?b*d:0)+x,g[c]={data:s[c],index:l,value:b,startAngle:m,endAngle:v,padAngle:y};return g}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:rt(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:rt(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:rt(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:rt(+s),a):i},a}const YR={draw:function(e,t){var n=Math.sqrt(t/hs);e.moveTo(n,0),e.arc(0,0,n,0,Rl)}};function aY(){var e=rt(YR),t=rt(64),n=null;function r(){var o;if(n||(n=o=Lu()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return r.type=function(o){return arguments.length?(e=typeof o=="function"?o:rt(o),r):e},r.size=function(o){return arguments.length?(t=typeof o=="function"?o:rt(+o),r):t},r.context=function(o){return arguments.length?(n=o??null,r):n},r}function ww(e){return e<0?-1:1}function Sw(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(ww(i)+ww(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Cw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Hh(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function Xd(e){this._context=e}Xd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Hh(this,this._t0,Cw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Hh(this,Cw(this,n=Sw(this,e,t)),n);break;default:Hh(this,this._t0,n=Sw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function KR(e){this._context=new GR(e)}(KR.prototype=Object.create(Xd.prototype)).point=function(e,t){Xd.prototype.point.call(this,t,e)};function GR(e){this._context=e}GR.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function sY(e){return new Xd(e)}function lY(e){return new KR(e)}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var ze=function(){return ze=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function kr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r=0?[n(t[0]),n(t[1])+n.bandwidth()]:[n(t[0])+n.bandwidth(),n(t[1])]},xY=function(e,t,n){var r=e.range(),o=Math.sign(r[1]-r[0]),i=eT(e,t),a=i[0]+n,s=i[1]+n;Math.sign(a-r[0])!==o&&(a=r[0],s=a+i[1]-i[0]),Math.sign(r[1]-s)!==o&&(s=r[1],a=s-i[1]+i[0]);var l=[e.invert(a),e.invert(s)];return ms(t,l)?t:l},bY=function(e,t){var n=Math.abs(e/t),r=Math.sign(e/t);return n>=.5?r*Math.round(n):n>=.3||Math.abs(e)>30?r:0},wY=function(e,t,n){var r=e.domain(),o=e.range(),i=(o[1]-o[0])/r.length,a=bY(n,i);if(a===0)return t;var s=_p(e,t),l=Math.round((s[0]-o[0])/i),u=l+Math.round((s[1]-s[0])/i)-1,c=l+a,d=u+a;return c<0&&(c=0,d=c+u-l),d>r.length-1&&(d=r.length-1,c=d-u+l),c===l||d===u?t:[r[c],r[d]]},SY=1e3,CY=function(e,t,n,r){var o=e.range(),i=(o[1]-o[0])/SY,a=Math.sign(o[1]-o[0]),s=_p(e,t);if(n>0&&Math.abs(s[1]-s[0])<=Math.abs(i)||n<0&&Math.abs(s[1]-s[0])>=Math.abs(o[1]-o[0]))return t;var l=Math.abs((r-s[0])/(s[1]-s[0])),u=s[0]+a*n*2*l,c=s[1]-a*n*2*(1-l);Math.sign(u-o[0])!==a&&(u=o[0]),Math.sign(o[1]-c)!==a&&(c=o[1]),(Math.sign(c-u)!==a||Math.abs(c-u)0&&l===u||c<0&&l===0&&u===o.length-1)return t;var d=Math.abs((r-s[0])/(s[1]-s[0])),f=l+Math.round(c*2*d),h=u-Math.round(c*2*(1-d));return f<0&&(f=0),h>o.length-1&&(h=o.length-1),f>h&&(d<=.5?h=f:f=h),f===l&&h===u?t:[o[f],o[h]]},EY=function(e,t){var n=e.range(),r=Math.sign(n[1]-n[0])===Math.sign(t[1]-t[0]);return[e.invert(t[r?0:1]),e.invert(t[r?1:0])]},kw=function(e,t,n){var r=Math.floor(e.length*(n-t[0])/(t[1]-t[0]));return e[Math.min(r,e.length-1)]},kY=function(e,t){var n=e.domain(),r=e.range();return[kw(n,r,t[0]),kw(n,r,t[1])]},_p=Ms(eT,yY),RY=Ms(xY,wY),TY=Ms(CY,PY),MY=Ms(EY,kY),Mc,Ag=function(e){var t=e.factory,n=e.modifyDomain;return{domain:[],factory:t,isDiscrete:!!(t&&rT(t)),modifyDomain:n}},$Y=(Mc={},Mc[En]=Ag({}),Mc[ju]=Ag({}),Mc),OY=function(e,t,n){var r;return ze(ze({},e),(r={},r[t]=Ag(n),r))},DY=function(e,t){var n=X9(kr(kr([],dn(e),!1),dn(t),!1));return ms(n,e)?e:n},AY=function(e,t){var n=Array.from(new Set(kr(kr([],dn(e),!1),dn(t),!1)));return n.length===e.length?e:n},tT=function(e){return e.argument},nT=function(e){return e.value},IY=function(e,t){return e.length&&typeof t(e[0])=="string"?QR:XR},rT=function(e){return"bandwidth"in e()},LY=function(e,t,n){if(e.factory)return e;var r=IY(t.points,n);return ze(ze({},e),{factory:r,isDiscrete:rT(r)})},NY=function(e,t){var n=e.isDiscrete?AY:DY,r=n(e.domain,t);return r===e.domain?e:ze(ze({},e),{domain:e.modifyDomain?e.modifyDomain(r):r})},_Y=function(e){return e.points.map(tT)},jY=function(e){var t=e.points.map(nT);return e.getPointTransformer.isStartedFromZero?kr([0],dn(t),!1):t},Rw=function(e,t,n,r){return NY(LY(e,t,n),r(t))},FY=function(e,t){var n=Rw(e[En],t,tT,_Y),r=Bu(t.scaleName),o=Rw(e[r],t,nT,jY),i={};return n!==e[En]&&(i[En]=n),o!==e[r]&&(i[r]=o),Object.keys(i).length?ze(ze({},e),i):e},zY=function(e,t){var n={};return Object.keys(e).forEach(function(r){n[r]=JR(e[r],t[r===En?En:ju])}),n},BY=function(e,t){var n=e.width,r=e.height,o=t.width,i=t.height;return n===o&&r===i},VY=function(e,t){var n,r=t.bBox,o=t.placeholder;return BY(e[o]||{},r)?e:ze(ze({},e),(n={},n[o]=r,n))},UY=function(e,t){var n,r=[0,e.width],o=[e.height,0];return n={},n[En]=t?o:r,n[ju]=t?r:o,n},ca,da,WY=function(e,t){return e.ticks?e.ticks(t):e.domain()},HY=function(e,t,n){return WY(e,t).map(function(r,o){return n(e(r),String(o),r)})},YY=function(e,t,n){return e.tickFormat?n?n(e,t):e.tickFormat(t):function(r){return r}},KY=(ca={},ca[Cn]=sn,ca[Nn]=yn,ca[sn]=Cn,ca[yn]=Nn,ca),GY=(da={},da[Cn]=!1,da[Nn]=!1,da[sn]=!0,da[yn]=!0,da),qY=function(e){return KY[e]},XY=function(e,t,n){return GY[e]===ZR(t,n)},QY=function(e,t,n){var r=e===sn;return{y1:0,y2:r?+t:-t,yText:r?+n:-n,dy:r?"1em":"0em",textAnchor:uY}},ZY=function(e,t,n){var r=e===Cn;return{x1:0,x2:r?-t:+t,xText:r?-n:+n,dy:"0.3em",textAnchor:r?cY:dY}},JY=10,eK=function(e,t){var n=Math.abs(e[0]-e[1])/t;return Math.round(JY*(isFinite(n)?n:1))},tK=function(e,t){return e?function(n){return n.x1>=0&&n.x1<=t}:function(n){return n.y1>=0&&n.y1<=t}},nK=function(e){var t=e.isHor,n=e.scale,r=e.tickCount,o=e.tickFormat,i=e.position,a=e.tickSize,s=e.indentFromAxis,l=YY(n,r,o),u=(t?QY:ZY)(i,a,s);return function(c,d,f){return ze({key:d,x1:c,x2:c,y1:c,y2:c,xText:c,yText:c,text:l(f)},u)}},rK=function(e){var t=e.isHor,n=t?{y1:0}:{x1:0};return function(r,o){return ze({key:o,x1:r,y1:r},n)}},Tw=function(e){var t=e.scaleName,n=e.scale,r=e.paneSize,o=e.rotated,i=e.callback,a=qR(e,["scaleName","scale","paneSize","rotated","callback"]),s=ZR(t,o),l=eK(n.range(),r[1-Number(s)]),u=HY(n,l,i(ze({isHor:s,scale:n,tickCount:l},a))),c=u.filter(tK(s,r[1-Number(s)]));return{ticks:c,sides:[Number(s),+!s]}},$s=function(e){var t=e.arg;return t},Os=function(e){var t=e.val;return t},oT=function(e){var t=e.startVal;return t},iT=_u().x($s).y1(Os).y0(oT),aT=_u().x1(oT).x0(Os).y($s),sT=Nu().x($s).y(Os),lT=Nu().x(Os).y($s),uT=Nu().x($s).y(Os).curve(sY),cT=Nu().x(Os).y($s).curve(lY),oK=function(e,t,n,r,o){var i=Math.abs(t-n),a=Math.min(t,n);return{x:o?a:e-r/2,y:o?e-r/2:a,width:o?i:r||2,height:o?r||2:i}},t0=function(e){var t=e.argumentScale,n=e.valueScale,r=e.points,o=Math.max.apply(Math,kr([],dn(t.range()),!1))/2,i=Math.max.apply(Math,kr([],dn(n.range()),!1))/2,a=Math.min(o,i),s=iY().sort(null).value(function(l){return l.value})(r);return function(l){var u=s[l.index],c=u.startAngle,d=u.endAngle;return ze(ze({},l),{arg:o,val:i,startAngle:c,endAngle:d,maxRadius:a})}},Vu=function(e){var t=e.argumentScale,n=e.valueScale;return function(r){return ze(ze({},r),{arg:t(r.argument),val:n(r.value)})}},dT=function(){for(var e=[],t=0;te.width&&t+r/2>e.width||n-o/2<0&&n+o/2<0||n-o/2>e.height&&n+o/2>e.height?"hidden":"visible"},fK=function(e,t){var n=t.width,r=t.height,o=Math.max(0,e.x),i=Math.max(0,e.y);return{x:o,y:i,width:Math.min(n,e.x+e.width)-o,height:Math.min(r,e.y+e.height)-i}},n0=function(e,t){return Object.entries(e).some(function(n){return n[1]!==t[n[0]]})},pT=function(e,t){var n=e.coordinates,r=t.coordinates;return n.length!==r.length?!0:n.some(function(o,i){return o.arg!==r[i].arg||o.val!==r[i].val})},pK=function(e,t){return!ms(e.argScale.range(),t.argScale.range())||!ms(e.valScale.range(),t.valScale.range())},hK=function(e){return(e-1)*(e-1)*(e-1)+1},mK=function(e,t){return t?e*30:0},hT=function(e){return e.valScale.copy().clamp(!0)(0)},mT=function(e,t){var n=t.coordinates,r=hT(e);return{coordinates:n.map(function(o){return{arg:o.arg,val:r,startVal:r}})}},gT=function(e,t){var n=t.arg,r=hT(e);return{arg:n,val:r,startVal:r}},gK=function(e,t){var n=t.startAngle,r=t.endAngle;return{innerRadius:0,outerRadius:0,startAngle:n,endAngle:r}},vK=function(e,t){return e.series===t.series&&e.point===t.point},yK=function(e,t){var n=e[0];return t?n?vK(n,t)?void 0:n:null:n},xK=function(e,t,n){var r=yK(e,t);if(r!==void 0)return n&&n(r),r},fu=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top,o=e.ownerDocument.defaultView,i=o,a=i.pageXOffset,s=i.pageYOffset;return[n+a,r+s]},Tl=function(e,t){var n=e.touches?e.touches[0]:e,r=n.pageX,o=n.pageY;return[r-t[0],o-t[1]]},bK=function(e,t){var n=e.find(function(o){var i=o.name;return t.series===i}),r=n.points.find(function(o){return o.index===t.point});return{element:n.getPointTransformer.getTargetElement(r),text:"".concat(r.value)}},wK=function(e,t){return{clientWidth:0,clientHeight:0,getBoundingClientRect:function(){var n=fu(t.current),r=t.current.ownerDocument.documentElement.getBoundingClientRect(),o=e[0]+n[0]+r.left,i=e[2]+n[0]+r.left,a=e[1]+n[1]+r.top,s=e[3]+n[1]+r.top;return{left:o,top:a,right:i,bottom:s,width:i-o,height:s-a}}}},SK=function(e,t,n){var r=e.filter(function(o){return o.point!==void 0});return xK(r,t,n)},vT=function(e){return e&&e.argumentStart!==void 0&&e.argumentEnd!==void 0?[e.argumentStart,e.argumentEnd]:null},yT=function(e){return e&&e.valueStart!==void 0&&e.valueEnd!==void 0?[e.valueStart,e.valueEnd]:null},xT=function(e){return Bu(e&&e.scaleName)},CK=function(e){var t=e.domain();return[t[0],t[t.length-1]]},PK=function(e,t){var n=(t[0]-t[1])/(e[0]-e[1]),r=t[0]-n*e[0];return[(e[0]-r)/n,(e[1]-r)/n]},EK=function(e,t,n){var r=JR(e,n),o=_p(r,t);return ms(o,n)?n:PK(n,o)},$w=function(e,t,n,r,o){var i=EK(r,o,e[n]);i!==e[n]&&(t[n]=i)},kK=function(e,t,n){var r={},o=vT(n);o&&$w(t,r,En,e[En],o);var i=yT(n);return i&&$w(t,r,ju,e[xT(n)],i),Object.keys(r).length?ze(ze({},t),r):t},Ow=function(e,t,n,r,o,i,a,s){if(!Ig(r,o))return null;var l=t[e],u=n||CK(l),c;return o==="pan"?c=RY(l,u,i):o==="zoom"&&(c=s?MY(l,s):TY(l,u,i,a)),c!==u?c:null},Yh=function(e,t,n,r,o,i,a,s,l){var u=dn(n,2),c=u[0],d=u[1],f=Number(t),h=1-f,g={},m=Ow(En,e,vT(s),c,r,o?o[f]:0,i?i[f]:0,a?a[f]:void 0),w=Ow(xT(s),e,yT(s),d,r,o?o[h]:0,i?i[h]:0,a?a[h]:void 0);if(m&&(g.argumentStart=m[0],g.argumentEnd=m[1]),w&&(g.valueStart=w[0],g.valueEnd=w[1]),Object.keys(g).length){var v=ze(ze({},s),g);return l&&l(v),{viewport:v}}return null},Dw=function(e){var t=e[0].pageX-e[1].pageX,n=e[0].pageY-e[1].pageY,r=Math.sqrt(t*t+n*n),o=[(e[0].pageX+e[1].pageX)/2,(e[0].pageY+e[1].pageY)/2];return{delta:r,center:o}},RK=function(e,t){return e["".concat(t,"Key")]},TK=function(e){var t=e.wheelDelta,n=e.deltaY;return t!==void 0?t:n*-30},Aw=function(e){return e.touches&&e.touches.length===2},Iw=function(e,t){Object.keys(t).forEach(function(n){e.addEventListener(n,t[n],{passive:!1})})},Kh=function(e,t){Object.keys(t).forEach(function(n){e.removeEventListener(n,t[n])})},MK=function(e,t,n,r,o,i){var a=Ig(t,"zoom"),s=Ig(n,"zoom"),l=e?s:a,u=e?a:s,c=l?Math.min(r[0],o[0]):0,d=l?Math.abs(r[0]-o[0]):i.width,f=u?Math.min(r[1],o[1]):0,h=u?Math.abs(r[1]-o[1]):i.height;return{x:c,y:f,width:d,height:h}},Ig=function(e,t){return e==="both"||e===t},Lg=function(e,t){var n="pointer";e.style.cursor=t||n},$K=function(e,t,n,r){var o=e.pane,i=qR(e,["pane"]),a=t.current;if(!o.width&&!o.height)return!1;var s={width:a.clientWidth,height:a.clientHeight},l=o.width,u=o.height;return Object.entries(i).forEach(function(c){var d=c[0].split("-")[0];d==="top"||d==="bottom"?u+=c[1].height:l+=c[1].width}),Math.abs(s.width-l)=0?t:t+Math.PI*2},BK=i0(function(e,t){var n=dn(e,2),r=n[0],o=n[1],i=t,a=i.arg,s=i.val,l=i.innerRadius,u=i.outerRadius,c=i.startAngle,d=i.maxRadius,f=i.endAngle,h=l*d,g=u*d,m=(h+g)/2,w=(c+f)/2,v=(g-h)/2,y=Math.abs(c-f)/2,x=r-a,b=o-s,P=r0(x,b),k=zK(Math.atan2(b,x));return wT(P-m,k-w,v,y)}),VK=function(e){return e.map(function(t){var n=t.name,r=t.color;return{text:n,color:r}})},UK=function(e){return e[0].points.map(function(t){var n=t.argument,r=t.color;return{text:n,color:r}})},WK=function(e){return e.length===1&&"innerRadius"in e[0]&&"outerRadius"in e[0]},HK=function(e){return(WK(e)?UK:VK)(e)},YK=20,KK=function(e,t){var n=e.distance-t.distance;if(Math.abs(n)<=YK){var r=t.order-e.order;return r!==0?r:n}return n},Lw=function(e,t){var n=null,r=function(){var o={};return e.forEach(function(i){o[i.symbolName]=i.createHitTester(i.points,i.rotated)}),o};return function(o){var i=Tl(o,fu(o.currentTarget));n=n||r();var a=[];e.forEach(function(l){var u=l.name,c=l.index,d=l.symbolName,f=n[d](i);f&&a.push.apply(a,kr([],dn(f.points.map(function(h){return{series:u,order:c,point:h.index,distance:h.distance}})),!1))}),a.sort(KK);var s={location:i,targets:a,event:o.nativeEvent};t.forEach(function(l){return l(s)})}},GK=function(e){return function(t){var n=Tl(t,fu(t.currentTarget)),r={location:n,targets:[]};e.forEach(function(o){return o(r)})}},qK=function(e,t){var n=t.clickHandlers,r=t.pointerMoveHandlers,o={};if(!w9())return o;if(n.length&&(o.click=Lw(e,n)),r.length){var i=Lw(e,r),a=GK(r);"ontouchstart"in window?o.touchstart=i:(o.mousemove=i,o.mouseleave=a)}return o},XK=function(e){var t=e.elapsed,n=e.total;return Math.min(t/n,1)},QK=function(e,t,n,r,o){return new Promise(function(i){setTimeout(function(){var a={start:Date.now(),total:r,elapsed:0},s=function(){a.elapsed=Date.now()-a.start;var l=XK(a);e(t(n(l))),l<1&&requestAnimationFrame(s)};i(requestAnimationFrame(s))},o)})},ZK=function(e,t){return function(n,r,o,i,a){a===void 0&&(a=0);var s,l=function(){s&&(cancelAnimationFrame(s),s=void 0)},u=function(c,d,f){s=QK(i,o(c,d),e,t,f).then(function(h){s=h})};return u(n,r,a),{update:function(c,d,f){f===void 0&&(f=0),l(),u(c,d,f)},stop:l}}},_n=function(e,t,n){return e+n*(t-e)},JK=function(e,t){return function(n){return{arg:_n(e.arg,t.arg,n),val:_n(e.val,t.val,n)}}},eG=function(e,t){return function(n){return{arg:_n(e.arg,t.arg,n),val:_n(e.val,t.val,n),startVal:_n(e.startVal,t.startVal,n)}}},tG=function(e,t){var n=e.coordinates,r=t.coordinates;return function(o){return{coordinates:r.map(function(i,a){var s=n[a];return ze(ze({},i),{arg:_n(s.arg,i.arg,o),val:_n(s.val,i.val,o)})})}}},nG=function(e,t){var n=e.coordinates,r=t.coordinates;return function(o){return{coordinates:r.map(function(i,a){var s=n[a];return ze(ze({},i),{arg:_n(s.arg,i.arg,o),val:_n(s.val,i.val,o),startVal:_n(s.startVal,i.startVal,o)})})}}},rG=function(e,t){return function(n){return{innerRadius:_n(e.innerRadius,t.innerRadius,n),outerRadius:_n(e.outerRadius,t.outerRadius,n),startAngle:_n(e.startAngle,t.startAngle,n),endAngle:_n(e.endAngle,t.endAngle,n)}}};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Ng=function(e,t){return Ng=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Ng(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ng(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ne=function(){return Ne=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function Nw(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r=0?0:-e},zw=function(e,t){return e>=0?e+t:-e},KG=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;return r.ref=p.createRef(),r.state={x:0,y:0},r.adjust=r.adjust.bind(r),r}return t.prototype.componentDidMount=function(){this.setState(this.adjust)},t.prototype.componentDidUpdate=function(){this.setState(this.adjust)},t.prototype.adjust=function(n,r){var o=r.dx,i=r.dy,a=r.onSizeChange,s=this.ref.current.getBBox(),l=o?s.width:zw(s.x,s.width),u=i?s.height:zw(s.y,s.height),c=o?0:Fw(s.x),d=i?0:Fw(s.y);return a({width:l,height:u}),{x:c,y:d}},t.prototype.render=function(){var n=this.props,r=n.children;n.onSizeChange,n.dx,n.dy;var o=Ht(n,["children","onSizeChange","dx","dy"]),i=this.state,a=i.x,s=i.y;return p.createElement("g",Ne({ref:this.ref,transform:"translate(".concat(a," ").concat(s,")")},o),r)},t}(p.PureComponent),GG=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.text,o=Ht(n,["text"]);return p.createElement("text",Ne({},o),r)},t}(p.PureComponent),Qh=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.x1,o=n.x2,i=n.y1,a=n.y2,s=Ht(n,["x1","x2","y1","y2"]);return p.createElement("path",Ne({d:"M ".concat(r," ").concat(i," L ").concat(o," ").concat(a)},s))},t}(p.PureComponent),qG={position:"absolute",left:0,top:0,overflow:"visible"},XG=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.rootRef=p.createRef(),n.adjustedWidth=0,n.adjustedHeight=0,n}return t.prototype.renderAxis=function(n){var r=this,o=this.props,i=o.scaleName,a=o.tickSize,s=o.tickFormat,l=o.indentFromAxis,u=o.showTicks,c=o.showLine,d=o.showLabels,f=o.rootComponent,h=o.tickComponent,g=o.labelComponent,m=o.lineComponent,w="".concat(n,"-axis"),v="".concat(w,"-").concat(i);return p.createElement(Hn,{name:w},p.createElement(lt,null),p.createElement(Ro,null,function(y,x){var b=y.scales,P=y.layouts,k=y.rotated,E=x.changeBBox;if(!XY(n,i,k))return null;var T=b[i];if(!T)return null;var A=P[v]||{width:0,height:0},M=A.width,O=A.height,_=P.pane,$=Tw({callback:nK,scaleName:i,position:n,tickSize:a,tickFormat:s,indentFromAxis:l,scale:T,paneSize:[_.width,_.height],rotated:k}),D=Qd($.sides,2),R=D[0],N=D[1],j=$.ticks,I=function(L){var F=r.rootRef.current.getBoundingClientRect(),K=[R?F.width:L.width,N?F.height:L.height];K[0]===r.adjustedWidth&&K[1]===r.adjustedHeight||(r.adjustedWidth=K[0],r.adjustedHeight=K[1],E({placeholder:v,bBox:L}))};return p.createElement("div",{style:{position:"relative",width:N*M||void 0,height:R*O||void 0,flexGrow:R||void 0},ref:r.rootRef},p.createElement("svg",{width:r.adjustedWidth,height:r.adjustedHeight,style:qG},p.createElement(f,{dx:R,dy:N,onSizeChange:I},u&&j.map(function(L){var F=L.x1,K=L.x2,ae=L.y1,ie=L.y2,B=L.key;return p.createElement(h,{key:B,x1:F,x2:K,y1:ae,y2:ie})}),c&&p.createElement(m,{x1:0,x2:R*_.width,y1:0,y2:N*_.height}),d&&j.map(function(L){var F=L.text,K=L.xText,ae=L.yText,ie=L.dy,B=L.textAnchor,te=L.key;return p.createElement(g,{key:te,text:F,x:K,y:ae,dy:ie,textAnchor:B})}))))}))},t.prototype.renderGrid=function(){var n=this.props,r=n.scaleName,o=n.showGrid,i=n.gridComponent;return p.createElement(Hn,{name:"series"},p.createElement(lt,null),p.createElement(Ro,null,function(a){var s=a.scales,l=a.layouts,u=a.rotated,c=s[r];if(!c||!o)return null;var d=l.pane,f=d.width,h=d.height,g=Tw({callback:rK,scaleName:r,scale:c,paneSize:[f,h],rotated:u}),m=g.ticks,w=Qd(g.sides,2),v=w[0],y=w[1];return p.createElement(p.Fragment,null,m.map(function(x){var b=x.key,P=x.x1,k=x.y1;return p.createElement(i,{key:b,x1:P,x2:P+y*f,y1:k,y2:k+v*h})}))}))},t.prototype.render=function(){var n=this.props.position,r=qY(n);return p.createElement(nn,{name:"Axis"},p.createElement(It,{name:"axesExist",value:!0}),this.renderAxis(n),this.renderAxis(r),this.renderGrid())},t.components={rootComponent:"Root",tickComponent:"Tick",labelComponent:"Label",lineComponent:"Line",gridComponent:"Grid"},t.defaultProps={tickSize:5,indentFromAxis:10},t}(p.PureComponent),Ji=sr({Label:GG,Line:Qh,Root:KG,Tick:Qh,Grid:Qh})(XG),QG=Wu(function(e){return Ne(Ne({position:sn,showGrid:!1,showTicks:!0,showLine:!0,showLabels:!0},e),{scaleName:En})})(Ji),ZG=Wu(function(e){return Ne(Ne({position:Cn,showGrid:!0,showTicks:!1,showLine:!1,showLabels:!0},e),{scaleName:Bu(e.scaleName)})})(Ji),JG=[{name:"EventTracker",optional:!0}],eq=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;r.state={target:n.targetItem||n.defaultTargetItem};var o=r.handlePointerMove.bind(r);return r.getPointerMoveHandlers=function(i){var a=i.pointerMoveHandlers,s=a===void 0?[]:a;return Nw(Nw([],Qd(s),!1),[o],!1)},r}return t.getDerivedStateFromProps=function(n,r){return{target:n.targetItem!==void 0?n.targetItem:r.target}},t.prototype.handlePointerMove=function(n){var r=n.targets;this.setState(function(o,i){var a=o.target,s=i.onTargetItemChange,l=SK(r,a,s);return l===void 0?null:{target:l}})},t.prototype.render=function(){var n=this.props,r=n.overlayComponent,o=n.contentComponent,i=n.sheetComponent,a=n.arrowComponent,s=this.state.target;return p.createElement(nn,{name:"Tooltip",dependencies:JG},p.createElement(It,{name:"pointerMoveHandlers",computed:this.getPointerMoveHandlers}),p.createElement(Hn,{name:"series"},p.createElement(lt,null),p.createElement(Ro,null,function(l){var u=l.series,c=l.rootRef,d=l.rotated;if(!s)return null;var f=bK(u,s),h=f.text,g=f.element;return p.createElement(r,{key:"".concat(s.series).concat(s.point),target:wK(g,c),rotated:d,arrowComponent:a},p.createElement(i,null,p.createElement(o,{text:h,targetItem:s})))})))},t.components={overlayComponent:"Overlay",contentComponent:"Content",arrowComponent:"Arrow",sheetComponent:"Sheet"},t}(p.PureComponent),tq=eq,nq=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.rect,o=Ht(n,["rect"]);return p.createElement("rect",Ne({x:r.x,y:r.y,width:r.width,height:r.height},o))},t}(p.PureComponent),nl={wheel:{func:"onWheel"},mousedown:{func:"onStart",extraEvents:["mousemove","mouseup"]},touchstart:{func:"onStart",extraEvents:["touchmove","touchend"]}},rq=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this;this.svgElement=this.props.rootRef.current,Lg(this.svgElement),this.windowHandlers=Object.keys(nl).reduce(function(r,o){var i,a,s=nl[o].extraEvents;return s?Ne(Ne({},r),(i={},i[o]=(a={},a[s[0]]=function(l){n.props.onMove(l)},a[s[1]]=function(l){n.props.onEnd(l),Lg(n.svgElement),Kh(window,n.windowHandlers[o])},a),i)):r},{}),this.handlers=Object.keys(nl).reduce(function(r,o){var i;return Ne(Ne({},r),(i={},i[o]=function(a){n.props[nl[o].func](a),nl[o].extraEvents&&Iw(window,n.windowHandlers[o])},i))},{}),Iw(this.svgElement,this.handlers)},t.prototype.componentWillUnmount=function(){var n=this;Kh(this.svgElement,this.handlers),Object.keys(this.windowHandlers).forEach(function(r){Kh(window,n.windowHandlers[r])})},t.prototype.render=function(){return null},t}(p.PureComponent),oq=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;return r.multiTouchDelta=null,r.lastCoordinates=null,r.rectOrigin=null,r.offset=[0,0],r.state={viewport:n.viewport||n.defaultViewport,rectBox:null},r}return t.getDerivedStateFromProps=function(n,r){return{viewport:n.viewport!==void 0?n.viewport:r.viewport}},t.prototype.handleStart=function(n,r){r.preventDefault(),this.offset=fu(r.currentTarget);var o=Tl(r,this.offset);RK(r,n)?this.rectOrigin=o:Lg(r.currentTarget,"grabbing"),Aw(r)&&(this.multiTouchDelta=Dw(r.touches).delta),this.lastCoordinates=o},t.prototype.handleMove=function(n,r,o,i){if(o.preventDefault(),qy(),Aw(o)){var a=Dw(o.touches);this.zoom(n,r,a.delta-this.multiTouchDelta,a.center),this.multiTouchDelta=a.delta}else this.scroll(n,r,o,i)},t.prototype.scroll=function(n,r,o,i){var a=this,s=Tl(o,this.offset),l=s[0]-this.lastCoordinates[0],u=s[1]-this.lastCoordinates[1];this.lastCoordinates=s,this.setState(function(c,d){var f=c.viewport,h=d.onViewportChange,g=d.interactionWithArguments,m=d.interactionWithValues;return a.rectOrigin?{rectBox:MK(r,g,m,a.rectOrigin,s,i)}:Yh(n,r,[g,m],"pan",[-l,-u],null,null,f,h)})},t.prototype.handleEnd=function(n,r){var o=this;this.lastCoordinates=null,this.multiTouchDelta=null,this.rectOrigin&&this.setState(function(i,a){var s=i.viewport,l=i.rectBox,u=a.onViewportChange,c=a.interactionWithArguments,d=a.interactionWithValues;return l===null?{}:(o.rectOrigin=null,Ne({rectBox:null},Yh(n,r,[c,d],"zoom",null,null,[[l.x,l.x+l.width],[l.y,l.y+l.height]],s,u)))})},t.prototype.zoom=function(n,r,o,i){this.setState(function(a,s){var l=a.viewport,u=s.onViewportChange,c=s.interactionWithArguments,d=s.interactionWithValues;return Yh(n,r,[c,d],"zoom",[o,o],i,null,l,u)})},t.prototype.handleZoom=function(n,r,o){o.preventDefault();var i=Tl(o,fu(o.currentTarget));this.zoom(n,r,TK(o),i)},t.prototype.render=function(){var n=this,r=this.state,o=r.viewport,i=r.rectBox,a=this.props,s=a.dragBoxComponent,l=a.zoomRegionKey,u=function(c){var d=c.domains,f=c.ranges;return kK(d,f,o)};return p.createElement(nn,{name:"zoomAndPan"},p.createElement(It,{name:"ranges",computed:u}),p.createElement(Hn,{name:"root"},p.createElement(lt,null),p.createElement(Ro,null,function(c){var d=c.scales,f=c.rotated,h=c.rootRef,g=c.layouts;return p.createElement(rq,{rootRef:h,onWheel:function(m){return n.handleZoom(d,f,m)},onStart:function(m){return n.handleStart(l,m)},onMove:function(m){return n.handleMove(d,f,m,g.pane)},onEnd:function(m){return n.handleEnd(d,f)}})})),p.createElement(Hn,{name:"series"},p.createElement(lt,null),i?p.createElement(s,{rect:i}):null))},t.components={dragBoxComponent:"DragBox"},t.defaultProps={interactionWithValues:"none",interactionWithArguments:"both",zoomRegionKey:"shift"},t}(p.PureComponent),ET=sr({DragBox:nq})(oq),Bw=function(e){return e?[e]:[]},iq={click:"onClick",mousemove:"onMouseMove",mouseleave:"onMouseLeave",touchstart:"onTouchStart"},aq=function(e){var t={};return Object.entries(e).forEach(function(n){var r=Qd(n,2),o=r[0],i=r[1];t[iq[o]]=i}),t},sq=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.onClick,o=n.onPointerMove;return p.createElement(nn,{name:"EventTracker"},p.createElement(It,{name:"clickHandlers",value:Bw(r)}),p.createElement(It,{name:"pointerMoveHandlers",value:Bw(o)}),p.createElement(Hn,{name:"canvas"},function(i){return p.createElement(Ro,null,function(a){var s=a.series,l=a.clickHandlers,u=a.pointerMoveHandlers,c=qK(s,{clickHandlers:l,pointerMoveHandlers:u});return p.createElement(lt,{params:Ne(Ne({},i),aq(c))})})}))},t}(p.PureComponent),lq=sq;function kT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[o]=e[o]);return n}function yi(e,t){if(e==null)return{};var n=uq(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cq(e,t){return dq(e)||fq(e,t)||pq(e,t)||hq()}function dq(e){if(Array.isArray(e))return e}function fq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function pq(e,t){if(e){if(typeof e=="string")return Uw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uw(e,t)}}function Uw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n!e.length>0?C.jsx(At,{variant:"h4",sx:{textAlign:"center",margin:5},children:"Add a transaction to view chart"}):C.jsx(Rr,{style:{marginTop:20},children:C.jsxs(MT,{data:e,children:[C.jsx(IG,{factory:QR}),C.jsx(Uq,{}),C.jsx(Vq,{}),C.jsx(CT,{valueField:"Expense",argumentField:"Category"}),C.jsx(NG,{}),C.jsx(lq,{}),C.jsx(tX,{})]})}),iX=()=>{const[e,t]=p.useState([]),n=ro(o=>o.transactions),r=Io();return p.useEffect(()=>{(async()=>{const a=(await Bd.fetchAll()).sort((s,l)=>s.date>l.date?-1:1);r(vR(a))})()},[]),p.useEffect(()=>{const o={};n.forEach(s=>{o[s.category]?o[s.category]+=s.amount:o[s.category]=s.amount});const i=Object.keys(o),a=[];i.forEach(s=>{a.push({Category:s,Expense:o[s]})}),t(a)},[n]),C.jsx("div",{children:C.jsxs(Oy,{children:[C.jsx(oX,{chartData:e}),C.jsx(l9,{}),C.jsx(y9,{})]})})};var c0={},aX=Vy;Object.defineProperty(c0,"__esModule",{value:!0});var d0=c0.default=void 0,sX=aX(Uy()),lX=C,uX=(0,sX.default)((0,lX.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");d0=c0.default=uX;function cX(e){return C.jsxs(At,{variant:"body2",color:"text.secondary",align:"center",...e,children:["Copyright © ",C.jsx(Ko,{color:"inherit",href:"https://mui.com/",children:"Expense Tracker"})," ",new Date().getFullYear(),"."]})}const dX=Vf();function fX(){const e=ku(),t=Io(),n=async r=>{r.preventDefault();const o=new FormData(r.currentTarget),i={email:o.get("email"),password:o.get("password")};try{const a=await xy.login(i);t(ap(a.user)),e("/"),t(qt(["Login success",!0]))}catch(a){t(qt([a.response.data,!1]))}setTimeout(()=>t(qt(null)),5e3)};return C.jsx(BP,{theme:dX,children:C.jsxs(Oy,{component:"main",maxWidth:"xs",children:[C.jsx(gk,{}),C.jsxs(Co,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[C.jsx(fk,{sx:{m:1,bgcolor:"secondary.main"},children:C.jsx(d0,{})}),C.jsx(At,{component:"h1",variant:"h5",children:"Sign in"}),C.jsxs(Co,{component:"form",onSubmit:n,noValidate:!0,sx:{mt:1},children:[C.jsx(Fr,{margin:"normal",required:!0,fullWidth:!0,id:"email",label:"Email Address",name:"email",autoComplete:"email",autoFocus:!0}),C.jsx(Fr,{margin:"normal",required:!0,fullWidth:!0,name:"password",label:"Password",type:"password",id:"password",autoComplete:"current-password"}),C.jsx(mr,{type:"submit",fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:"Sign In"}),C.jsx(fo,{container:!0,children:C.jsx(fo,{item:!0,children:C.jsx(Ko,{to:"/register",variant:"body2",children:"Don't have an account? Sign Up"})})})]})]}),C.jsx(cX,{sx:{mt:8,mb:4}})]})})}function pX(e){return C.jsxs(At,{variant:"body2",color:"text.secondary",align:"center",...e,children:["Copyright © ",C.jsx(Ko,{color:"inherit",href:"/",children:"Expense Tracker"})," ",new Date().getFullYear(),"."]})}const hX=Vf();function mX(){const e=ku(),t=Io(),n=async r=>{r.preventDefault();const o=new FormData(r.currentTarget);if(!o.get("firstName")||!o.get("lastName")||!o.get("email")||!o.get("password"))return t(qt(["One or more field empty",!1])),setTimeout(()=>t(qt(null)),5e3);const i={fname:o.get("firstName"),lname:o.get("lastName"),email:o.get("email"),password:o.get("password")};try{await xy.register(i),t(qt(["Account created!",!0])),e("/login")}catch(a){t(qt([a.response.data,!1]))}setTimeout(()=>t(qt(null)),5e3)};return C.jsx(BP,{theme:hX,children:C.jsxs(Oy,{component:"main",maxWidth:"xs",children:[C.jsx(gk,{}),C.jsxs(Co,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[C.jsx(fk,{sx:{m:1,bgcolor:"secondary.main"},children:C.jsx(d0,{})}),C.jsx(At,{component:"h1",variant:"h5",children:"Sign up"}),C.jsxs(Co,{component:"form",noValidate:!0,onSubmit:n,sx:{mt:3},children:[C.jsxs(fo,{container:!0,spacing:2,children:[C.jsx(fo,{item:!0,xs:12,sm:6,children:C.jsx(Fr,{autoComplete:"given-name",name:"firstName",required:!0,fullWidth:!0,id:"firstName",label:"First Name",autoFocus:!0})}),C.jsx(fo,{item:!0,xs:12,sm:6,children:C.jsx(Fr,{required:!0,fullWidth:!0,id:"lastName",label:"Last Name",name:"lastName",autoComplete:"family-name"})}),C.jsx(fo,{item:!0,xs:12,children:C.jsx(Fr,{required:!0,fullWidth:!0,id:"email",label:"Email Address",name:"email",autoComplete:"email"})}),C.jsx(fo,{item:!0,xs:12,children:C.jsx(Fr,{required:!0,fullWidth:!0,name:"password",label:"Password",type:"password",id:"password",autoComplete:"new-password"})})]}),C.jsx(mr,{type:"submit",fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:"Sign Up"}),C.jsx(fo,{container:!0,justifyContent:"flex-end",children:C.jsx(fo,{item:!0,children:C.jsx(Ko,{to:"/login",children:"Already have an account? Sign in"})})})]})]}),C.jsx(pX,{sx:{mt:5}})]})})}function Hw({children:e}){return ro(n=>n.auth.user)?e:C.jsx(oE,{to:"/login"})}function Yw({children:e}){return ro(n=>n.auth.user)?C.jsx(oE,{to:"/"}):e}const gX=U_({reducer:{auth:J_,transactions:r9,editTransaction:a9,message:tj}}),jT="/category/",FT=e=>({authorization:`Bearer ${e}`}),vX=async e=>{const t=localStorage.getItem("expenseTrackerToken");return await Lo.delete(jT+e,{headers:FT(t)})},yX=async e=>{const t=localStorage.getItem("expenseTrackerToken");return await Lo.post(jT,{name:e},{headers:FT(t)})},zT={remove:vX,create:yX},xX=()=>{const[e,t]=p.useState(""),n=Io(),r=i=>{t(i.target.value)},o=async i=>{i.preventDefault();const a=await zT.create(e);n(ap(a.data)),n(qt([`Category '${e}' added successfully`,!0])),setTimeout(()=>n(qt(null)),5e3),t("")};return C.jsxs(Dn.Fragment,{children:[C.jsx(mk,{children:C.jsxs(Co,{component:"form",onSubmit:o,sx:{display:"flex",flexWrap:"wrap",justifyContent:"center"},children:[C.jsx(Fr,{size:"small",sx:{marginRight:5},onChange:r,value:e,type:"text",name:"amount",placeholder:"New Category Name"}),C.jsx(mr,{variant:"contained",type:"submit",children:"Submit"})]})}),C.jsx(hk,{})]})};function bX(){return C.jsx(Co,{sx:{minWidth:275,margin:5},children:C.jsx(pk,{variant:"outlined",children:C.jsx(xX,{})})})}function wX(){const e=Io(),t=ro(r=>r.auth.user.categories),n=async r=>{if(confirm("Are you sure you want to delete the category?")){const o=await zT.remove(r);o.status===200&&(e(ap(o.data)),e(qt(["Category deleted successfully",!0])),setTimeout(()=>e(qt(null)),5e3))}};return C.jsxs(C.Fragment,{children:[C.jsx(bX,{}),C.jsx(At,{variant:"h4",sx:{textAlign:"center",margin:5},children:"List of categories"}),C.jsx(Nk,{component:Rr,children:C.jsxs(Ik,{sx:{minWidth:650},"aria-label":"simple table",children:[C.jsx(_k,{children:C.jsxs(zd,{children:[C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Name"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Action"})})]})}),C.jsx(Lk,{children:t.map(r=>C.jsxs(zd,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[C.jsx($n,{align:"center",children:r}),C.jsx($n,{align:"center",children:C.jsx(Eo,{color:"error",onClick:()=>n(r),sx:{cursor:"pointer"},children:C.jsx(Wy,{})})})]},r))})]})})]})}const SX=CN([{element:C.jsx(wU,{}),children:[{path:"/",element:C.jsx(Hw,{children:C.jsx(iX,{})})},{path:"/login",element:C.jsx(Yw,{children:C.jsx(fX,{})})},{path:"/register",element:C.jsx(Yw,{children:C.jsx(mX,{})})},{path:"/category",element:C.jsxs(Hw,{children:[C.jsx(wX,{})," "]})}]}]);Zh.createRoot(document.getElementById("root")).render(C.jsx(l_,{store:gX,children:C.jsx(hN,{router:SX})})); diff --git a/client/dist/assets/index-7f4f51b3.css b/client/dist/assets/index-7f4f51b3.css new file mode 100644 index 0000000..c8ab410 --- /dev/null +++ b/client/dist/assets/index-7f4f51b3.css @@ -0,0 +1 @@ +body{font-family:Roboto,sans-serif} diff --git a/client/dist/index.html b/client/dist/index.html new file mode 100644 index 0000000..c7350c5 --- /dev/null +++ b/client/dist/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + + Vite + React + + + + +
+ + + diff --git a/client/dist/vite.svg b/client/dist/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/client/dist/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/client/index.html b/client/index.html new file mode 100644 index 0000000..3d4777f --- /dev/null +++ b/client/index.html @@ -0,0 +1,18 @@ + + + + + + + + + + + Vite + React + + +
+ + + diff --git a/client/package-lock.json b/client/package-lock.json new file mode 100644 index 0000000..04dc330 --- /dev/null +++ b/client/package-lock.json @@ -0,0 +1,4841 @@ +{ + "name": "client", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "client", + "version": "0.0.0", + "dependencies": { + "@devexpress/dx-react-chart-material-ui": "^4.0.5", + "@emotion/react": "^11.11.1", + "@emotion/styled": "^11.11.0", + "@mui/icons-material": "^5.14.8", + "@mui/material": "^5.14.8", + "@mui/x-date-pickers": "^6.12.1", + "@reduxjs/toolkit": "^1.9.5", + "axios": "^1.5.0", + "dayjs": "^1.11.9", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-redux": "^8.1.2", + "react-router-dom": "^6.15.0" + }, + "devDependencies": { + "@types/react": "^18.2.15", + "@types/react-dom": "^18.2.7", + "@vitejs/plugin-react": "^4.0.3", + "eslint": "^8.45.0", + "eslint-plugin-react": "^7.32.2", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.3", + "vite": "^4.4.5" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "dependencies": { + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.9.tgz", + "integrity": "sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.15.tgz", + "integrity": "sha512-PtZqMmgRrvj8ruoEOIwVA3yoF91O+Hgw9o7DAUTNBA6Mo2jpu31clx9a7Nz/9JznqetTR6zwfC4L3LAjKQXUwA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.22.15", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-module-transforms": "^7.22.15", + "@babel/helpers": "^7.22.15", + "@babel/parser": "^7.22.15", + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.22.15", + "@babel/types": "^7.22.15", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.15.tgz", + "integrity": "sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.15", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", + "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.15", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", + "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", + "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.15.tgz", + "integrity": "sha512-l1UiX4UyHSFsYt17iQ3Se5pQQZZHa22zyIXURmvkmLCD4t/aU+dvNWHatKac/D9Vm9UES7nvIqHs4jZqKviUmQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz", + "integrity": "sha512-4E/F9IIEi8WR94324mbDUMo074YTheJmd7eZF5vITTeYchqAi6sYXRLHUVsmkdmY4QjfKTcB2jB7dVP3NaBElQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", + "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.15.tgz", + "integrity": "sha512-7pAjK0aSdxOwR+CcYAqgWOGy5dcfvzsTIfFTb2odQqW47MDfv14UaJDY6eng8ylM2EaeKXdxaSWESbkmaQHTmw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.13.tgz", + "integrity": "sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.16", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.16.tgz", + "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.22.5.tgz", + "integrity": "sha512-nTh2ogNUtxbiSbxaT4Ds6aXnXEipHweN9YRgOX/oNXdf0cCrGn/+2LozFa3lnPV5D90MkjhgckCPBrsoSc1a7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.22.5.tgz", + "integrity": "sha512-yIiRO6yobeEIaI0RTbIr8iAK9FcBHLtZq0S89ZPjDLQXBA4xvghaKqI0etp/tF3htTM0sazJKKLz9oEiGRtu7w==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.15.tgz", + "integrity": "sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.15.tgz", + "integrity": "sha512-DdHPwvJY0sEeN4xJU5uRLmZjgMMDIvMPniLuYzUVXj/GGzysPl0/fwt44JBkyUIzGJPV8QgHMcQdQ34XFuKTYQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.22.15", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.15.tgz", + "integrity": "sha512-X+NLXr0N8XXmN5ZsaQdm9U2SSC3UbIYq/doL++sueHOTisgZHoKaQtZxGuV2cUPQHMfjKEfg/g6oy7Hm6SKFtA==", + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.15", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@devexpress/dx-chart-core": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@devexpress/dx-chart-core/-/dx-chart-core-4.0.5.tgz", + "integrity": "sha512-mca5ddkTOpvnI9oeN/NMgyoiIeTDHUwf+mPfP72QVHFoENAH0hpuAkIQQ1kzxnz1tlsYSzpQBP7ne0t4xtBY8g==", + "peer": true, + "dependencies": { + "d3-array": "^2.4.0", + "d3-scale": "^4.0.2", + "d3-shape": "^1.3.7" + }, + "peerDependencies": { + "@devexpress/dx-core": "4.0.5" + } + }, + "node_modules/@devexpress/dx-core": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@devexpress/dx-core/-/dx-core-4.0.5.tgz", + "integrity": "sha512-z/d4rRSDxZKGRW/24ncvIqj1ba6Jyjv08pipqY1xTsQCDiZJwSGlSrY02Al9tQ5tF0u4kWMGo3khh/ml/cKR9g==", + "peer": true + }, + "node_modules/@devexpress/dx-react-chart": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@devexpress/dx-react-chart/-/dx-react-chart-4.0.5.tgz", + "integrity": "sha512-dg35m1qPwRUyCx+O4cYHYa30+uzrDch7vHkvRGJIIraGgoE2kvc2sPXI/D+drxDsUR1zLoCHbX6aeRtCr3xmug==", + "peer": true, + "dependencies": { + "@devexpress/dx-chart-core": "4.0.5", + "d3-scale": "^4.0.2", + "d3-shape": "^1.3.7" + }, + "peerDependencies": { + "@devexpress/dx-react-core": "4.0.5", + "react": ">=17.0.2", + "react-dom": ">=17.0.2" + } + }, + "node_modules/@devexpress/dx-react-chart-material-ui": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@devexpress/dx-react-chart-material-ui/-/dx-react-chart-material-ui-4.0.5.tgz", + "integrity": "sha512-CiXjWZMyhqWNR6Jk5HmVaYkCLSYBiyJX/0jUy1BoAC9q2OSEjQLAdGeQ2Wri/Hae5aHUhbKOdJFopkYycAFx4A==", + "dependencies": { + "clsx": "^1.0.4", + "prop-types": "^15.7.2" + }, + "peerDependencies": { + "@devexpress/dx-chart-core": "4.0.5", + "@devexpress/dx-react-chart": "4.0.5", + "@devexpress/dx-react-core": "4.0.5", + "@emotion/react": ">=11.4.1", + "@emotion/styled": ">=11.3.0", + "@mui/icons-material": ">=5.0.0", + "@mui/material": ">=5.0.0", + "react": ">=17.0.2" + } + }, + "node_modules/@devexpress/dx-react-chart-material-ui/node_modules/clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/@devexpress/dx-react-core": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@devexpress/dx-react-core/-/dx-react-core-4.0.5.tgz", + "integrity": "sha512-gaYUhmR65PeuWR/E+tpyHwCVIbdAeVJwiXu+ly9h6YdEcOKaLjOO52lWut3VBW7WhQCsCGq59gezmBVeNAv5oQ==", + "peer": true, + "dependencies": { + "@devexpress/dx-core": "4.0.5", + "prop-types": "^15.7.2" + }, + "peerDependencies": { + "react": ">=17.0.2", + "react-dom": ">=17.0.2" + } + }, + "node_modules/@emotion/babel-plugin": { + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.11.0.tgz", + "integrity": "sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==", + "dependencies": { + "@babel/helper-module-imports": "^7.16.7", + "@babel/runtime": "^7.18.3", + "@emotion/hash": "^0.9.1", + "@emotion/memoize": "^0.8.1", + "@emotion/serialize": "^1.1.2", + "babel-plugin-macros": "^3.1.0", + "convert-source-map": "^1.5.0", + "escape-string-regexp": "^4.0.0", + "find-root": "^1.1.0", + "source-map": "^0.5.7", + "stylis": "4.2.0" + } + }, + "node_modules/@emotion/babel-plugin/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@emotion/cache": { + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.11.0.tgz", + "integrity": "sha512-P34z9ssTCBi3e9EI1ZsWpNHcfY1r09ZO0rZbRO2ob3ZQMnFI35jB536qoXbkdesr5EUhYi22anuEJuyxifaqAQ==", + "dependencies": { + "@emotion/memoize": "^0.8.1", + "@emotion/sheet": "^1.2.2", + "@emotion/utils": "^1.2.1", + "@emotion/weak-memoize": "^0.3.1", + "stylis": "4.2.0" + } + }, + "node_modules/@emotion/hash": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.1.tgz", + "integrity": "sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ==" + }, + "node_modules/@emotion/is-prop-valid": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.1.tgz", + "integrity": "sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw==", + "dependencies": { + "@emotion/memoize": "^0.8.1" + } + }, + "node_modules/@emotion/memoize": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", + "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" + }, + "node_modules/@emotion/react": { + "version": "11.11.1", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.11.1.tgz", + "integrity": "sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.11.0", + "@emotion/cache": "^11.11.0", + "@emotion/serialize": "^1.1.2", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", + "@emotion/utils": "^1.2.1", + "@emotion/weak-memoize": "^0.3.1", + "hoist-non-react-statics": "^3.3.1" + }, + "peerDependencies": { + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/serialize": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.1.2.tgz", + "integrity": "sha512-zR6a/fkFP4EAcCMQtLOhIgpprZOwNmCldtpaISpvz348+DP4Mz8ZoKaGGCQpbzepNIUWbq4w6hNZkwDyKoS+HA==", + "dependencies": { + "@emotion/hash": "^0.9.1", + "@emotion/memoize": "^0.8.1", + "@emotion/unitless": "^0.8.1", + "@emotion/utils": "^1.2.1", + "csstype": "^3.0.2" + } + }, + "node_modules/@emotion/sheet": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.2.tgz", + "integrity": "sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA==" + }, + "node_modules/@emotion/styled": { + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.11.0.tgz", + "integrity": "sha512-hM5Nnvu9P3midq5aaXj4I+lnSfNi7Pmd4EWk1fOZ3pxookaQTNew6bp4JaCBYM4HVFZF9g7UjJmsUmC2JlxOng==", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.11.0", + "@emotion/is-prop-valid": "^1.2.1", + "@emotion/serialize": "^1.1.2", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", + "@emotion/utils": "^1.2.1" + }, + "peerDependencies": { + "@emotion/react": "^11.0.0-rc.0", + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/unitless": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz", + "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==" + }, + "node_modules/@emotion/use-insertion-effect-with-fallbacks": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.0.1.tgz", + "integrity": "sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==", + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@emotion/utils": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.2.1.tgz", + "integrity": "sha512-Y2tGf3I+XVnajdItskUCn6LX+VUDmP6lTL4fcqsXAv43dnlbZiuW4MWQW38rW/BVWSE7Q/7+XQocmpnRYILUmg==" + }, + "node_modules/@emotion/weak-memoize": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz", + "integrity": "sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww==" + }, + "node_modules/@esbuild/android-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", + "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", + "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", + "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", + "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", + "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", + "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", + "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", + "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", + "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", + "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", + "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", + "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", + "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", + "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", + "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", + "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", + "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", + "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", + "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", + "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", + "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.8.0.tgz", + "integrity": "sha512-JylOEEzDiOryeUnFbQz+oViCXS0KsvR1mvHkoMiu5+UiBvy+RYX7tzlIIIEstF/gVa2tj9AQXk3dgnxv6KxhFg==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", + "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.21.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz", + "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.48.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.48.0.tgz", + "integrity": "sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@floating-ui/core": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.4.1.tgz", + "integrity": "sha512-jk3WqquEJRlcyu7997NtR5PibI+y5bi+LS3hPmguVClypenMsCY3CBa3LAQnozRCtCrYWSEtAdiskpamuJRFOQ==", + "dependencies": { + "@floating-ui/utils": "^0.1.1" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.1.tgz", + "integrity": "sha512-KwvVcPSXg6mQygvA1TjbN/gh///36kKtllIF8SUm0qpFj8+rvYrpvlYdL1JoA71SHpDqgSSdGOSoQ0Mp3uY5aw==", + "dependencies": { + "@floating-ui/core": "^1.4.1", + "@floating-ui/utils": "^0.1.1" + } + }, + "node_modules/@floating-ui/react-dom": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.2.tgz", + "integrity": "sha512-5qhlDvjaLmAst/rKb3VdlCinwTF4EYMiVxuuc/HVUjs46W0zgtbMmAZ1UTsDrRTxRmUEzl92mOtWbeeXL26lSQ==", + "dependencies": { + "@floating-ui/dom": "^1.5.1" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.1.tgz", + "integrity": "sha512-m0G6wlnhm/AX0H12IOWtK8gASEMffnX08RtKkCgTdHb9JpHKGloI7icFfLg9ZmQeavcvR0PKmzxClyuFPSjKWw==" + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.11", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz", + "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", + "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@mui/base": { + "version": "5.0.0-beta.14", + "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.14.tgz", + "integrity": "sha512-Je/9JzzYObsuLCIClgE8XvXNFb55IEz8n2NtStUfASfNiVrwiR8t6VVFFuhofehkyTIN34tq1qbBaOjCnOovBw==", + "dependencies": { + "@babel/runtime": "^7.22.10", + "@emotion/is-prop-valid": "^1.2.1", + "@floating-ui/react-dom": "^2.0.1", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.14.8", + "@popperjs/core": "^2.11.8", + "clsx": "^2.0.0", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/base/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "node_modules/@mui/core-downloads-tracker": { + "version": "5.14.8", + "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.14.8.tgz", + "integrity": "sha512-8V7ZOC/lKkM03TRHqaThQFIq6bWPnj7L/ZWPh0ymldYFFyh8XdF0ywTgafsofDNYT4StlNknbaTjVHBma3SNjQ==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + } + }, + "node_modules/@mui/icons-material": { + "version": "5.14.8", + "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.14.8.tgz", + "integrity": "sha512-YXcReLydTuNWb1/PxduAH5LgnHNH6spSQBaA0JOz9HD4J+vwst0IanAQgsXy9KKCJSjCsHywE3DB8X+w/b4eeQ==", + "dependencies": { + "@babel/runtime": "^7.22.10" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@mui/material": "^5.0.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/material": { + "version": "5.14.8", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.14.8.tgz", + "integrity": "sha512-fqvDGGF1pXwOOL/f0Gw+KHo/67hasRpf2ApTIJkbuONOk9AUb2jnYMEqCWmL2sUcbbE3ShMbHl8N7HPSsRv1/A==", + "dependencies": { + "@babel/runtime": "^7.22.10", + "@mui/base": "5.0.0-beta.14", + "@mui/core-downloads-tracker": "^5.14.8", + "@mui/system": "^5.14.8", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.14.8", + "@types/react-transition-group": "^4.4.6", + "clsx": "^2.0.0", + "csstype": "^3.1.2", + "prop-types": "^15.8.1", + "react-is": "^18.2.0", + "react-transition-group": "^4.4.5" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/material/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "node_modules/@mui/private-theming": { + "version": "5.14.8", + "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.14.8.tgz", + "integrity": "sha512-iBzpcl3Mh92XaYpYPdgzzRxNGkjpoDz8rf8/q5m+EBPowFEHV+CCS9hC0Q2pOKLW3VFFikA7w/GHt7n++40JGQ==", + "dependencies": { + "@babel/runtime": "^7.22.10", + "@mui/utils": "^5.14.8", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/styled-engine": { + "version": "5.14.8", + "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.14.8.tgz", + "integrity": "sha512-LGwOav/Y40PZWZ2yDk4beUoRlc57Vg+Vpxi9V9BBtT2ESAucCgFobkt+T8eVLMWF9huUou5pwKgLSU5pF90hBg==", + "dependencies": { + "@babel/runtime": "^7.22.10", + "@emotion/cache": "^11.11.0", + "csstype": "^3.1.2", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.4.1", + "@emotion/styled": "^11.3.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + } + } + }, + "node_modules/@mui/system": { + "version": "5.14.8", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.14.8.tgz", + "integrity": "sha512-Dxnasv7Pj5hYe4ZZFKJZu4ufKm6cxpitWt3A+qMPps22YhqyeEqgDBq/HsAB3GOjqDP40fTAvQvS/Hguf4SJuw==", + "dependencies": { + "@babel/runtime": "^7.22.10", + "@mui/private-theming": "^5.14.8", + "@mui/styled-engine": "^5.14.8", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.14.8", + "clsx": "^2.0.0", + "csstype": "^3.1.2", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/types": { + "version": "7.2.4", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.4.tgz", + "integrity": "sha512-LBcwa8rN84bKF+f5sDyku42w1NTxaPgPyYKODsh01U1fVstTClbUoSA96oyRBnSNyEiAVjKm6Gwx9vjR+xyqHA==", + "peerDependencies": { + "@types/react": "*" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/utils": { + "version": "5.14.8", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.14.8.tgz", + "integrity": "sha512-1Ls2FfyY2yVSz9NEqedh3J8JAbbZAnUWkOWLE2f4/Hc4T5UWHMfzBLLrCqExfqyfyU+uXYJPGeNIsky6f8Gh5Q==", + "dependencies": { + "@babel/runtime": "^7.22.10", + "@types/prop-types": "^15.7.5", + "@types/react-is": "^18.2.1", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "react": "^17.0.0 || ^18.0.0" + } + }, + "node_modules/@mui/utils/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "node_modules/@mui/x-date-pickers": { + "version": "6.12.1", + "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-6.12.1.tgz", + "integrity": "sha512-euMM7KNbqoOgIdf5P8T8KG74qqbpDvLp5k8yEVMx1zHeSiSZGofKpQrDFAMxjJRnJ0x1aJLIhFEc46O70fSAlA==", + "dependencies": { + "@babel/runtime": "^7.22.11", + "@mui/utils": "^5.14.7", + "@types/react-transition-group": "^4.4.6", + "clsx": "^2.0.0", + "prop-types": "^15.8.1", + "react-transition-group": "^4.4.5" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.9.0", + "@emotion/styled": "^11.8.1", + "@mui/base": "^5.0.0-alpha.87", + "@mui/material": "^5.8.6", + "@mui/system": "^5.8.0", + "date-fns": "^2.25.0", + "date-fns-jalali": "^2.13.0-0", + "dayjs": "^1.10.7", + "luxon": "^3.0.2", + "moment": "^2.29.4", + "moment-hijri": "^2.1.2", + "moment-jalaali": "^0.7.4 || ^0.8.0 || ^0.9.0 || ^0.10.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "date-fns": { + "optional": true + }, + "date-fns-jalali": { + "optional": true + }, + "dayjs": { + "optional": true + }, + "luxon": { + "optional": true + }, + "moment": { + "optional": true + }, + "moment-hijri": { + "optional": true + }, + "moment-jalaali": { + "optional": true + } + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@reduxjs/toolkit": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.5.tgz", + "integrity": "sha512-Rt97jHmfTeaxL4swLRNPD/zV4OxTes4la07Xc4hetpUW/vc75t5m1ANyxG6ymnEQ2FsLQsoMlYB2vV1sO3m8tQ==", + "dependencies": { + "immer": "^9.0.21", + "redux": "^4.2.1", + "redux-thunk": "^2.4.2", + "reselect": "^4.1.8" + }, + "peerDependencies": { + "react": "^16.9.0 || ^17.0.0 || ^18", + "react-redux": "^7.2.1 || ^8.0.2" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-redux": { + "optional": true + } + } + }, + "node_modules/@remix-run/router": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.8.0.tgz", + "integrity": "sha512-mrfKqIHnSZRyIzBcanNJmVQELTnX+qagEDlcKO90RgRBVOZGSGvZKeDihTRfWcqoDn5N/NkUcwWTccnpN18Tfg==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@types/hoist-non-react-statics": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", + "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==", + "dependencies": { + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0" + } + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + }, + "node_modules/@types/prop-types": { + "version": "15.7.5", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", + "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" + }, + "node_modules/@types/react": { + "version": "18.2.21", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.21.tgz", + "integrity": "sha512-neFKG/sBAwGxHgXiIxnbm3/AAVQ/cMRS93hvBpg8xYRbeQSPVABp9U2bRnPf0iI4+Ucdv3plSxKK+3CW2ENJxA==", + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.2.7", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.7.tgz", + "integrity": "sha512-GRaAEriuT4zp9N4p1i8BDBYmEyfo+xQ3yHjJU4eiK5NDa1RmUZG+unZABUTK4/Ox/M+GaHwb6Ow8rUITrtjszA==", + "devOptional": true, + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/react-is": { + "version": "18.2.1", + "resolved": "https://registry.npmjs.org/@types/react-is/-/react-is-18.2.1.tgz", + "integrity": "sha512-wyUkmaaSZEzFZivD8F2ftSyAfk6L+DfFliVj/mYdOXbVjRcS87fQJLTnhk6dRZPuJjI+9g6RZJO4PNCngUrmyw==", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/react-transition-group": { + "version": "4.4.6", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.6.tgz", + "integrity": "sha512-VnCdSxfcm08KjsJVQcfBmhEQAPnLB8G08hAxn39azX1qYBQ/5RVQuoHuKIcfKOdncuaUvEpFKFzEvbtIMsfVew==", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/scheduler": { + "version": "0.16.3", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", + "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" + }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz", + "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==" + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.0.4.tgz", + "integrity": "sha512-7wU921ABnNYkETiMaZy7XqpueMnpu5VxvVps13MjmCo+utBdD79sZzrApHawHtVX66cCJQQTXFcjH0y9dSUK8g==", + "dev": true, + "dependencies": { + "@babel/core": "^7.22.9", + "@babel/plugin-transform-react-jsx-self": "^7.22.5", + "@babel/plugin-transform-react-jsx-source": "^7.22.5", + "react-refresh": "^0.14.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0" + } + }, + "node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz", + "integrity": "sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/asynciterator.prototype": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz", + "integrity": "sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.3" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axios": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.0.tgz", + "integrity": "sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/babel-plugin-macros/node_modules/resolve": { + "version": "1.22.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz", + "integrity": "sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/browserslist": { + "version": "4.21.10", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz", + "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001517", + "electron-to-chromium": "^1.4.477", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001528", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001528.tgz", + "integrity": "sha512-0Db4yyjR9QMNlsxh+kKWzQtkyflkG/snYheSzkjmvdEtEXB1+jt7A2HmSEiO6XIJPIbo92lHNGNySvE5pZcs5Q==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/clsx": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz", + "integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", + "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" + }, + "node_modules/d3-array": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", + "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==", + "peer": true, + "dependencies": { + "internmap": "^1.0.0" + } + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz", + "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==", + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "peer": true, + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", + "peer": true + }, + "node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "peer": true, + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", + "peer": true, + "dependencies": { + "d3-path": "1" + } + }, + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "peer": true, + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "peer": true, + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/dayjs": { + "version": "1.11.9", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.9.tgz", + "integrity": "sha512-QvzAURSbQ0pKdIye2txOzNaHmxtUBXerpY0FJsFXUMKbIZeFm5ht1LS/jFsrncjnmtv8HsG0W2g6c0zUjZWmpA==" + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dev": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-helpers": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", + "dependencies": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.512", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.512.tgz", + "integrity": "sha512-1W8wRbYlQE4ph7eoj3TJ+uqwO6+xvAE/L+KGU7WTQQvX3tnSIGZAb90MTsMoJqzntamiwJhBAj4WZmygXhsOUg==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", + "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.1", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.1", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "safe-array-concat": "^1.0.0", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-iterator-helpers": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.14.tgz", + "integrity": "sha512-JgtVnwiuoRuzLvqelrvN3Xu7H9bu2ap/kQ2CrM62iidP8SKuD99rWU3CJy++s7IVL2qb/AjXPGR/E7i9ngd/Cw==", + "dev": true, + "dependencies": { + "asynciterator.prototype": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-set-tostringtag": "^2.0.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.2.1", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "iterator.prototype": "^1.1.0", + "safe-array-concat": "^1.0.0" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/esbuild": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", + "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.18.20", + "@esbuild/android-arm64": "0.18.20", + "@esbuild/android-x64": "0.18.20", + "@esbuild/darwin-arm64": "0.18.20", + "@esbuild/darwin-x64": "0.18.20", + "@esbuild/freebsd-arm64": "0.18.20", + "@esbuild/freebsd-x64": "0.18.20", + "@esbuild/linux-arm": "0.18.20", + "@esbuild/linux-arm64": "0.18.20", + "@esbuild/linux-ia32": "0.18.20", + "@esbuild/linux-loong64": "0.18.20", + "@esbuild/linux-mips64el": "0.18.20", + "@esbuild/linux-ppc64": "0.18.20", + "@esbuild/linux-riscv64": "0.18.20", + "@esbuild/linux-s390x": "0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/netbsd-x64": "0.18.20", + "@esbuild/openbsd-x64": "0.18.20", + "@esbuild/sunos-x64": "0.18.20", + "@esbuild/win32-arm64": "0.18.20", + "@esbuild/win32-ia32": "0.18.20", + "@esbuild/win32-x64": "0.18.20" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.48.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.48.0.tgz", + "integrity": "sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.2", + "@eslint/js": "8.48.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.33.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz", + "integrity": "sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.0.12", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.8" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", + "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", + "dev": true, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.3.tgz", + "integrity": "sha512-Hh0wv8bUNY877+sI0BlCUlsS0TYYQqvzEwJsJJPM2WF4RnTStSnSR3zdJYa2nPOJgg3UghXi54lVyMSmpCalzA==", + "dev": true, + "peerDependencies": { + "eslint": ">=7" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.21.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz", + "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==" + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz", + "integrity": "sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==", + "dev": true, + "dependencies": { + "flatted": "^3.2.7", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/internmap": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", + "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==", + "peer": true + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "node_modules/is-async-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", + "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", + "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", + "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", + "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", + "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "dev": true, + "dependencies": { + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", + "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/iterator.prototype": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.1.tgz", + "integrity": "sha512-9E+nePc8C9cnQldmNl6bgpTY6zI4OPRZd97fhJ/iVZ1GifIUDVV5F6x1nEDqpe8KaMEZGT4xgrwKQDxXnjOIZQ==", + "dev": true, + "dependencies": { + "define-properties": "^1.2.0", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "reflect.getprototypeof": "^1.0.3" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/keyv": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", + "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "dev": true + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", + "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.hasown": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.3.tgz", + "integrity": "sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==", + "dev": true, + "dependencies": { + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/postcss": { + "version": "8.4.29", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.29.tgz", + "integrity": "sha512-cbI+jaqIeu/VGqXEarWkRCCffhjgXc0qjBtXpqJhTBohMUjUQnbBr0xqX3vEKudc4iviTewcJo5ajcec5+wdJw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, + "node_modules/react-redux": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-8.1.2.tgz", + "integrity": "sha512-xJKYI189VwfsFc4CJvHqHlDrzyFTY/3vZACbE+rr/zQ34Xx1wQfB4OTOSeOSNrF6BDVe8OOdxIrAnMGXA3ggfw==", + "dependencies": { + "@babel/runtime": "^7.12.1", + "@types/hoist-non-react-statics": "^3.3.1", + "@types/use-sync-external-store": "^0.0.3", + "hoist-non-react-statics": "^3.3.2", + "react-is": "^18.0.0", + "use-sync-external-store": "^1.0.0" + }, + "peerDependencies": { + "@types/react": "^16.8 || ^17.0 || ^18.0", + "@types/react-dom": "^16.8 || ^17.0 || ^18.0", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0", + "react-native": ">=0.59", + "redux": "^4 || ^5.0.0-beta.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + }, + "redux": { + "optional": true + } + } + }, + "node_modules/react-redux/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "node_modules/react-refresh": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.0.tgz", + "integrity": "sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-router": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.15.0.tgz", + "integrity": "sha512-NIytlzvzLwJkCQj2HLefmeakxxWHWAP+02EGqWEZy+DgfHHKQMUoBBjUQLOtFInBMhWtb3hiUy6MfFgwLjXhqg==", + "dependencies": { + "@remix-run/router": "1.8.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.15.0.tgz", + "integrity": "sha512-aR42t0fs7brintwBGAv2+mGlCtgtFQeOzK0BM1/OiqEzRejOZtpMZepvgkscpMUnKb8YO84G7s3LsHnnDNonbQ==", + "dependencies": { + "@remix-run/router": "1.8.0", + "react-router": "6.15.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, + "node_modules/react-transition-group": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", + "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==", + "dependencies": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=16.6.0", + "react-dom": ">=16.6.0" + } + }, + "node_modules/redux": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", + "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==", + "dependencies": { + "@babel/runtime": "^7.9.2" + } + }, + "node_modules/redux-thunk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz", + "integrity": "sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==", + "peerDependencies": { + "redux": "^4" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz", + "integrity": "sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "globalthis": "^1.0.3", + "which-builtin-type": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", + "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/reselect": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz", + "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==" + }, + "node_modules/resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "dev": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "3.29.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.0.tgz", + "integrity": "sha512-nszM8DINnx1vSS+TpbWKMkxem0CDWk3cSit/WWCBVs9/JZ1I/XLwOsiUglYuYReaeWWSsW9kge5zE5NZtf/a4w==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=14.18.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.9.tgz", + "integrity": "sha512-6i5hL3MqG/K2G43mWXWgP+qizFW/QH/7kCNN13JrJS5q48FN5IKksLDscexKP3dnmB6cdm9jlNgAsWNLpSykmA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "regexp.prototype.flags": "^1.5.0", + "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylis": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz", + "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==" + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/vite": { + "version": "4.4.9", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", + "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", + "dev": true, + "dependencies": { + "esbuild": "^0.18.10", + "postcss": "^8.4.27", + "rollup": "^3.27.1" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "@types/node": ">= 14", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz", + "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==", + "dev": true, + "dependencies": { + "function.prototype.name": "^1.1.5", + "has-tostringtag": "^1.0.0", + "is-async-function": "^2.0.0", + "is-date-object": "^1.0.5", + "is-finalizationregistry": "^1.0.2", + "is-generator-function": "^1.0.10", + "is-regex": "^1.1.4", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "dev": true, + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", + "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/client/package.json b/client/package.json new file mode 100644 index 0000000..a6670cc --- /dev/null +++ b/client/package.json @@ -0,0 +1,37 @@ +{ + "name": "client", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", + "preview": "vite preview" + }, + "dependencies": { + "@devexpress/dx-react-chart-material-ui": "^4.0.5", + "@emotion/react": "^11.11.1", + "@emotion/styled": "^11.11.0", + "@mui/icons-material": "^5.14.8", + "@mui/material": "^5.14.8", + "@mui/x-date-pickers": "^6.12.1", + "@reduxjs/toolkit": "^1.9.5", + "axios": "^1.5.0", + "dayjs": "^1.11.9", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-redux": "^8.1.2", + "react-router-dom": "^6.15.0" + }, + "devDependencies": { + "@types/react": "^18.2.15", + "@types/react-dom": "^18.2.7", + "@vitejs/plugin-react": "^4.0.3", + "eslint": "^8.45.0", + "eslint-plugin-react": "^7.32.2", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.3", + "vite": "^4.4.5" + } +} diff --git a/client/public/vite.svg b/client/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/client/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/client/src/App.css b/client/src/App.css new file mode 100644 index 0000000..b9d355d --- /dev/null +++ b/client/src/App.css @@ -0,0 +1,42 @@ +#root { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + text-align: center; +} + +.logo { + height: 6em; + padding: 1.5em; + will-change: filter; + transition: filter 300ms; +} +.logo:hover { + filter: drop-shadow(0 0 2em #646cffaa); +} +.logo.react:hover { + filter: drop-shadow(0 0 2em #61dafbaa); +} + +@keyframes logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} + +@media (prefers-reduced-motion: no-preference) { + a:nth-of-type(2) .logo { + animation: logo-spin infinite 20s linear; + } +} + +.card { + padding: 2em; +} + +.read-the-docs { + color: #888; +} diff --git a/client/src/App.jsx b/client/src/App.jsx new file mode 100644 index 0000000..753da9e --- /dev/null +++ b/client/src/App.jsx @@ -0,0 +1,61 @@ +import { useEffect, useState } from 'react' +import AppBar from './components/AppBar.jsx' +import { Outlet } from "react-router-dom" +import accountService from './requests/Account.js' +import { useDispatch, useSelector } from 'react-redux' +import { setUser } from './reducers/authReducer.js' +import { Alert, Snackbar } from '@mui/material' +const App = () => { + const dispatch = useDispatch() + const [loading, setLoading] = useState(true) + + const message = useSelector(state => state.message) + + useEffect(() => { + const fetchUser = async () => { + const token = localStorage.getItem('expenseTrackerToken') + if (token) { + try { + const res = await accountService.fetchUser(token) + dispatch(setUser(res.data.user)) + + } catch (err) { + if (err.response.status === 401) { + localStorage.removeItem('expenseTrackerToken') + } + } + } + setLoading(false) + } + + fetchUser() + }, []) + + if (loading) { + return ( +
+ Loading.... +
+ ) + } + + return ( +
+ + + {!loading && + } + + {message && + + + {message[0]} + + + } + +
+ ) +} + +export default App diff --git a/client/src/assets/react.svg b/client/src/assets/react.svg new file mode 100644 index 0000000..6c87de9 --- /dev/null +++ b/client/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/client/src/components/AppBar.jsx b/client/src/components/AppBar.jsx new file mode 100644 index 0000000..76134ac --- /dev/null +++ b/client/src/components/AppBar.jsx @@ -0,0 +1,52 @@ +import AppBar from '@mui/material/AppBar'; +import Box from '@mui/material/Box'; +import Toolbar from '@mui/material/Toolbar'; +import Typography from '@mui/material/Typography'; +import Button from '@mui/material/Button'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { setMessage } from '../reducers/messageReducer'; + +const linkStyle = { + textDecoration: 'none', + color: 'white', + cursor: 'pointer' +} + +export default function ButtonAppBar() { + const user = useSelector(state => state.auth.user) + const dispatch = useDispatch() + + const logout = () => { + localStorage.removeItem('expenseTrackerToken') + dispatch(setMessage(['User logged out', true])) + setTimeout(() => dispatch(setMessage(null)), 5000) + } + + return ( + + + + + + Expense Tracker + + + {user && + <> + + + + } + + {!user && + <> + + + + } + + + + ); +} diff --git a/client/src/components/CategoryForm.jsx b/client/src/components/CategoryForm.jsx new file mode 100644 index 0000000..3f664aa --- /dev/null +++ b/client/src/components/CategoryForm.jsx @@ -0,0 +1,55 @@ +/* eslint-disable react/prop-types */ +import Box from '@mui/material/Box'; +import Card from '@mui/material/Card'; +import CardActions from '@mui/material/CardActions'; +import CardContent from '@mui/material/CardContent'; +import { Button, TextField } from '@mui/material'; +import React, { useState } from 'react'; +import CategoryService from '../requests/Category.js' +import {setUser} from '../reducers/authReducer' +import { useDispatch } from 'react-redux'; +import {setMessage} from '../reducers/messageReducer.js' + + +const Content = () => { + // eslint-disable-next-line react-hooks/rules-of-hooks + const [name, setName] = useState('') + const dispatch = useDispatch() + + const handleInput = (e) => { + setName(e.target.value) + } + + const handleSubmit = async (e) => { + e.preventDefault() + const res = CategoryService.create({category: name}) + dispatch(setUser(res.data)) + dispatch(setMessage([`Category '${name}' added successfully`,true])) + setTimeout(()=>dispatch(setMessage(null)),5000) + setName('') + } + + return ( + + + + + + + + + + + + + ) +}; + +export default function OutlinedCard() { + return ( + + + + ); +} diff --git a/client/src/components/TransactionChart.jsx b/client/src/components/TransactionChart.jsx new file mode 100644 index 0000000..6166305 --- /dev/null +++ b/client/src/components/TransactionChart.jsx @@ -0,0 +1,46 @@ +import { ArgumentScale, Animation } from '@devexpress/dx-react-chart'; +import { scaleBand } from '@devexpress/dx-chart-core'; + +import Paper from '@mui/material/Paper'; +import { + Chart, + BarSeries, + ArgumentAxis, + ValueAxis, + Tooltip, +} from '@devexpress/dx-react-chart-material-ui'; +import { EventTracker } from '@devexpress/dx-react-chart'; +import { Typography } from '@mui/material'; + +const TransactionChart = ({chartData}) => { + + if(!chartData.length>0){ + return( + + Add a transaction to view chart + + ) + } + + return ( + + + + + + + + + + + + + + ); +} +export default TransactionChart diff --git a/client/src/components/TransactionForm.jsx b/client/src/components/TransactionForm.jsx new file mode 100644 index 0000000..6b053ac --- /dev/null +++ b/client/src/components/TransactionForm.jsx @@ -0,0 +1,108 @@ +import Box from '@mui/material/Box'; +import Card from '@mui/material/Card'; +import CardActions from '@mui/material/CardActions'; +import CardContent from '@mui/material/CardContent'; +import { Autocomplete, Button, TextField } from '@mui/material'; +import TransactionService from '../requests/Transaction' +import { DesktopDatePicker, LocalizationProvider } from '@mui/x-date-pickers'; +import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; +import React, { useEffect, useState } from 'react'; +import dayjs from 'dayjs'; +import { useDispatch, useSelector } from 'react-redux'; +import { setEditTransaction } from '../reducers/editTransactionReducer' +import { setMessage } from '../reducers/messageReducer' + +const Content = () => { + + const categories = useSelector(state => state.auth.user.categories) + const transactions = useSelector(state => state.transactions) + const editTransaction = useSelector(state => state.editTransaction) + const dispatch = useDispatch() + + const initialForm = { + amount: '', + description: '', + date: dayjs('2022-04-17'), + category: categories[0] + } + + // eslint-disable-next-line react-hooks/rules-of-hooks + const [form, setForm] = useState(initialForm) + + useEffect(() => { + if (editTransaction != null) { + setForm(editTransaction); + } + }, [editTransaction]); + + const handleInput = (e) => { + setForm({ ...form, [e.target.name]: e.target.value }) + } + + const handleSubmit = async (e) => { + e.preventDefault() + + if (!editTransaction) { + await TransactionService.create(form) + setForm(initialForm) + dispatch(setMessage(['Expense added successfully', true])) + + } else { + const res = await TransactionService.update(form) + dispatch(setEditTransaction(null)) + setForm(initialForm) + transactions.map(trans => trans.id === res.id ? res : trans) + dispatch(setMessage(['Expense updated successfully', true])) + } + + setTimeout(() => dispatch(setMessage(null)), 5000) + + } + return ( + + + + + + + + + setForm({ ...form, date: newVal })} + slotProps={{ textField: { variant: 'outlined', size: 'small' } }} + /> + + + setForm({ ...form, category: newValue })} + disableClearable + options={categories} + size='small' + sx={{ width: 200, marginRight: 5, marginTop: 5 }} + renderInput={(params) => } + /> + + + + + + + + + + ) +}; + +export default function OutlinedCard() { + return ( + + + + ); +} diff --git a/client/src/components/TransactionList.jsx b/client/src/components/TransactionList.jsx new file mode 100644 index 0000000..669e06c --- /dev/null +++ b/client/src/components/TransactionList.jsx @@ -0,0 +1,103 @@ +import Table from '@mui/material/Table'; +import TableBody from '@mui/material/TableBody'; +import TableCell from '@mui/material/TableCell'; +import TableContainer from '@mui/material/TableContainer'; +import TableHead from '@mui/material/TableHead'; +import TableRow from '@mui/material/TableRow'; +import Paper from '@mui/material/Paper'; +import { IconButton, Typography } from '@mui/material'; +import DeleteIcon from '@mui/icons-material/Delete'; +import EditIcon from '@mui/icons-material/Edit'; +import transactionService from '../requests/Transaction.js' +import dayjs from 'dayjs'; +import { useDispatch, useSelector } from 'react-redux'; +import { removeTransaction } from '../reducers/transactionReducer.js'; +import { setEditTransaction } from '../reducers/editTransactionReducer.js'; +import { setMessage } from '../reducers/messageReducer.js'; + +export default function BasicTable() { + + const dispatch = useDispatch() + const transactions = useSelector(state=>state.transactions) + const sortedTrans = transactions.slice().sort((a, b) => a.date > b.date ? -1 : 1) + + + const handleEdit = (transaction) => { + dispatch(setEditTransaction(transaction)) + return + } + + const handleDelete = async (id) => { + if (confirm("Are you sure you want to delete the transaction?")){ + const res = await transactionService.remove(id) + dispatch(removeTransaction(id)) + if(res.status===204){ + dispatch(setMessage(['Deleted Successfully',true])) + setTimeout(()=>dispatch(setMessage(null)),5000) + } + } + } + + if(!sortedTrans.length>0){ + return( + + No data to display + + ) + } + + return ( + <> + + + List of transactions + + + + + + Amount + Description + Category + Date + Action + + + + {sortedTrans.map((row) => ( + + + {row.amount} + + {row.description} + {row.category} + {dayjs(row.date).format('MMMM D, YYYY')} + + + handleEdit()} + > + + + + handleDelete(row.id)} + sx={{ cursor: 'pointer' }}> + + + + + + ))} + +
+
+ + ); +} \ No newline at end of file diff --git a/client/src/index.css b/client/src/index.css new file mode 100644 index 0000000..0fa5b10 --- /dev/null +++ b/client/src/index.css @@ -0,0 +1,2 @@ +body{ + font-family: 'Roboto', sans-serif;} \ No newline at end of file diff --git a/client/src/main.jsx b/client/src/main.jsx new file mode 100644 index 0000000..74411dc --- /dev/null +++ b/client/src/main.jsx @@ -0,0 +1,42 @@ +import ReactDOM from 'react-dom/client' +import App from './App.jsx' +import './index.css' +import { RouterProvider, createBrowserRouter } from 'react-router-dom' +import Home from './pages/Home.jsx' +import Login from './pages/Login.jsx' +import Register from './pages/Register.jsx' +import CheckAuth from './utils/CheckAuth.jsx' +import CheckGuest from './utils/CheckGuest.jsx' +import { Provider } from 'react-redux' +import store from './store.js' +import Category from './pages/Category.jsx' + +const router = createBrowserRouter([ + { + element: , + children: [ + { + path: '/', + element: + }, + { + path: '/login', + element: + }, + { + path: '/register', + element: + }, + { + path: '/category', + element: + } + ] + } +]) + +ReactDOM.createRoot(document.getElementById('root')).render( + + + +) diff --git a/client/src/pages/Category.jsx b/client/src/pages/Category.jsx new file mode 100644 index 0000000..7897de1 --- /dev/null +++ b/client/src/pages/Category.jsx @@ -0,0 +1,72 @@ +import Table from '@mui/material/Table'; +import TableBody from '@mui/material/TableBody'; +import TableCell from '@mui/material/TableCell'; +import TableContainer from '@mui/material/TableContainer'; +import TableHead from '@mui/material/TableHead'; +import TableRow from '@mui/material/TableRow'; +import Paper from '@mui/material/Paper'; +import { IconButton, Typography } from '@mui/material'; +import DeleteIcon from '@mui/icons-material/Delete'; +import { useDispatch, useSelector } from 'react-redux'; +import {setUser} from '../reducers/authReducer' +import CategoryService from '../requests/Category.js' +import CategoryForm from '../components/CategoryForm.jsx' +import { setMessage } from '../reducers/messageReducer'; +export default function Category() { + + const dispatch = useDispatch() + + const categories = useSelector(state=>state.auth.user.categories) + + const handleDelete = async (name) => { + if (confirm("Are you sure you want to delete the category?")){ + const res = await CategoryService.remove(name) + // setTransactions(transactions.filter(trans => trans.id != id)) + if(res.status===200){ + dispatch(setUser(res.data)) + dispatch(setMessage(['Category deleted successfully',true])) + setTimeout(()=>dispatch(setMessage(null)),5000) + } + } + } + + return ( + <> + + + + List of categories + + + + + + Name + Action + + + + {categories.map((row) => ( + + {row} + + + handleDelete(row)} + sx={{ cursor: 'pointer' }}> + + + + + + ))} + +
+
+ + ); +} \ No newline at end of file diff --git a/client/src/pages/Home.jsx b/client/src/pages/Home.jsx new file mode 100644 index 0000000..094a000 --- /dev/null +++ b/client/src/pages/Home.jsx @@ -0,0 +1,60 @@ +import { useEffect, useState } from "react" +import TransactionService from '../requests/Transaction' +import TransactionForm from '../components/TransactionForm.jsx' +import TransactionList from '../components/TransactionList.jsx' +import { Container } from "@mui/material" +import TransactionChart from '../components/TransactionChart.jsx' +import { setTransactions } from "../reducers/transactionReducer" +import { useDispatch, useSelector } from "react-redux" + +const Home = () => { + + const [chartData, setChartData] = useState([]) + const transactions = useSelector(state => state.transactions) + + const dispatch = useDispatch() + + useEffect(() => { + const fetchData = async () => { + const transData = await TransactionService.fetchAll() + const sortedTransaction = transData.sort((a, b) => a.date > b.date ? -1 : 1) + dispatch(setTransactions(sortedTransaction)) + } + fetchData() + }, []) + + + useEffect(() => { + const data = {} + transactions.forEach((trans) => { + if (data[trans.category]) { + data[trans.category] += trans.amount + } else { + data[trans.category] = trans.amount + } + }) + const keys = Object.keys(data) + const temp = [] + + keys.forEach((key) => { + temp.push({ "Category": key, "Expense": data[key] }) + }) + + setChartData(temp) + },[transactions]) + + + + + return ( +
+ + + + + +
+ ) +} + +export default Home diff --git a/client/src/pages/Login.jsx b/client/src/pages/Login.jsx new file mode 100644 index 0000000..8520b97 --- /dev/null +++ b/client/src/pages/Login.jsx @@ -0,0 +1,119 @@ +import Avatar from '@mui/material/Avatar'; +import Button from '@mui/material/Button'; +import CssBaseline from '@mui/material/CssBaseline'; +import TextField from '@mui/material/TextField'; +import { Link, useNavigate } from 'react-router-dom'; +import Grid from '@mui/material/Grid'; +import Box from '@mui/material/Box'; +import LockOutlinedIcon from '@mui/icons-material/LockOutlined'; +import Typography from '@mui/material/Typography'; +import Container from '@mui/material/Container'; +import { createTheme, ThemeProvider } from '@mui/material/styles'; +import accountService from '../requests/Account' + +import { setUser } from '../reducers/authReducer'; +import {setMessage} from '../reducers/messageReducer' +import { useDispatch } from 'react-redux'; + +function Copyright(props) { + return ( + + {'Copyright © '} + + Expense Tracker + {' '} + {new Date().getFullYear()} + {'.'} + + ); +} + +// TODO remove, this demo shouldn't need to reset the theme. + +const defaultTheme = createTheme(); + + +export default function SignIn() { + const navigate = useNavigate() + const dispatch = useDispatch() + + const handleSubmit = async (event) => { + event.preventDefault(); + const data = new FormData(event.currentTarget); + const credentials = { + email: data.get('email'), + password: data.get('password'), + } + + try { + const res = await accountService.login(credentials) + dispatch(setUser(res.user)) + navigate('/') + dispatch(setMessage(['Login success', true])) + } catch (error) { + dispatch(setMessage([error.response.data, false])) + } + setTimeout(() => dispatch(setMessage(null)), 5000) + + }; + return ( + + + + + + + + + Sign in + + + + + + + + + {"Don't have an account? Sign Up"} + + + + + + + + + ); +} \ No newline at end of file diff --git a/client/src/pages/Register.jsx b/client/src/pages/Register.jsx new file mode 100644 index 0000000..abad604 --- /dev/null +++ b/client/src/pages/Register.jsx @@ -0,0 +1,148 @@ +import Avatar from '@mui/material/Avatar'; +import Button from '@mui/material/Button'; +import CssBaseline from '@mui/material/CssBaseline'; +import TextField from '@mui/material/TextField'; +import { Link, useNavigate } from 'react-router-dom'; +import Grid from '@mui/material/Grid'; +import Box from '@mui/material/Box'; +import LockOutlinedIcon from '@mui/icons-material/LockOutlined'; +import Typography from '@mui/material/Typography'; +import Container from '@mui/material/Container'; +import { createTheme, ThemeProvider } from '@mui/material/styles'; +import { useDispatch } from 'react-redux'; +import {setMessage} from '../reducers/messageReducer' + +import accountService from '../requests/Account.js' + +function Copyright(props) { + return ( + + {'Copyright © '} + + Expense Tracker + {' '} + {new Date().getFullYear()} + {'.'} + + ); +} + +// TODO remove, this demo shouldn't need to reset the theme. + +const defaultTheme = createTheme(); + +export default function SignUp() { + const navigate = useNavigate() + const dispatch = useDispatch() + + const handleSubmit = async (event) => { + event.preventDefault(); + const data = new FormData(event.currentTarget); + + if(!data.get('firstName') || !data.get('lastName') || !data.get('email') || !data.get('password')){ + dispatch(setMessage(['One or more field empty', false])) + return setTimeout(() => dispatch(setMessage(null)), 5000) + } + + const userData = { + fname: data.get('firstName'), + lname: data.get('lastName'), + email: data.get('email'), + password: data.get('password'), + } + try{ + await accountService.register(userData) + dispatch(setMessage(['Account created!', true])) + navigate('/login') + }catch(e){ + dispatch(setMessage([e.response.data, false])) + } + setTimeout(() => dispatch(setMessage(null)), 5000) + + }; + + return ( + + + + + + + + + Sign up + + + + + + + + + + + + + + + + + + + + + Already have an account? Sign in + + + + + + + + + ); +} \ No newline at end of file diff --git a/client/src/reducers/authReducer.js b/client/src/reducers/authReducer.js new file mode 100644 index 0000000..c8ca65e --- /dev/null +++ b/client/src/reducers/authReducer.js @@ -0,0 +1,17 @@ +import { createSlice } from "@reduxjs/toolkit"; + +const authSlice = createSlice({ + name:'auth', + initialState:{user:null}, + reducers:{ + setUser(state,action){ + state.user = action.payload + }, + removeUser(state){ + state.user=null + } + } +}) + +export default authSlice.reducer +export const {setUser,removeUser} = authSlice.actions \ No newline at end of file diff --git a/client/src/reducers/editTransactionReducer.js b/client/src/reducers/editTransactionReducer.js new file mode 100644 index 0000000..4328ef4 --- /dev/null +++ b/client/src/reducers/editTransactionReducer.js @@ -0,0 +1,15 @@ +import { createSlice } from "@reduxjs/toolkit"; + +const transSlice = createSlice({ + name:"editTransaction", + initialState:null, + reducers:{ + setEditTransaction(state,action){ + return action.payload + } + } + +}) + +export default transSlice.reducer +export const {setEditTransaction} = transSlice.actions \ No newline at end of file diff --git a/client/src/reducers/messageReducer.js b/client/src/reducers/messageReducer.js new file mode 100644 index 0000000..acb0a21 --- /dev/null +++ b/client/src/reducers/messageReducer.js @@ -0,0 +1,15 @@ +import { createSlice } from "@reduxjs/toolkit"; + +const transSlice = createSlice({ + name:"message", + initialState:null, + reducers:{ + setMessage(state,action){ + return action.payload + } + } + +}) + +export default transSlice.reducer +export const {setMessage} = transSlice.actions \ No newline at end of file diff --git a/client/src/reducers/transactionReducer.js b/client/src/reducers/transactionReducer.js new file mode 100644 index 0000000..ac0a74e --- /dev/null +++ b/client/src/reducers/transactionReducer.js @@ -0,0 +1,21 @@ +import { createSlice } from "@reduxjs/toolkit"; + +const transSlice = createSlice({ + name:"transaction", + initialState:[], + reducers:{ + addTransaction:(state, action)=>{ + return state.concat(action.payload) + }, + setTransactions(state,action){ + return action.payload + }, + removeTransaction(state,action){ + return state.filter(trans => trans.id != action.payload) + } + } + +}) + +export default transSlice.reducer +export const {addTransaction,setTransactions,removeTransaction} = transSlice.actions \ No newline at end of file diff --git a/client/src/requests/Account.js b/client/src/requests/Account.js new file mode 100644 index 0000000..1d2c9d4 --- /dev/null +++ b/client/src/requests/Account.js @@ -0,0 +1,23 @@ +import axios from "axios"; + +const baseurl = 'http://localhost:4000' +const headers = (token)=> { + return {authorization:`bearer ${token}`} +} + +const register = async (userData)=>{ + const res = await axios.post(baseurl+'/auth/register/',userData) + return res.data + +} +const login = async (credentials)=>{ + const res = await axios.post(baseurl+'/auth/login/',credentials) + localStorage.setItem('expenseTrackerToken',res.data.token) + return res.data +} +const fetchUser = async (token) =>{ + const res = await axios.get(baseurl+'/user',{headers:headers(token)}) + return res; +} + +export default {register,login,fetchUser} \ No newline at end of file diff --git a/client/src/requests/Category.js b/client/src/requests/Category.js new file mode 100644 index 0000000..2886176 --- /dev/null +++ b/client/src/requests/Category.js @@ -0,0 +1,21 @@ +import axios from "axios"; + +const baseurl = 'http://localhost:4000/category/' + +const headers = (token)=> { + return {authorization:`bearer ${token}`} +} + + +const remove = async (catName)=>{ + const token = localStorage.getItem('expenseTrackerToken') + const res = await axios.delete(baseurl+catName,{headers:headers(token)}) + return res +} +const create = async (catName)=>{ + const token = localStorage.getItem('expenseTrackerToken') + const res = await axios.post(baseurl,{name:catName},{headers:headers(token)}) + return res +} + +export default {remove,create} \ No newline at end of file diff --git a/client/src/requests/Transaction.js b/client/src/requests/Transaction.js new file mode 100644 index 0000000..ec71dd2 --- /dev/null +++ b/client/src/requests/Transaction.js @@ -0,0 +1,34 @@ +import axios from "axios"; + +const baseurl = 'http://localhost:4000/transactions/' + +const headers = (token)=> { + return {authorization:`bearer ${token}`} +} + +const create = async (transaction) => { + const token = localStorage.getItem('expenseTrackerToken') + const res = await axios.post(baseurl,transaction,{headers:headers(token)}) + return res.data +} + +const fetchAll = async ()=>{ + const token = localStorage.getItem('expenseTrackerToken') + const res =await axios.get(baseurl,{headers:headers(token)}) + return res.data +} + + +const remove = async (id) => { + const token = localStorage.getItem('expenseTrackerToken') + const res = await axios.delete(`${baseurl}${id}`,{headers:headers(token)}) + return res +} + +const update = async (transaction)=>{ + const token = localStorage.getItem('expenseTrackerToken') + const res = await axios.put(baseurl+transaction.id,transaction,{headers:headers(token)}) + return res.data +} + +export default {create,fetchAll,remove,update} \ No newline at end of file diff --git a/client/src/router.jsx b/client/src/router.jsx new file mode 100644 index 0000000..e69de29 diff --git a/client/src/store.js b/client/src/store.js new file mode 100644 index 0000000..055c9dc --- /dev/null +++ b/client/src/store.js @@ -0,0 +1,14 @@ +import { configureStore } from '@reduxjs/toolkit' +import authReducer from './reducers/authReducer.js' +import transactionReducer from './reducers/transactionReducer.js' +import editTransactionReducer from './reducers/editTransactionReducer.js' +import messageReducer from './reducers/messageReducer.js' + +export default configureStore({ + reducer:{ + auth:authReducer, + transactions:transactionReducer, + editTransaction:editTransactionReducer, + message:messageReducer + } +}) \ No newline at end of file diff --git a/client/src/utils/CheckAuth.jsx b/client/src/utils/CheckAuth.jsx new file mode 100644 index 0000000..16e0012 --- /dev/null +++ b/client/src/utils/CheckAuth.jsx @@ -0,0 +1,15 @@ +import { useSelector } from "react-redux"; +import { Navigate } from "react-router-dom"; + +export default function CheckAuth({ children }) { + + const user = useSelector(state=>state.auth.user) + + if(user){ + return children; + }else{ + return + } + +} + diff --git a/client/src/utils/CheckGuest.jsx b/client/src/utils/CheckGuest.jsx new file mode 100644 index 0000000..98d13fc --- /dev/null +++ b/client/src/utils/CheckGuest.jsx @@ -0,0 +1,15 @@ +import { useSelector } from "react-redux"; +import { Navigate } from "react-router-dom"; + +export default function CheckGuest({ children }) { + + const user = useSelector(state=>state.auth.user) + + if(!user){ + return children; + }else{ + return + } + +} + diff --git a/client/vite.config.js b/client/vite.config.js new file mode 100644 index 0000000..5a33944 --- /dev/null +++ b/client/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], +}) diff --git a/server/.DS_Store b/server/.DS_Store new file mode 100644 index 0000000..147cc03 Binary files /dev/null and b/server/.DS_Store differ diff --git a/server/.env b/server/.env new file mode 100644 index 0000000..e50f2b7 --- /dev/null +++ b/server/.env @@ -0,0 +1,3 @@ +MONGODB_URI = mongodb+srv://ajayjain1024:QEJBWpGc8FB8am53@cluster0.kvp3lbq.mongodb.net/expenseTracker?retryWrites=true&w=majority +PORT = 4000 +SECRET = pajn2EC9i0a2lkXLdPfcMuOVsWIaKJoTtirwQIpKAadmfJSfN1sbzBtWQIGYQlf \ No newline at end of file diff --git a/server/database/mongodb.js b/server/database/mongodb.js new file mode 100644 index 0000000..780edf2 --- /dev/null +++ b/server/database/mongodb.js @@ -0,0 +1,12 @@ +import mongoose from "mongoose" +import config from '../utils/config.js' + +const connect = async () =>{ + try{ + await mongoose.connect(config.MONGODB_URI) + console.log("connection successful") + }catch(error){ + console.log(error) + } +} +export default connect \ No newline at end of file diff --git a/server/dist/assets/index-74c78dd5.js b/server/dist/assets/index-74c78dd5.js new file mode 100644 index 0000000..5d67ea3 --- /dev/null +++ b/server/dist/assets/index-74c78dd5.js @@ -0,0 +1,250 @@ +function BT(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function VT(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Kw={exports:{}},Zd={},Gw={exports:{}},Xe={};/** + * @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 mu=Symbol.for("react.element"),UT=Symbol.for("react.portal"),WT=Symbol.for("react.fragment"),HT=Symbol.for("react.strict_mode"),YT=Symbol.for("react.profiler"),KT=Symbol.for("react.provider"),GT=Symbol.for("react.context"),qT=Symbol.for("react.forward_ref"),XT=Symbol.for("react.suspense"),QT=Symbol.for("react.memo"),ZT=Symbol.for("react.lazy"),p0=Symbol.iterator;function JT(e){return e===null||typeof e!="object"?null:(e=p0&&e[p0]||e["@@iterator"],typeof e=="function"?e:null)}var qw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xw=Object.assign,Qw={};function vs(e,t,n){this.props=e,this.context=t,this.refs=Qw,this.updater=n||qw}vs.prototype.isReactComponent={};vs.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")};vs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zw(){}Zw.prototype=vs.prototype;function jg(e,t,n){this.props=e,this.context=t,this.refs=Qw,this.updater=n||qw}var Fg=jg.prototype=new Zw;Fg.constructor=jg;Xw(Fg,vs.prototype);Fg.isPureReactComponent=!0;var h0=Array.isArray,Jw=Object.prototype.hasOwnProperty,zg={current:null},eS={key:!0,ref:!0,__self:!0,__source:!0};function tS(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Jw.call(t,r)&&!eS.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,ae=I[K];if(0>>1;Ko(te,F))Jo(G,te)?(I[K]=G,I[J]=F,K=J):(I[K]=te,I[B]=F,K=B);else if(Jo(G,F))I[K]=G,I[J]=F,K=J;else break e}}return L}function o(I,L){var F=I.sortIndex-L.sortIndex;return F!==0?F:I.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,g=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(I){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=I)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function b(I){if(m=!1,x(I),!g)if(n(l)!==null)g=!0,N(P);else{var L=n(u);L!==null&&j(b,L.startTime-I)}}function P(I,L){g=!1,m&&(m=!1,v(T),T=-1),h=!0;var F=f;try{for(x(L),d=n(l);d!==null&&(!(d.expirationTime>L)||I&&!O());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var ae=K(d.expirationTime<=L);L=e.unstable_now(),typeof ae=="function"?d.callback=ae:d===n(l)&&r(l),x(L)}else r(l);d=n(l)}if(d!==null)var ie=!0;else{var B=n(u);B!==null&&j(b,B.startTime-L),ie=!1}return ie}finally{d=null,f=F,h=!1}}var k=!1,E=null,T=-1,A=5,M=-1;function O(){return!(e.unstable_now()-MI||125K?(I.sortIndex=F,t(u,I),n(l)===null&&I===n(u)&&(m?(v(T),T=-1):m=!0,j(b,F-K))):(I.sortIndex=ae,t(l,I),g||h||(g=!0,N(P))),I},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(I){var L=f;return function(){var F=f;f=L;try{return I.apply(this,arguments)}finally{f=F}}}})(iS);oS.exports=iS;var cM=oS.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 aS=p,tr=cM;function ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jh=Object.prototype.hasOwnProperty,dM=/^[: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]*$/,g0={},v0={};function fM(e){return Jh.call(v0,e)?!0:Jh.call(g0,e)?!1:dM.test(e)?v0[e]=!0:(g0[e]=!0,!1)}function pM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function hM(e,t,n,r){if(t===null||typeof t>"u"||pM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Rn(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new Rn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new Rn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new Rn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new Rn(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){un[e]=new Rn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){un[e]=new Rn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){un[e]=new Rn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){un[e]=new Rn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){un[e]=new Rn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vg=/[\-:]([a-z])/g;function Ug(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(Vg,Ug);un[t]=new Rn(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(Vg,Ug);un[t]=new Rn(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(Vg,Ug);un[t]=new Rn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){un[e]=new Rn(e,1,!1,e.toLowerCase(),null,!1,!1)});un.xlinkHref=new Rn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){un[e]=new Rn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wg(e,t,n,r){var o=un.hasOwnProperty(t)?un[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Wp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rl(e):""}function mM(e){switch(e.tag){case 5:return rl(e.type);case 16:return rl("Lazy");case 13:return rl("Suspense");case 19:return rl("SuspenseList");case 0:case 2:case 15:return e=Hp(e.type,!1),e;case 11:return e=Hp(e.type.render,!1),e;case 1:return e=Hp(e.type,!0),e;default:return""}}function rm(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 ga:return"Fragment";case ma:return"Portal";case em:return"Profiler";case Hg:return"StrictMode";case tm:return"Suspense";case nm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uS:return(e.displayName||"Context")+".Consumer";case lS:return(e._context.displayName||"Context")+".Provider";case Yg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kg:return t=e.displayName||null,t!==null?t:rm(e.type)||"Memo";case Fo:t=e._payload,e=e._init;try{return rm(e(t))}catch{}}return null}function gM(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 rm(t);case 8:return t===Hg?"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 ai(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vM(e){var t=dS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qu(e){e._valueTracker||(e._valueTracker=vM(e))}function fS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nd(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 om(e,t){var n=t.checked;return Rt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function x0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ai(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pS(e,t){t=t.checked,t!=null&&Wg(e,"checked",t,!1)}function im(e,t){pS(e,t);var n=ai(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?am(e,t.type,n):t.hasOwnProperty("defaultValue")&&am(e,t.type,ai(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function b0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function am(e,t,n){(t!=="number"||nd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ol=Array.isArray;function Da(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Xu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ol(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ul={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},yM=["Webkit","ms","Moz","O"];Object.keys(ul).forEach(function(e){yM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ul[t]=ul[e]})});function vS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ul.hasOwnProperty(e)&&ul[e]?(""+t).trim():t+"px"}function yS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=vS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var xM=Rt({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 um(e,t){if(t){if(xM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function cm(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 dm=null;function Gg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fm=null,Aa=null,Ia=null;function C0(e){if(e=yu(e)){if(typeof fm!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=rf(t),fm(e.stateNode,e.type,t))}}function xS(e){Aa?Ia?Ia.push(e):Ia=[e]:Aa=e}function bS(){if(Aa){var e=Aa,t=Ia;if(Ia=Aa=null,C0(e),t)for(e=0;e>>=0,e===0?32:31-($M(e)/OM|0)|0}var Qu=64,Zu=4194304;function il(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 ad(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=il(s):(i&=a,i!==0&&(r=il(i)))}else a=n&~o,a!==0?r=il(a):i!==0&&(r=il(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-zr(t),e[t]=n}function LM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=dl),D0=String.fromCharCode(32),A0=!1;function zS(e,t){switch(e){case"keyup":return u$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function BS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function d$(e,t){switch(e){case"compositionend":return BS(t);case"keypress":return t.which!==32?null:(A0=!0,D0);case"textInput":return e=t.data,e===D0&&A0?null:e;default:return null}}function f$(e,t){if(va)return e==="compositionend"||!nv&&zS(e,t)?(e=jS(),Fc=Jg=Ho=null,va=!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)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_0(n)}}function HS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?HS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YS(){for(var e=window,t=nd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nd(e.document)}return t}function rv(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 w$(e){var t=YS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&HS(n.ownerDocument.documentElement,n)){if(r!==null&&rv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=j0(n,i);var a=j0(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ya=null,ym=null,pl=null,xm=!1;function F0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xm||ya==null||ya!==nd(r)||(r=ya,"selectionStart"in r&&rv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pl&&_l(pl,r)||(pl=r,r=ud(ym,"onSelect"),0wa||(e.current=Em[wa],Em[wa]=null,wa--)}function mt(e,t){wa++,Em[wa]=e.current,e.current=t}var si={},bn=mi(si),jn=mi(!1),Fi=si;function Ga(e,t){var n=e.type.contextTypes;if(!n)return si;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Fn(e){return e=e.childContextTypes,e!=null}function dd(){vt(jn),vt(bn)}function Y0(e,t,n){if(bn.current!==si)throw Error(ce(168));mt(bn,t),mt(jn,n)}function tC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,gM(e)||"Unknown",o));return Rt({},n,r)}function fd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||si,Fi=bn.current,mt(bn,e),mt(jn,jn.current),!0}function K0(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=tC(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,vt(jn),vt(bn),mt(bn,e)):vt(jn),mt(jn,n)}var po=null,of=!1,ih=!1;function nC(e){po===null?po=[e]:po.push(e)}function A$(e){of=!0,nC(e)}function gi(){if(!ih&&po!==null){ih=!0;var e=0,t=ct;try{var n=po;for(ct=1;e>=a,o-=a,ho=1<<32-zr(t)+o|n<T?(A=E,E=null):A=E.sibling;var M=f(v,E,x[T],b);if(M===null){E===null&&(E=A);break}e&&E&&M.alternate===null&&t(v,E),y=i(M,y,T),k===null?P=M:k.sibling=M,k=M,E=A}if(T===x.length)return n(v,E),Ct&&Si(v,T),P;if(E===null){for(;TT?(A=E,E=null):A=E.sibling;var O=f(v,E,M.value,b);if(O===null){E===null&&(E=A);break}e&&E&&O.alternate===null&&t(v,E),y=i(O,y,T),k===null?P=O:k.sibling=O,k=O,E=A}if(M.done)return n(v,E),Ct&&Si(v,T),P;if(E===null){for(;!M.done;T++,M=x.next())M=d(v,M.value,b),M!==null&&(y=i(M,y,T),k===null?P=M:k.sibling=M,k=M);return Ct&&Si(v,T),P}for(E=r(v,E);!M.done;T++,M=x.next())M=h(E,v,T,M.value,b),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?T:M.key),y=i(M,y,T),k===null?P=M:k.sibling=M,k=M);return e&&E.forEach(function(_){return t(v,_)}),Ct&&Si(v,T),P}function w(v,y,x,b){if(typeof x=="object"&&x!==null&&x.type===ga&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Gu:e:{for(var P=x.key,k=y;k!==null;){if(k.key===P){if(P=x.type,P===ga){if(k.tag===7){n(v,k.sibling),y=o(k,x.props.children),y.return=v,v=y;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Fo&&ex(P)===k.type){n(v,k.sibling),y=o(k,x.props),y.ref=js(v,k,x),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}x.type===ga?(y=Ni(x.props.children,v.mode,b,x.key),y.return=v,v=y):(b=Kc(x.type,x.key,x.props,null,v.mode,b),b.ref=js(v,y,x),b.return=v,v=b)}return a(v);case ma:e:{for(k=x.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(v,y.sibling),y=o(y,x.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=ph(x,v.mode,b),y.return=v,v=y}return a(v);case Fo:return k=x._init,w(v,y,k(x._payload),b)}if(ol(x))return g(v,y,x,b);if(As(x))return m(v,y,x,b);ic(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(v,y.sibling),y=o(y,x),y.return=v,v=y):(n(v,y),y=fh(x,v.mode,b),y.return=v,v=y),a(v)):n(v,y)}return w}var Xa=cC(!0),dC=cC(!1),xu={},to=mi(xu),Bl=mi(xu),Vl=mi(xu);function Oi(e){if(e===xu)throw Error(ce(174));return e}function fv(e,t){switch(mt(Vl,t),mt(Bl,e),mt(to,xu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lm(t,e)}vt(to),mt(to,t)}function Qa(){vt(to),vt(Bl),vt(Vl)}function fC(e){Oi(Vl.current);var t=Oi(to.current),n=lm(t,e.type);t!==n&&(mt(Bl,e),mt(to,n))}function pv(e){Bl.current===e&&(vt(to),vt(Bl))}var Et=mi(0);function yd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ah=[];function hv(){for(var e=0;en?n:4,e(!0);var r=sh.transition;sh.transition={};try{e(!1),t()}finally{ct=n,sh.transition=r}}function TC(){return wr().memoizedState}function _$(e,t,n){var r=ti(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},MC(e))$C(t,n);else if(n=aC(e,t,n,r),n!==null){var o=Pn();Br(n,e,r,o),OC(n,t,r)}}function j$(e,t,n){var r=ti(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(MC(e))$C(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Vr(s,a)){var l=t.interleaved;l===null?(o.next=o,cv(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=aC(e,t,o,r),n!==null&&(o=Pn(),Br(n,e,r,o),OC(n,t,r))}}function MC(e){var t=e.alternate;return e===kt||t!==null&&t===kt}function $C(e,t){hl=xd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function OC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xg(e,n)}}var bd={readContext:br,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useInsertionEffect:fn,useLayoutEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useMutableSource:fn,useSyncExternalStore:fn,useId:fn,unstable_isNewReconciler:!1},F$={readContext:br,useCallback:function(e,t){return Kr().memoizedState=[e,t===void 0?null:t],e},useContext:br,useEffect:nx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Uc(4194308,4,CC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uc(4,2,e,t)},useMemo:function(e,t){var n=Kr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=_$.bind(null,kt,e),[r.memoizedState,e]},useRef:function(e){var t=Kr();return e={current:e},t.memoizedState=e},useState:tx,useDebugValue:xv,useDeferredValue:function(e){return Kr().memoizedState=e},useTransition:function(){var e=tx(!1),t=e[0];return e=N$.bind(null,e[1]),Kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=kt,o=Kr();if(Ct){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),en===null)throw Error(ce(349));Bi&30||mC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,nx(vC.bind(null,r,i,e),[e]),r.flags|=2048,Hl(9,gC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kr(),t=en.identifierPrefix;if(Ct){var n=mo,r=ho;n=(r&~(1<<32-zr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ul++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Zr]=t,e[zl]=r,zC(e,t,!1,!1),t.stateNode=e;e:{switch(a=cm(n,r),n){case"dialog":gt("cancel",e),gt("close",e),o=r;break;case"iframe":case"object":case"embed":gt("load",e),o=r;break;case"video":case"audio":for(o=0;oJa&&(t.flags|=128,r=!0,Fs(i,!1),t.lanes=4194304)}else{if(!r)if(e=yd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ct)return pn(t),null}else 2*Ft()-i.renderingStartTime>Ja&&n!==1073741824&&(t.flags|=128,r=!0,Fs(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ft(),t.sibling=null,n=Et.current,mt(Et,r?n&1|2:n&1),t):(pn(t),null);case 22:case 23:return Ev(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gn&1073741824&&(pn(t),t.subtreeFlags&6&&(t.flags|=8192)):pn(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function K$(e,t){switch(iv(t),t.tag){case 1:return Fn(t.type)&&dd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qa(),vt(jn),vt(bn),hv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pv(t),null;case 13:if(vt(Et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vt(Et),null;case 4:return Qa(),null;case 10:return uv(t.type._context),null;case 22:case 23:return Ev(),null;case 24:return null;default:return null}}var sc=!1,vn=!1,G$=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function Ea(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Dt(e,t,r)}else n.current=null}function _m(e,t,n){try{n()}catch(r){Dt(e,t,r)}}var dx=!1;function q$(e,t){if(bm=sd,e=YS(),rv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=a),f===i&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(wm={focusedElem:e,selectionRange:n},sd=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){t=Pe;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,w=g.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Dr(t.type,m),w);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(b){Dt(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}return g=dx,dx=!1,g}function ml(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&_m(t,n,i)}o=o.next}while(o!==r)}}function lf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function UC(e){var t=e.alternate;t!==null&&(e.alternate=null,UC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zr],delete t[zl],delete t[Pm],delete t[O$],delete t[D$])),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 WC(e){return e.tag===5||e.tag===3||e.tag===4}function fx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||WC(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 Fm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cd));else if(r!==4&&(e=e.child,e!==null))for(Fm(e,t,n),e=e.sibling;e!==null;)Fm(e,t,n),e=e.sibling}function zm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zm(e,t,n),e=e.sibling;e!==null;)zm(e,t,n),e=e.sibling}var on=null,Ar=!1;function _o(e,t,n){for(n=n.child;n!==null;)HC(e,t,n),n=n.sibling}function HC(e,t,n){if(eo&&typeof eo.onCommitFiberUnmount=="function")try{eo.onCommitFiberUnmount(Jd,n)}catch{}switch(n.tag){case 5:vn||Ea(n,t);case 6:var r=on,o=Ar;on=null,_o(e,t,n),on=r,Ar=o,on!==null&&(Ar?(e=on,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):on.removeChild(n.stateNode));break;case 18:on!==null&&(Ar?(e=on,n=n.stateNode,e.nodeType===8?oh(e.parentNode,n):e.nodeType===1&&oh(e,n),Ll(e)):oh(on,n.stateNode));break;case 4:r=on,o=Ar,on=n.stateNode.containerInfo,Ar=!0,_o(e,t,n),on=r,Ar=o;break;case 0:case 11:case 14:case 15:if(!vn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&_m(n,t,a),o=o.next}while(o!==r)}_o(e,t,n);break;case 1:if(!vn&&(Ea(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Dt(n,t,s)}_o(e,t,n);break;case 21:_o(e,t,n);break;case 22:n.mode&1?(vn=(r=vn)||n.memoizedState!==null,_o(e,t,n),vn=r):_o(e,t,n);break;default:_o(e,t,n)}}function px(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new G$),t.forEach(function(r){var o=oO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Or(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ft()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Q$(r/1960))-r,10e?16:e,Yo===null)var r=!1;else{if(e=Yo,Yo=null,Cd=0,Je&6)throw Error(ce(331));var o=Je;for(Je|=4,Pe=e.current;Pe!==null;){var i=Pe,a=i.child;if(Pe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lFt()-Cv?Li(e,0):Sv|=n),zn(e,t)}function JC(e,t){t===0&&(e.mode&1?(t=Zu,Zu<<=1,!(Zu&130023424)&&(Zu=4194304)):t=1);var n=Pn();e=wo(e,t),e!==null&&(gu(e,t,n),zn(e,n))}function rO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),JC(e,n)}function oO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),JC(e,n)}var eP;eP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jn.current)An=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return An=!1,H$(e,t,n);An=!!(e.flags&131072)}else An=!1,Ct&&t.flags&1048576&&rC(t,hd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wc(e,t),e=t.pendingProps;var o=Ga(t,bn.current);Na(t,n),o=gv(null,t,r,e,o,n);var i=vv();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,Fn(r)?(i=!0,fd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dv(t),o.updater=af,t.stateNode=o,o._reactInternals=t,$m(t,r,e,n),t=Am(null,t,r,!0,i,n)):(t.tag=0,Ct&&i&&ov(t),Sn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=aO(r),e=Dr(r,e),o){case 0:t=Dm(null,t,r,e,n);break e;case 1:t=lx(null,t,r,e,n);break e;case 11:t=ax(null,t,r,e,n);break e;case 14:t=sx(null,t,r,Dr(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dr(r,o),Dm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dr(r,o),lx(e,t,r,o,n);case 3:e:{if(_C(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,sC(e,t),vd(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Za(Error(ce(423)),t),t=ux(e,t,r,n,o);break e}else if(r!==o){o=Za(Error(ce(424)),t),t=ux(e,t,r,n,o);break e}else for(Zn=Zo(t.stateNode.containerInfo.firstChild),Jn=t,Ct=!0,Lr=null,n=dC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qa(),r===o){t=So(e,t,n);break e}Sn(e,t,r,n)}t=t.child}return t;case 5:return fC(t),e===null&&Rm(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Sm(r,o)?a=null:i!==null&&Sm(r,i)&&(t.flags|=32),NC(e,t),Sn(e,t,a,n),t.child;case 6:return e===null&&Rm(t),null;case 13:return jC(e,t,n);case 4:return fv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xa(t,null,r,n):Sn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dr(r,o),ax(e,t,r,o,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,mt(md,r._currentValue),r._currentValue=a,i!==null)if(Vr(i.value,a)){if(i.children===o.children&&!jn.current){t=So(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=go(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Tm(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Tm(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Sn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Na(t,n),o=br(o),r=r(o),t.flags|=1,Sn(e,t,r,n),t.child;case 14:return r=t.type,o=Dr(r,t.pendingProps),o=Dr(r.type,o),sx(e,t,r,o,n);case 15:return IC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dr(r,o),Wc(e,t),t.tag=1,Fn(r)?(e=!0,fd(t)):e=!1,Na(t,n),uC(t,r,o),$m(t,r,o,n),Am(null,t,r,!0,e,n);case 19:return FC(e,t,n);case 22:return LC(e,t,n)}throw Error(ce(156,t.tag))};function tP(e,t){return RS(e,t)}function iO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(e,t,n,r){return new iO(e,t,n,r)}function Rv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aO(e){if(typeof e=="function")return Rv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yg)return 11;if(e===Kg)return 14}return 2}function ni(e,t){var n=e.alternate;return n===null?(n=hr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Rv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ga:return Ni(n.children,o,i,t);case Hg:a=8,o|=8;break;case em:return e=hr(12,n,t,o|2),e.elementType=em,e.lanes=i,e;case tm:return e=hr(13,n,t,o),e.elementType=tm,e.lanes=i,e;case nm:return e=hr(19,n,t,o),e.elementType=nm,e.lanes=i,e;case cS:return cf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lS:a=10;break e;case uS:a=9;break e;case Yg:a=11;break e;case Kg:a=14;break e;case Fo:a=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=hr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ni(e,t,n,r){return e=hr(7,e,r,t),e.lanes=n,e}function cf(e,t,n,r){return e=hr(22,e,r,t),e.elementType=cS,e.lanes=n,e.stateNode={isHidden:!1},e}function fh(e,t,n){return e=hr(6,e,null,t),e.lanes=n,e}function ph(e,t,n){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kp(0),this.expirationTimes=Kp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tv(e,t,n,r,o,i,a,s,l){return e=new sO(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dv(i),e}function lO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iP)}catch(e){console.error(e)}}iP(),rS.exports=or;var ri=rS.exports;const cc=pi(ri);var wx=ri;Zh.createRoot=wx.createRoot,Zh.hydrateRoot=wx.hydrateRoot;function ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=cP(e[n])}),t}function vr(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return Ti(e)&&Ti(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ti(t[o])&&o in e&&Ti(e[o])?r[o]=vr(e[o],t[o],n):n.clone?r[o]=Ti(t[o])?cP(t[o]):t[o]:r[o]=t[o])}),r}function li(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Dv(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function yO(e,t){return()=>null}function yl(e,t){return p.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Lt(e){return e&&e.ownerDocument||document}function ui(e){return Lt(e).defaultView||window}function xO(e,t){return()=>null}function Kl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const bO=typeof window<"u"?p.useLayoutEffect:p.useEffect,cn=bO;let Sx=0;function wO(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(Sx+=1,n(`mui-${Sx}`))},[t]),r}const Cx=Ml["useId".toString()];function bu(e){if(Cx!==void 0){const t=Cx();return e??t}return wO(e)}function SO(e,t,n,r,o){return null}function Bn({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(u=>{o||a(u)},[]);return[s,l]}function Ee(e){const t=p.useRef(e);return cn(()=>{t.current=e}),p.useCallback((...n)=>(0,t.current)(...n),[])}function ht(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Kl(n,t)})},e)}let mf=!0,Ym=!1,Px;const CO={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function PO(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&CO[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function EO(e){e.metaKey||e.altKey||e.ctrlKey||(mf=!0)}function hh(){mf=!1}function kO(){this.visibilityState==="hidden"&&Ym&&(mf=!0)}function RO(e){e.addEventListener("keydown",EO,!0),e.addEventListener("mousedown",hh,!0),e.addEventListener("pointerdown",hh,!0),e.addEventListener("touchstart",hh,!0),e.addEventListener("visibilitychange",kO,!0)}function TO(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return mf||PO(t)}function dP(){const e=p.useCallback(o=>{o!=null&&RO(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(Ym=!0,window.clearTimeout(Px),Px=window.setTimeout(()=>{Ym=!1},100),t.current=!1,!0):!1}function r(o){return TO(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fP(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const MO=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current},$O=MO;function Av(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(a=>{n[r][a]=Av(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function ke(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const Ex=e=>e,OO=()=>{let e=Ex;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ex}}},DO=OO(),Iv=DO,AO={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 Re(e,t,n="Mui"){const r=AO[t];return r?`${n}-${r}`:`${Iv.generate(e)}-${t}`}function Te(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Re(e,o,n)}),r}function pP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var IO=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,LO=pP(function(e){return IO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function NO(e){if(e.sheet)return e.sheet;for(var t=0;t0?an(bs,--Wn):0,es--,Vt===10&&(es=1,vf--),Vt}function er(){return Vt=Wn2||ql(Vt)>3?"":" "}function qO(e,t){for(;--t&&er()&&!(Vt<48||Vt>102||Vt>57&&Vt<65||Vt>70&&Vt<97););return wu(e,Gc()+(t<6&&no()==32&&er()==32))}function Gm(e){for(;er();)switch(Vt){case e:return Wn;case 34:case 39:e!==34&&e!==39&&Gm(Vt);break;case 40:e===41&&Gm(e);break;case 92:er();break}return Wn}function XO(e,t){for(;er()&&e+Vt!==47+10;)if(e+Vt===42+42&&no()===47)break;return"/*"+wu(t,Wn-1)+"*"+gf(e===47?e:er())}function QO(e){for(;!ql(no());)er();return wu(e,Wn)}function ZO(e){return xP(Xc("",null,null,null,[""],e=yP(e),0,[0],e))}function Xc(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,g=0,m=1,w=1,v=1,y=0,x="",b=o,P=i,k=r,E=x;w;)switch(g=y,y=er()){case 40:if(g!=108&&an(E,d-1)==58){Km(E+=st(qc(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=qc(y);break;case 9:case 10:case 13:case 32:E+=GO(g);break;case 92:E+=qO(Gc()-1,7);continue;case 47:switch(no()){case 42:case 47:dc(JO(XO(er(),Gc()),t,n),l);break;default:E+="/"}break;case 123*m:s[u++]=qr(E)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+c:v==-1&&(E=st(E,/\f/g,"")),h>0&&qr(E)-d&&dc(h>32?Rx(E+";",r,n,d-1):Rx(st(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(dc(k=kx(E,t,n,u,c,o,s,x,b=[],P=[],d),i),y===123)if(c===0)Xc(E,t,k,k,b,i,d,s,P);else switch(f===99&&an(E,3)===110?100:f){case 100:case 108:case 109:case 115:Xc(e,k,k,r&&dc(kx(e,k,k,0,0,o,s,x,o,b=[],d),P),o,P,d,s,r?b:P);break;default:Xc(E,k,k,k,[""],P,0,s,P)}}u=c=h=0,m=v=1,x=E="",d=a;break;case 58:d=1+qr(E),h=g;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&KO()==125)continue}switch(E+=gf(y),y*m){case 38:v=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(qr(E)-1)*v,v=1;break;case 64:no()===45&&(E+=qc(er())),f=no(),c=d=qr(x=E+=QO(Gc())),y++;break;case 45:g===45&&qr(E)==2&&(m=0)}}return i}function kx(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=o===0?i:[""],h=_v(f),g=0,m=0,w=0;g0?f[v]+" "+y:st(y,/&\f/g,f[v])))&&(l[w++]=x);return yf(e,t,n,o===0?Lv:s,l,u,c)}function JO(e,t,n){return yf(e,t,n,hP,gf(YO()),Gl(e,2,-2),0)}function Rx(e,t,n,r){return yf(e,t,n,Nv,Gl(e,0,r),Gl(e,r+1,-1),r)}function ja(e,t){for(var n="",r=_v(e),o=0;o6)switch(an(e,t+1)){case 109:if(an(e,t+4)!==45)break;case 102:return st(e,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+kd+(an(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Km(e,"stretch")?bP(st(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(an(e,t+1)!==115)break;case 6444:switch(an(e,qr(e)-3-(~Km(e,"!important")&&10))){case 107:return st(e,":",":"+at)+e;case 101:return st(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(an(e,14)===45?"inline-":"")+"box$3$1"+at+"$2$3$1"+mn+"$2box$3")+e}break;case 5936:switch(an(e,t+11)){case 114:return at+e+mn+st(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at+e+mn+st(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at+e+mn+st(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at+e+mn+e+e}return e}var l2=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Nv:t.return=bP(t.value,t.length);break;case mP:return ja([Bs(t,{value:st(t.value,"@","@"+at)})],o);case Lv:if(t.length)return HO(t.props,function(i){switch(WO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ja([Bs(t,{props:[st(i,/:(read-\w+)/,":"+kd+"$1")]})],o);case"::placeholder":return ja([Bs(t,{props:[st(i,/:(plac\w+)/,":"+at+"input-$1")]}),Bs(t,{props:[st(i,/:(plac\w+)/,":"+kd+"$1")]}),Bs(t,{props:[st(i,/:(plac\w+)/,mn+"input-$1")]})],o)}return""})}},u2=[l2],c2=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var w=m.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||u2,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var w=m.getAttribute("data-emotion").split(" "),v=1;v=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var S2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},C2=/[A-Z]|^ms/g,P2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RP=function(t){return t.charCodeAt(1)===45},Mx=function(t){return t!=null&&typeof t!="boolean"},mh=pP(function(e){return RP(e)?e:e.replace(C2,"-$&").toLowerCase()}),$x=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(P2,function(r,o,i){return Xr={name:o,styles:i,next:Xr},o})}return S2[t]!==1&&!RP(t)&&typeof n=="number"&&n!==0?n+"px":n};function Xl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Xr={name:n.name,styles:n.styles,next:Xr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Xr={name:r.name,styles:r.styles,next:Xr},r=r.next;var o=n.styles+";";return o}return E2(e,t,n)}case"function":{if(e!==void 0){var i=Xr,a=n(e);return Xr=i,Xl(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function E2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?$2:O2},Ix=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},D2=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return EP(n,r,o),R2(function(){return kP(n,r,o)}),null},A2=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=Ix(t,n,r),l=s||Ax(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;ht(L2(o)?n:o):t;return C.jsx(T2,{styles:r})}/** + * @mui/styled-engine v5.14.8 + * + * @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 OP(e,t){return qm(e,t)}const _2=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},j2=["values","unit","step"],F2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function z2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ne(e,j2),i=F2(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-r/100}${n})`}function c(f){return a.indexOf(f)+1`@media (min-width:${Uv[e]}px)`};function Sr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Lx;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Lx;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Uv).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function U2(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function W2(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function H2(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function $f({values:e,breakpoints:t,base:n}){const r=n||H2(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Of(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Rd(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Of(e,n)||r,t&&(o=t(o,r,e)),o}function ut(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=Of(l,r)||{};return Sr(a,s,d=>{let f=Rd(u,o,d);return d===f&&typeof d=="string"&&(f=Rd(u,o,`${t}${d==="default"?"":ue(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Y2(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const K2={m:"margin",p:"padding"},G2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},q2=Y2(e=>{if(e.length>2)if(Nx[e])e=Nx[e];else return[e];const[t,n]=e.split(""),r=K2[t],o=G2[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Wv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Wv,...Hv];function Su(e,t,n,r){var o;const i=(o=Of(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function DP(e){return Su(e,"spacing",8)}function Cu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function X2(e,t){return n=>e.reduce((r,o)=>(r[o]=Cu(t,n),r),{})}function Q2(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=q2(n),i=X2(o,r),a=e[n];return Sr(e,a,i)}function AP(e,t){const n=DP(e.theme);return Object.keys(e).map(r=>Q2(e,t,r,n)).reduce(xl,{})}function $t(e){return AP(e,Wv)}$t.propTypes={};$t.filterProps=Wv;function Ot(e){return AP(e,Hv)}Ot.propTypes={};Ot.filterProps=Hv;function Z2(e=8){if(e.mui)return e;const t=DP({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Df(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?xl(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Jr(e){return typeof e!="number"?e:`${e}px solid`}const J2=ut({prop:"border",themeKey:"borders",transform:Jr}),eD=ut({prop:"borderTop",themeKey:"borders",transform:Jr}),tD=ut({prop:"borderRight",themeKey:"borders",transform:Jr}),nD=ut({prop:"borderBottom",themeKey:"borders",transform:Jr}),rD=ut({prop:"borderLeft",themeKey:"borders",transform:Jr}),oD=ut({prop:"borderColor",themeKey:"palette"}),iD=ut({prop:"borderTopColor",themeKey:"palette"}),aD=ut({prop:"borderRightColor",themeKey:"palette"}),sD=ut({prop:"borderBottomColor",themeKey:"palette"}),lD=ut({prop:"borderLeftColor",themeKey:"palette"}),Af=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Su(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Cu(t,r)});return Sr(e,e.borderRadius,n)}return null};Af.propTypes={};Af.filterProps=["borderRadius"];Df(J2,eD,tD,nD,rD,oD,iD,aD,sD,lD,Af);const If=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Su(e.theme,"spacing",8),n=r=>({gap:Cu(t,r)});return Sr(e,e.gap,n)}return null};If.propTypes={};If.filterProps=["gap"];const Lf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Su(e.theme,"spacing",8),n=r=>({columnGap:Cu(t,r)});return Sr(e,e.columnGap,n)}return null};Lf.propTypes={};Lf.filterProps=["columnGap"];const Nf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Su(e.theme,"spacing",8),n=r=>({rowGap:Cu(t,r)});return Sr(e,e.rowGap,n)}return null};Nf.propTypes={};Nf.filterProps=["rowGap"];const uD=ut({prop:"gridColumn"}),cD=ut({prop:"gridRow"}),dD=ut({prop:"gridAutoFlow"}),fD=ut({prop:"gridAutoColumns"}),pD=ut({prop:"gridAutoRows"}),hD=ut({prop:"gridTemplateColumns"}),mD=ut({prop:"gridTemplateRows"}),gD=ut({prop:"gridTemplateAreas"}),vD=ut({prop:"gridArea"});Df(If,Lf,Nf,uD,cD,dD,fD,pD,hD,mD,gD,vD);function Fa(e,t){return t==="grey"?t:e}const yD=ut({prop:"color",themeKey:"palette",transform:Fa}),xD=ut({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fa}),bD=ut({prop:"backgroundColor",themeKey:"palette",transform:Fa});Df(yD,xD,bD);function Qn(e){return e<=1&&e!==0?`${e*100}%`:e}const wD=ut({prop:"width",transform:Qn}),Yv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Uv[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Qn(n)}};return Sr(e,e.maxWidth,t)}return null};Yv.filterProps=["maxWidth"];const SD=ut({prop:"minWidth",transform:Qn}),CD=ut({prop:"height",transform:Qn}),PD=ut({prop:"maxHeight",transform:Qn}),ED=ut({prop:"minHeight",transform:Qn});ut({prop:"size",cssProperty:"width",transform:Qn});ut({prop:"size",cssProperty:"height",transform:Qn});const kD=ut({prop:"boxSizing"});Df(wD,Yv,SD,CD,PD,ED,kD);const RD={border:{themeKey:"borders",transform:Jr},borderTop:{themeKey:"borders",transform:Jr},borderRight:{themeKey:"borders",transform:Jr},borderBottom:{themeKey:"borders",transform:Jr},borderLeft:{themeKey:"borders",transform:Jr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Af},color:{themeKey:"palette",transform:Fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fa},backgroundColor:{themeKey:"palette",transform:Fa},p:{style:Ot},pt:{style:Ot},pr:{style:Ot},pb:{style:Ot},pl:{style:Ot},px:{style:Ot},py:{style:Ot},padding:{style:Ot},paddingTop:{style:Ot},paddingRight:{style:Ot},paddingBottom:{style:Ot},paddingLeft:{style:Ot},paddingX:{style:Ot},paddingY:{style:Ot},paddingInline:{style:Ot},paddingInlineStart:{style:Ot},paddingInlineEnd:{style:Ot},paddingBlock:{style:Ot},paddingBlockStart:{style:Ot},paddingBlockEnd:{style:Ot},m:{style:$t},mt:{style:$t},mr:{style:$t},mb:{style:$t},ml:{style:$t},mx:{style:$t},my:{style:$t},margin:{style:$t},marginTop:{style:$t},marginRight:{style:$t},marginBottom:{style:$t},marginLeft:{style:$t},marginX:{style:$t},marginY:{style:$t},marginInline:{style:$t},marginInlineStart:{style:$t},marginInlineEnd:{style:$t},marginBlock:{style:$t},marginBlockStart:{style:$t},marginBlockEnd:{style:$t},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:If},rowGap:{style:Nf},columnGap:{style:Lf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qn},maxWidth:{style:Yv},minWidth:{transform:Qn},height:{transform:Qn},maxHeight:{transform:Qn},minHeight:{transform:Qn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},_f=RD;function TD(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function MD(e,t){return typeof e=="function"?e(t):e}function $D(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Of(o,u)||{};return d?d(a):Sr(a,r,g=>{let m=Rd(f,c,g);return g===m&&typeof g=="string"&&(m=Rd(f,c,`${n}${g==="default"?"":ue(g)}`,g)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:_f;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=U2(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const g=MD(u[h],i);if(g!=null)if(typeof g=="object")if(a[h])f=xl(f,e(h,g,i,a));else{const m=Sr({theme:i},g,w=>({[h]:w}));TD(m,g)?f[h]=t({sx:g,theme:i}):f=xl(f,m)}else f=xl(f,e(h,g,i,a))}),W2(d,f)}return Array.isArray(o)?o.map(s):s(o)}return t}const IP=$D();IP.filterProps=["sx"];const jf=IP,OD=["breakpoints","palette","spacing","shape"];function Ff(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ne(e,OD),s=z2(n),l=Z2(o);let u=vr({breakpoints:s,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:l,shape:S({},V2,i)},a);return u=t.reduce((c,d)=>vr(c,d),u),u.unstable_sxConfig=S({},_f,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return jf({sx:d,theme:this})},u}function DD(e){return Object.keys(e).length===0}function zf(e=null){const t=p.useContext(Mf);return!t||DD(t)?e:t}const AD=Ff();function ws(e=AD){return zf(e)}function ID({styles:e,themeId:t,defaultTheme:n={}}){const r=ws(n),o=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(N2,{styles:o})}const LD=["sx"],ND=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:_f;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Kv(e){const{sx:t}=e,n=ne(e,LD),{systemProps:r,otherProps:o}=ND(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Ti(s)?S({},r,s):r}:i=S({},r,t),S({},o,{sx:i})}const _D=["className","component"];function jD(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=OP("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(jf);return p.forwardRef(function(l,u){const c=ws(n),d=Kv(l),{className:f,component:h="div"}=d,g=ne(d,_D);return C.jsx(i,S({as:h,ref:u,className:fe(f,o?o(r):r),theme:t&&c[t]||c},g))})}const FD=["variant"];function _x(e){return e.length===0}function LP(e){const{variant:t}=e,n=ne(e,FD);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=_x(r)?e[o]:ue(e[o]):r+=`${_x(r)?o:ue(o)}${ue(e[o].toString())}`}),r}const zD=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BD(e){return Object.keys(e).length===0}function VD(e){return typeof e=="string"&&e.charCodeAt(0)>96}const UD=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,WD=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=LP(o.props);r[i]=o.style}),r},HD=(e,t,n,r)=>{var o;const{ownerState:i={}}=e,a=[],s=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{i[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&a.push(t[LP(l.props)])}),a};function bl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const YD=Ff(),KD=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Vs({defaultTheme:e,theme:t,themeId:n}){return BD(t)?e:t[n]||t}function GD(e){return e?(t,n)=>n[e]:null}function NP(e={}){const{themeId:t,defaultTheme:n=YD,rootShouldForwardProp:r=bl,slotShouldForwardProp:o=bl}=e,i=a=>jf(S({},a,{theme:Vs(S({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{_2(a,b=>b.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=GD(KD(u))}=s,h=ne(s,zD),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=d||!1;let w,v=bl;u==="Root"||u==="root"?v=r:u?v=o:VD(a)&&(v=void 0);const y=OP(a,S({shouldForwardProp:v,label:w},h)),x=(b,...P)=>{const k=P?P.map(M=>typeof M=="function"&&M.__emotion_real!==M?O=>M(S({},O,{theme:Vs(S({},O,{defaultTheme:n,themeId:t}))})):M):[];let E=b;l&&f&&k.push(M=>{const O=Vs(S({},M,{defaultTheme:n,themeId:t})),_=UD(l,O);if(_){const $={};return Object.entries(_).forEach(([D,R])=>{$[D]=typeof R=="function"?R(S({},M,{theme:O})):R}),f(M,$)}return null}),l&&!g&&k.push(M=>{const O=Vs(S({},M,{defaultTheme:n,themeId:t}));return HD(M,WD(l,O),O,l)}),m||k.push(i);const T=k.length-P.length;if(Array.isArray(b)&&T>0){const M=new Array(T).fill("");E=[...b,...M],E.raw=[...b.raw,...M]}else typeof b=="function"&&b.__emotion_real!==b&&(E=M=>b(S({},M,{theme:Vs(S({},M,{defaultTheme:n,themeId:t}))})));const A=y(E,...k);return a.muiName&&(A.muiName=a.muiName),A};return y.withConfig&&(x.withConfig=y.withConfig),x}}const qD=NP(),XD=qD;function _P(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Av(t.components[n].defaultProps,r)}function jP({props:e,name:t,defaultTheme:n,themeId:r}){let o=ws(n);return r&&(o=o[r]||o),_P({theme:o,name:t,props:e})}function Gv(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function QD(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Wi(e){if(e.type)return e;if(e.charAt(0)==="#")return Wi(QD(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(li(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(li(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Bf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ZD(e){e=Wi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Bf({type:s,values:l})}function Xm(e){e=Wi(e);let t=e.type==="hsl"||e.type==="hsla"?Wi(ZD(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function JD(e,t){const n=Xm(e),r=Xm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ge(e,t){return e=Wi(e),t=Gv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Bf(e)}function ts(e,t){if(e=Wi(e),t=Gv(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Bf(e)}function ns(e,t){if(e=Wi(e),t=Gv(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Bf(e)}function eA(e,t=.15){return Xm(e)>.5?ts(e,t):ns(e,t)}const tA=p.createContext(null),FP=tA;function zP(){return p.useContext(FP)}const nA=typeof Symbol=="function"&&Symbol.for,rA=nA?Symbol.for("mui.nested"):"__THEME_NESTED__";function oA(e,t){return typeof t=="function"?t(e):S({},e,t)}function iA(e){const{children:t,theme:n}=e,r=zP(),o=p.useMemo(()=>{const i=r===null?n:oA(r,n);return i!=null&&(i[rA]=r!==null),i},[n,r]);return C.jsx(FP.Provider,{value:o,children:t})}const jx={};function Fx(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?S({},t,{[e]:i}):i;return r?()=>a:a}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function aA(e){const{children:t,theme:n,themeId:r}=e,o=zf(jx),i=zP()||jx,a=Fx(r,o,n),s=Fx(r,i,n,!0);return C.jsx(iA,{theme:s,children:C.jsx(Mf.Provider,{value:a,children:t})})}const sA=["className","component","disableGutters","fixed","maxWidth","classes"],lA=Ff(),uA=XD("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ue(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),cA=e=>jP({props:e,name:"MuiContainer",defaultTheme:lA}),dA=(e,t)=>{const n=l=>Re(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${ue(String(a))}`,o&&"fixed",i&&"disableGutters"]};return ke(s,n,r)};function fA(e={}){const{createStyledComponent:t=uA,useThemeProps:n=cA,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>S({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const c=u,d=a.breakpoints.values[c];return d!==0&&(l[a.breakpoints.up(c)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>S({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return p.forwardRef(function(s,l){const u=n(s),{className:c,component:d="div",disableGutters:f=!1,fixed:h=!1,maxWidth:g="lg"}=u,m=ne(u,sA),w=S({},u,{component:d,disableGutters:f,fixed:h,maxWidth:g}),v=dA(w,r);return C.jsx(o,S({as:d,ownerState:w,className:fe(v.root,c),ref:l},m))})}function pA(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const hA={black:"#000",white:"#fff"},Ql=hA,mA={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"},gA=mA,vA={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"},na=vA,yA={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"},ra=yA,xA={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"},Us=xA,bA={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"},oa=bA,wA={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"},ia=wA,SA={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"},aa=SA,CA=["mode","contrastThreshold","tonalOffset"],zx={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:Ql.white,default:Ql.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}},gh={text:{primary:Ql.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:Ql.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Bx(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ns(e.main,o):t==="dark"&&(e.dark=ts(e.main,i)))}function PA(e="light"){return e==="dark"?{main:oa[200],light:oa[50],dark:oa[400]}:{main:oa[700],light:oa[400],dark:oa[800]}}function EA(e="light"){return e==="dark"?{main:na[200],light:na[50],dark:na[400]}:{main:na[500],light:na[300],dark:na[700]}}function kA(e="light"){return e==="dark"?{main:ra[500],light:ra[300],dark:ra[700]}:{main:ra[700],light:ra[400],dark:ra[800]}}function RA(e="light"){return e==="dark"?{main:ia[400],light:ia[300],dark:ia[700]}:{main:ia[700],light:ia[500],dark:ia[900]}}function TA(e="light"){return e==="dark"?{main:aa[400],light:aa[300],dark:aa[700]}:{main:aa[800],light:aa[500],dark:aa[900]}}function MA(e="light"){return e==="dark"?{main:Us[400],light:Us[300],dark:Us[700]}:{main:"#ed6c02",light:Us[500],dark:Us[900]}}function $A(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ne(e,CA),i=e.primary||PA(t),a=e.secondary||EA(t),s=e.error||kA(t),l=e.info||RA(t),u=e.success||TA(t),c=e.warning||MA(t);function d(m){return JD(m,gh.text.primary)>=n?gh.text.primary:zx.text.primary}const f=({color:m,name:w,mainShade:v=500,lightShade:y=300,darkShade:x=700})=>{if(m=S({},m),!m.main&&m[v]&&(m.main=m[v]),!m.hasOwnProperty("main"))throw new Error(li(11,w?` (${w})`:"",v));if(typeof m.main!="string")throw new Error(li(12,w?` (${w})`:"",JSON.stringify(m.main)));return Bx(m,"light",y,r),Bx(m,"dark",x,r),m.contrastText||(m.contrastText=d(m.main)),m},h={dark:gh,light:zx};return vr(S({common:S({},Ql),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:gA,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),o)}const OA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function DA(e){return Math.round(e*1e5)/1e5}const Vx={textTransform:"uppercase"},Ux='"Roboto", "Helvetica", "Arial", sans-serif';function AA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ux,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=ne(n,OA),h=o/14,g=d||(v=>`${v/u*h}rem`),m=(v,y,x,b,P)=>S({fontFamily:r,fontWeight:v,fontSize:g(y),lineHeight:x},r===Ux?{letterSpacing:`${DA(b/y)}em`}:{},P,c),w={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Vx),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Vx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vr(S({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},w),f,{clone:!1})}const IA=.2,LA=.14,NA=.12;function bt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${IA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${LA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${NA})`].join(",")}const _A=["none",bt(0,2,1,-1,0,1,1,0,0,1,3,0),bt(0,3,1,-2,0,2,2,0,0,1,5,0),bt(0,3,3,-2,0,3,4,0,0,1,8,0),bt(0,2,4,-1,0,4,5,0,0,1,10,0),bt(0,3,5,-1,0,5,8,0,0,1,14,0),bt(0,3,5,-1,0,6,10,0,0,1,18,0),bt(0,4,5,-2,0,7,10,1,0,2,16,1),bt(0,5,5,-3,0,8,10,1,0,3,14,2),bt(0,5,6,-3,0,9,12,1,0,3,16,2),bt(0,6,6,-3,0,10,14,1,0,4,18,3),bt(0,6,7,-4,0,11,15,1,0,4,20,3),bt(0,7,8,-4,0,12,17,2,0,5,22,4),bt(0,7,8,-4,0,13,19,2,0,5,24,4),bt(0,7,9,-4,0,14,21,2,0,5,26,4),bt(0,8,9,-5,0,15,22,2,0,6,28,5),bt(0,8,10,-5,0,16,24,2,0,6,30,5),bt(0,8,11,-5,0,17,26,2,0,6,32,5),bt(0,9,11,-5,0,18,28,2,0,7,34,6),bt(0,9,12,-6,0,19,29,2,0,7,36,6),bt(0,10,13,-6,0,20,31,3,0,8,38,7),bt(0,10,13,-6,0,21,33,3,0,8,40,7),bt(0,10,14,-6,0,22,35,3,0,8,42,7),bt(0,11,14,-7,0,23,36,3,0,9,44,8),bt(0,11,15,-7,0,24,38,3,0,9,46,8)],jA=_A,FA=["duration","easing","delay"],zA={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)"},BA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wx(e){return`${Math.round(e)}ms`}function VA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function UA(e){const t=S({},zA,e.easing),n=S({},BA,e.duration);return S({getAutoHeightDuration:VA,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return ne(i,FA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Wx(a)} ${s} ${typeof l=="string"?l:Wx(l)}`).join(",")}},e,{easing:t,duration:n})}const WA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},HA=WA,YA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Vf(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ne(e,YA);if(e.vars)throw new Error(li(18));const s=$A(r),l=Ff(e);let u=vr(l,{mixins:pA(l.breakpoints,n),palette:s,shadows:jA.slice(),typography:AA(s,i),transitions:UA(o),zIndex:S({},HA)});return u=vr(u,a),u=t.reduce((c,d)=>vr(c,d),u),u.unstable_sxConfig=S({},_f,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return jf({sx:d,theme:this})},u}const KA=Vf(),Uf=KA,Hi="$$material",Mo=e=>bl(e)&&e!=="classes",GA=bl,qA=NP({themeId:Hi,defaultTheme:Uf,rootShouldForwardProp:Mo}),H=qA;function we({props:e,name:t}){return jP({props:e,name:t,defaultTheme:Uf,themeId:Hi})}const XA=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Hx=XA;function $o(){const e=ws(Uf);return e[Hi]||e}function QA(e){return Re("MuiPaper",e)}Te("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const ZA=["className","component","elevation","square","variant"],JA=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ke(i,QA,o)},eI=H("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ge("#fff",Hx(t.elevation))}, ${Ge("#fff",Hx(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),tI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=ne(r,ZA),c=S({},r,{component:i,elevation:a,square:s,variant:l}),d=JA(c);return C.jsx(eI,S({as:i,ownerState:c,className:fe(d.root,o),ref:n},u))}),Rr=tI;function nI(e){return Re("MuiAppBar",e)}Te("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const rI=["className","color","enableColorOnDark","position"],oI=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ue(t)}`,`position${ue(n)}`]};return ke(o,nI,r)},fc=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,iI=H(Rr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],t[`color${ue(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:fc(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:fc(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:fc(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:fc(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),aI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=ne(r,rI),u=S({},r,{color:i,position:s,enableColorOnDark:a}),c=oI(u);return C.jsx(iI,S({square:!0,component:"header",ownerState:u,elevation:4,className:fe(c.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),sI=aI,lI=["theme"];function BP(e){let{theme:t}=e,n=ne(e,lI);const r=t[Hi];return C.jsx(aA,S({},n,{themeId:r?Hi:void 0,theme:r||t}))}const uI=Vf(),cI=jD({themeId:Hi,defaultTheme:uI,defaultClassName:"MuiBox-root",generateClassName:Iv.generate}),Co=cI;function dI(e){return Re("MuiToolbar",e)}Te("MuiToolbar",["root","gutters","regular","dense"]);const fI=["className","component","disableGutters","variant"],pI=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ke({root:["root",!n&&"gutters",r]},dI,t)},hI=H("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),mI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=ne(r,fI),u=S({},r,{component:i,disableGutters:a,variant:s}),c=pI(u);return C.jsx(hI,S({as:i,className:fe(c.root,o),ref:n,ownerState:u},l))}),gI=mI;function vI(e){return Re("MuiTypography",e)}Te("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const yI=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xI=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${ue(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ke(s,vI,a)},bI=H("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ue(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Yx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},SI=e=>wI[e]||e,CI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTypography"}),o=SI(r.color),i=Kv(S({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:h=Yx}=i,g=ne(i,yI),m=S({},i,{align:a,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:h}),w=l||(d?"p":h[f]||Yx[f])||"span",v=xI(m);return C.jsx(bI,S({as:w,ref:n,ownerState:m,className:fe(v.root,s)},g))}),At=CI;function Qm(e,t){return Qm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qm(e,t)}function qv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qm(e,t)}function PI(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function EI(e,t){e.classList?e.classList.add(t):PI(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Kx(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function kI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Kx(e.className,t):e.setAttribute("class",Kx(e.className&&e.className.baseVal||"",t))}const Gx={disabled:!1},Td=Dn.createContext(null);var VP=function(t){return t.scrollTop},sl="unmounted",Pi="exited",Ei="entering",fa="entered",Zm="exiting",Oo=function(e){qv(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Pi,i.appearStatus=Ei):l=fa:r.unmountOnExit||r.mountOnEnter?l=sl:l=Pi,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===sl?{status:Pi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ei&&a!==fa&&(i=Ei):(a===Ei||a===fa)&&(i=Zm)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ei){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:cc.findDOMNode(this);a&&VP(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pi&&this.setState({status:sl})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[cc.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||Gx.disabled){this.safeSetState({status:fa},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Ei},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:fa},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:cc.findDOMNode(this);if(!i||Gx.disabled){this.safeSetState({status:Pi},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Zm},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Pi},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:cc.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===sl)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=ne(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Dn.createElement(Td.Provider,{value:null},typeof a=="function"?a(o,s):Dn.cloneElement(Dn.Children.only(a),s))},t}(Dn.Component);Oo.contextType=Td;Oo.propTypes={};function sa(){}Oo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sa,onEntering:sa,onEntered:sa,onExit:sa,onExiting:sa,onExited:sa};Oo.UNMOUNTED=sl;Oo.EXITED=Pi;Oo.ENTERING=Ei;Oo.ENTERED=fa;Oo.EXITING=Zm;const Xv=Oo;var RI=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return EI(t,r)})},vh=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return kI(t,r)})},Qv=function(e){qv(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a{if(!s&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,s,u]),C.jsx("span",{className:f,style:h,children:C.jsx("span",{className:g})})}const NI=Te("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),dr=NI,_I=["center","classes","className"];let Wf=e=>e,qx,Xx,Qx,Zx;const Jm=550,jI=80,FI=Vv(qx||(qx=Wf` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),zI=Vv(Xx||(Xx=Wf` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),BI=Vv(Qx||(Qx=Wf` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),VI=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),UI=H(LI,{name:"MuiTouchRipple",slot:"Ripple"})(Zx||(Zx=Wf` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),dr.rippleVisible,FI,Jm,({theme:e})=>e.transitions.easing.easeInOut,dr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,dr.child,dr.childLeaving,zI,Jm,({theme:e})=>e.transitions.easing.easeInOut,dr.childPulsate,BI,({theme:e})=>e.transitions.easing.easeInOut),WI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=ne(r,_I),[l,u]=p.useState([]),c=p.useRef(0),d=p.useRef(null);p.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=p.useRef(!1),h=p.useRef(0),g=p.useRef(null),m=p.useRef(null);p.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const w=p.useCallback(b=>{const{pulsate:P,rippleX:k,rippleY:E,rippleSize:T,cb:A}=b;u(M=>[...M,C.jsx(UI,{classes:{ripple:fe(i.ripple,dr.ripple),rippleVisible:fe(i.rippleVisible,dr.rippleVisible),ripplePulsate:fe(i.ripplePulsate,dr.ripplePulsate),child:fe(i.child,dr.child),childLeaving:fe(i.childLeaving,dr.childLeaving),childPulsate:fe(i.childPulsate,dr.childPulsate)},timeout:Jm,pulsate:P,rippleX:k,rippleY:E,rippleSize:T},c.current)]),c.current+=1,d.current=A},[i]),v=p.useCallback((b={},P={},k=()=>{})=>{const{pulsate:E=!1,center:T=o||P.pulsate,fakeElement:A=!1}=P;if((b==null?void 0:b.type)==="mousedown"&&f.current){f.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(f.current=!0);const M=A?null:m.current,O=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,$,D;if(T||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)_=Math.round(O.width/2),$=Math.round(O.height/2);else{const{clientX:R,clientY:N}=b.touches&&b.touches.length>0?b.touches[0]:b;_=Math.round(R-O.left),$=Math.round(N-O.top)}if(T)D=Math.sqrt((2*O.width**2+O.height**2)/3),D%2===0&&(D+=1);else{const R=Math.max(Math.abs((M?M.clientWidth:0)-_),_)*2+2,N=Math.max(Math.abs((M?M.clientHeight:0)-$),$)*2+2;D=Math.sqrt(R**2+N**2)}b!=null&&b.touches?g.current===null&&(g.current=()=>{w({pulsate:E,rippleX:_,rippleY:$,rippleSize:D,cb:k})},h.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},jI)):w({pulsate:E,rippleX:_,rippleY:$,rippleSize:D,cb:k})},[o,w]),y=p.useCallback(()=>{v({},{pulsate:!0})},[v]),x=p.useCallback((b,P)=>{if(clearTimeout(h.current),(b==null?void 0:b.type)==="touchend"&&g.current){g.current(),g.current=null,h.current=setTimeout(()=>{x(b,P)});return}g.current=null,u(k=>k.length>0?k.slice(1):k),d.current=P},[]);return p.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:x}),[y,v,x]),C.jsx(VI,S({className:fe(dr.root,i.root,a),ref:m},s,{children:C.jsx(ey,{component:null,exit:!0,children:l})}))}),HI=WI;function YI(e){return Re("MuiButtonBase",e)}const KI=Te("MuiButtonBase",["root","disabled","focusVisible"]),GI=KI,qI=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],XI=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ke({root:["root",t&&"disabled",n&&"focusVisible"]},YI,o);return n&&r&&(a.root+=` ${r}`),a},QI=H("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"},[`&.${GI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ZI=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:h="a",onBlur:g,onClick:m,onContextMenu:w,onDragLeave:v,onFocus:y,onFocusVisible:x,onKeyDown:b,onKeyUp:P,onMouseDown:k,onMouseLeave:E,onMouseUp:T,onTouchEnd:A,onTouchMove:M,onTouchStart:O,tabIndex:_=0,TouchRippleProps:$,touchRippleRef:D,type:R}=r,N=ne(r,qI),j=p.useRef(null),I=p.useRef(null),L=ht(I,D),{isFocusVisibleRef:F,onFocus:K,onBlur:ae,ref:ie}=dP(),[B,te]=p.useState(!1);u&&B&&te(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{te(!0),j.current.focus()}}),[]);const[J,G]=p.useState(!1);p.useEffect(()=>{G(!0)},[]);const se=J&&!c&&!u;p.useEffect(()=>{B&&f&&!c&&J&&I.current.pulsate()},[c,f,B,J]);function pe(Ce,zt,rn=d){return Ee(Oe=>(zt&&zt(Oe),!rn&&I.current&&I.current[Ce](Oe),!0))}const le=pe("start",k),re=pe("stop",w),ee=pe("stop",v),oe=pe("stop",T),me=pe("stop",Ce=>{B&&Ce.preventDefault(),E&&E(Ce)}),V=pe("start",O),ge=pe("stop",A),X=pe("stop",M),he=pe("stop",Ce=>{ae(Ce),F.current===!1&&te(!1),g&&g(Ce)},!1),be=Ee(Ce=>{j.current||(j.current=Ce.currentTarget),K(Ce),F.current===!0&&(te(!0),x&&x(Ce)),y&&y(Ce)}),$e=()=>{const Ce=j.current;return l&&l!=="button"&&!(Ce.tagName==="A"&&Ce.href)},Le=p.useRef(!1),Ue=Ee(Ce=>{f&&!Le.current&&B&&I.current&&Ce.key===" "&&(Le.current=!0,I.current.stop(Ce,()=>{I.current.start(Ce)})),Ce.target===Ce.currentTarget&&$e()&&Ce.key===" "&&Ce.preventDefault(),b&&b(Ce),Ce.target===Ce.currentTarget&&$e()&&Ce.key==="Enter"&&!u&&(Ce.preventDefault(),m&&m(Ce))}),et=Ee(Ce=>{f&&Ce.key===" "&&I.current&&B&&!Ce.defaultPrevented&&(Le.current=!1,I.current.stop(Ce,()=>{I.current.pulsate(Ce)})),P&&P(Ce),m&&Ce.target===Ce.currentTarget&&$e()&&Ce.key===" "&&!Ce.defaultPrevented&&m(Ce)});let Be=l;Be==="button"&&(N.href||N.to)&&(Be=h);const tt={};Be==="button"?(tt.type=R===void 0?"button":R,tt.disabled=u):(!N.href&&!N.to&&(tt.role="button"),u&&(tt["aria-disabled"]=u));const xt=ht(n,ie,j),Ye=S({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:_,focusVisible:B}),Se=XI(Ye);return C.jsxs(QI,S({as:Be,className:fe(Se.root,s),ownerState:Ye,onBlur:he,onClick:m,onContextMenu:re,onFocus:be,onKeyDown:Ue,onKeyUp:et,onMouseDown:le,onMouseLeave:me,onMouseUp:oe,onDragLeave:ee,onTouchEnd:ge,onTouchMove:X,onTouchStart:V,ref:xt,tabIndex:u?-1:_,type:R},tt,N,{children:[a,se?C.jsx(HI,S({ref:L,center:i},$)):null]}))}),rs=ZI;function JI(e){return Re("MuiButton",e)}const eL=Te("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),pc=eL,tL=p.createContext({}),nL=tL,rL=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],oL=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${ue(t)}`,`size${ue(o)}`,`${i}Size${ue(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ue(o)}`],endIcon:["endIcon",`iconSize${ue(o)}`]},l=ke(s,JI,a);return S({},a,l)},UP=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),iL=H(rs,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color)}`],t[`size${ue(n.size)}`],t[`${n.variant}Size${ue(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${pc.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${pc.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ge(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pc.disabled}`]:{boxShadow:"none"}}),aL=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},UP(e))),sL=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},UP(e))),lL=p.forwardRef(function(t,n){const r=p.useContext(nL),o=Av(r,t),i=we({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:g,fullWidth:m=!1,size:w="medium",startIcon:v,type:y,variant:x="text"}=i,b=ne(i,rL),P=S({},i,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:m,size:w,type:y,variant:x}),k=oL(P),E=v&&C.jsx(aL,{className:k.startIcon,ownerState:P,children:v}),T=h&&C.jsx(sL,{className:k.endIcon,ownerState:P,children:h});return C.jsxs(iL,S({ownerState:P,className:fe(r.className,k.root,u),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:fe(k.focusVisible,g),ref:n,type:y},b,{classes:k,children:[E,a,T]}))}),mr=lL;/** + * @remix-run/router v1.8.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 wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function os(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cL(){return Math.random().toString(36).substr(2,8)}function e1(e,t){return{usr:e.state,key:e.key,idx:t}}function Zl(e,t,n,r){return n===void 0&&(n=null),wt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Do(t):t,{state:n,key:t&&t.key||r||cL()})}function Yi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Do(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dL(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Bt.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(wt({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=Bt.Pop;let w=c(),v=w==null?null:w-u;u=w,l&&l({action:s,location:m.location,delta:v})}function f(w,v){s=Bt.Push;let y=Zl(m.location,w,v);n&&n(y,w),u=c()+1;let x=e1(y,u),b=m.createHref(y);try{a.pushState(x,"",b)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(b)}i&&l&&l({action:s,location:m.location,delta:1})}function h(w,v){s=Bt.Replace;let y=Zl(m.location,w,v);n&&n(y,w),u=c();let x=e1(y,u),b=m.createHref(y);a.replaceState(x,"",b),i&&l&&l({action:s,location:m.location,delta:0})}function g(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof w=="string"?w:Yi(w);return He(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let m={get action(){return s},get location(){return e(o,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Jx,d),l=w,()=>{o.removeEventListener(Jx,d),l=null}},createHref(w){return t(o,w)},createURL:g,encodeLocation(w){let v=g(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(w){return a.go(w)}};return m}var jt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(jt||(jt={}));const fL=new Set(["lazy","caseSensitive","path","id","index","children"]);function pL(e){return e.index===!0}function eg(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(He(o.index!==!0||!o.children,"Cannot specify children on an index route"),He(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),pL(o)){let l=wt({},o,t(o),{id:s});return r[s]=l,l}else{let l=wt({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=eg(o.children,t,a,r)),l}})}function Ra(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Do(t):t,o=Ss(r.pathname||"/",n);if(o==null)return null;let i=WP(e);hL(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vo([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(He(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),WP(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:wL(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of HP(i.path))o(i,a,l)}),t}function HP(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=HP(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function hL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:SL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mL=/^:\w+$/,gL=3,vL=2,yL=1,xL=10,bL=-2,t1=e=>e==="*";function wL(e,t){let n=e.split("/"),r=n.length;return n.some(t1)&&(r+=bL),t&&(r+=vL),n.filter(o=>!t1(o)).reduce((o,i)=>o+(mL.test(i)?gL:i===""?yL:xL),r)}function SL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function CL(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(c==="*"){let f=s[d]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return u[c]=RL(s[d]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function EL(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),os(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function kL(e){try{return decodeURI(e)}catch(t){return os(!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 RL(e,t){try{return decodeURIComponent(e)}catch(n){return os(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Ss(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function TL(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Do(e):e;return{pathname:n?n.startsWith("/")?n:ML(n,t):t,search:OL(r),hash:DL(o)}}function ML(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function yh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Pu(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hf(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Do(e):(o=wt({},e),He(!o.pathname||!o.pathname.includes("?"),yh("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),yh("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),yh("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=TL(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vo=e=>e.join("/").replace(/\/\/+/g,"/"),$L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ty{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function YP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const KP=["post","put","patch","delete"],AL=new Set(KP),IL=["get",...KP],LL=new Set(IL),NL=new Set([301,302,303,307,308]),_L=new Set([307,308]),xh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jL={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ws={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},GP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,FL=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function zL(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;He(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 z=e.detectErrorBoundary;o=U=>({hasErrorBoundary:z(U)})}else o=FL;let i={},a=eg(e.routes,o,void 0,i),s,l=e.basename||"/",u=wt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,d=new Set,f=null,h=null,g=null,m=e.hydrationData!=null,w=Ra(a,e.history.location,l),v=null;if(w==null){let z=cr(404,{pathname:e.history.location.pathname}),{matches:U,route:Q}=u1(a);w=U,v={[Q.id]:z}}let y=!w.some(z=>z.route.lazy)&&(!w.some(z=>z.route.loader)||e.hydrationData!=null),x,b={historyAction:e.history.action,location:e.history.location,matches:w,initialized:y,navigation:xh,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||v,fetchers:new Map,blockers:new Map},P=Bt.Pop,k=!1,E,T=!1,A=!1,M=[],O=[],_=new Map,$=0,D=-1,R=new Map,N=new Set,j=new Map,I=new Map,L=new Map,F=!1;function K(){return c=e.history.listen(z=>{let{action:U,location:Q,delta:ve}=z;if(F){F=!1;return}os(L.size===0||ve!=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 Ie=Ye({currentLocation:b.location,nextLocation:Q,historyAction:U});if(Ie&&ve!=null){F=!0,e.history.go(ve*-1),xt(Ie,{state:"blocked",location:Q,proceed(){xt(Ie,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),e.history.go(ve)},reset(){let De=new Map(b.blockers);De.set(Ie,Ws),B({blockers:De})}});return}return se(U,Q)}),b.initialized||se(Bt.Pop,b.location),x}function ae(){c&&c(),d.clear(),E&&E.abort(),b.fetchers.forEach((z,U)=>be(U)),b.blockers.forEach((z,U)=>tt(U))}function ie(z){return d.add(z),()=>d.delete(z)}function B(z){b=wt({},b,z),d.forEach(U=>U(b))}function te(z,U){var Q,ve;let Ie=b.actionData!=null&&b.navigation.formMethod!=null&&Ir(b.navigation.formMethod)&&b.navigation.state==="loading"&&((Q=z.state)==null?void 0:Q._isRedirect)!==!0,De;U.actionData?Object.keys(U.actionData).length>0?De=U.actionData:De=null:Ie?De=b.actionData:De=null;let Ae=U.loaderData?l1(b.loaderData,U.loaderData,U.matches||[],U.errors):b.loaderData,Me=b.blockers;Me.size>0&&(Me=new Map(Me),Me.forEach((Qe,_e)=>Me.set(_e,Ws)));let ye=k===!0||b.navigation.formMethod!=null&&Ir(b.navigation.formMethod)&&((ve=z.state)==null?void 0:ve._isRedirect)!==!0;s&&(a=s,s=void 0),T||P===Bt.Pop||(P===Bt.Push?e.history.push(z,z.state):P===Bt.Replace&&e.history.replace(z,z.state)),B(wt({},U,{actionData:De,loaderData:Ae,historyAction:P,location:z,initialized:!0,navigation:xh,revalidation:"idle",restoreScrollPosition:Oe(z,U.matches||b.matches),preventScrollReset:ye,blockers:Me})),P=Bt.Pop,k=!1,T=!1,A=!1,M=[],O=[]}async function J(z,U){if(typeof z=="number"){e.history.go(z);return}let Q=tg(b.location,b.matches,l,u.v7_prependBasename,z,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:ve,submission:Ie,error:De}=n1(u.v7_normalizeFormMethod,!1,Q,U),Ae=b.location,Me=Zl(b.location,ve,U&&U.state);Me=wt({},Me,e.history.encodeLocation(Me));let ye=U&&U.replace!=null?U.replace:void 0,Qe=Bt.Push;ye===!0?Qe=Bt.Replace:ye===!1||Ie!=null&&Ir(Ie.formMethod)&&Ie.formAction===b.location.pathname+b.location.search&&(Qe=Bt.Replace);let _e=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,Fe=Ye({currentLocation:Ae,nextLocation:Me,historyAction:Qe});if(Fe){xt(Fe,{state:"blocked",location:Me,proceed(){xt(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:Me}),J(z,U)},reset(){let ot=new Map(b.blockers);ot.set(Fe,Ws),B({blockers:ot})}});return}return await se(Qe,Me,{submission:Ie,pendingError:De,preventScrollReset:_e,replace:U&&U.replace})}function G(){if(X(),B({revalidation:"loading"}),b.navigation.state!=="submitting"){if(b.navigation.state==="idle"){se(b.historyAction,b.location,{startUninterruptedRevalidation:!0});return}se(P||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation})}}async function se(z,U,Q){E&&E.abort(),E=null,P=z,T=(Q&&Q.startUninterruptedRevalidation)===!0,rn(b.location,b.matches),k=(Q&&Q.preventScrollReset)===!0;let ve=s||a,Ie=Q&&Q.overrideNavigation,De=Ra(ve,U,l);if(!De){let ot=cr(404,{pathname:U.pathname}),{matches:it,route:$r}=u1(ve);Se(),te(U,{matches:it,loaderData:{},errors:{[$r.id]:ot}});return}if(b.initialized&&!A&&HL(b.location,U)&&!(Q&&Q.submission&&Ir(Q.submission.formMethod))){te(U,{matches:De});return}E=new AbortController;let Ae=Ys(e.history,U,E.signal,Q&&Q.submission),Me,ye;if(Q&&Q.pendingError)ye={[Ta(De).route.id]:Q.pendingError};else if(Q&&Q.submission&&Ir(Q.submission.formMethod)){let ot=await pe(Ae,U,Q.submission,De,{replace:Q.replace});if(ot.shortCircuited)return;Me=ot.pendingActionData,ye=ot.pendingActionError,Ie=hc(U,Q.submission),Ae=new Request(Ae.url,{signal:Ae.signal})}let{shortCircuited:Qe,loaderData:_e,errors:Fe}=await le(Ae,U,De,Ie,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,Me,ye);Qe||(E=null,te(U,wt({matches:De},Me?{actionData:Me}:{},{loaderData:_e,errors:Fe})))}async function pe(z,U,Q,ve,Ie){Ie===void 0&&(Ie={}),X();let De=XL(U,Q);B({navigation:De});let Ae,Me=rg(ve,U);if(!Me.route.action&&!Me.route.lazy)Ae={type:jt.error,error:cr(405,{method:z.method,pathname:U.pathname,routeId:Me.route.id})};else if(Ae=await Hs("action",z,Me,ve,i,o,l),z.signal.aborted)return{shortCircuited:!0};if(za(Ae)){let ye;return Ie&&Ie.replace!=null?ye=Ie.replace:ye=Ae.location===b.location.pathname+b.location.search,await V(b,Ae,{submission:Q,replace:ye}),{shortCircuited:!0}}if(wl(Ae)){let ye=Ta(ve,Me.route.id);return(Ie&&Ie.replace)!==!0&&(P=Bt.Push),{pendingActionData:{},pendingActionError:{[ye.route.id]:Ae.error}}}if(Ai(Ae))throw cr(400,{type:"defer-action"});return{pendingActionData:{[Me.route.id]:Ae.data}}}async function le(z,U,Q,ve,Ie,De,Ae,Me,ye){let Qe=ve||hc(U,Ie),_e=Ie||De||f1(Qe),Fe=s||a,[ot,it]=r1(e.history,b,Q,_e,U,A,M,O,j,N,Fe,l,Me,ye);if(Se(qe=>!(Q&&Q.some(Zt=>Zt.route.id===qe))||ot&&ot.some(Zt=>Zt.route.id===qe)),D=++$,ot.length===0&&it.length===0){let qe=Ue();return te(U,wt({matches:Q,loaderData:{},errors:ye||null},Me?{actionData:Me}:{},qe?{fetchers:new Map(b.fetchers)}:{})),{shortCircuited:!0}}if(!T){it.forEach(Zt=>{let Y=b.fetchers.get(Zt.key),W=Ks(void 0,Y?Y.data:void 0);b.fetchers.set(Zt.key,W)});let qe=Me||b.actionData;B(wt({navigation:Qe},qe?Object.keys(qe).length===0?{actionData:null}:{actionData:qe}:{},it.length>0?{fetchers:new Map(b.fetchers)}:{}))}it.forEach(qe=>{_.has(qe.key)&&$e(qe.key),qe.controller&&_.set(qe.key,qe.controller)});let $r=()=>it.forEach(qe=>$e(qe.key));E&&E.signal.addEventListener("abort",$r);let{results:Kn,loaderResults:Tt,fetcherResults:Mt}=await ge(b.matches,Q,ot,it,z);if(z.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",$r),it.forEach(qe=>_.delete(qe.key));let Nt=c1(Kn);if(Nt){if(Nt.idx>=ot.length){let qe=it[Nt.idx-ot.length].key;N.add(qe)}return await V(b,Nt.result,{replace:Ae}),{shortCircuited:!0}}let{loaderData:lr,errors:uo}=s1(b,Q,ot,Tt,ye,it,Mt,I);I.forEach((qe,Zt)=>{qe.subscribe(Y=>{(Y||qe.done)&&I.delete(Zt)})});let ea=Ue(),xi=et(D),No=ea||xi||it.length>0;return wt({loaderData:lr,errors:uo},No?{fetchers:new Map(b.fetchers)}:{})}function re(z){return b.fetchers.get(z)||jL}function ee(z,U,Q,ve){if(r)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.");_.has(z)&&$e(z);let Ie=s||a,De=tg(b.location,b.matches,l,u.v7_prependBasename,Q,U,ve==null?void 0:ve.relative),Ae=Ra(Ie,De,l);if(!Ae){he(z,U,cr(404,{pathname:De}));return}let{path:Me,submission:ye,error:Qe}=n1(u.v7_normalizeFormMethod,!0,De,ve);if(Qe){he(z,U,Qe);return}let _e=rg(Ae,Me);if(k=(ve&&ve.preventScrollReset)===!0,ye&&Ir(ye.formMethod)){oe(z,U,Me,_e,Ae,ye);return}j.set(z,{routeId:U,path:Me}),me(z,U,Me,_e,Ae,ye)}async function oe(z,U,Q,ve,Ie,De){if(X(),j.delete(z),!ve.route.action&&!ve.route.lazy){let Z=cr(405,{method:De.formMethod,pathname:Q,routeId:U});he(z,U,Z);return}let Ae=b.fetchers.get(z),Me=QL(De,Ae);b.fetchers.set(z,Me),B({fetchers:new Map(b.fetchers)});let ye=new AbortController,Qe=Ys(e.history,Q,ye.signal,De);_.set(z,ye);let _e=$,Fe=await Hs("action",Qe,ve,Ie,i,o,l);if(Qe.signal.aborted){_.get(z)===ye&&_.delete(z);return}if(za(Fe))if(_.delete(z),D>_e){let Z=pa(void 0);b.fetchers.set(z,Z),B({fetchers:new Map(b.fetchers)});return}else{N.add(z);let Z=Ks(De);return b.fetchers.set(z,Z),B({fetchers:new Map(b.fetchers)}),V(b,Fe,{submission:De,isFetchActionRedirect:!0})}if(wl(Fe)){he(z,U,Fe.error);return}if(Ai(Fe))throw cr(400,{type:"defer-action"});let ot=b.navigation.location||b.location,it=Ys(e.history,ot,ye.signal),$r=s||a,Kn=b.navigation.state!=="idle"?Ra($r,b.navigation.location,l):b.matches;He(Kn,"Didn't find any matches after fetcher action");let Tt=++$;R.set(z,Tt);let Mt=Ks(De,Fe.data);b.fetchers.set(z,Mt);let[Nt,lr]=r1(e.history,b,Kn,De,ot,A,M,O,j,N,$r,l,{[ve.route.id]:Fe.data},void 0);lr.filter(Z=>Z.key!==z).forEach(Z=>{let xe=Z.key,We=b.fetchers.get(xe),_t=Ks(void 0,We?We.data:void 0);b.fetchers.set(xe,_t),_.has(xe)&&$e(xe),Z.controller&&_.set(xe,Z.controller)}),B({fetchers:new Map(b.fetchers)});let uo=()=>lr.forEach(Z=>$e(Z.key));ye.signal.addEventListener("abort",uo);let{results:ea,loaderResults:xi,fetcherResults:No}=await ge(b.matches,Kn,Nt,lr,it);if(ye.signal.aborted)return;ye.signal.removeEventListener("abort",uo),R.delete(z),_.delete(z),lr.forEach(Z=>_.delete(Z.key));let qe=c1(ea);if(qe){if(qe.idx>=Nt.length){let Z=lr[qe.idx-Nt.length].key;N.add(Z)}return V(b,qe.result)}let{loaderData:Zt,errors:Y}=s1(b,b.matches,Nt,xi,void 0,lr,No,I);if(b.fetchers.has(z)){let Z=pa(Fe.data);b.fetchers.set(z,Z)}let W=et(Tt);b.navigation.state==="loading"&&Tt>D?(He(P,"Expected pending action"),E&&E.abort(),te(b.navigation.location,{matches:Kn,loaderData:Zt,errors:Y,fetchers:new Map(b.fetchers)})):(B(wt({errors:Y,loaderData:l1(b.loaderData,Zt,Kn,Y)},W||lr.length>0?{fetchers:new Map(b.fetchers)}:{})),A=!1)}async function me(z,U,Q,ve,Ie,De){let Ae=b.fetchers.get(z),Me=Ks(De,Ae?Ae.data:void 0);b.fetchers.set(z,Me),B({fetchers:new Map(b.fetchers)});let ye=new AbortController,Qe=Ys(e.history,Q,ye.signal);_.set(z,ye);let _e=$,Fe=await Hs("loader",Qe,ve,Ie,i,o,l);if(Ai(Fe)&&(Fe=await QP(Fe,Qe.signal,!0)||Fe),_.get(z)===ye&&_.delete(z),Qe.signal.aborted)return;if(za(Fe))if(D>_e){let it=pa(void 0);b.fetchers.set(z,it),B({fetchers:new Map(b.fetchers)});return}else{N.add(z),await V(b,Fe);return}if(wl(Fe)){let it=Ta(b.matches,U);b.fetchers.delete(z),B({fetchers:new Map(b.fetchers),errors:{[it.route.id]:Fe.error}});return}He(!Ai(Fe),"Unhandled fetcher deferred data");let ot=pa(Fe.data);b.fetchers.set(z,ot),B({fetchers:new Map(b.fetchers)})}async function V(z,U,Q){let{submission:ve,replace:Ie,isFetchActionRedirect:De}=Q===void 0?{}:Q;U.revalidate&&(A=!0);let Ae=Zl(z.location,U.location,wt({_isRedirect:!0},De?{_isFetchActionRedirect:!0}:{}));if(He(Ae,"Expected a location on the redirect navigation"),n){let Qe=!1;if(U.reloadDocument)Qe=!0;else if(GP.test(U.location)){const _e=e.history.createURL(U.location);Qe=_e.origin!==t.location.origin||Ss(_e.pathname,l)==null}if(Qe){Ie?t.location.replace(U.location):t.location.assign(U.location);return}}E=null;let Me=Ie===!0?Bt.Replace:Bt.Push,ye=ve||f1(z.navigation);if(_L.has(U.status)&&ye&&Ir(ye.formMethod))await se(Me,Ae,{submission:wt({},ye,{formAction:U.location}),preventScrollReset:k});else if(De)await se(Me,Ae,{overrideNavigation:hc(Ae),fetcherSubmission:ye,preventScrollReset:k});else{let Qe=hc(Ae,ye);await se(Me,Ae,{overrideNavigation:Qe,preventScrollReset:k})}}async function ge(z,U,Q,ve,Ie){let De=await Promise.all([...Q.map(ye=>Hs("loader",Ie,ye,U,i,o,l)),...ve.map(ye=>ye.matches&&ye.match&&ye.controller?Hs("loader",Ys(e.history,ye.path,ye.controller.signal),ye.match,ye.matches,i,o,l):{type:jt.error,error:cr(404,{pathname:ye.path})})]),Ae=De.slice(0,Q.length),Me=De.slice(Q.length);return await Promise.all([d1(z,Q,Ae,Ae.map(()=>Ie.signal),!1,b.loaderData),d1(z,ve.map(ye=>ye.match),Me,ve.map(ye=>ye.controller?ye.controller.signal:null),!0)]),{results:De,loaderResults:Ae,fetcherResults:Me}}function X(){A=!0,M.push(...Se()),j.forEach((z,U)=>{_.has(U)&&(O.push(U),$e(U))})}function he(z,U,Q){let ve=Ta(b.matches,U);be(z),B({errors:{[ve.route.id]:Q},fetchers:new Map(b.fetchers)})}function be(z){let U=b.fetchers.get(z);_.has(z)&&!(U&&U.state==="loading"&&R.has(z))&&$e(z),j.delete(z),R.delete(z),N.delete(z),b.fetchers.delete(z)}function $e(z){let U=_.get(z);He(U,"Expected fetch controller: "+z),U.abort(),_.delete(z)}function Le(z){for(let U of z){let Q=re(U),ve=pa(Q.data);b.fetchers.set(U,ve)}}function Ue(){let z=[],U=!1;for(let Q of N){let ve=b.fetchers.get(Q);He(ve,"Expected fetcher: "+Q),ve.state==="loading"&&(N.delete(Q),z.push(Q),U=!0)}return Le(z),U}function et(z){let U=[];for(let[Q,ve]of R)if(ve0}function Be(z,U){let Q=b.blockers.get(z)||Ws;return L.get(z)!==U&&L.set(z,U),Q}function tt(z){b.blockers.delete(z),L.delete(z)}function xt(z,U){let Q=b.blockers.get(z)||Ws;He(Q.state==="unblocked"&&U.state==="blocked"||Q.state==="blocked"&&U.state==="blocked"||Q.state==="blocked"&&U.state==="proceeding"||Q.state==="blocked"&&U.state==="unblocked"||Q.state==="proceeding"&&U.state==="unblocked","Invalid blocker state transition: "+Q.state+" -> "+U.state);let ve=new Map(b.blockers);ve.set(z,U),B({blockers:ve})}function Ye(z){let{currentLocation:U,nextLocation:Q,historyAction:ve}=z;if(L.size===0)return;L.size>1&&os(!1,"A router only supports one blocker at a time");let Ie=Array.from(L.entries()),[De,Ae]=Ie[Ie.length-1],Me=b.blockers.get(De);if(!(Me&&Me.state==="proceeding")&&Ae({currentLocation:U,nextLocation:Q,historyAction:ve}))return De}function Se(z){let U=[];return I.forEach((Q,ve)=>{(!z||z(ve))&&(Q.cancel(),U.push(ve),I.delete(ve))}),U}function Ce(z,U,Q){if(f=z,g=U,h=Q||null,!m&&b.navigation===xh){m=!0;let ve=Oe(b.location,b.matches);ve!=null&&B({restoreScrollPosition:ve})}return()=>{f=null,g=null,h=null}}function zt(z,U){return h&&h(z,U.map(ve=>qL(ve,b.loaderData)))||z.key}function rn(z,U){if(f&&g){let Q=zt(z,U);f[Q]=g()}}function Oe(z,U){if(f){let Q=zt(z,U),ve=f[Q];if(typeof ve=="number")return ve}return null}function je(z){i={},s=eg(z,o,void 0,i)}return x={get basename(){return l},get state(){return b},get routes(){return a},initialize:K,subscribe:ie,enableScrollRestoration:Ce,navigate:J,fetch:ee,revalidate:G,createHref:z=>e.history.createHref(z),encodeLocation:z=>e.history.encodeLocation(z),getFetcher:re,deleteFetcher:be,dispose:ae,getBlocker:Be,deleteBlocker:tt,_internalFetchControllers:_,_internalActiveDeferreds:I,_internalSetRoutes:je},x}function BL(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tg(e,t,n,r,o,i,a){let s,l;if(i!=null&&a!=="path"){s=[];for(let c of t)if(s.push(c),c.route.id===i){l=c;break}}else s=t,l=t[t.length-1];let u=Hf(o||".",Pu(s).map(c=>c.pathnameBase),Ss(e.pathname,n)||e.pathname,a==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!ny(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:vo([n,u.pathname])),Yi(u)}function n1(e,t,n,r){if(!r||!BL(r))return{path:n};if(r.formMethod&&!GL(r.formMethod))return{path:n,error:cr(405,{method:r.formMethod})};let o=()=>({path:n,error:cr(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=XP(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ir(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,g)=>{let[m,w]=g;return""+h+m+"="+w+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!Ir(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}He(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=ng(r.formData),u=r.formData;else if(r.body instanceof FormData)l=ng(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=a1(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=a1(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ir(c.formMethod))return{path:n,submission:c};let d=Do(n);return t&&d.search&&ny(d.search)&&l.append("index",""),d.search="?"+l,{path:Yi(d),submission:c}}function VL(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function r1(e,t,n,r,o,i,a,s,l,u,c,d,f,h){let g=h?Object.values(h)[0]:f?Object.values(f)[0]:void 0,m=e.createURL(t.location),w=e.createURL(o),v=h?Object.keys(h)[0]:void 0,x=VL(n,v).filter((P,k)=>{if(P.route.lazy)return!0;if(P.route.loader==null)return!1;if(UL(t.loaderData,t.matches[k],P)||a.some(A=>A===P.route.id))return!0;let E=t.matches[k],T=P;return o1(P,wt({currentUrl:m,currentParams:E.params,nextUrl:w,nextParams:T.params},r,{actionResult:g,defaultShouldRevalidate:i||m.pathname+m.search===w.pathname+w.search||m.search!==w.search||qP(E,T)}))}),b=[];return l.forEach((P,k)=>{if(!n.some(O=>O.route.id===P.routeId))return;let E=Ra(c,P.path,d);if(!E){b.push({key:k,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(k),A=rg(E,P.path),M=!1;u.has(k)?M=!1:s.includes(k)?M=!0:T&&T.state!=="idle"&&T.data===void 0?M=i:M=o1(A,wt({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:i})),M&&b.push({key:k,routeId:P.routeId,path:P.path,matches:E,match:A,controller:new AbortController})}),[x,b]}function UL(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function qP(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function o1(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function i1(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];He(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";os(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!fL.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,wt({},t(o),{lazy:void 0}))}async function Hs(e,t,n,r,o,i,a,s){s===void 0&&(s={});let l,u,c,d=g=>{let m,w=new Promise((v,y)=>m=y);return c=()=>m(),t.signal.addEventListener("abort",c),Promise.race([g({request:t,params:n.params,context:s.requestContext}),w])};try{let g=n.route[e];if(n.route.lazy)if(g)u=(await Promise.all([d(g),i1(n.route,i,o)]))[0];else if(await i1(n.route,i,o),g=n.route[e],g)u=await d(g);else if(e==="action"){let m=new URL(t.url),w=m.pathname+m.search;throw cr(405,{method:t.method,pathname:w,routeId:n.route.id})}else return{type:jt.data,data:void 0};else if(g)u=await d(g);else{let m=new URL(t.url),w=m.pathname+m.search;throw cr(404,{pathname:w})}He(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){l=jt.error,u=g}finally{c&&t.signal.removeEventListener("abort",c)}if(KL(u)){let g=u.status;if(NL.has(g)){let v=u.headers.get("Location");if(He(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!GP.test(v))v=tg(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,v);else if(!s.isStaticRequest){let y=new URL(t.url),x=v.startsWith("//")?new URL(y.protocol+v):new URL(v),b=Ss(x.pathname,a)!=null;x.origin===y.origin&&b&&(v=x.pathname+x.search+x.hash)}if(s.isStaticRequest)throw u.headers.set("Location",v),u;return{type:jt.redirect,status:g,location:v,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===jt.error?jt.error:jt.data,response:u};let m,w=u.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?m=await u.json():m=await u.text(),l===jt.error?{type:l,error:new ty(g,u.statusText,m),headers:u.headers}:{type:jt.data,data:m,statusCode:u.status,headers:u.headers}}if(l===jt.error)return{type:l,error:u};if(YL(u)){var f,h;return{type:jt.deferred,deferredData:u,statusCode:(f=u.init)==null?void 0:f.status,headers:((h=u.init)==null?void 0:h.headers)&&new Headers(u.init.headers)}}return{type:jt.data,data:u}}function Ys(e,t,n,r){let o=e.createURL(XP(t)).toString(),i={signal:n};if(r&&Ir(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=ng(r.formData):i.body=r.formData}return new Request(o,i)}function ng(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function a1(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function WL(e,t,n,r,o){let i={},a=null,s,l=!1,u={};return n.forEach((c,d)=>{let f=t[d].route.id;if(He(!za(c),"Cannot handle redirect results in processLoaderData"),wl(c)){let h=Ta(e,f),g=c.error;r&&(g=Object.values(r)[0],r=void 0),a=a||{},a[h.route.id]==null&&(a[h.route.id]=g),i[f]=void 0,l||(l=!0,s=YP(c.error)?c.error.status:500),c.headers&&(u[f]=c.headers)}else Ai(c)?(o.set(f,c.deferredData),i[f]=c.deferredData.data):i[f]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[f]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function s1(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=WL(t,n,r,o,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function u1(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function cr(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new ty(e||500,a,new Error(s),!0)}function c1(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(za(n))return{result:n,idx:t}}}function XP(e){let t=typeof e=="string"?Do(e):e;return Yi(wt({},t,{hash:""}))}function HL(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ai(e){return e.type===jt.deferred}function wl(e){return e.type===jt.error}function za(e){return(e&&e.type)===jt.redirect}function YL(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 KL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function GL(e){return LL.has(e.toLowerCase())}function Ir(e){return AL.has(e.toLowerCase())}async function d1(e,t,n,r,o,i){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!qP(u,l)&&(i&&i[l.route.id])!==void 0;if(Ai(s)&&(o||c)){let d=r[a];He(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await QP(s,d,o).then(f=>{f&&(n[a]=f||n[a])})}}}async function QP(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:jt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:jt.error,error:o}}return{type:jt.data,data:e.deferredData.data}}}function ny(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function qL(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function rg(e,t){let n=typeof t=="string"?Do(t).search:t.search;if(e[e.length-1].route.index&&ny(n||""))return e[e.length-1];let r=Pu(e);return r[r.length-1]}function f1(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function hc(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 XL(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 Ks(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," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function QL(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," _hasFetcherDoneAnything ":!0}}function pa(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + * React Router v6.15.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 Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=p.useRef(!1);return eE(()=>{a.current=!0}),p.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=Hf(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:vo([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}const eN=p.createContext(null);function tN(e){let t=p.useContext(Ao).outlet;return t&&p.createElement(eN.Provider,{value:e},t)}function tE(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=p.useContext(Ao),{pathname:o}=Eu(),i=JSON.stringify(Pu(r).map(a=>a.pathnameBase));return p.useMemo(()=>Hf(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function nN(e,t,n){Ps()||He(!1);let{navigator:r}=p.useContext(Cs),{matches:o}=p.useContext(Ao),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Eu(),u;if(t){var c;let m=typeof t=="string"?Do(t):t;s==="/"||(c=m.pathname)!=null&&c.startsWith(s)||He(!1),u=m}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=Ra(e,{pathname:f}),g=sN(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:vo([s,r.encodeLocation?r.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:vo([s,r.encodeLocation?r.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,n);return t&&g?p.createElement(Kf.Provider,{value:{location:Md({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Bt.Pop}},g):g}function rN(){let e=dN(),t=YP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,i)}const oN=p.createElement(rN,null);class iN extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?p.createElement(Ao.Provider,{value:this.props.routeContext},p.createElement(JP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aN(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Yf);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Ao.Provider,{value:t},r)}function sN(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||He(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?a==null?void 0:a[l.route.id]:null,d=null;n&&(d=l.route.errorElement||oN);let f=t.concat(i.slice(0,u+1)),h=()=>{let g;return c?g=d:l.route.Component?g=p.createElement(l.route.Component,null):l.route.element?g=l.route.element:g=s,p.createElement(aN,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:n!=null},children:g})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?p.createElement(iN,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var nE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(nE||{}),$d=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}($d||{});function lN(e){let t=p.useContext(Yf);return t||He(!1),t}function uN(e){let t=p.useContext(ZP);return t||He(!1),t}function cN(e){let t=p.useContext(Ao);return t||He(!1),t}function rE(e){let t=cN(),n=t.matches[t.matches.length-1];return n.route.id||He(!1),n.route.id}function dN(){var e;let t=p.useContext(JP),n=uN($d.UseRouteError),r=rE($d.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function fN(){let{router:e}=lN(nE.UseNavigateStable),t=rE($d.UseNavigateStable),n=p.useRef(!1);return eE(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Md({fromRouteId:t},i)))},[e,t])}const pN="startTransition",p1=Ml[pN];function hN(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=p.useState(n.state),{v7_startTransition:a}=r||{},s=p.useCallback(d=>{a&&p1?p1(()=>i(d)):i(d)},[i,a]);p.useLayoutEffect(()=>n.subscribe(s),[n,s]);let l=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:d=>n.navigate(d),push:(d,f,h)=>n.navigate(d,{state:f,preventScrollReset:h==null?void 0:h.preventScrollReset}),replace:(d,f,h)=>n.navigate(d,{replace:!0,state:f,preventScrollReset:h==null?void 0:h.preventScrollReset})}),[n]),u=n.basename||"/",c=p.useMemo(()=>({router:n,navigator:l,static:!1,basename:u}),[n,l,u]);return p.createElement(p.Fragment,null,p.createElement(Yf.Provider,{value:c},p.createElement(ZP.Provider,{value:o},p.createElement(vN,{basename:u,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?p.createElement(mN,{routes:n.routes,state:o}):t))),null)}function mN(e){let{routes:t,state:n}=e;return nN(t,void 0,n)}function oE(e){let{to:t,replace:n,state:r,relative:o}=e;Ps()||He(!1);let{matches:i}=p.useContext(Ao),{pathname:a}=Eu(),s=ku(),l=Hf(t,Pu(i).map(c=>c.pathnameBase),a,o==="path"),u=JSON.stringify(l);return p.useEffect(()=>s(JSON.parse(u),{replace:n,state:r,relative:o}),[s,u,o,n,r]),null}function gN(e){return tN(e.context)}function vN(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Bt.Pop,navigator:i,static:a=!1}=e;Ps()&&He(!1);let s=t.replace(/^\/*/,"/"),l=p.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=Do(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,g=p.useMemo(()=>{let m=Ss(u,s);return m==null?null:{location:{pathname:m,search:c,hash:d,state:f,key:h},navigationType:o}},[s,u,c,d,f,h,o]);return g==null?null:p.createElement(Cs.Provider,{value:l},p.createElement(Kf.Provider,{children:n,value:g}))}new Promise(()=>{});function yN(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.15.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 Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function bN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wN(e,t){return e.button===0&&(!t||t==="_self")&&!bN(e)}const SN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function CN(e,t){return zL({basename:t==null?void 0:t.basename,future:Jl({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:uL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||PN(),routes:e,mapRouteProperties:yN}).initialize()}function PN(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Jl({},t,{errors:EN(t.errors)})),t}function EN(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new ty(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const kN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ko=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,d=xN(t,SN),{basename:f}=p.useContext(Cs),h,g=!1;if(typeof u=="string"&&RN.test(u)&&(h=u,kN))try{let y=new URL(window.location.href),x=u.startsWith("//")?new URL(y.protocol+u):new URL(u),b=Ss(x.pathname,f);x.origin===y.origin&&b!=null?u=b+x.search+x.hash:g=!0}catch{}let m=ZL(u,{relative:o}),w=TN(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function v(y){r&&r(y),y.defaultPrevented||w(y)}return p.createElement("a",Jl({},d,{href:h||m,onClick:g||i?r:v,ref:n,target:l}))});var h1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(h1||(h1={}));var m1;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(m1||(m1={}));function TN(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=ku(),l=Eu(),u=tE(e,{relative:a});return p.useCallback(c=>{if(wN(c,n)){c.preventDefault();let d=r!==void 0?r:Yi(l)===Yi(u);s(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}var iE={exports:{}},aE={};/** + * @license React + * use-sync-external-store-shim.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 is=p;function MN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $N=typeof Object.is=="function"?Object.is:MN,ON=is.useState,DN=is.useEffect,AN=is.useLayoutEffect,IN=is.useDebugValue;function LN(e,t){var n=t(),r=ON({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return AN(function(){o.value=n,o.getSnapshot=t,bh(o)&&i({inst:o})},[e,n,t]),DN(function(){return bh(o)&&i({inst:o}),e(function(){bh(o)&&i({inst:o})})},[e]),IN(n),n}function bh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$N(e,n)}catch{return!0}}function NN(e,t){return t()}var _N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?NN:LN;aE.useSyncExternalStore=is.useSyncExternalStore!==void 0?is.useSyncExternalStore:_N;iE.exports=aE;var jN=iE.exports,sE={exports:{}},lE={};/** + * @license React + * use-sync-external-store-shim/with-selector.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 Gf=p,FN=jN;function zN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var BN=typeof Object.is=="function"?Object.is:zN,VN=FN.useSyncExternalStore,UN=Gf.useRef,WN=Gf.useEffect,HN=Gf.useMemo,YN=Gf.useDebugValue;lE.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=UN(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=HN(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&a.hasValue){var g=a.value;if(o(g,h))return d=g}return d=h}if(g=d,BN(c,h))return g;var m=r(h);return o!==void 0&&o(g,m)?g:(c=h,d=m)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,o]);var s=VN(e,i[0],i[1]);return WN(function(){a.hasValue=!0,a.value=s},[s]),YN(s),s};sE.exports=lE;var KN=sE.exports;function GN(e){e()}let uE=GN;const qN=e=>uE=e,XN=()=>uE,g1=Symbol.for("react-redux-context"),v1=typeof globalThis<"u"?globalThis:{};function QN(){var e;if(!p.createContext)return{};const t=(e=v1[g1])!=null?e:v1[g1]=new Map;let n=t.get(p.createContext);return n||(n=p.createContext(null),t.set(p.createContext,n)),n}const ci=QN();function ry(e=ci){return function(){return p.useContext(e)}}const cE=ry(),ZN=()=>{throw new Error("uSES not initialized!")};let dE=ZN;const JN=e=>{dE=e},e_=(e,t)=>e===t;function t_(e=ci){const t=e===ci?cE:ry(e);return function(r,o={}){const{equalityFn:i=e_,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:u,getServerState:c,stabilityCheck:d,noopCheck:f}=t();p.useRef(!0);const h=p.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,a]),g=dE(u.addNestedSub,l.getState,c||l.getState,h,i);return p.useDebugValue(g),g}}const ro=t_();var ft={};/** + * @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 oy=Symbol.for("react.element"),iy=Symbol.for("react.portal"),qf=Symbol.for("react.fragment"),Xf=Symbol.for("react.strict_mode"),Qf=Symbol.for("react.profiler"),Zf=Symbol.for("react.provider"),Jf=Symbol.for("react.context"),n_=Symbol.for("react.server_context"),ep=Symbol.for("react.forward_ref"),tp=Symbol.for("react.suspense"),np=Symbol.for("react.suspense_list"),rp=Symbol.for("react.memo"),op=Symbol.for("react.lazy"),r_=Symbol.for("react.offscreen"),fE;fE=Symbol.for("react.module.reference");function Tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case oy:switch(e=e.type,e){case qf:case Qf:case Xf:case tp:case np:return e;default:switch(e=e&&e.$$typeof,e){case n_:case Jf:case ep:case op:case rp:case Zf:return e;default:return t}}case iy:return t}}}ft.ContextConsumer=Jf;ft.ContextProvider=Zf;ft.Element=oy;ft.ForwardRef=ep;ft.Fragment=qf;ft.Lazy=op;ft.Memo=rp;ft.Portal=iy;ft.Profiler=Qf;ft.StrictMode=Xf;ft.Suspense=tp;ft.SuspenseList=np;ft.isAsyncMode=function(){return!1};ft.isConcurrentMode=function(){return!1};ft.isContextConsumer=function(e){return Tr(e)===Jf};ft.isContextProvider=function(e){return Tr(e)===Zf};ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===oy};ft.isForwardRef=function(e){return Tr(e)===ep};ft.isFragment=function(e){return Tr(e)===qf};ft.isLazy=function(e){return Tr(e)===op};ft.isMemo=function(e){return Tr(e)===rp};ft.isPortal=function(e){return Tr(e)===iy};ft.isProfiler=function(e){return Tr(e)===Qf};ft.isStrictMode=function(e){return Tr(e)===Xf};ft.isSuspense=function(e){return Tr(e)===tp};ft.isSuspenseList=function(e){return Tr(e)===np};ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qf||e===Qf||e===Xf||e===tp||e===np||e===r_||typeof e=="object"&&e!==null&&(e.$$typeof===op||e.$$typeof===rp||e.$$typeof===Zf||e.$$typeof===Jf||e.$$typeof===ep||e.$$typeof===fE||e.getModuleId!==void 0)};ft.typeOf=Tr;function o_(){const e=XN();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const y1={notify(){},get:()=>[]};function i_(e,t){let n,r=y1;function o(d){return l(),r.subscribe(d)}function i(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return!!n}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=o_())}function u(){n&&(n(),n=void 0,r.clear(),r=y1)}const c={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const a_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",s_=a_?p.useLayoutEffect:p.useEffect;function l_({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const a=p.useMemo(()=>{const u=i_(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}},[e,r,o,i]),s=p.useMemo(()=>e.getState(),[e]);s_(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||ci;return p.createElement(l.Provider,{value:a},n)}function pE(e=ci){const t=e===ci?cE:ry(e);return function(){const{store:r}=t();return r}}const u_=pE();function c_(e=ci){const t=e===ci?u_:pE(e);return function(){return t().dispatch}}const Io=c_();JN(KN.useSyncExternalStoreWithSelector);qN(ri.unstable_batchedUpdates);function Nr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:ay(e)?2:sy(e)?3:0}function Ba(e,t){return Es(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function d_(e,t){return Es(e)===2?e.get(t):e[t]}function hE(e,t,n){var r=Es(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function mE(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ay(e){return v_&&e instanceof Map}function sy(e){return y_&&e instanceof Set}function ki(e){return e.o||e.t}function ly(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=vE(e);delete t[St];for(var n=Va(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=f_),Object.freeze(e),t&&Ki(e,function(n,r){return uy(r,!0)},!0)),e}function f_(){Nr(2)}function cy(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function oo(e){var t=sg[e];return t||Nr(18,e),t}function p_(e,t){sg[e]||(sg[e]=t)}function og(){return eu}function wh(e,t){t&&(oo("Patches"),e.u=[],e.s=[],e.v=t)}function Od(e){ig(e),e.p.forEach(h_),e.p=null}function ig(e){e===eu&&(eu=e.l)}function x1(e){return eu={p:[],l:eu,h:e,m:!0,_:0}}function h_(e){var t=e[St];t.i===0||t.i===1?t.j():t.g=!0}function Sh(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||oo("ES5").S(t,e,r),r?(n[St].P&&(Od(t),Nr(4)),Po(e)&&(e=Dd(t,e),t.l||Ad(t,e)),t.u&&oo("Patches").M(n[St].t,e,t.u,t.s)):e=Dd(t,n,[]),Od(t),t.u&&t.v(t.u,t.s),e!==gE?e:void 0}function Dd(e,t,n){if(cy(t))return t;var r=t[St];if(!r)return Ki(t,function(s,l){return b1(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Ad(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=ly(r.k):r.o,i=o,a=!1;r.i===3&&(i=new Set(o),o.clear(),a=!0),Ki(i,function(s,l){return b1(e,r,o,s,l,n,a)}),Ad(e,o,!1),n&&e.u&&oo("Patches").N(r,n,e.u,e.s)}return r.o}function b1(e,t,n,r,o,i,a){if(di(o)){var s=Dd(e,o,i&&t&&t.i!==3&&!Ba(t.R,r)?i.concat(r):void 0);if(hE(n,r,s),!di(s))return;e.m=!1}else a&&n.add(o);if(Po(o)&&!cy(o)){if(!e.h.D&&e._<1)return;Dd(e,o),t&&t.A.l||Ad(e,o)}}function Ad(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&uy(t,n)}function Ch(e,t){var n=e[St];return(n?ki(n):e)[t]}function w1(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Uo(e){e.P||(e.P=!0,e.l&&Uo(e.l))}function Ph(e){e.o||(e.o=ly(e.t))}function ag(e,t,n){var r=ay(t)?oo("MapSet").F(t,n):sy(t)?oo("MapSet").T(t,n):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:og(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=s,u=tu;a&&(l=[s],u=ll);var c=Proxy.revocable(l,u),d=c.revoke,f=c.proxy;return s.k=f,s.j=d,f}(t,n):oo("ES5").J(t,n);return(n?n.A:og()).p.push(r),r}function m_(e){return di(e)||Nr(22,e),function t(n){if(!Po(n))return n;var r,o=n[St],i=Es(n);if(o){if(!o.P&&(o.i<4||!oo("ES5").K(o)))return o.t;o.I=!0,r=S1(n,i),o.I=!1}else r=S1(n,i);return Ki(r,function(a,s){o&&d_(o.t,a)===s||hE(r,a,t(s))}),i===3?new Set(r):r}(e)}function S1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ly(e)}function g_(){function e(i,a){var s=o[i];return s?s.enumerable=a:o[i]=s={configurable:!0,enumerable:a,get:function(){var l=this[St];return tu.get(l,i)},set:function(l){var u=this[St];tu.set(u,i,l)}},s}function t(i){for(var a=i.length-1;a>=0;a--){var s=i[a][St];if(!s.P)switch(s.i){case 5:r(s)&&Uo(s);break;case 4:n(s)&&Uo(s)}}}function n(i){for(var a=i.t,s=i.k,l=Va(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==St){var d=a[c];if(d===void 0&&!Ba(a,c))return!0;var f=s[c],h=f&&f[St];if(h?h.t!==d:!mE(f,d))return!0}}var g=!!a[St];return l.length!==Va(a).length+(g?0:1)}function r(i){var a=i.k;if(a.length!==i.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l1?v-1:0),x=1;x1?c-1:0),f=1;f=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=oo("Patches").$;return di(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),nr=new b_,yE=nr.produce;nr.produceWithPatches.bind(nr);nr.setAutoFreeze.bind(nr);nr.setUseProxies.bind(nr);nr.applyPatches.bind(nr);nr.createDraft.bind(nr);nr.finishDraft.bind(nr);function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function w_(e,t){if(nu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function S_(e){var t=w_(e,"string");return nu(t)==="symbol"?t:String(t)}function C_(e,t,n){return t=S_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R1(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(gn(1));return n(xE)(e,t)}if(typeof e!="function")throw new Error(gn(2));var o=e,i=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(gn(3));return i}function d(m){if(typeof m!="function")throw new Error(gn(4));if(l)throw new Error(gn(5));var w=!0;return u(),s.push(m),function(){if(w){if(l)throw new Error(gn(6));w=!1,u();var y=s.indexOf(m);s.splice(y,1),a=null}}}function f(m){if(!P_(m))throw new Error(gn(7));if(typeof m.type>"u")throw new Error(gn(8));if(l)throw new Error(gn(9));try{l=!0,i=o(i,m)}finally{l=!1}for(var w=a=s,v=0;v"u")throw new Error(gn(12));if(typeof n(void 0,{type:Id.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(gn(13))})}function k_(e){for(var t=Object.keys(e),n={},r=0;r"u")throw u&&u.type,new Error(gn(14));d[h]=w,c=c||w!==m}return c=c||i.length!==Object.keys(l).length,c?d:l}}function Ld(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]o.auth.user),n=Io(),r=()=>{localStorage.removeItem("expenseTrackerToken"),n(ej()),e("/login"),n(qt(["User logged out",!0])),setTimeout(()=>n(qt(null)),5e3)};return C.jsx(Co,{sx:{flexGrow:1},children:C.jsx(sI,{position:"static",children:C.jsxs(gI,{children:[C.jsx(At,{variant:"h6",component:"div",sx:{flexGrow:1},children:C.jsx(Ko,{style:mc,to:"/",children:"Expense Tracker"})}),t&&C.jsxs(C.Fragment,{children:[C.jsx(mr,{color:"inherit",children:C.jsx(Ko,{style:mc,to:"/category",children:"category"})}),C.jsx(mr,{color:"inherit",onClick:r,children:"Logout"})]}),!t&&C.jsxs(C.Fragment,{children:[C.jsx(mr,{color:"inherit",children:C.jsx(Ko,{style:mc,to:"/login",children:"Login"})}),C.jsx(mr,{color:"inherit",children:C.jsx(Ko,{style:mc,to:"/register",children:"Register"})})]})]})})})}function kE(e,t){return function(){return e.apply(t,arguments)}}const{toString:rj}=Object.prototype,{getPrototypeOf:py}=Object,sp=(e=>t=>{const n=rj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lo=e=>(e=e.toLowerCase(),t=>sp(t)===e),lp=e=>t=>typeof t===e,{isArray:ks}=Array,ru=lp("undefined");function oj(e){return e!==null&&!ru(e)&&e.constructor!==null&&!ru(e.constructor)&&yr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const RE=lo("ArrayBuffer");function ij(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&RE(e.buffer),t}const aj=lp("string"),yr=lp("function"),TE=lp("number"),up=e=>e!==null&&typeof e=="object",sj=e=>e===!0||e===!1,Qc=e=>{if(sp(e)!=="object")return!1;const t=py(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lj=lo("Date"),uj=lo("File"),cj=lo("Blob"),dj=lo("FileList"),fj=e=>up(e)&&yr(e.pipe),pj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yr(e.append)&&((t=sp(e))==="formdata"||t==="object"&&yr(e.toString)&&e.toString()==="[object FormData]"))},hj=lo("URLSearchParams"),mj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ru(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ks(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const $E=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),OE=e=>!ru(e)&&e!==$E;function ug(){const{caseless:e}=OE(this)&&this||{},t={},n=(r,o)=>{const i=e&&ME(t,o)||o;Qc(t[i])&&Qc(r)?t[i]=ug(t[i],r):Qc(r)?t[i]=ug({},r):ks(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Ru(t,(o,i)=>{n&&yr(o)?e[i]=kE(o,n):e[i]=o},{allOwnKeys:r}),e),vj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yj=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xj=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&py(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},wj=e=>{if(!e)return null;if(ks(e))return e;let t=e.length;if(!TE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&py(Uint8Array)),Cj=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Pj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ej=lo("HTMLFormElement"),kj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),I1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Rj=lo("RegExp"),DE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ru(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Tj=e=>{DE(e,(t,n)=>{if(yr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(yr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Mj=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ks(e)?r(e):r(String(e).split(t)),n},$j=()=>{},Oj=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Th="abcdefghijklmnopqrstuvwxyz",L1="0123456789",AE={DIGIT:L1,ALPHA:Th,ALPHA_DIGIT:Th+Th.toUpperCase()+L1},Dj=(e=16,t=AE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Aj(e){return!!(e&&yr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ij=e=>{const t=new Array(10),n=(r,o)=>{if(up(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=ks(r)?[]:{};return Ru(r,(a,s)=>{const l=n(a,o+1);!ru(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Lj=lo("AsyncFunction"),Nj=e=>e&&(up(e)||yr(e))&&yr(e.then)&&yr(e.catch),q={isArray:ks,isArrayBuffer:RE,isBuffer:oj,isFormData:pj,isArrayBufferView:ij,isString:aj,isNumber:TE,isBoolean:sj,isObject:up,isPlainObject:Qc,isUndefined:ru,isDate:lj,isFile:uj,isBlob:cj,isRegExp:Rj,isFunction:yr,isStream:fj,isURLSearchParams:hj,isTypedArray:Sj,isFileList:dj,forEach:Ru,merge:ug,extend:gj,trim:mj,stripBOM:vj,inherits:yj,toFlatObject:xj,kindOf:sp,kindOfTest:lo,endsWith:bj,toArray:wj,forEachEntry:Cj,matchAll:Pj,isHTMLForm:Ej,hasOwnProperty:I1,hasOwnProp:I1,reduceDescriptors:DE,freezeMethods:Tj,toObjectSet:Mj,toCamelCase:kj,noop:$j,toFiniteNumber:Oj,findKey:ME,global:$E,isContextDefined:OE,ALPHABET:AE,generateString:Dj,isSpecCompliantForm:Aj,toJSONObject:Ij,isAsyncFn:Lj,isThenable:Nj};function Ze(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}q.inherits(Ze,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const IE=Ze.prototype,LE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{LE[e]={value:e}});Object.defineProperties(Ze,LE);Object.defineProperty(IE,"isAxiosError",{value:!0});Ze.from=(e,t,n,r,o,i)=>{const a=Object.create(IE);return q.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Ze.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const _j=null;function cg(e){return q.isPlainObject(e)||q.isArray(e)}function NE(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function N1(e,t,n){return e?e.concat(t).map(function(o,i){return o=NE(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function jj(e){return q.isArray(e)&&!e.some(cg)}const Fj=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function cp(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,w){return!q.isUndefined(w[m])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(q.isDate(g))return g.toISOString();if(!l&&q.isBlob(g))throw new Ze("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(g)||q.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,m,w){let v=g;if(g&&!w&&typeof g=="object"){if(q.endsWith(m,"{}"))m=r?m:m.slice(0,-2),g=JSON.stringify(g);else if(q.isArray(g)&&jj(g)||(q.isFileList(g)||q.endsWith(m,"[]"))&&(v=q.toArray(g)))return m=NE(m),v.forEach(function(x,b){!(q.isUndefined(x)||x===null)&&t.append(a===!0?N1([m],b,i):a===null?m:m+"[]",u(x))}),!1}return cg(g)?!0:(t.append(N1(w,m,i),u(g)),!1)}const d=[],f=Object.assign(Fj,{defaultVisitor:c,convertValue:u,isVisitable:cg});function h(g,m){if(!q.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),q.forEach(g,function(v,y){(!(q.isUndefined(v)||v===null)&&o.call(t,v,q.isString(y)?y.trim():y,m,f))===!0&&h(v,m?m.concat(y):[y])}),d.pop()}}if(!q.isObject(e))throw new TypeError("data must be an object");return h(e),t}function _1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function hy(e,t){this._pairs=[],e&&cp(e,this,t)}const _E=hy.prototype;_E.append=function(t,n){this._pairs.push([t,n])};_E.toString=function(t){const n=t?function(r){return t.call(this,r,_1)}:_1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jE(e,t,n){if(!t)return e;const r=n&&n.encode||zj,o=n&&n.serialize;let i;if(o?i=o(t,n):i=q.isURLSearchParams(t)?t.toString():new hy(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bj{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const j1=Bj,FE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vj=typeof URLSearchParams<"u"?URLSearchParams:hy,Uj=typeof FormData<"u"?FormData:null,Wj=typeof Blob<"u"?Blob:null,Hj=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Yj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),jr={isBrowser:!0,classes:{URLSearchParams:Vj,FormData:Uj,Blob:Wj},isStandardBrowserEnv:Hj,isStandardBrowserWebWorkerEnv:Yj,protocols:["http","https","file","blob","url","data"]};function Kj(e,t){return cp(e,new jr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return jr.isNode&&q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Gj(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qj(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&q.isArray(o)?o.length:a,l?(q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&q.isArray(o[a])&&(o[a]=qj(o[a])),!s)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,(r,o)=>{t(Gj(r),o,n,0)}),n}return null}function Xj(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const my={transitional:FE,adapter:jr.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=q.isObject(t);if(i&&q.isHTMLForm(t)&&(t=new FormData(t)),q.isFormData(t))return o&&o?JSON.stringify(zE(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Kj(t,this.formSerializer).toString();if((s=q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cp(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Xj(t)):t}],transformResponse:[function(t){const n=this.transitional||my.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Ze.from(s,Ze.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jr.classes.FormData,Blob:jr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],e=>{my.headers[e]={}});const gy=my,Qj=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zj=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Qj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},F1=Symbol("internals");function Gs(e){return e&&String(e).trim().toLowerCase()}function Zc(e){return e===!1||e==null?e:q.isArray(e)?e.map(Zc):String(e)}function Jj(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Mh(e,t,n,r,o){if(q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function tF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nF(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class dp{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,u){const c=Gs(l);if(!c)throw new Error("header name must be a non-empty string");const d=q.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Zc(s))}const a=(s,l)=>q.forEach(s,(u,c)=>i(u,c,l));return q.isPlainObject(t)||t instanceof this.constructor?a(t,n):q.isString(t)&&(t=t.trim())&&!eF(t)?a(Zj(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Gs(t),t){const r=q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Jj(o);if(q.isFunction(n))return n.call(this,o,r);if(q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Gs(t),t){const r=q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Mh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Gs(a),a){const s=q.findKey(r,a);s&&(!n||Mh(r,r[s],s,n))&&(delete r[s],o=!0)}}return q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Mh(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return q.forEach(this,(o,i)=>{const a=q.findKey(r,i);if(a){n[a]=Zc(o),delete n[i];return}const s=t?tF(i):String(i).trim();s!==i&&delete n[i],n[s]=Zc(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[F1]=this[F1]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=Gs(a);r[s]||(nF(o,a),r[s]=!0)}return q.isArray(t)?t.forEach(i):i(t),this}}dp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.reduceDescriptors(dp.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});q.freezeMethods(dp);const yo=dp;function $h(e,t){const n=this||gy,r=t||n,o=yo.from(r.headers);let i=r.data;return q.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function BE(e){return!!(e&&e.__CANCEL__)}function Tu(e,t,n){Ze.call(this,e??"canceled",Ze.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(Tu,Ze,{__CANCEL__:!0});function rF(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const oF=jr.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,a,s){const l=[];l.push(n+"="+encodeURIComponent(r)),q.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),q.isString(i)&&l.push("path="+i),q.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function iF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aF(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function VE(e,t){return e&&!iF(t)?aF(e,t):t}const sF=jr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=q.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function lF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uF(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];a||(a=u),n[o]=l,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const cF=typeof XMLHttpRequest<"u",dF=cF&&function(e){return new Promise(function(n,r){let o=e.data;const i=yo.from(e.headers).normalize(),a=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}q.isFormData(o)&&(jr.isStandardBrowserEnv||jr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+g))}const c=VE(e.baseURL,e.url);u.open(e.method.toUpperCase(),jE(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const h=yo.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};rF(function(v){n(v),l()},function(v){r(v),l()},m),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Ze("Network Error",Ze.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||FE;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new Ze(g,m.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,u)),u=null},jr.isStandardBrowserEnv){const h=(e.withCredentials||sF(c))&&e.xsrfCookieName&&oF.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&q.forEach(i.toJSON(),function(g,m){u.setRequestHeader(m,g)}),q.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",z1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",z1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{u&&(r(!h||h.type?new Tu(null,e,u):h),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=lF(c);if(f&&jr.protocols.indexOf(f)===-1){r(new Ze("Unsupported protocol "+f+":",Ze.ERR_BAD_REQUEST,e));return}u.send(o||null)})},Jc={http:_j,xhr:dF};q.forEach(Jc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const UE={getAdapter:e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof yo?e.toJSON():e;function ss(e,t){t=t||{};const n={};function r(u,c,d){return q.isPlainObject(u)&&q.isPlainObject(c)?q.merge.call({caseless:d},u,c):q.isPlainObject(c)?q.merge({},c):q.isArray(c)?c.slice():c}function o(u,c,d){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!q.isUndefined(c))return r(void 0,c)}function a(u,c){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>o(V1(u),V1(c),!0)};return q.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);q.isUndefined(f)&&d!==s||(n[c]=f)}),n}const WE="1.5.0",vy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const U1={};vy.transitional=function(t,n,r){function o(i,a){return"[Axios v"+WE+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Ze(o(a," has been removed"+(n?" in "+n:"")),Ze.ERR_DEPRECATED);return n&&!U1[a]&&(U1[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function fF(e,t,n){if(typeof e!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Ze("option "+i+" must be "+l,Ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ze("Unknown option "+i,Ze.ERR_BAD_OPTION)}}const dg={assertOptions:fF,validators:vy},jo=dg.validators;class Nd{constructor(t){this.defaults=t,this.interceptors={request:new j1,response:new j1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ss(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&dg.assertOptions(r,{silentJSONParsing:jo.transitional(jo.boolean),forcedJSONParsing:jo.transitional(jo.boolean),clarifyTimeoutError:jo.transitional(jo.boolean)},!1),o!=null&&(q.isFunction(o)?n.paramsSerializer={serialize:o}:dg.assertOptions(o,{encode:jo.function,serialize:jo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&q.merge(i.common,i[n.method]);i&&q.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=yo.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const g=[B1.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),f=g.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Tu(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new yy(function(o){t=o}),cancel:t}}}const pF=yy;function hF(e){return function(n){return e.apply(null,n)}}function mF(e){return q.isObject(e)&&e.isAxiosError===!0}const fg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fg).forEach(([e,t])=>{fg[t]=e});const gF=fg;function HE(e){const t=new ed(e),n=kE(ed.prototype.request,t);return q.extend(n,ed.prototype,t,{allOwnKeys:!0}),q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return HE(ss(e,o))},n}const Wt=HE(gy);Wt.Axios=ed;Wt.CanceledError=Tu;Wt.CancelToken=pF;Wt.isCancel=BE;Wt.VERSION=WE;Wt.toFormData=cp;Wt.AxiosError=Ze;Wt.Cancel=Wt.CanceledError;Wt.all=function(t){return Promise.all(t)};Wt.spread=hF;Wt.isAxiosError=mF;Wt.mergeConfig=ss;Wt.AxiosHeaders=yo;Wt.formToJSON=e=>zE(q.isHTMLForm(e)?new FormData(e):e);Wt.getAdapter=UE.getAdapter;Wt.HttpStatusCode=gF;Wt.default=Wt;const Lo=Wt,vF=e=>({authorization:`Bearer ${e}`}),yF=async e=>(await Lo.post("/auth/register/",e)).data,xF=async e=>{const t=await Lo.post("/auth/login/",e);return localStorage.setItem("expenseTrackerToken",t.data.token),t.data},bF=async e=>await Lo.get("/user",{headers:vF(e)}),xy={register:yF,login:xF,fetchUser:bF};function wF(e){return Re("MuiSvgIcon",e)}Te("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const SF=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],CF=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(n)}`]};return ke(o,wF,r)},PF=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ue(n.color)}`],t[`fontSize${ue(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,d,f,h,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),YE=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=ne(r,SF),g=p.isValidElement(o)&&o.type==="svg",m=S({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:g}),w={};c||(w.viewBox=f);const v=CF(m);return C.jsxs(PF,S({as:s,className:fe(v.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},w,h,g&&o.props,{ownerState:m,children:[g?o.props.children:o,d?C.jsx("title",{children:d}):null]}))});YE.muiName="SvgIcon";const W1=YE;function wn(e,t){function n(r,o){return C.jsx(W1,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=W1.muiName,p.memo(p.forwardRef(n))}const EF={configure:e=>{Iv.configure(e)}},kF=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ue,createChainedFunction:Hm,createSvgIcon:wn,debounce:Dv,deprecatedPropType:yO,isMuiElement:yl,ownerDocument:Lt,ownerWindow:ui,requirePropFactory:xO,setRef:Kl,unstable_ClassNameGenerator:EF,unstable_useEnhancedEffect:cn,unstable_useId:bu,unsupportedProp:SO,useControlled:Bn,useEventCallback:Ee,useForkRef:ht,useIsFocusVisible:dP},Symbol.toStringTag,{value:"Module"}));var pt={};/** + * @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 by=Symbol.for("react.element"),wy=Symbol.for("react.portal"),fp=Symbol.for("react.fragment"),pp=Symbol.for("react.strict_mode"),hp=Symbol.for("react.profiler"),mp=Symbol.for("react.provider"),gp=Symbol.for("react.context"),RF=Symbol.for("react.server_context"),vp=Symbol.for("react.forward_ref"),yp=Symbol.for("react.suspense"),xp=Symbol.for("react.suspense_list"),bp=Symbol.for("react.memo"),wp=Symbol.for("react.lazy"),TF=Symbol.for("react.offscreen"),KE;KE=Symbol.for("react.module.reference");function Mr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case by:switch(e=e.type,e){case fp:case hp:case pp:case yp:case xp:return e;default:switch(e=e&&e.$$typeof,e){case RF:case gp:case vp:case wp:case bp:case mp:return e;default:return t}}case wy:return t}}}pt.ContextConsumer=gp;pt.ContextProvider=mp;pt.Element=by;pt.ForwardRef=vp;pt.Fragment=fp;pt.Lazy=wp;pt.Memo=bp;pt.Portal=wy;pt.Profiler=hp;pt.StrictMode=pp;pt.Suspense=yp;pt.SuspenseList=xp;pt.isAsyncMode=function(){return!1};pt.isConcurrentMode=function(){return!1};pt.isContextConsumer=function(e){return Mr(e)===gp};pt.isContextProvider=function(e){return Mr(e)===mp};pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===by};pt.isForwardRef=function(e){return Mr(e)===vp};pt.isFragment=function(e){return Mr(e)===fp};pt.isLazy=function(e){return Mr(e)===wp};pt.isMemo=function(e){return Mr(e)===bp};pt.isPortal=function(e){return Mr(e)===wy};pt.isProfiler=function(e){return Mr(e)===hp};pt.isStrictMode=function(e){return Mr(e)===pp};pt.isSuspense=function(e){return Mr(e)===yp};pt.isSuspenseList=function(e){return Mr(e)===xp};pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fp||e===hp||e===pp||e===yp||e===xp||e===TF||typeof e=="object"&&e!==null&&(e.$$typeof===wp||e.$$typeof===bp||e.$$typeof===mp||e.$$typeof===gp||e.$$typeof===vp||e.$$typeof===KE||e.getModuleId!==void 0)};pt.typeOf=Mr;const GE=e=>e.scrollTop;function _d(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function MF(e){return Re("MuiAlert",e)}const $F=Te("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),H1=$F;function OF(e){return Re("MuiIconButton",e)}const DF=Te("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),AF=DF,IF=["edge","children","className","color","disabled","disableFocusRipple","size"],LF=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ue(r)}`,o&&`edge${ue(o)}`,`size${ue(i)}`]};return ke(a,OF,t)},NF=H(rs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${AF.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),_F=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=ne(r,IF),f=S({},r,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),h=LF(f);return C.jsx(NF,S({className:fe(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:f},d,{children:i}))}),Eo=_F,jF=wn(C.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"),FF=wn(C.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),zF=wn(C.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"),BF=wn(C.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"),qE=wn(C.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"),VF=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],UF=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${ue(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ke(i,MF,o)},WF=H(Rr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?ts:ns,r=e.palette.mode==="light"?ns:ts,o=t.color||t.severity;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${H1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${H1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),HF=H("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),YF=H("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Y1=H("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),K1={success:C.jsx(jF,{fontSize:"inherit"}),warning:C.jsx(FF,{fontSize:"inherit"}),error:C.jsx(zF,{fontSize:"inherit"}),info:C.jsx(BF,{fontSize:"inherit"})},KF=p.forwardRef(function(t,n){var r,o,i,a,s,l;const u=we({props:t,name:"MuiAlert"}),{action:c,children:d,className:f,closeText:h="Close",color:g,components:m={},componentsProps:w={},icon:v,iconMapping:y=K1,onClose:x,role:b="alert",severity:P="success",slotProps:k={},slots:E={},variant:T="standard"}=u,A=ne(u,VF),M=S({},u,{color:g,severity:P,variant:T}),O=UF(M),_=(r=(o=E.closeButton)!=null?o:m.CloseButton)!=null?r:Eo,$=(i=(a=E.closeIcon)!=null?a:m.CloseIcon)!=null?i:qE,D=(s=k.closeButton)!=null?s:w.closeButton,R=(l=k.closeIcon)!=null?l:w.closeIcon;return C.jsxs(WF,S({role:b,elevation:0,ownerState:M,className:fe(O.root,f),ref:n},A,{children:[v!==!1?C.jsx(HF,{ownerState:M,className:O.icon,children:v||y[P]||K1[P]}):null,C.jsx(YF,{ownerState:M,className:O.message,children:d}),c!=null?C.jsx(Y1,{ownerState:M,className:O.action,children:c}):null,c==null&&x?C.jsx(Y1,{ownerState:M,className:O.action,children:C.jsx(_,S({size:"small","aria-label":h,title:h,color:"inherit",onClick:x},D,{children:C.jsx($,S({fontSize:"small"},R))}))}):null]}))}),GF=KF;function ls(e){return typeof e=="string"}function qF(e,t,n){return e===void 0||ls(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const XF={disableDefaultClasses:!1},QF=p.createContext(XF);function ZF(e){const{disableDefaultClasses:t}=p.useContext(QF);return n=>t?"":e(n)}function Sy(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function XE(e,t,n){return typeof e=="function"?e(t,n):e}function G1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function JF(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=fe(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),g=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},n,o,r);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const a=Sy(S({},o,r)),s=G1(r),l=G1(o),u=t(a),c=fe(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=S({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=S({},u,n,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const e5=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function yt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ne(e,e5),s=i?{}:XE(r,o),{props:l,internalRef:u}=JF(S({},a,{externalSlotProps:s})),c=ht(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return qF(n,S({},l,{ref:c}),o)}function q1(e){return e.substring(2).toLowerCase()}function t5(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=ht(t.ref,s),d=Ee(g=>{const m=u.current;u.current=!1;const w=Lt(s.current);if(!l.current||!s.current||"clientX"in g&&t5(g,w))return;if(a.current){a.current=!1;return}let v;g.composedPath?v=g.composedPath().indexOf(s.current)>-1:v=!w.documentElement.contains(g.target)||s.current.contains(g.target),!v&&(n||!m)&&o(g)}),f=g=>m=>{u.current=!0;const w=t.props[g];w&&w(m)},h={ref:c};return i!==!1&&(h[i]=f(i)),p.useEffect(()=>{if(i!==!1){const g=q1(i),m=Lt(s.current),w=()=>{a.current=!0};return m.addEventListener(g,d),m.addEventListener("touchmove",w),()=>{m.removeEventListener(g,d),m.removeEventListener("touchmove",w)}}},[d,i]),r!==!1&&(h[r]=f(r)),p.useEffect(()=>{if(r!==!1){const g=q1(r),m=Lt(s.current);return m.addEventListener(g,d),()=>{m.removeEventListener(g,d)}}},[d,r]),C.jsx(p.Fragment,{children:p.cloneElement(t,h)})}const r5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function o5(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 i5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function a5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||i5(e))}function s5(e){const t=[],n=[];return Array.from(e.querySelectorAll(r5)).forEach((r,o)=>{const i=o5(r);i===-1||!a5(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function l5(){return!0}function QE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=s5,isEnabled:a=l5,open:s}=e,l=p.useRef(!1),u=p.useRef(null),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(!1),g=p.useRef(null),m=ht(t.ref,g),w=p.useRef(null);p.useEffect(()=>{!s||!g.current||(h.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!g.current)return;const x=Lt(g.current);return g.current.contains(x.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),p.useEffect(()=>{if(!s||!g.current)return;const x=Lt(g.current),b=E=>{const{current:T}=g;if(T!==null){if(!x.hasFocus()||r||!a()||l.current){l.current=!1;return}if(!T.contains(x.activeElement)){if(E&&f.current!==E.target||x.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let O=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(O=i(g.current)),O.length>0){var A,M;const _=!!((A=w.current)!=null&&A.shiftKey&&((M=w.current)==null?void 0:M.key)==="Tab"),$=O[0],D=O[O.length-1];typeof $!="string"&&typeof D!="string"&&(_?D.focus():$.focus())}else T.focus()}}},P=E=>{w.current=E,!(r||!a()||E.key!=="Tab")&&x.activeElement===g.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())};x.addEventListener("focusin",b),x.addEventListener("keydown",P,!0);const k=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&b(null)},50);return()=>{clearInterval(k),x.removeEventListener("focusin",b),x.removeEventListener("keydown",P,!0)}},[n,r,o,a,s,i]);const v=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0,f.current=x.target;const b=t.props.onFocus;b&&b(x)},y=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0};return C.jsxs(p.Fragment,{children:[C.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:m,onFocus:v}),C.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}var Vn="top",Cr="bottom",Pr="right",Un="left",Cy="auto",Mu=[Vn,Cr,Pr,Un],us="start",ou="end",u5="clippingParents",ZE="viewport",qs="popper",c5="reference",X1=Mu.reduce(function(e,t){return e.concat([t+"-"+us,t+"-"+ou])},[]),JE=[].concat(Mu,[Cy]).reduce(function(e,t){return e.concat([t,t+"-"+us,t+"-"+ou])},[]),d5="beforeRead",f5="read",p5="afterRead",h5="beforeMain",m5="main",g5="afterMain",v5="beforeWrite",y5="write",x5="afterWrite",b5=[d5,f5,p5,h5,m5,g5,v5,y5,x5];function so(e){return e?(e.nodeName||"").toLowerCase():null}function rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gi(e){var t=rr(e).Element;return e instanceof t||e instanceof Element}function xr(e){var t=rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Py(e){if(typeof ShadowRoot>"u")return!1;var t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function w5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!xr(i)||!so(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function S5(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!xr(o)||!so(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const C5={name:"applyStyles",enabled:!0,phase:"write",fn:w5,effect:S5,requires:["computeStyles"]};function io(e){return e.split("-")[0]}var _i=Math.max,jd=Math.min,cs=Math.round;function pg(){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 ek(){return!/^((?!chrome|android).)*safari/i.test(pg())}function ds(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&xr(e)&&(o=e.offsetWidth>0&&cs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&cs(r.height)/e.offsetHeight||1);var a=Gi(e)?rr(e):window,s=a.visualViewport,l=!ek()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function Ey(e){var t=ds(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function tk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Py(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ko(e){return rr(e).getComputedStyle(e)}function P5(e){return["table","td","th"].indexOf(so(e))>=0}function vi(e){return((Gi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sp(e){return so(e)==="html"?e:e.assignedSlot||e.parentNode||(Py(e)?e.host:null)||vi(e)}function Q1(e){return!xr(e)||ko(e).position==="fixed"?null:e.offsetParent}function E5(e){var t=/firefox/i.test(pg()),n=/Trident/i.test(pg());if(n&&xr(e)){var r=ko(e);if(r.position==="fixed")return null}var o=Sp(e);for(Py(o)&&(o=o.host);xr(o)&&["html","body"].indexOf(so(o))<0;){var i=ko(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function $u(e){for(var t=rr(e),n=Q1(e);n&&P5(n)&&ko(n).position==="static";)n=Q1(n);return n&&(so(n)==="html"||so(n)==="body"&&ko(n).position==="static")?t:n||E5(e)||t}function ky(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sl(e,t,n){return _i(e,jd(t,n))}function k5(e,t,n){var r=Sl(e,t,n);return r>n?n:r}function nk(){return{top:0,right:0,bottom:0,left:0}}function rk(e){return Object.assign({},nk(),e)}function ok(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var R5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,rk(typeof t!="number"?t:ok(t,Mu))};function T5(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=io(n.placement),l=ky(s),u=[Un,Pr].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var d=R5(o.padding,n),f=Ey(i),h=l==="y"?Vn:Un,g=l==="y"?Cr:Pr,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],w=a[l]-n.rects.reference[l],v=$u(i),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,x=m/2-w/2,b=d[h],P=y-f[c]-d[g],k=y/2-f[c]/2+x,E=Sl(b,k,P),T=l;n.modifiersData[r]=(t={},t[T]=E,t.centerOffset=E-k,t)}}function M5(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||tk(t.elements.popper,o)&&(t.elements.arrow=o))}const $5={name:"arrow",enabled:!0,phase:"main",fn:T5,effect:M5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fs(e){return e.split("-")[1]}var O5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function D5(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:cs(n*o)/o||0,y:cs(r*o)/o||0}}function Z1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,g=a.y,m=g===void 0?0:g,w=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=w.x,m=w.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),x=Un,b=Vn,P=window;if(u){var k=$u(n),E="clientHeight",T="clientWidth";if(k===rr(n)&&(k=vi(n),ko(k).position!=="static"&&s==="absolute"&&(E="scrollHeight",T="scrollWidth")),k=k,o===Vn||(o===Un||o===Pr)&&i===ou){b=Cr;var A=d&&k===P&&P.visualViewport?P.visualViewport.height:k[E];m-=A-r.height,m*=l?1:-1}if(o===Un||(o===Vn||o===Cr)&&i===ou){x=Pr;var M=d&&k===P&&P.visualViewport?P.visualViewport.width:k[T];h-=M-r.width,h*=l?1:-1}}var O=Object.assign({position:s},u&&O5),_=c===!0?D5({x:h,y:m},rr(n)):{x:h,y:m};if(h=_.x,m=_.y,l){var $;return Object.assign({},O,($={},$[b]=y?"0":"",$[x]=v?"0":"",$.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",$))}return Object.assign({},O,(t={},t[b]=y?m+"px":"",t[x]=v?h+"px":"",t.transform="",t))}function A5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:io(t.placement),variation:fs(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,Z1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const I5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A5,data:{}};var gc={passive:!0};function L5(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=rr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,gc)}),s&&l.addEventListener("resize",n.update,gc),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,gc)}),s&&l.removeEventListener("resize",n.update,gc)}}const N5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:L5,data:{}};var _5={left:"right",right:"left",bottom:"top",top:"bottom"};function td(e){return e.replace(/left|right|bottom|top/g,function(t){return _5[t]})}var j5={start:"end",end:"start"};function J1(e){return e.replace(/start|end/g,function(t){return j5[t]})}function Ry(e){var t=rr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ty(e){return ds(vi(e)).left+Ry(e).scrollLeft}function F5(e,t){var n=rr(e),r=vi(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=ek();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Ty(e),y:l}}function z5(e){var t,n=vi(e),r=Ry(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Ty(e),l=-r.scrollTop;return ko(o||n).direction==="rtl"&&(s+=_i(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function My(e){var t=ko(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ik(e){return["html","body","#document"].indexOf(so(e))>=0?e.ownerDocument.body:xr(e)&&My(e)?e:ik(Sp(e))}function Cl(e,t){var n;t===void 0&&(t=[]);var r=ik(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=rr(r),a=o?[i].concat(i.visualViewport||[],My(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Cl(Sp(a)))}function hg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function B5(e,t){var n=ds(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function eb(e,t,n){return t===ZE?hg(F5(e,n)):Gi(t)?B5(t,n):hg(z5(vi(e)))}function V5(e){var t=Cl(Sp(e)),n=["absolute","fixed"].indexOf(ko(e).position)>=0,r=n&&xr(e)?$u(e):e;return Gi(r)?t.filter(function(o){return Gi(o)&&tk(o,r)&&so(o)!=="body"}):[]}function U5(e,t,n,r){var o=t==="clippingParents"?V5(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=eb(e,u,r);return l.top=_i(c.top,l.top),l.right=jd(c.right,l.right),l.bottom=jd(c.bottom,l.bottom),l.left=_i(c.left,l.left),l},eb(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ak(e){var t=e.reference,n=e.element,r=e.placement,o=r?io(r):null,i=r?fs(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Vn:l={x:a,y:t.y-n.height};break;case Cr:l={x:a,y:t.y+t.height};break;case Pr:l={x:t.x+t.width,y:s};break;case Un:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?ky(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case us:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ou:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function iu(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?u5:s,u=n.rootBoundary,c=u===void 0?ZE:u,d=n.elementContext,f=d===void 0?qs:d,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,w=m===void 0?0:m,v=rk(typeof w!="number"?w:ok(w,Mu)),y=f===qs?c5:qs,x=e.rects.popper,b=e.elements[g?y:f],P=U5(Gi(b)?b:b.contextElement||vi(e.elements.popper),l,c,a),k=ds(e.elements.reference),E=ak({reference:k,element:x,strategy:"absolute",placement:o}),T=hg(Object.assign({},x,E)),A=f===qs?T:k,M={top:P.top-A.top+v.top,bottom:A.bottom-P.bottom+v.bottom,left:P.left-A.left+v.left,right:A.right-P.right+v.right},O=e.modifiersData.offset;if(f===qs&&O){var _=O[o];Object.keys(M).forEach(function($){var D=[Pr,Cr].indexOf($)>=0?1:-1,R=[Vn,Cr].indexOf($)>=0?"y":"x";M[$]+=_[R]*D})}return M}function W5(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?JE:l,c=fs(r),d=c?s?X1:X1.filter(function(g){return fs(g)===c}):Mu,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var h=f.reduce(function(g,m){return g[m]=iu(e,{placement:m,boundary:o,rootBoundary:i,padding:a})[io(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function H5(e){if(io(e)===Cy)return[];var t=td(e);return[J1(e),t,J1(t)]}function Y5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,m=n.allowedAutoPlacements,w=t.options.placement,v=io(w),y=v===w,x=l||(y||!g?[td(w)]:H5(w)),b=[w].concat(x).reduce(function(B,te){return B.concat(io(te)===Cy?W5(t,{placement:te,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:m}):te)},[]),P=t.rects.reference,k=t.rects.popper,E=new Map,T=!0,A=b[0],M=0;M=0,R=D?"width":"height",N=iu(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),j=D?$?Pr:Un:$?Cr:Vn;P[R]>k[R]&&(j=td(j));var I=td(j),L=[];if(i&&L.push(N[_]<=0),s&&L.push(N[j]<=0,N[I]<=0),L.every(function(B){return B})){A=O,T=!1;break}E.set(O,L)}if(T)for(var F=g?3:1,K=function(te){var J=b.find(function(G){var se=E.get(G);if(se)return se.slice(0,te).every(function(pe){return pe})});if(J)return A=J,"break"},ae=F;ae>0;ae--){var ie=K(ae);if(ie==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const K5={name:"flip",enabled:!0,phase:"main",fn:Y5,requiresIfExists:["offset"],data:{_skip:!1}};function tb(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function nb(e){return[Vn,Pr,Cr,Un].some(function(t){return e[t]>=0})}function G5(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=iu(t,{elementContext:"reference"}),s=iu(t,{altBoundary:!0}),l=tb(a,r),u=tb(s,o,i),c=nb(l),d=nb(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const q5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:G5};function X5(e,t,n){var r=io(e),o=[Un,Vn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Un,Pr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Q5(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=JE.reduce(function(c,d){return c[d]=X5(d,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Z5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Q5};function J5(e){var t=e.state,n=e.name;t.modifiersData[n]=ak({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ez={name:"popperOffsets",enabled:!0,phase:"read",fn:J5,data:{}};function tz(e){return e==="x"?"y":"x"}function nz(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,w=iu(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=io(t.placement),y=fs(t.placement),x=!y,b=ky(v),P=tz(b),k=t.modifiersData.popperOffsets,E=t.rects.reference,T=t.rects.popper,A=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,M=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(i){var $,D=b==="y"?Vn:Un,R=b==="y"?Cr:Pr,N=b==="y"?"height":"width",j=k[b],I=j+w[D],L=j-w[R],F=h?-T[N]/2:0,K=y===us?E[N]:T[N],ae=y===us?-T[N]:-E[N],ie=t.elements.arrow,B=h&&ie?Ey(ie):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nk(),J=te[D],G=te[R],se=Sl(0,E[N],B[N]),pe=x?E[N]/2-F-se-J-M.mainAxis:K-se-J-M.mainAxis,le=x?-E[N]/2+F+se+G+M.mainAxis:ae+se+G+M.mainAxis,re=t.elements.arrow&&$u(t.elements.arrow),ee=re?b==="y"?re.clientTop||0:re.clientLeft||0:0,oe=($=O==null?void 0:O[b])!=null?$:0,me=j+pe-oe-ee,V=j+le-oe,ge=Sl(h?jd(I,me):I,j,h?_i(L,V):L);k[b]=ge,_[b]=ge-j}if(s){var X,he=b==="x"?Vn:Un,be=b==="x"?Cr:Pr,$e=k[P],Le=P==="y"?"height":"width",Ue=$e+w[he],et=$e-w[be],Be=[Vn,Un].indexOf(v)!==-1,tt=(X=O==null?void 0:O[P])!=null?X:0,xt=Be?Ue:$e-E[Le]-T[Le]-tt+M.altAxis,Ye=Be?$e+E[Le]+T[Le]-tt-M.altAxis:et,Se=h&&Be?k5(xt,$e,Ye):Sl(h?xt:Ue,$e,h?Ye:et);k[P]=Se,_[P]=Se-$e}t.modifiersData[r]=_}}const rz={name:"preventOverflow",enabled:!0,phase:"main",fn:nz,requiresIfExists:["offset"]};function oz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iz(e){return e===rr(e)||!xr(e)?Ry(e):oz(e)}function az(e){var t=e.getBoundingClientRect(),n=cs(t.width)/e.offsetWidth||1,r=cs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sz(e,t,n){n===void 0&&(n=!1);var r=xr(t),o=xr(t)&&az(t),i=vi(t),a=ds(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((so(t)!=="body"||My(i))&&(s=iz(t)),xr(t)?(l=ds(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ty(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function lz(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function uz(e){var t=lz(e);return b5.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function cz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dz(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var rb={placement:"bottom",modifiers:[],strategy:"absolute"};function ob(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(mz(o)||document.body)},[o,i]),cn(()=>{if(a&&!i)return Kl(n,a),()=>{Kl(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const u={ref:l};return p.cloneElement(r,u)}return C.jsx(p.Fragment,{children:r})}return C.jsx(p.Fragment,{children:a&&ri.createPortal(r,a)})});function gz(e){return Re("MuiPopper",e)}Te("MuiPopper",["root"]);const vz=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],yz=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function xz(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 mg(e){return typeof e=="function"?e():e}function bz(e){return e.nodeType!==void 0}const wz=()=>ke({root:["root"]},ZF(gz)),Sz={},Cz=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:h={},slots:g={},TransitionProps:m}=t,w=ne(t,vz),v=p.useRef(null),y=ht(v,n),x=p.useRef(null),b=ht(x,f),P=p.useRef(b);cn(()=>{P.current=b},[b]),p.useImperativeHandle(f,()=>x.current,[]);const k=xz(c,a),[E,T]=p.useState(k),[A,M]=p.useState(mg(o));p.useEffect(()=>{x.current&&x.current.forceUpdate()}),p.useEffect(()=>{o&&M(mg(o))},[o]),cn(()=>{if(!A||!u)return;const R=I=>{T(I.placement)};let N=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{R(I)}}];l!=null&&(N=N.concat(l)),d&&d.modifiers!=null&&(N=N.concat(d.modifiers));const j=hz(A,v.current,S({placement:k},d,{modifiers:N}));return P.current(j),()=>{j.destroy(),P.current(null)}},[A,s,l,u,d,k]);const O={placement:E};m!==null&&(O.TransitionProps=m);const _=wz(),$=(r=g.root)!=null?r:"div",D=yt({elementType:$,externalSlotProps:h.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:_.root});return C.jsx($,S({},D,{children:typeof i=="function"?i(O):i}))}),Pz=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=Sz,popperRef:h,style:g,transition:m=!1,slotProps:w={},slots:v={}}=t,y=ne(t,yz),[x,b]=p.useState(!0),P=()=>{b(!1)},k=()=>{b(!0)};if(!l&&!c&&(!m||x))return null;let E;if(i)E=i;else if(r){const M=mg(r);E=M&&bz(M)?Lt(M).body:Lt(null).body}const T=!c&&l&&(!m||x)?"none":void 0,A=m?{in:c,onEnter:P,onExited:k}:void 0;return C.jsx(sk,{disablePortal:s,container:E,children:C.jsx(Cz,S({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:m?!x:c,placement:d,popperOptions:f,popperRef:h,slotProps:w,slots:v},y,{style:S({position:"fixed",top:0,left:0,display:T},g),TransitionProps:A,children:o}))})});function Ez(e){const t=Lt(e);return t.body===e?ui(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Pl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ib(e){return parseInt(ui(e).getComputedStyle(e).paddingRight,10)||0}function kz(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ab(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!kz(a);s&&l&&Pl(a,o)})}function Dh(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Rz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Ez(r)){const a=fP(Lt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ib(r)+a}px`;const s=Lt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${ib(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Lt(r).body;else{const a=r.parentElement,s=ui(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function Tz(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Mz{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Pl(t.modalRef,!1);const o=Tz(n);ab(n,t.mount,t.modalRef,o,!0);const i=Dh(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Dh(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Rz(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Dh(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Pl(t.modalRef,n),ab(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Pl(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function $z(e){return typeof e=="function"?e():e}function Oz(e){return e?e.props.hasOwnProperty("in"):!1}const Dz=new Mz;function Az(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Dz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,f=p.useRef({}),h=p.useRef(null),g=p.useRef(null),m=ht(g,d),[w,v]=p.useState(!c),y=Oz(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const b=()=>Lt(h.current),P=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),k=()=>{o.mount(P(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},E=Ee(()=>{const N=$z(t)||b().body;o.add(P(),N),g.current&&k()}),T=p.useCallback(()=>o.isTopModal(P()),[o]),A=Ee(N=>{h.current=N,N&&(c&&T()?k():g.current&&Pl(g.current,x))}),M=p.useCallback(()=>{o.remove(P(),x)},[x,o]);p.useEffect(()=>()=>{M()},[M]),p.useEffect(()=>{c?E():(!y||!i)&&M()},[c,M,y,i,E]);const O=N=>j=>{var I;(I=N.onKeyDown)==null||I.call(N,j),!(j.key!=="Escape"||!T())&&(n||(j.stopPropagation(),u&&u(j,"escapeKeyDown")))},_=N=>j=>{var I;(I=N.onClick)==null||I.call(N,j),j.target===j.currentTarget&&u&&u(j,"backdropClick")};return{getRootProps:(N={})=>{const j=Sy(e);delete j.onTransitionEnter,delete j.onTransitionExited;const I=S({},j,N);return S({role:"presentation"},I,{onKeyDown:O(I),ref:m})},getBackdropProps:(N={})=>{const j=N;return S({"aria-hidden":!0},j,{onClick:_(j),open:c})},getTransitionProps:()=>{const N=()=>{v(!1),a&&a()},j=()=>{v(!0),s&&s(),i&&M()};return{onEnter:Hm(N,l.props.onEnter),onExited:Hm(j,l.props.onExited)}},rootRef:m,portalRef:A,isTopModal:T,exited:w,hasTransition:y}}function Iz(e){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=p.useRef();p.useEffect(()=>{if(!o)return;function v(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(r==null||r(y,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const s=Ee((v,y)=>{r==null||r(v,y)}),l=Ee(v=>{!r||v==null||(clearTimeout(a.current),a.current=setTimeout(()=>{s(null,"timeout")},v))});p.useEffect(()=>(o&&l(t),()=>{clearTimeout(a.current)}),[o,t,l]);const u=v=>{r==null||r(v,"clickaway")},c=()=>{clearTimeout(a.current)},d=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=v=>y=>{const x=v.onBlur;x==null||x(y),d()},h=v=>y=>{const x=v.onFocus;x==null||x(y),c()},g=v=>y=>{const x=v.onMouseEnter;x==null||x(y),c()},m=v=>y=>{const x=v.onMouseLeave;x==null||x(y),d()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",c)}},[n,d,o]),{getRootProps:(v={})=>{const y=Sy(e),x=S({},y,v);return S({role:"presentation"},x,{onBlur:f(x),onFocus:h(x),onMouseEnter:g(x),onMouseLeave:m(x)})},onClickAway:u}}const Lz=["onChange","maxRows","minRows","style","value"];function vc(e){return parseInt(e,10)||0}const Nz={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function sb(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const _z=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=ne(t,Lz),{current:u}=p.useRef(s!=null),c=p.useRef(null),d=ht(n,c),f=p.useRef(null),h=p.useRef(0),[g,m]=p.useState({outerHeightStyle:0}),w=p.useCallback(()=>{const P=c.current,E=ui(P).getComputedStyle(P);if(E.width==="0px")return{outerHeightStyle:0};const T=f.current;T.style.width=E.width,T.value=P.value||t.placeholder||"x",T.value.slice(-1)===` +`&&(T.value+=" ");const A=E.boxSizing,M=vc(E.paddingBottom)+vc(E.paddingTop),O=vc(E.borderBottomWidth)+vc(E.borderTopWidth),_=T.scrollHeight;T.value="x";const $=T.scrollHeight;let D=_;i&&(D=Math.max(Number(i)*$,D)),o&&(D=Math.min(Number(o)*$,D)),D=Math.max(D,$);const R=D+(A==="border-box"?M+O:0),N=Math.abs(D-_)<=1;return{outerHeightStyle:R,overflow:N}},[o,i,t.placeholder]),v=(P,k)=>{const{outerHeightStyle:E,overflow:T}=k;return h.current<20&&(E>0&&Math.abs((P.outerHeightStyle||0)-E)>1||P.overflow!==T)?(h.current+=1,{overflow:T,outerHeightStyle:E}):P},y=p.useCallback(()=>{const P=w();sb(P)||m(k=>v(k,P))},[w]),x=()=>{const P=w();sb(P)||ri.flushSync(()=>{m(k=>v(k,P))})};p.useEffect(()=>{const P=()=>{h.current=0,c.current&&x()},k=Dv(()=>{h.current=0,c.current&&x()});let E;const T=c.current,A=ui(T);return A.addEventListener("resize",k),typeof ResizeObserver<"u"&&(E=new ResizeObserver(P),E.observe(T)),()=>{k.clear(),A.removeEventListener("resize",k),E&&E.disconnect()}}),cn(()=>{y()}),p.useEffect(()=>{h.current=0},[s]);const b=P=>{h.current=0,u||y(),r&&r(P)};return C.jsxs(p.Fragment,{children:[C.jsx("textarea",S({value:s,onChange:b,ref:d,rows:i,style:S({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},a)},l)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:S({},Nz.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function lb(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function jz(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=lb(c));const d=c?s.filter(f=>{let h=(i||u)(f);return n&&(h=h.toLowerCase()),t&&(h=lb(h)),o==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function Ah(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Bz(e){const{unstable_isActiveElementInListbox:t=zz,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:m=!1,filterOptions:w=Fz,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionLabel:b=Y=>{var W;return(W=Y.label)!=null?W:Y},groupBy:P,handleHomeEndKeys:k=!e.freeSolo,id:E,includeInputInList:T=!1,inputValue:A,isOptionEqualToValue:M=(Y,W)=>Y===W,multiple:O=!1,onChange:_,onClose:$,onHighlightChange:D,onInputChange:R,onOpen:N,open:j,openOnFocus:I=!1,options:L,readOnly:F=!1,selectOnFocus:K=!e.freeSolo,value:ae}=e,ie=bu(E);let B=b;B=Y=>{const W=b(Y);return typeof W!="string"?String(W):W};const te=p.useRef(!1),J=p.useRef(!0),G=p.useRef(null),se=p.useRef(null),[pe,le]=p.useState(null),[re,ee]=p.useState(-1),oe=o?0:-1,me=p.useRef(oe),[V,ge]=Bn({controlled:ae,default:c,name:u}),[X,he]=Bn({controlled:A,default:"",name:u,state:"inputValue"}),[be,$e]=p.useState(!1),Le=p.useCallback((Y,W)=>{if(!(O?V.length!(v&&(O?V:[V]).some(W=>W!==null&&M(Y,W)))),{inputValue:xt&&Be?"":X,getOptionLabel:B}):[],Ce=$O({filteredOptions:Se,value:V,inputValue:X});p.useEffect(()=>{const Y=V!==Ce.value;be&&!Y||y&&!Y||Le(null,V)},[V,Le,be,Ce.value,y]);const zt=Ue&&Se.length>0&&!F,rn=Ee(Y=>{Y===-1?G.current.focus():pe.querySelector(`[data-tag-index="${Y}"]`).focus()});p.useEffect(()=>{O&&re>V.length-1&&(ee(-1),rn(-1))},[V,O,re,rn]);function Oe(Y,W){if(!se.current||Y===-1)return-1;let Z=Y;for(;;){if(W==="next"&&Z===Se.length||W==="previous"&&Z===-1)return-1;const xe=se.current.querySelector(`[data-option-index="${Z}"]`),We=g?!1:!xe||xe.disabled||xe.getAttribute("aria-disabled")==="true";if(xe&&!xe.hasAttribute("tabindex")||We)Z+=W==="next"?1:-1;else return Z}}const je=Ee(({event:Y,index:W,reason:Z="auto"})=>{if(me.current=W,W===-1?G.current.removeAttribute("aria-activedescendant"):G.current.setAttribute("aria-activedescendant",`${ie}-option-${W}`),D&&D(Y,W===-1?null:Se[W],Z),!se.current)return;const xe=se.current.querySelector(`[role="option"].${n}-focused`);xe&&(xe.classList.remove(`${n}-focused`),xe.classList.remove(`${n}-focusVisible`));let We=se.current;if(se.current.getAttribute("role")!=="listbox"&&(We=se.current.parentElement.querySelector('[role="listbox"]')),!We)return;if(W===-1){We.scrollTop=0;return}const _t=se.current.querySelector(`[data-option-index="${W}"]`);if(_t&&(_t.classList.add(`${n}-focused`),Z==="keyboard"&&_t.classList.add(`${n}-focusVisible`),We.scrollHeight>We.clientHeight&&Z!=="mouse"&&Z!=="touch")){const Yt=_t,Wr=We.clientHeight+We.scrollTop,f0=Yt.offsetTop+Yt.offsetHeight;f0>Wr?We.scrollTop=f0-We.clientHeight:Yt.offsetTop-Yt.offsetHeight*(P?1.3:0){if(!Ye)return;const _t=Oe((()=>{const Yt=Se.length-1;if(W==="reset")return oe;if(W==="start")return 0;if(W==="end")return Yt;const Wr=me.current+W;return Wr<0?Wr===-1&&T?-1:m&&me.current!==-1||Math.abs(W)>1?0:Yt:Wr>Yt?Wr===Yt+1&&T?-1:m||Math.abs(W)>1?Yt:0:Wr})(),Z);if(je({index:_t,reason:xe,event:Y}),r&&W!=="reset")if(_t===-1)G.current.value=X;else{const Yt=B(Se[_t]);G.current.value=Yt,Yt.toLowerCase().indexOf(X.toLowerCase())===0&&X.length>0&&G.current.setSelectionRange(X.length,Yt.length)}}),U=()=>{const Y=(W,Z)=>{const xe=W?B(W):"",We=Z?B(Z):"";return xe===We};if(me.current!==-1&&Ce.filteredOptions&&Ce.filteredOptions.length!==Se.length&&Ce.inputValue===X&&(O?V.length===Ce.value.length&&Ce.value.every((W,Z)=>B(V[Z])===B(W)):Y(Ce.value,V))){const W=Ce.filteredOptions[me.current];if(W&&Se.some(xe=>B(xe)===B(W)))return!0}return!1},Q=p.useCallback(()=>{if(!Ye||U())return;const Y=O?V[0]:V;if(Se.length===0||Y==null){z({diff:"reset"});return}if(se.current){if(Y!=null){const W=Se[me.current];if(O&&W&&Ah(V,xe=>M(W,xe))!==-1)return;const Z=Ah(Se,xe=>M(xe,Y));Z===-1?z({diff:"reset"}):je({index:Z});return}if(me.current>=Se.length-1){je({index:Se.length-1});return}je({index:me.current})}},[Se.length,O?!1:V,v,z,je,Ye,X,O]),ve=Ee(Y=>{Kl(se,Y),Y&&Q()});p.useEffect(()=>{Q()},[Q]);const Ie=Y=>{Ue||(et(!0),tt(!0),N&&N(Y))},De=(Y,W)=>{Ue&&(et(!1),$&&$(Y,W))},Ae=(Y,W,Z,xe)=>{if(O){if(V.length===W.length&&V.every((We,_t)=>We===W[_t]))return}else if(V===W)return;_&&_(Y,W,Z,xe),ge(W)},Me=p.useRef(!1),ye=(Y,W,Z="selectOption",xe="options")=>{let We=Z,_t=W;if(O){_t=Array.isArray(V)?V.slice():[];const Yt=Ah(_t,Wr=>M(W,Wr));Yt===-1?_t.push(W):xe!=="freeSolo"&&(_t.splice(Yt,1),We="removeOption")}Le(Y,_t),Ae(Y,_t,We,{option:W}),!f&&(!Y||!Y.ctrlKey&&!Y.metaKey)&&De(Y,We),(a===!0||a==="touch"&&Me.current||a==="mouse"&&!Me.current)&&G.current.blur()};function Qe(Y,W){if(Y===-1)return-1;let Z=Y;for(;;){if(W==="next"&&Z===V.length||W==="previous"&&Z===-1)return-1;const xe=pe.querySelector(`[data-tag-index="${Z}"]`);if(!xe||!xe.hasAttribute("tabindex")||xe.disabled||xe.getAttribute("aria-disabled")==="true")Z+=W==="next"?1:-1;else return Z}}const _e=(Y,W)=>{if(!O)return;X===""&&De(Y,"toggleInput");let Z=re;re===-1?X===""&&W==="previous"&&(Z=V.length-1):(Z+=W==="next"?1:-1,Z<0&&(Z=0),Z===V.length&&(Z=-1)),Z=Qe(Z,W),ee(Z),rn(Z)},Fe=Y=>{te.current=!0,he(""),R&&R(Y,"","clear"),Ae(Y,O?[]:null,"clear")},ot=Y=>W=>{if(Y.onKeyDown&&Y.onKeyDown(W),!W.defaultMuiPrevented&&(re!==-1&&["ArrowLeft","ArrowRight"].indexOf(W.key)===-1&&(ee(-1),rn(-1)),W.which!==229))switch(W.key){case"Home":Ye&&k&&(W.preventDefault(),z({diff:"start",direction:"next",reason:"keyboard",event:W}));break;case"End":Ye&&k&&(W.preventDefault(),z({diff:"end",direction:"previous",reason:"keyboard",event:W}));break;case"PageUp":W.preventDefault(),z({diff:-ub,direction:"previous",reason:"keyboard",event:W}),Ie(W);break;case"PageDown":W.preventDefault(),z({diff:ub,direction:"next",reason:"keyboard",event:W}),Ie(W);break;case"ArrowDown":W.preventDefault(),z({diff:1,direction:"next",reason:"keyboard",event:W}),Ie(W);break;case"ArrowUp":W.preventDefault(),z({diff:-1,direction:"previous",reason:"keyboard",event:W}),Ie(W);break;case"ArrowLeft":_e(W,"previous");break;case"ArrowRight":_e(W,"next");break;case"Enter":if(me.current!==-1&&Ye){const Z=Se[me.current],xe=x?x(Z):!1;if(W.preventDefault(),xe)return;ye(W,Z,"selectOption"),r&&G.current.setSelectionRange(G.current.value.length,G.current.value.length)}else y&&X!==""&&xt===!1&&(O&&W.preventDefault(),ye(W,X,"createOption","freeSolo"));break;case"Escape":Ye?(W.preventDefault(),W.stopPropagation(),De(W,"escape")):l&&(X!==""||O&&V.length>0)&&(W.preventDefault(),W.stopPropagation(),Fe(W));break;case"Backspace":if(O&&!F&&X===""&&V.length>0){const Z=re===-1?V.length-1:re,xe=V.slice();xe.splice(Z,1),Ae(W,xe,"removeOption",{option:V[Z]})}break;case"Delete":if(O&&!F&&X===""&&V.length>0&&re!==-1){const Z=re,xe=V.slice();xe.splice(Z,1),Ae(W,xe,"removeOption",{option:V[Z]})}break}},it=Y=>{$e(!0),I&&!te.current&&Ie(Y)},$r=Y=>{if(t(se)){G.current.focus();return}$e(!1),J.current=!0,te.current=!1,i&&me.current!==-1&&Ye?ye(Y,Se[me.current],"blur"):i&&y&&X!==""?ye(Y,X,"blur","freeSolo"):s&&Le(Y,V),De(Y,"blur")},Kn=Y=>{const W=Y.target.value;X!==W&&(he(W),tt(!1),R&&R(Y,W,"input")),W===""?!d&&!O&&Ae(Y,null,"clear"):Ie(Y)},Tt=Y=>{const W=Number(Y.currentTarget.getAttribute("data-option-index"));me.current!==W&&je({event:Y,index:W,reason:"mouse"})},Mt=Y=>{je({event:Y,index:Number(Y.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Me.current=!0},Nt=Y=>{const W=Number(Y.currentTarget.getAttribute("data-option-index"));ye(Y,Se[W],"selectOption"),Me.current=!1},lr=Y=>W=>{const Z=V.slice();Z.splice(Y,1),Ae(W,Z,"removeOption",{option:V[Y]})},uo=Y=>{Ue?De(Y,"toggleInput"):Ie(Y)},ea=Y=>{Y.currentTarget.contains(Y.target)&&Y.target.getAttribute("id")!==ie&&Y.preventDefault()},xi=Y=>{Y.currentTarget.contains(Y.target)&&(G.current.focus(),K&&J.current&&G.current.selectionEnd-G.current.selectionStart===0&&G.current.select(),J.current=!1)},No=Y=>{!h&&(X===""||!Ue)&&uo(Y)};let qe=y&&X.length>0;qe=qe||(O?V.length>0:V!==null);let Zt=Se;return P&&(Zt=Se.reduce((Y,W,Z)=>{const xe=P(W);return Y.length>0&&Y[Y.length-1].group===xe?Y[Y.length-1].options.push(W):Y.push({key:Z,index:Z,group:xe,options:[W]}),Y},[])),h&&be&&$r(),{getRootProps:(Y={})=>S({"aria-owns":zt?`${ie}-listbox`:null},Y,{onKeyDown:ot(Y),onMouseDown:ea,onClick:xi}),getInputLabelProps:()=>({id:`${ie}-label`,htmlFor:ie}),getInputProps:()=>({id:ie,value:X,onBlur:$r,onFocus:it,onChange:Kn,onMouseDown:No,"aria-activedescendant":Ye?"":null,"aria-autocomplete":r?"both":"list","aria-controls":zt?`${ie}-listbox`:void 0,"aria-expanded":zt,autoComplete:"off",ref:G,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,onClick:Fe}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:uo}),getTagProps:({index:Y})=>S({key:Y,"data-tag-index":Y,tabIndex:-1},!F&&{onDelete:lr(Y)}),getListboxProps:()=>({role:"listbox",id:`${ie}-listbox`,"aria-labelledby":`${ie}-label`,ref:ve,onMouseDown:Y=>{Y.preventDefault()}}),getOptionProps:({index:Y,option:W})=>{const Z=(O?V:[V]).some(We=>We!=null&&M(W,We)),xe=x?x(W):!1;return{key:B(W),tabIndex:-1,role:"option",id:`${ie}-option-${Y}`,onMouseMove:Tt,onClick:Nt,onTouchStart:Mt,"data-option-index":Y,"aria-disabled":xe,"aria-selected":Z}},id:ie,inputValue:X,value:V,dirty:qe,expanded:Ye&&pe,popupOpen:Ye,focused:be||re!==-1,anchorEl:pe,setAnchorEl:le,focusedTag:re,groupedOptions:Zt}}const Vz=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Uz=H(Pz,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wz=p.forwardRef(function(t,n){var r;const o=zf(),i=we({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:g,placement:m,popperOptions:w,popperRef:v,transition:y,slots:x,slotProps:b}=i,P=ne(i,Vz),k=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,E=S({anchorEl:a,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:g,placement:m,popperOptions:w,popperRef:v,transition:y},P);return C.jsx(Uz,S({as:s,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:b??u},E,{ref:n}))}),Cp=Wz;function Hz(e){return Re("MuiListSubheader",e)}Te("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Yz=["className","color","component","disableGutters","disableSticky","inset"],Kz=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${ue(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return ke(a,Hz,t)},Gz=H("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>S({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),lk=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=ne(r,Yz),d=S({},r,{color:i,component:a,disableGutters:s,disableSticky:l,inset:u}),f=Kz(d);return C.jsx(Gz,S({as:a,className:fe(f.root,o),ref:n,ownerState:d},c))});lk.muiSkipListHighlight=!0;const qz=lk,Xz=wn(C.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 Qz(e){return Re("MuiChip",e)}const Zz=Te("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),nt=Zz,Jz=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],e4=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${ue(r)}`,`color${ue(o)}`,s&&"clickable",s&&`clickableColor${ue(o)}`,a&&"deletable",a&&`deletableColor${ue(o)}`,`${l}${ue(o)}`],label:["label",`label${ue(r)}`],avatar:["avatar",`avatar${ue(r)}`,`avatarColor${ue(o)}`],icon:["icon",`icon${ue(r)}`,`iconColor${ue(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(r)}`,`deleteIconColor${ue(o)}`,`deleteIcon${ue(l)}Color${ue(o)}`]};return ke(u,Qz,t)},t4=H("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${nt.avatar}`]:t.avatar},{[`& .${nt.avatar}`]:t[`avatar${ue(s)}`]},{[`& .${nt.avatar}`]:t[`avatarColor${ue(r)}`]},{[`& .${nt.icon}`]:t.icon},{[`& .${nt.icon}`]:t[`icon${ue(s)}`]},{[`& .${nt.icon}`]:t[`iconColor${ue(o)}`]},{[`& .${nt.deleteIcon}`]:t.deleteIcon},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${ue(s)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIconColor${ue(r)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${ue(l)}Color${ue(r)}`]},t.root,t[`size${ue(s)}`],t[`color${ue(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ue(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ue(r)}`],t[l],t[`${l}${ue(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${nt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${nt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nt.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${nt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ge(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)`:Ge(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ge(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ge(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ge(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ge(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${nt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nt.avatar}`]:{marginLeft:4},[`& .${nt.avatarSmall}`]:{marginLeft:2},[`& .${nt.icon}`]:{marginLeft:4},[`& .${nt.iconSmall}`]:{marginLeft:2},[`& .${nt.deleteIcon}`]:{marginRight:5},[`& .${nt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ge(e.palette[t.color].main,.7)}`,[`&.${nt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ge(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${nt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ge(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),n4=H("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ue(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function cb(e){return e.key==="Backspace"||e.key==="Delete"}const r4=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:h,onDelete:g,onKeyDown:m,onKeyUp:w,size:v="medium",variant:y="filled",tabIndex:x,skipFocusWhenDisabled:b=!1}=r,P=ne(r,Jz),k=p.useRef(null),E=ht(k,n),T=L=>{L.stopPropagation(),g&&g(L)},A=L=>{L.currentTarget===L.target&&cb(L)&&L.preventDefault(),m&&m(L)},M=L=>{L.currentTarget===L.target&&(g&&cb(L)?g(L):L.key==="Escape"&&k.current&&k.current.blur()),w&&w(L)},O=a!==!1&&h?!0:a,_=O||g?rs:l||"div",$=S({},r,{component:_,disabled:c,size:v,color:s,iconColor:p.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:O,variant:y}),D=e4($),R=_===rs?S({component:l||"div",focusVisibleClassName:D.focusVisible},g&&{disableRipple:!0}):{};let N=null;g&&(N=u&&p.isValidElement(u)?p.cloneElement(u,{className:fe(u.props.className,D.deleteIcon),onClick:T}):C.jsx(Xz,{className:fe(D.deleteIcon),onClick:T}));let j=null;o&&p.isValidElement(o)&&(j=p.cloneElement(o,{className:fe(D.avatar,o.props.className)}));let I=null;return d&&p.isValidElement(d)&&(I=p.cloneElement(d,{className:fe(D.icon,d.props.className)})),C.jsxs(t4,S({as:_,className:fe(D.root,i),disabled:O&&c?!0:void 0,onClick:h,onKeyDown:A,onKeyUp:M,ref:E,tabIndex:b&&c?-1:x,ownerState:$},R,P,{children:[j||I,C.jsx(n4,{className:fe(D.label),ownerState:$,children:f}),N]}))}),uk=r4;function Rs({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const o4=p.createContext(void 0),Pp=o4;function Qi(){return p.useContext(Pp)}function ck(e){return C.jsx(ID,S({},e,{defaultTheme:Uf,themeId:Hi}))}function db(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Fd(e,t=!1){return e&&(db(e.value)&&e.value!==""||t&&db(e.defaultValue)&&e.defaultValue!=="")}function i4(e){return e.startAdornment}function a4(e){return Re("MuiInputBase",e)}const s4=Te("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qn=s4,l4=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ep=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ue(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kp=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},u4=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:h,type:g}=e,m={root:["root",`color${ue(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${ue(f)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ke(m,a4,t)},Rp=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ep})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${qn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Tp=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${qn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${qn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),c4=C.jsx(ck,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),d4=p.forwardRef(function(t,n){var r;const o=we({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:g,fullWidth:m=!1,id:w,inputComponent:v="input",inputProps:y={},inputRef:x,maxRows:b,minRows:P,multiline:k=!1,name:E,onBlur:T,onChange:A,onClick:M,onFocus:O,onKeyDown:_,onKeyUp:$,placeholder:D,readOnly:R,renderSuffix:N,rows:j,slotProps:I={},slots:L={},startAdornment:F,type:K="text",value:ae}=o,ie=ne(o,l4),B=y.value!=null?y.value:ae,{current:te}=p.useRef(B!=null),J=p.useRef(),G=p.useCallback(Se=>{},[]),se=ht(J,x,y.ref,G),[pe,le]=p.useState(!1),re=Qi(),ee=Rs({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ee.focused=re?re.focused:pe,p.useEffect(()=>{!re&&f&&pe&&(le(!1),T&&T())},[re,f,pe,T]);const oe=re&&re.onFilled,me=re&&re.onEmpty,V=p.useCallback(Se=>{Fd(Se)?oe&&oe():me&&me()},[oe,me]);cn(()=>{te&&V({value:B})},[B,V,te]);const ge=Se=>{if(ee.disabled){Se.stopPropagation();return}O&&O(Se),y.onFocus&&y.onFocus(Se),re&&re.onFocus?re.onFocus(Se):le(!0)},X=Se=>{T&&T(Se),y.onBlur&&y.onBlur(Se),re&&re.onBlur?re.onBlur(Se):le(!1)},he=(Se,...Ce)=>{if(!te){const zt=Se.target||J.current;if(zt==null)throw new Error(li(1));V({value:zt.value})}y.onChange&&y.onChange(Se,...Ce),A&&A(Se,...Ce)};p.useEffect(()=>{V(J.current)},[]);const be=Se=>{J.current&&Se.currentTarget===Se.target&&J.current.focus(),M&&M(Se)};let $e=v,Le=y;k&&$e==="input"&&(j?Le=S({type:void 0,minRows:j,maxRows:j},Le):Le=S({type:void 0,maxRows:b,minRows:P},Le),$e=_z);const Ue=Se=>{V(Se.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};p.useEffect(()=>{re&&re.setAdornedStart(!!F)},[re,F]);const et=S({},o,{color:ee.color||"primary",disabled:ee.disabled,endAdornment:g,error:ee.error,focused:ee.focused,formControl:re,fullWidth:m,hiddenLabel:ee.hiddenLabel,multiline:k,size:ee.size,startAdornment:F,type:K}),Be=u4(et),tt=L.root||u.Root||Rp,xt=I.root||c.root||{},Ye=L.input||u.Input||Tp;return Le=S({},Le,(r=I.input)!=null?r:c.input),C.jsxs(p.Fragment,{children:[!h&&c4,C.jsxs(tt,S({},xt,!ls(tt)&&{ownerState:S({},et,xt.ownerState)},{ref:n,onClick:be},ie,{className:fe(Be.root,xt.className,l,R&&"MuiInputBase-readOnly"),children:[F,C.jsx(Pp.Provider,{value:null,children:C.jsx(Ye,S({ownerState:et,"aria-invalid":ee.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:ee.disabled,id:w,onAnimationStart:Ue,name:E,placeholder:D,readOnly:R,required:ee.required,rows:j,value:B,onKeyDown:_,onKeyUp:$,type:K},Le,!ls(Ye)&&{as:$e,ownerState:S({},et,Le.ownerState)},{ref:se,className:fe(Be.input,Le.className,R&&"MuiInputBase-readOnly"),onBlur:X,onChange:he,onFocus:ge}))}),g,N?N(S({},ee,{startAdornment:F})):null]}))]})}),$y=d4;function f4(e){return Re("MuiInput",e)}const p4=S({},qn,Te("MuiInput",["root","underline","input"])),Wo=p4;function h4(e){return Re("MuiOutlinedInput",e)}const m4=S({},qn,Te("MuiOutlinedInput",["root","notchedOutline","input"])),Gr=m4;function g4(e){return Re("MuiFilledInput",e)}const v4=S({},qn,Te("MuiFilledInput",["root","underline","input"])),Xn=v4,dk=wn(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function y4(e){return Re("MuiAutocomplete",e)}const x4=Te("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Ke=x4;var fb,pb;const b4=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],w4=["ref"],S4=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ue(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ke(d,y4,t)},C4=H("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Ke.tag}`]:t.tag},{[`& .${Ke.tag}`]:t[`tagSize${ue(s)}`]},{[`& .${Ke.inputRoot}`]:t.inputRoot},{[`& .${Ke.input}`]:t.input},{[`& .${Ke.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>S({[`&.${Ke.focused} .${Ke.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ke.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Ke.tag}`]:S({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Ke.inputRoot}`]:{flexWrap:"wrap",[`.${Ke.hasPopupIcon}&, .${Ke.hasClearIcon}&`]:{paddingRight:26+4},[`.${Ke.hasPopupIcon}.${Ke.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Ke.input}`]:{width:0,minWidth:30}},[`& .${Wo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Wo.root}.${qn.sizeSmall}`]:{[`& .${Wo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Gr.root}`]:{padding:9,[`.${Ke.hasPopupIcon}&, .${Ke.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Ke.hasPopupIcon}.${Ke.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ke.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ke.endAdornment}`]:{right:9}},[`& .${Gr.root}.${qn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ke.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Xn.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ke.hasPopupIcon}&, .${Ke.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Ke.hasPopupIcon}.${Ke.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Xn.input}`]:{padding:"7px 4px"},[`& .${Ke.endAdornment}`]:{right:9}},[`& .${Xn.root}.${qn.sizeSmall}`]:{paddingBottom:1,[`& .${Xn.input}`]:{padding:"2.5px 4px"}},[`& .${qn.hiddenLabel}`]:{paddingTop:8},[`& .${Xn.root}.${qn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ke.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Xn.root}.${qn.hiddenLabel}.${qn.sizeSmall}`]:{[`& .${Ke.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ke.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),P4=H("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),E4=H(Eo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),k4=H(Eo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>S({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>S({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),R4=H(Cp,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ke.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),T4=H(Rr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),M4=H("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),$4=H("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),O4=H("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ke.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ke.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ke.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),D4=H(qz,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),A4=H("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ke.option}`]:{paddingLeft:24}}),I4=p.forwardRef(function(t,n){var r,o,i,a;const s=we({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:f,className:h,clearIcon:g=fb||(fb=C.jsx(qE,{fontSize:"small"})),clearOnBlur:m=!s.freeSolo,clearOnEscape:w=!1,clearText:v="Clear",closeText:y="Close",componentsProps:x={},defaultValue:b=s.multiple?[]:null,disableClearable:P=!1,disableCloseOnSelect:k=!1,disabled:E=!1,disabledItemsFocusable:T=!1,disableListWrap:A=!1,disablePortal:M=!1,filterSelectedOptions:O=!1,forcePopupIcon:_="auto",freeSolo:$=!1,fullWidth:D=!1,getLimitTagsText:R=Z=>`+${Z}`,getOptionLabel:N,groupBy:j,handleHomeEndKeys:I=!s.freeSolo,includeInputInList:L=!1,limitTags:F=-1,ListboxComponent:K="ul",ListboxProps:ae,loading:ie=!1,loadingText:B="Loading…",multiple:te=!1,noOptionsText:J="No options",openOnFocus:G=!1,openText:se="Open",PaperComponent:pe=Rr,PopperComponent:le=Cp,popupIcon:re=pb||(pb=C.jsx(dk,{})),readOnly:ee=!1,renderGroup:oe,renderInput:me,renderOption:V,renderTags:ge,selectOnFocus:X=!s.freeSolo,size:he="medium",slotProps:be={}}=s,$e=ne(s,b4),{getRootProps:Le,getInputProps:Ue,getInputLabelProps:et,getPopupIndicatorProps:Be,getClearProps:tt,getTagProps:xt,getListboxProps:Ye,getOptionProps:Se,value:Ce,dirty:zt,expanded:rn,id:Oe,popupOpen:je,focused:z,focusedTag:U,anchorEl:Q,setAnchorEl:ve,inputValue:Ie,groupedOptions:De}=Bz(S({},s,{componentName:"Autocomplete"})),Ae=!P&&!E&&zt&&!ee,Me=(!$||_===!0)&&_!==!1,{onMouseDown:ye}=Ue(),{ref:Qe}=ae??{},_e=Ye(),{ref:Fe}=_e,ot=ne(_e,w4),it=ht(Fe,Qe),Kn=N||(Z=>{var xe;return(xe=Z.label)!=null?xe:Z}),Tt=S({},s,{disablePortal:M,expanded:rn,focused:z,fullWidth:D,getOptionLabel:Kn,hasClearIcon:Ae,hasPopupIcon:Me,inputFocused:U===-1,popupOpen:je,size:he}),Mt=S4(Tt);let Nt;if(te&&Ce.length>0){const Z=xe=>S({className:Mt.tag,disabled:E},xt(xe));ge?Nt=ge(Ce,Z,Tt):Nt=Ce.map((xe,We)=>C.jsx(uk,S({label:Kn(xe),size:he},Z({index:We}),f)))}if(F>-1&&Array.isArray(Nt)){const Z=Nt.length-F;!z&&Z>0&&(Nt=Nt.splice(0,F),Nt.push(C.jsx("span",{className:Mt.tag,children:R(Z)},Nt.length)))}const uo=oe||(Z=>C.jsxs("li",{children:[C.jsx(D4,{className:Mt.groupLabel,ownerState:Tt,component:"div",children:Z.group}),C.jsx(A4,{className:Mt.groupUl,ownerState:Tt,children:Z.children})]},Z.key)),xi=V||((Z,xe)=>C.jsx("li",S({},Z,{children:Kn(xe)}))),No=(Z,xe)=>{const We=Se({option:Z,index:xe});return xi(S({},We,{className:Mt.option}),Z,{selected:We["aria-selected"],index:xe,inputValue:Ie},Tt)},qe=(r=be.clearIndicator)!=null?r:x.clearIndicator,Zt=(o=be.paper)!=null?o:x.paper,Y=(i=be.popper)!=null?i:x.popper,W=(a=be.popupIndicator)!=null?a:x.popupIndicator;return C.jsxs(p.Fragment,{children:[C.jsx(C4,S({ref:n,className:fe(Mt.root,h),ownerState:Tt},Le($e),{children:me({id:Oe,disabled:E,fullWidth:!0,size:he==="small"?"small":void 0,InputLabelProps:et(),InputProps:S({ref:ve,className:Mt.inputRoot,startAdornment:Nt,onClick:Z=>{Z.target===Z.currentTarget&&ye(Z)}},(Ae||Me)&&{endAdornment:C.jsxs(P4,{className:Mt.endAdornment,ownerState:Tt,children:[Ae?C.jsx(E4,S({},tt(),{"aria-label":v,title:v,ownerState:Tt},qe,{className:fe(Mt.clearIndicator,qe==null?void 0:qe.className),children:g})):null,Me?C.jsx(k4,S({},Be(),{disabled:E,"aria-label":je?y:se,title:je?y:se,ownerState:Tt},W,{className:fe(Mt.popupIndicator,W==null?void 0:W.className),children:re})):null]})}),inputProps:S({className:Mt.input,disabled:E,readOnly:ee},Ue())})})),Q?C.jsx(R4,S({as:le,disablePortal:M,style:{width:Q?Q.clientWidth:null},ownerState:Tt,role:"presentation",anchorEl:Q,open:je},Y,{className:fe(Mt.popper,Y==null?void 0:Y.className),children:C.jsxs(T4,S({ownerState:Tt,as:pe},Zt,{className:fe(Mt.paper,Zt==null?void 0:Zt.className),children:[ie&&De.length===0?C.jsx(M4,{className:Mt.loading,ownerState:Tt,children:B}):null,De.length===0&&!$&&!ie?C.jsx($4,{className:Mt.noOptions,ownerState:Tt,role:"presentation",onMouseDown:Z=>{Z.preventDefault()},children:J}):null,De.length>0?C.jsx(O4,S({as:K,className:Mt.listbox,ownerState:Tt},ot,ae,{ref:it,children:De.map((Z,xe)=>j?uo({key:Z.key,group:Z.group,children:Z.options.map((We,_t)=>No(We,Z.index+_t))}):No(Z,xe))})):null]}))})):null]})}),L4=I4,N4=wn(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function _4(e){return Re("MuiAvatar",e)}Te("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const j4=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],F4=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ke({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},_4,t)},z4=H("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),B4=H("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),V4=H(N4,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function U4({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const W4=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:f="circular"}=r,h=ne(r,j4);let g=null;const m=U4(S({},l,{src:c,srcSet:d})),w=c||d,v=w&&m!=="error",y=S({},r,{colorDefault:!v,component:s,variant:f}),x=F4(y);return v?g=C.jsx(B4,S({alt:o,src:c,srcSet:d,sizes:u,ownerState:y,className:x.img},l)):i!=null?g=i:w&&o?g=o[0]:g=C.jsx(V4,{ownerState:y,className:x.fallback}),C.jsx(z4,S({as:s,ownerState:y,className:fe(x.root,a),ref:n},h,{children:g}))}),fk=W4,H4=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Y4={entering:{opacity:1},entered:{opacity:1}},K4=p.forwardRef(function(t,n){const r=$o(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:h,onExited:g,onExiting:m,style:w,timeout:v=o,TransitionComponent:y=Xv}=t,x=ne(t,H4),b=p.useRef(null),P=ht(b,s.ref,n),k=D=>R=>{if(D){const N=b.current;R===void 0?D(N):D(N,R)}},E=k(f),T=k((D,R)=>{GE(D);const N=_d({style:w,timeout:v,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",N),D.style.transition=r.transitions.create("opacity",N),c&&c(D,R)}),A=k(d),M=k(m),O=k(D=>{const R=_d({style:w,timeout:v,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",R),D.style.transition=r.transitions.create("opacity",R),h&&h(D)}),_=k(g),$=D=>{i&&i(b.current,D)};return C.jsx(y,S({appear:a,in:u,nodeRef:b,onEnter:T,onEntered:A,onEntering:E,onExit:O,onExited:_,onExiting:M,addEndListener:$,timeout:v},x,{children:(D,R)=>p.cloneElement(s,S({style:S({opacity:0,visibility:D==="exited"&&!u?"hidden":void 0},Y4[D],w,s.props.style),ref:P},R))}))}),Mp=K4;function G4(e){return Re("MuiBackdrop",e)}Te("MuiBackdrop",["root","invisible"]);const q4=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],X4=e=>{const{classes:t,invisible:n}=e;return ke({root:["root",n&&"invisible"]},G4,t)},Q4=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Z4=p.forwardRef(function(t,n){var r,o,i;const a=we({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:h,slotProps:g={},slots:m={},TransitionComponent:w=Mp,transitionDuration:v}=a,y=ne(a,q4),x=S({},a,{component:u,invisible:f}),b=X4(x),P=(r=g.root)!=null?r:d.root;return C.jsx(w,S({in:h,timeout:v},y,{children:C.jsx(Q4,S({"aria-hidden":!0},P,{as:(o=(i=m.root)!=null?i:c.Root)!=null?o:u,className:fe(b.root,l,P==null?void 0:P.className),ownerState:S({},x,P==null?void 0:P.ownerState),classes:b,ref:n,children:s}))}))}),J4=Z4;function eB(e){return Re("MuiCard",e)}Te("MuiCard",["root"]);const tB=["className","raised"],nB=e=>{const{classes:t}=e;return ke({root:["root"]},eB,t)},rB=H(Rr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),oB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=ne(r,tB),s=S({},r,{raised:i}),l=nB(s);return C.jsx(rB,S({className:fe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))}),pk=oB;function iB(e){return Re("MuiCardActions",e)}Te("MuiCardActions",["root","spacing"]);const aB=["disableSpacing","className"],sB=e=>{const{classes:t,disableSpacing:n}=e;return ke({root:["root",!n&&"spacing"]},iB,t)},lB=H("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),uB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i}=r,a=ne(r,aB),s=S({},r,{disableSpacing:o}),l=sB(s);return C.jsx(lB,S({className:fe(l.root,i),ownerState:s,ref:n},a))}),hk=uB;function cB(e){return Re("MuiCardContent",e)}Te("MuiCardContent",["root"]);const dB=["className","component"],fB=e=>{const{classes:t}=e;return ke({root:["root"]},cB,t)},pB=H("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),hB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=ne(r,dB),s=S({},r,{component:i}),l=fB(s);return C.jsx(pB,S({as:i,className:fe(l.root,o),ownerState:s,ref:n},a))}),mk=hB,mB=fA({createStyledComponent:H("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ue(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>we({props:e,name:"MuiContainer"})}),Oy=mB,gB=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),vB=e=>S({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}}),yB=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=S({html:gB(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},vB(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function gk(e){const t=we({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(p.Fragment,{children:[C.jsx(ck,{styles:o=>yB(o,r)}),n]})}function xB(e){return Re("MuiModal",e)}Te("MuiModal",["root","hidden","backdrop"]);const bB=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],wB=e=>{const{open:t,exited:n,classes:r}=e;return ke({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},xB,r)},SB=H("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),CB=H(J4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),PB=p.forwardRef(function(t,n){var r,o,i,a,s,l;const u=we({name:"MuiModal",props:t}),{BackdropComponent:c=CB,BackdropProps:d,className:f,closeAfterTransition:h=!1,children:g,container:m,component:w,components:v={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:P=!1,disablePortal:k=!1,disableRestoreFocus:E=!1,disableScrollLock:T=!1,hideBackdrop:A=!1,keepMounted:M=!1,onBackdropClick:O,open:_,slotProps:$,slots:D}=u,R=ne(u,bB),N=S({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:b,disableEscapeKeyDown:P,disablePortal:k,disableRestoreFocus:E,disableScrollLock:T,hideBackdrop:A,keepMounted:M}),{getRootProps:j,getBackdropProps:I,getTransitionProps:L,portalRef:F,isTopModal:K,exited:ae,hasTransition:ie}=Az(S({},N,{rootRef:n})),B=S({},N,{exited:ae}),te=wB(B),J={};if(g.props.tabIndex===void 0&&(J.tabIndex="-1"),ie){const{onEnter:oe,onExited:me}=L();J.onEnter=oe,J.onExited=me}const G=(r=(o=D==null?void 0:D.root)!=null?o:v.Root)!=null?r:SB,se=(i=(a=D==null?void 0:D.backdrop)!=null?a:v.Backdrop)!=null?i:c,pe=(s=$==null?void 0:$.root)!=null?s:y.root,le=(l=$==null?void 0:$.backdrop)!=null?l:y.backdrop,re=yt({elementType:G,externalSlotProps:pe,externalForwardedProps:R,getSlotProps:j,additionalProps:{ref:n,as:w},ownerState:B,className:fe(f,pe==null?void 0:pe.className,te==null?void 0:te.root,!B.open&&B.exited&&(te==null?void 0:te.hidden))}),ee=yt({elementType:se,externalSlotProps:le,additionalProps:d,getSlotProps:oe=>I(S({},oe,{onClick:me=>{O&&O(me),oe!=null&&oe.onClick&&oe.onClick(me)}})),className:fe(le==null?void 0:le.className,d==null?void 0:d.className,te==null?void 0:te.backdrop),ownerState:B});return!M&&!_&&(!ie||ae)?null:C.jsx(sk,{ref:F,container:m,disablePortal:k,children:C.jsxs(G,S({},re,{children:[!A&&c?C.jsx(se,S({},ee)):null,C.jsx(QE,{disableEnforceFocus:b,disableAutoFocus:x,disableRestoreFocus:E,isEnabled:K,open:_,children:p.cloneElement(g,J)})]}))})}),EB=PB;function kB(e){return Re("MuiDialogActions",e)}Te("MuiDialogActions",["root","spacing"]);const RB=["className","disableSpacing"],TB=e=>{const{classes:t,disableSpacing:n}=e;return ke({root:["root",!n&&"spacing"]},kB,t)},MB=H("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),$B=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=ne(r,RB),s=S({},r,{disableSpacing:i}),l=TB(s);return C.jsx(MB,S({className:fe(l.root,o),ownerState:s,ref:n},a))}),OB=$B,DB=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],AB=e=>{const{classes:t,disableUnderline:n}=e,o=ke({root:["root",!n&&"underline"],input:["input"]},g4,t);return S({},t,o)},IB=H(Rp,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ep(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Xn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Xn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xn.disabled}, .${Xn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xn.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),LB=H(Tp,{name:"MuiFilledInput",slot:"Input",overridesResolver:kp})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),vk=p.forwardRef(function(t,n){var r,o,i,a;const s=we({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:h,slots:g={},type:m="text"}=s,w=ne(s,DB),v=S({},s,{fullWidth:c,inputComponent:d,multiline:f,type:m}),y=AB(s),x={root:{ownerState:v},input:{ownerState:v}},b=h??u?vr(h??u,x):x,P=(r=(o=g.root)!=null?o:l.Root)!=null?r:IB,k=(i=(a=g.input)!=null?a:l.Input)!=null?i:LB;return C.jsx($y,S({slots:{root:P,input:k},componentsProps:b,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:m},w,{classes:y}))});vk.muiName="Input";const yk=vk;function NB(e){return Re("MuiFormControl",e)}Te("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _B=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],jB=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ue(n)}`,r&&"fullWidth"]};return ke(o,NB,t)},FB=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${ue(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),zB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:g=!1,size:m="medium",variant:w="outlined"}=r,v=ne(r,_B),y=S({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:h,required:g,size:m,variant:w}),x=jB(y),[b,P]=p.useState(()=>{let $=!1;return o&&p.Children.forEach(o,D=>{if(!yl(D,["Input","Select"]))return;const R=yl(D,["Select"])?D.props.input:D;R&&i4(R.props)&&($=!0)}),$}),[k,E]=p.useState(()=>{let $=!1;return o&&p.Children.forEach(o,D=>{yl(D,["Input","Select"])&&(Fd(D.props,!0)||Fd(D.props.inputProps,!0))&&($=!0)}),$}),[T,A]=p.useState(!1);l&&T&&A(!1);const M=c!==void 0&&!l?c:T;let O;const _=p.useMemo(()=>({adornedStart:b,setAdornedStart:P,color:a,disabled:l,error:u,filled:k,focused:M,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{A(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{A(!0)},registerEffect:O,required:g,variant:w}),[b,a,l,u,k,M,d,f,O,g,m,w]);return C.jsx(Pp.Provider,{value:_,children:C.jsx(FB,S({as:s,ownerState:y,className:fe(x.root,i),ref:n},v,{children:o}))})}),BB=zB;function VB(e){return Re("MuiFormHelperText",e)}const UB=Te("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hb=UB;var mb;const WB=["children","className","component","disabled","error","filled","focused","margin","required","variant"],HB=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${ue(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return ke(u,VB,t)},YB=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ue(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hb.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),KB=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=ne(r,WB),l=Qi(),u=Rs({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=S({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=HB(c);return C.jsx(YB,S({as:a,ownerState:c,className:fe(d.root,i),ref:n},s,{children:o===" "?mb||(mb=C.jsx("span",{className:"notranslate",children:"​"})):o}))}),GB=KB;function qB(e){return Re("MuiFormLabel",e)}const XB=Te("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),El=XB,QB=["children","className","color","component","disabled","error","filled","focused","required"],ZB=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${ue(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return ke(l,qB,t)},JB=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${El.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${El.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${El.error}`]:{color:(e.vars||e).palette.error.main}})),e3=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${El.error}`]:{color:(e.vars||e).palette.error.main}})),t3=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=ne(r,QB),l=Qi(),u=Rs({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=S({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=ZB(c);return C.jsxs(JB,S({as:a,ownerState:c,className:fe(d.root,i),ref:n},s,{children:[o,u.required&&C.jsxs(e3,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),n3=t3,r3=p.createContext(),gb=r3;function o3(e){return Re("MuiGrid",e)}const i3=[0,1,2,3,4,5,6,7,8,9,10],a3=["column-reverse","column","row-reverse","row"],s3=["nowrap","wrap-reverse","wrap"],Xs=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],au=Te("MuiGrid",["root","container","item","zeroMinWidth",...i3.map(e=>`spacing-xs-${e}`),...a3.map(e=>`direction-xs-${e}`),...s3.map(e=>`wrap-xs-${e}`),...Xs.map(e=>`grid-xs-${e}`),...Xs.map(e=>`grid-sm-${e}`),...Xs.map(e=>`grid-md-${e}`),...Xs.map(e=>`grid-lg-${e}`),...Xs.map(e=>`grid-xl-${e}`)]),l3=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Ua(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function u3({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=$f({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${Ua(c)})`;u={flexBasis:d,maxWidth:d}}}i=S({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function c3({theme:e,ownerState:t}){const n=$f({values:t.direction,breakpoints:e.breakpoints.values});return Sr({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${au.item}`]={maxWidth:"none"}),o})}function xk({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function d3({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=$f({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=xk({breakpoints:e.breakpoints.values,values:i})),o=Sr({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${Ua(c)}`,[`& > .${au.item}`]:{paddingTop:Ua(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${au.item}`]:{paddingTop:0}}})}return o}function f3({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=$f({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=xk({breakpoints:e.breakpoints.values,values:i})),o=Sr({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${Ua(c)})`,marginLeft:`-${Ua(c)}`,[`& > .${au.item}`]:{paddingLeft:Ua(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${au.item}`]:{paddingLeft:0}}})}return o}function p3(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const h3=H("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=p3(a,u,t));const d=[];return u.forEach(f=>{const h=n[f];h&&d.push(t[`grid-${f}-${String(h)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>S({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),c3,d3,f3,u3);function m3(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const g3=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=m3(i,l));const c=[];l.forEach(f=>{const h=e[f];h&&c.push(`grid-${f}-${String(h)}`)});const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return ke(d,o3,t)},v3=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiGrid"}),{breakpoints:o}=$o(),i=Kv(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:h,spacing:g=0,wrap:m="wrap",zeroMinWidth:w=!1}=i,v=ne(i,l3),y=h||g,x=l||g,b=p.useContext(gb),P=c?s||12:b,k={},E=S({},v);o.keys.forEach(M=>{v[M]!=null&&(k[M]=v[M],delete E[M])});const T=S({},i,{columns:P,container:c,direction:d,item:f,rowSpacing:y,columnSpacing:x,wrap:m,zeroMinWidth:w,spacing:g},k,{breakpoints:o.keys}),A=g3(T);return C.jsx(gb.Provider,{value:P,children:C.jsx(h3,S({ownerState:T,className:fe(A.root,a),as:u,ref:n},E))})}),fo=v3,y3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gg(e){return`scale(${e}, ${e**2})`}const x3={entering:{opacity:1,transform:gg(1)},entered:{opacity:1,transform:"none"}},Ih=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bk=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:h,style:g,timeout:m="auto",TransitionComponent:w=Xv}=t,v=ne(t,y3),y=p.useRef(),x=p.useRef(),b=$o(),P=p.useRef(null),k=ht(P,i.ref,n),E=R=>N=>{if(R){const j=P.current;N===void 0?R(j):R(j,N)}},T=E(c),A=E((R,N)=>{GE(R);const{duration:j,delay:I,easing:L}=_d({style:g,timeout:m,easing:a},{mode:"enter"});let F;m==="auto"?(F=b.transitions.getAutoHeightDuration(R.clientHeight),x.current=F):F=j,R.style.transition=[b.transitions.create("opacity",{duration:F,delay:I}),b.transitions.create("transform",{duration:Ih?F:F*.666,delay:I,easing:L})].join(","),l&&l(R,N)}),M=E(u),O=E(h),_=E(R=>{const{duration:N,delay:j,easing:I}=_d({style:g,timeout:m,easing:a},{mode:"exit"});let L;m==="auto"?(L=b.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=N,R.style.transition=[b.transitions.create("opacity",{duration:L,delay:j}),b.transitions.create("transform",{duration:Ih?L:L*.666,delay:Ih?j:j||L*.333,easing:I})].join(","),R.style.opacity=0,R.style.transform=gg(.75),d&&d(R)}),$=E(f),D=R=>{m==="auto"&&(y.current=setTimeout(R,x.current||0)),r&&r(P.current,R)};return p.useEffect(()=>()=>{clearTimeout(y.current)},[]),C.jsx(w,S({appear:o,in:s,nodeRef:P,onEnter:A,onEntered:M,onEntering:T,onExit:_,onExited:$,onExiting:O,addEndListener:D,timeout:m==="auto"?null:m},v,{children:(R,N)=>p.cloneElement(i,S({style:S({opacity:0,transform:gg(.75),visibility:R==="exited"&&!s?"hidden":void 0},x3[R],g,i.props.style),ref:k},N))}))});bk.muiSupportAuto=!0;const Dy=bk;function b3(e,t,n,r,o){const[i,a]=p.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return cn(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),i}const wk=Ml["useSyncExternalStore"];function w3(e,t,n,r,o){const i=p.useCallback(()=>t,[t]),a=p.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,o,n]),[s,l]=p.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[i,n,e]);return wk(l,s,a)}function S3(e,t={}){const n=zf(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=_P({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(wk!==void 0?w3:b3)(l,o,i,a,s)}const C3=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],P3=e=>{const{classes:t,disableUnderline:n}=e,o=ke({root:["root",!n&&"underline"],input:["input"]},f4,t);return S({},t,o)},E3=H(Rp,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ep(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wo.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(.${Wo.disabled}, .${Wo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),k3=H(Tp,{name:"MuiInput",slot:"Input",overridesResolver:kp})({}),Sk=p.forwardRef(function(t,n){var r,o,i,a;const s=we({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:g,slots:m={},type:w="text"}=s,v=ne(s,C3),y=P3(s),b={root:{ownerState:{disableUnderline:l}}},P=g??c?vr(g??c,b):b,k=(r=(o=m.root)!=null?o:u.Root)!=null?r:E3,E=(i=(a=m.input)!=null?a:u.Input)!=null?i:k3;return C.jsx($y,S({slots:{root:k,input:E},slotProps:P,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:w},v,{classes:y}))});Sk.muiName="Input";const Ck=Sk;function R3(e){return Re("MuiInputAdornment",e)}const T3=Te("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),vb=T3;var yb;const M3=["children","className","component","disablePointerEvents","disableTypography","position","variant"],$3=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},O3=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${ue(o)}`,a,r&&"hiddenLabel",i&&`size${ue(i)}`]};return ke(s,R3,t)},D3=H("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:$3})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${vb.positionStart}&:not(.${vb.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),A3=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=ne(r,M3),f=Qi()||{};let h=c;c&&f.variant,f&&!h&&(h=f.variant);const g=S({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:u,variant:h}),m=O3(g);return C.jsx(Pp.Provider,{value:null,children:C.jsx(D3,S({as:a,ownerState:g,className:fe(m.root,i),ref:n},d,{children:typeof o=="string"&&!l?C.jsx(At,{color:"text.secondary",children:o}):C.jsxs(p.Fragment,{children:[u==="start"?yb||(yb=C.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),I3=A3;function L3(e){return Re("MuiInputLabel",e)}Te("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const N3=["disableAnimation","margin","shrink","variant","className"],_3=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ue(r)}`,a],asterisk:[s&&"asterisk"]},u=ke(l,L3,t);return S({},t,u)},j3=H(n3,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${El.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),F3=p.forwardRef(function(t,n){const r=we({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=ne(r,N3),l=Qi();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Rs({props:r,muiFormControl:l,states:["size","variant","required"]}),d=S({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),f=_3(d);return C.jsx(j3,S({"data-shrink":u,ownerState:d,ref:n,className:fe(f.root,a)},s,{classes:f}))}),z3=F3,B3=p.createContext({}),Wa=B3;function V3(e){return Re("MuiList",e)}Te("MuiList",["root","padding","dense","subheader"]);const U3=["children","className","component","dense","disablePadding","subheader"],W3=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ke({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},V3,t)},H3=H("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Y3=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=ne(r,U3),d=p.useMemo(()=>({dense:s}),[s]),f=S({},r,{component:a,dense:s,disablePadding:l}),h=W3(f);return C.jsx(Wa.Provider,{value:d,children:C.jsxs(H3,S({as:a,className:fe(h.root,i),ref:n,ownerState:f},c,{children:[u,o]}))})}),Ay=Y3;function K3(e){return Re("MuiListItem",e)}const G3=Te("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ha=G3,q3=Te("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),X3=q3;function Q3(e){return Re("MuiListItemSecondaryAction",e)}Te("MuiListItemSecondaryAction",["root","disableGutters"]);const Z3=["className"],J3=e=>{const{disableGutters:t,classes:n}=e;return ke({root:["root",t&&"disableGutters"]},Q3,n)},eV=H("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Pk=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=ne(r,Z3),a=p.useContext(Wa),s=S({},r,{disableGutters:a.disableGutters}),l=J3(s);return C.jsx(eV,S({className:fe(l.root,o),ownerState:s,ref:n},i))});Pk.muiName="ListItemSecondaryAction";const tV=Pk,nV=["className"],rV=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],oV=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},iV=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return ke({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},K3,r)},aV=H("div",{name:"MuiListItem",slot:"Root",overridesResolver:oV})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${X3.root}`]:{paddingRight:48}},{[`&.${ha.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ha.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ha.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ha.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ha.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ge(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})`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),sV=H("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),lV=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:h}={},dense:g=!1,disabled:m=!1,disableGutters:w=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:b,selected:P=!1,slotProps:k={},slots:E={}}=r,T=ne(r.ContainerProps,nV),A=ne(r,rV),M=p.useContext(Wa),O=p.useMemo(()=>({dense:g||M.dense||!1,alignItems:o,disableGutters:w}),[o,M.dense,g,w]),_=p.useRef(null);cn(()=>{i&&_.current&&_.current.focus()},[i]);const $=p.Children.toArray(s),D=$.length&&yl($[$.length-1],["ListItemSecondaryAction"]),R=S({},r,{alignItems:o,autoFocus:i,button:a,dense:O.dense,disabled:m,disableGutters:w,disablePadding:v,divider:y,hasSecondaryAction:D,selected:P}),N=iV(R),j=ht(_,n),I=E.root||c.Root||aV,L=k.root||d.root||{},F=S({className:fe(N.root,L.className,l),disabled:m},A);let K=u||"li";return a&&(F.component=u||"div",F.focusVisibleClassName=fe(ha.focusVisible,x),K=rs),D?(K=!F.component&&!u?"div":K,f==="li"&&(K==="li"?K="div":F.component==="li"&&(F.component="div")),C.jsx(Wa.Provider,{value:O,children:C.jsxs(sV,S({as:f,className:fe(N.container,h),ref:j,ownerState:R},T,{children:[C.jsx(I,S({},L,!ls(I)&&{as:K,ownerState:S({},R,L.ownerState)},F,{children:$})),$.pop()]}))})):C.jsx(Wa.Provider,{value:O,children:C.jsxs(I,S({},L,{as:K,ref:j},!ls(I)&&{ownerState:S({},R,L.ownerState)},F,{children:[$,b&&C.jsx(tV,{children:b})]}))})}),Ek=lV;function uV(e){return Re("MuiListItemText",e)}const cV=Te("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xb=cV,dV=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],fV=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ke({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},uV,t)},pV=H("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xb.primary}`]:t.primary},{[`& .${xb.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),hV=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=ne(r,dV),{dense:h}=p.useContext(Wa);let g=l??o,m=c;const w=S({},r,{disableTypography:a,inset:s,primary:!!g,secondary:!!m,dense:h}),v=fV(w);return g!=null&&g.type!==At&&!a&&(g=C.jsx(At,S({variant:h?"body2":"body1",className:v.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),m!=null&&m.type!==At&&!a&&(m=C.jsx(At,S({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:m}))),C.jsxs(pV,S({className:fe(v.root,i),ownerState:w,ref:n},f,{children:[g,m]}))}),mV=hV,gV=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Lh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function bb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function kk(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Qs(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!kk(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const vV=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=ne(t,gV),h=p.useRef(null),g=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cn(()=>{o&&h.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,b)=>{const P=!h.current.style.width;if(x.clientHeight{const b=h.current,P=x.key,k=Lt(b).activeElement;if(P==="ArrowDown")x.preventDefault(),Qs(b,k,u,l,Lh);else if(P==="ArrowUp")x.preventDefault(),Qs(b,k,u,l,bb);else if(P==="Home")x.preventDefault(),Qs(b,null,u,l,Lh);else if(P==="End")x.preventDefault(),Qs(b,null,u,l,bb);else if(P.length===1){const E=g.current,T=P.toLowerCase(),A=performance.now();E.keys.length>0&&(A-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&T!==E.keys[0]&&(E.repeating=!1)),E.lastTime=A,E.keys.push(T);const M=k&&!E.repeating&&kk(k,E);E.previousKeyMatched&&(M||Qs(b,k,!1,l,Lh,E))?x.preventDefault():E.previousKeyMatched=!1}c&&c(x)},w=ht(h,n);let v=-1;p.Children.forEach(a,(x,b)=>{if(!p.isValidElement(x)){v===b&&(v+=1,v>=a.length&&(v=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||v===-1)&&(v=b),v===b&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const y=p.Children.map(a,(x,b)=>{if(b===v){const P={};return i&&(P.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),p.cloneElement(x,P)}return x});return C.jsx(Ay,S({role:"menu",ref:w,className:s,onKeyDown:m,tabIndex:o?0:-1},f,{children:y}))}),yV=vV;function xV(e){return Re("MuiPopover",e)}Te("MuiPopover",["root","paper"]);const bV=["onEntering"],wV=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],SV=["slotProps"];function wb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Sb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Cb(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Nh(e){return typeof e=="function"?e():e}const CV=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"]},xV,t)},PV=H(EB,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rk=H(Rr,{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}),EV=p.forwardRef(function(t,n){var r,o,i;const a=we({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:h,container:g,elevation:m=8,marginThreshold:w=16,open:v,PaperProps:y={},slots:x,slotProps:b,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:k=Dy,transitionDuration:E="auto",TransitionProps:{onEntering:T}={},disableScrollLock:A=!1}=a,M=ne(a.TransitionProps,bV),O=ne(a,wV),_=(r=b==null?void 0:b.paper)!=null?r:y,$=p.useRef(),D=ht($,_.ref),R=S({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:w,externalPaperSlotProps:_,transformOrigin:P,TransitionComponent:k,transitionDuration:E,TransitionProps:M}),N=CV(R),j=p.useCallback(()=>{if(d==="anchorPosition")return c;const oe=Nh(l),V=(oe&&oe.nodeType===1?oe:Lt($.current).body).getBoundingClientRect();return{top:V.top+wb(V,u.vertical),left:V.left+Sb(V,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),I=p.useCallback(oe=>({vertical:wb(oe,P.vertical),horizontal:Sb(oe,P.horizontal)}),[P.horizontal,P.vertical]),L=p.useCallback(oe=>{const me={width:oe.offsetWidth,height:oe.offsetHeight},V=I(me);if(d==="none")return{top:null,left:null,transformOrigin:Cb(V)};const ge=j();let X=ge.top-V.vertical,he=ge.left-V.horizontal;const be=X+me.height,$e=he+me.width,Le=ui(Nh(l)),Ue=Le.innerHeight-w,et=Le.innerWidth-w;if(w!==null&&XUe){const Be=be-Ue;X-=Be,V.vertical+=Be}if(w!==null&&heet){const Be=$e-et;he-=Be,V.horizontal+=Be}return{top:`${Math.round(X)}px`,left:`${Math.round(he)}px`,transformOrigin:Cb(V)}},[l,d,j,I,w]),[F,K]=p.useState(v),ae=p.useCallback(()=>{const oe=$.current;if(!oe)return;const me=L(oe);me.top!==null&&(oe.style.top=me.top),me.left!==null&&(oe.style.left=me.left),oe.style.transformOrigin=me.transformOrigin,K(!0)},[L]);p.useEffect(()=>(A&&window.addEventListener("scroll",ae),()=>window.removeEventListener("scroll",ae)),[l,A,ae]);const ie=(oe,me)=>{T&&T(oe,me),ae()},B=()=>{K(!1)};p.useEffect(()=>{v&&ae()}),p.useImperativeHandle(s,()=>v?{updatePosition:()=>{ae()}}:null,[v,ae]),p.useEffect(()=>{if(!v)return;const oe=Dv(()=>{ae()}),me=ui(l);return me.addEventListener("resize",oe),()=>{oe.clear(),me.removeEventListener("resize",oe)}},[l,v,ae]);let te=E;E==="auto"&&!k.muiSupportAuto&&(te=void 0);const J=g||(l?Lt(Nh(l)).body:void 0),G=(o=x==null?void 0:x.root)!=null?o:PV,se=(i=x==null?void 0:x.paper)!=null?i:Rk,pe=yt({elementType:se,externalSlotProps:S({},_,{style:F?_.style:S({},_.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:R,className:fe(N.paper,_==null?void 0:_.className)}),le=yt({elementType:G,externalSlotProps:(b==null?void 0:b.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:v},ownerState:R,className:fe(N.root,h)}),{slotProps:re}=le,ee=ne(le,SV);return C.jsx(G,S({},ee,!ls(G)&&{slotProps:re,disableScrollLock:A},{children:C.jsx(k,S({appear:!0,in:v,onEntering:ie,onExited:B,timeout:te},M,{children:C.jsx(se,S({},pe,{children:f}))}))}))}),kV=EV;function RV(e){return Re("MuiMenu",e)}Te("MuiMenu",["root","paper","list"]);const TV=["onEntering"],MV=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$V={vertical:"top",horizontal:"right"},OV={vertical:"top",horizontal:"left"},DV=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"],list:["list"]},RV,t)},AV=H(kV,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IV=H(Rk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),LV=H(yV,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),NV=p.forwardRef(function(t,n){var r,o;const i=we({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:h={},PopoverClasses:g,transitionDuration:m="auto",TransitionProps:{onEntering:w}={},variant:v="selectedMenu",slots:y={},slotProps:x={}}=i,b=ne(i.TransitionProps,TV),P=ne(i,MV),k=$o(),E=k.direction==="rtl",T=S({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:w,PaperProps:h,transitionDuration:m,TransitionProps:b,variant:v}),A=DV(T),M=a&&!u&&f,O=p.useRef(null),_=(L,F)=>{O.current&&O.current.adjustStyleForScrollbar(L,k),w&&w(L,F)},$=L=>{L.key==="Tab"&&(L.preventDefault(),d&&d(L,"tabKeyDown"))};let D=-1;p.Children.map(s,(L,F)=>{p.isValidElement(L)&&(L.props.disabled||(v==="selectedMenu"&&L.props.selected||D===-1)&&(D=F))});const R=(r=y.paper)!=null?r:IV,N=(o=x.paper)!=null?o:h,j=yt({elementType:y.root,externalSlotProps:x.root,ownerState:T,className:[A.root,l]}),I=yt({elementType:R,externalSlotProps:N,ownerState:T,className:A.paper});return C.jsx(AV,S({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?$V:OV,slots:{paper:R,root:y.root},slotProps:{root:j,paper:I},open:f,ref:n,transitionDuration:m,TransitionProps:S({onEntering:_},b),ownerState:T},P,{classes:g,children:C.jsx(LV,S({onKeyDown:$,actions:O,autoFocus:a&&(D===-1||u),autoFocusItem:M,variant:v},c,{className:fe(A.list,c.className),children:s}))}))}),_V=NV;function jV(e){return Re("MuiNativeSelect",e)}const FV=Te("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Iy=FV,zV=["className","disabled","error","IconComponent","inputRef","variant"],BV=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"]};return ke(s,jV,t)},Tk=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Iy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),VV=H("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Iy.multiple}`]:t.multiple}]}})(Tk),Mk=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Iy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),UV=H("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(Mk),WV=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=ne(t,zV),c=S({},t,{disabled:o,variant:l,error:i}),d=BV(c);return C.jsxs(p.Fragment,{children:[C.jsx(VV,S({ownerState:c,className:fe(d.select,r),disabled:o,ref:s||n},u)),t.multiple?null:C.jsx(UV,{as:a,ownerState:c,className:d.icon})]})}),HV=WV;var Pb;const YV=["children","classes","className","label","notched"],KV=H("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),GV=H("legend")(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function qV(e){const{className:t,label:n,notched:r}=e,o=ne(e,YV),i=n!=null&&n!=="",a=S({},e,{notched:r,withLabel:i});return C.jsx(KV,S({"aria-hidden":!0,className:t,ownerState:a},o,{children:C.jsx(GV,{ownerState:a,children:i?C.jsx("span",{children:n}):Pb||(Pb=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const XV=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],QV=e=>{const{classes:t}=e,r=ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},h4,t);return S({},t,r)},ZV=H(Rp,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ep})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Gr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Gr.focused} .${Gr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Gr.error} .${Gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Gr.disabled} .${Gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),JV=H(qV,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),e6=H(Tp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kp})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),$k=p.forwardRef(function(t,n){var r,o,i,a,s;const l=we({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:h=!1,notched:g,slots:m={},type:w="text"}=l,v=ne(l,XV),y=QV(l),x=Qi(),b=Rs({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=S({},l,{color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:x,fullWidth:c,hiddenLabel:b.hiddenLabel,multiline:h,size:b.size,type:w}),k=(r=(o=m.root)!=null?o:u.Root)!=null?r:ZV,E=(i=(a=m.input)!=null?a:u.Input)!=null?i:e6;return C.jsx($y,S({slots:{root:k,input:E},renderSuffix:T=>C.jsx(JV,{ownerState:P,className:y.notchedOutline,label:f!=null&&f!==""&&b.required?s||(s=C.jsxs(p.Fragment,{children:[f," ","*"]})):f,notched:typeof g<"u"?g:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:w},v,{classes:S({},y,{notchedOutline:null})}))});$k.muiName="Input";const Ok=$k;function t6(e){return Re("MuiSelect",e)}const n6=Te("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zs=n6;var Eb;const r6=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],o6=H("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Zs.select}`]:t.select},{[`&.${Zs.select}`]:t[n.variant]},{[`&.${Zs.error}`]:t.error},{[`&.${Zs.multiple}`]:t.multiple}]}})(Tk,{[`&.${Zs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),i6=H("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(Mk),a6=H("input",{shouldForwardProp:e=>GA(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 kb(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function s6(e){return e==null||typeof e=="string"&&!e.trim()}const l6=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ke(s,t6,t)},u6=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:h,error:g=!1,IconComponent:m,inputRef:w,labelId:v,MenuProps:y={},multiple:x,name:b,onBlur:P,onChange:k,onClose:E,onFocus:T,onOpen:A,open:M,readOnly:O,renderValue:_,SelectDisplayProps:$={},tabIndex:D,value:R,variant:N="standard"}=t,j=ne(t,r6),[I,L]=Bn({controlled:R,default:d,name:"Select"}),[F,K]=Bn({controlled:M,default:c,name:"Select"}),ae=p.useRef(null),ie=p.useRef(null),[B,te]=p.useState(null),{current:J}=p.useRef(M!=null),[G,se]=p.useState(),pe=ht(n,w),le=p.useCallback(Oe=>{ie.current=Oe,Oe&&te(Oe)},[]),re=B==null?void 0:B.parentNode;p.useImperativeHandle(pe,()=>({focus:()=>{ie.current.focus()},node:ae.current,value:I}),[I]),p.useEffect(()=>{c&&F&&B&&!J&&(se(s?null:re.clientWidth),ie.current.focus())},[B,s]),p.useEffect(()=>{a&&ie.current.focus()},[a]),p.useEffect(()=>{if(!v)return;const Oe=Lt(ie.current).getElementById(v);if(Oe){const je=()=>{getSelection().isCollapsed&&ie.current.focus()};return Oe.addEventListener("click",je),()=>{Oe.removeEventListener("click",je)}}},[v]);const ee=(Oe,je)=>{Oe?A&&A(je):E&&E(je),J||(se(s?null:re.clientWidth),K(Oe))},oe=Oe=>{Oe.button===0&&(Oe.preventDefault(),ie.current.focus(),ee(!0,Oe))},me=Oe=>{ee(!1,Oe)},V=p.Children.toArray(l),ge=Oe=>{const je=V.find(z=>z.props.value===Oe.target.value);je!==void 0&&(L(je.props.value),k&&k(Oe,je))},X=Oe=>je=>{let z;if(je.currentTarget.hasAttribute("tabindex")){if(x){z=Array.isArray(I)?I.slice():[];const U=I.indexOf(Oe.props.value);U===-1?z.push(Oe.props.value):z.splice(U,1)}else z=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(je),I!==z&&(L(z),k)){const U=je.nativeEvent||je,Q=new U.constructor(U.type,U);Object.defineProperty(Q,"target",{writable:!0,value:{value:z,name:b}}),k(Q,Oe)}x||ee(!1,je)}},he=Oe=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Oe.key)!==-1&&(Oe.preventDefault(),ee(!0,Oe))},be=B!==null&&F,$e=Oe=>{!be&&P&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:I,name:b}}),P(Oe))};delete j["aria-invalid"];let Le,Ue;const et=[];let Be=!1;(Fd({value:I})||h)&&(_?Le=_(I):Be=!0);const tt=V.map(Oe=>{if(!p.isValidElement(Oe))return null;let je;if(x){if(!Array.isArray(I))throw new Error(li(2));je=I.some(z=>kb(z,Oe.props.value)),je&&Be&&et.push(Oe.props.children)}else je=kb(I,Oe.props.value),je&&Be&&(Ue=Oe.props.children);return p.cloneElement(Oe,{"aria-selected":je?"true":"false",onClick:X(Oe),onKeyUp:z=>{z.key===" "&&z.preventDefault(),Oe.props.onKeyUp&&Oe.props.onKeyUp(z)},role:"option",selected:je,value:void 0,"data-value":Oe.props.value})});Be&&(x?et.length===0?Le=null:Le=et.reduce((Oe,je,z)=>(Oe.push(je),z{const{classes:t}=e;return t},Ly={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mo(e)&&e!=="variant",slot:"Root"},h6=H(Ck,Ly)(""),m6=H(Ok,Ly)(""),g6=H(yk,Ly)(""),Dk=p.forwardRef(function(t,n){const r=we({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=dk,id:d,input:f,inputProps:h,label:g,labelId:m,MenuProps:w,multiple:v=!1,native:y=!1,onClose:x,onOpen:b,open:P,renderValue:k,SelectDisplayProps:E,variant:T="outlined"}=r,A=ne(r,d6),M=y?HV:c6,O=Qi(),_=Rs({props:r,muiFormControl:O,states:["variant","error"]}),$=_.variant||T,D=S({},r,{variant:$,classes:a}),R=p6(D),N=ne(R,f6),j=f||{standard:C.jsx(h6,{ownerState:D}),outlined:C.jsx(m6,{label:g,ownerState:D}),filled:C.jsx(g6,{ownerState:D})}[$],I=ht(n,j.ref);return C.jsx(p.Fragment,{children:p.cloneElement(j,S({inputComponent:M,inputProps:S({children:i,error:_.error,IconComponent:c,variant:$,type:void 0,multiple:v},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:w,onClose:x,onOpen:b,open:P,renderValue:k,SelectDisplayProps:S({id:d},E)},h,{classes:h?vr(N,h.classes):N},f?f.props.inputProps:{})},v&&y&&$==="outlined"?{notched:!0}:{},{ref:I,className:fe(j.props.className,s,R.root)},!f&&{variant:$},A))})});Dk.muiName="Select";const v6=Dk;function y6(e){return Re("MuiSnackbarContent",e)}Te("MuiSnackbarContent",["root","message","action"]);const x6=["action","className","message","role"],b6=e=>{const{classes:t}=e;return ke({root:["root"],action:["action"],message:["message"]},y6,t)},w6=H(Rr,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=eA(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,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}})}),S6=H("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),C6=H("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),P6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert"}=r,l=ne(r,x6),u=r,c=b6(u);return C.jsxs(w6,S({role:s,square:!0,elevation:6,className:fe(c.root,i),ownerState:u,ref:n},l,{children:[C.jsx(S6,{className:c.message,ownerState:u,children:a}),o?C.jsx(C6,{className:c.action,ownerState:u,children:o}):null]}))}),E6=P6;function k6(e){return Re("MuiSnackbar",e)}Te("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const R6=["onEnter","onExited"],T6=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],M6=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ue(n.vertical)}${ue(n.horizontal)}`]};return ke(r,k6,t)},Rb=H("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ue(n.anchorOrigin.vertical)}${ue(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),$6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbar"}),o=$o(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:c,className:d,ClickAwayListenerProps:f,ContentProps:h,disableWindowBlurListener:g=!1,message:m,open:w,TransitionComponent:v=Dy,transitionDuration:y=i,TransitionProps:{onEnter:x,onExited:b}={}}=r,P=ne(r.TransitionProps,R6),k=ne(r,T6),E=S({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:v,transitionDuration:y}),T=M6(E),{getRootProps:A,onClickAway:M}=Iz(S({},E)),[O,_]=p.useState(!0),$=yt({elementType:Rb,getSlotProps:A,externalForwardedProps:k,ownerState:E,additionalProps:{ref:n},className:[T.root,d]}),D=N=>{_(!0),b&&b(N)},R=(N,j)=>{_(!1),x&&x(N,j)};return!w&&O?null:C.jsx(n5,S({onClickAway:M},f,{children:C.jsx(Rb,S({},$,{children:C.jsx(v,S({appear:!0,in:w,timeout:y,direction:s==="top"?"down":"up",onEnter:R,onExited:D},P,{children:c||C.jsx(E6,S({message:m,action:a},h))}))}))}))}),O6=$6,D6=p.createContext(),Ak=D6;function A6(e){return Re("MuiTable",e)}Te("MuiTable",["root","stickyHeader"]);const I6=["className","component","padding","size","stickyHeader"],L6=e=>{const{classes:t,stickyHeader:n}=e;return ke({root:["root",n&&"stickyHeader"]},A6,t)},N6=H("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":S({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Tb="table",_6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTable"}),{className:o,component:i=Tb,padding:a="normal",size:s="medium",stickyHeader:l=!1}=r,u=ne(r,I6),c=S({},r,{component:i,padding:a,size:s,stickyHeader:l}),d=L6(c),f=p.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return C.jsx(Ak.Provider,{value:f,children:C.jsx(N6,S({as:i,role:i===Tb?null:"table",ref:n,className:fe(d.root,o),ownerState:c},u))})}),Ik=_6,j6=p.createContext(),$p=j6;function F6(e){return Re("MuiTableBody",e)}Te("MuiTableBody",["root"]);const z6=["className","component"],B6=e=>{const{classes:t}=e;return ke({root:["root"]},F6,t)},V6=H("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),U6={variant:"body"},Mb="tbody",W6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableBody"}),{className:o,component:i=Mb}=r,a=ne(r,z6),s=S({},r,{component:i}),l=B6(s);return C.jsx($p.Provider,{value:U6,children:C.jsx(V6,S({className:fe(l.root,o),as:i,ref:n,role:i===Mb?null:"rowgroup",ownerState:s},a))})}),Lk=W6;function H6(e){return Re("MuiTableCell",e)}const Y6=Te("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),K6=Y6,G6=["align","className","component","padding","scope","size","sortDirection","variant"],q6=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ue(r)}`,o!=="normal"&&`padding${ue(o)}`,`size${ue(i)}`]};return ke(s,H6,t)},X6=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ue(n.size)}`],n.padding!=="normal"&&t[`padding${ue(n.padding)}`],n.align!=="inherit"&&t[`align${ue(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?ns(Ge(e.palette.divider,1),.88):ts(Ge(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${K6.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Q6=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:u,sortDirection:c,variant:d}=r,f=ne(r,G6),h=p.useContext(Ak),g=p.useContext($p),m=g&&g.variant==="head";let w;a?w=a:w=m?"th":"td";let v=l;w==="td"?v=void 0:!v&&m&&(v="col");const y=d||g&&g.variant,x=S({},r,{align:o,component:w,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),b=q6(x);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),C.jsx(X6,S({as:w,ref:n,className:fe(b.root,i),"aria-sort":P,scope:v,ownerState:x},f))}),$n=Q6;function Z6(e){return Re("MuiTableContainer",e)}Te("MuiTableContainer",["root"]);const J6=["className","component"],eU=e=>{const{classes:t}=e;return ke({root:["root"]},Z6,t)},tU=H("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),nU=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableContainer"}),{className:o,component:i="div"}=r,a=ne(r,J6),s=S({},r,{component:i}),l=eU(s);return C.jsx(tU,S({ref:n,as:i,className:fe(l.root,o),ownerState:s},a))}),Nk=nU;function rU(e){return Re("MuiTableHead",e)}Te("MuiTableHead",["root"]);const oU=["className","component"],iU=e=>{const{classes:t}=e;return ke({root:["root"]},rU,t)},aU=H("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),sU={variant:"head"},$b="thead",lU=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableHead"}),{className:o,component:i=$b}=r,a=ne(r,oU),s=S({},r,{component:i}),l=iU(s);return C.jsx($p.Provider,{value:sU,children:C.jsx(aU,S({as:i,className:fe(l.root,o),ref:n,role:i===$b?null:"rowgroup",ownerState:s},a))})}),_k=lU;function uU(e){return Re("MuiTableRow",e)}const cU=Te("MuiTableRow",["root","selected","hover","head","footer"]),Ob=cU,dU=["className","component","hover","selected"],fU=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return ke({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},uU,t)},pU=H("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ob.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ob.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ge(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}))`:Ge(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Db="tr",hU=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableRow"}),{className:o,component:i=Db,hover:a=!1,selected:s=!1}=r,l=ne(r,dU),u=p.useContext($p),c=S({},r,{component:i,hover:a,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=fU(c);return C.jsx(pU,S({as:i,ref:n,className:fe(d.root,o),role:i===Db?null:"row",ownerState:c},l))}),zd=hU;function mU(e){return Re("MuiTextField",e)}Te("MuiTextField",["root"]);const gU=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],vU={standard:Ck,filled:yk,outlined:Ok},yU=e=>{const{classes:t}=e;return ke({root:["root"]},mU,t)},xU=H(BB,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bU=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:w,inputProps:v,InputProps:y,inputRef:x,label:b,maxRows:P,minRows:k,multiline:E=!1,name:T,onBlur:A,onChange:M,onFocus:O,placeholder:_,required:$=!1,rows:D,select:R=!1,SelectProps:N,type:j,value:I,variant:L="outlined"}=r,F=ne(r,gU),K=S({},r,{autoFocus:i,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:$,select:R,variant:L}),ae=yU(K),ie={};L==="outlined"&&(w&&typeof w.shrink<"u"&&(ie.notched=w.shrink),ie.label=b),R&&((!N||!N.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const B=bu(m),te=g&&B?`${B}-helper-text`:void 0,J=b&&B?`${B}-label`:void 0,G=vU[L],se=C.jsx(G,S({"aria-describedby":te,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:h,multiline:E,name:T,rows:D,maxRows:P,minRows:k,type:j,value:I,id:B,inputRef:x,onBlur:A,onChange:M,onFocus:O,placeholder:_,inputProps:v},ie,y));return C.jsxs(xU,S({className:fe(ae.root,s),disabled:c,error:d,fullWidth:h,ref:n,required:$,color:l,variant:L,ownerState:K},F,{children:[b!=null&&b!==""&&C.jsx(z3,S({htmlFor:B,id:J},w,{children:b})),R?C.jsx(v6,S({"aria-describedby":te,id:B,labelId:J,value:I,input:se},N,{children:a})):se,g&&C.jsx(GB,S({id:te},f,{children:g}))]}))}),Fr=bU,wU=()=>{const e=Io(),[t,n]=p.useState(!0),r=ro(o=>o.message);return p.useEffect(()=>{(async()=>{const i=localStorage.getItem("expenseTrackerToken");if(i)try{const a=await xy.fetchUser(i);e(ap(a.data.user))}catch(a){a.response.status===401&&localStorage.removeItem("expenseTrackerToken")}n(!1)})()},[]),t?C.jsx("div",{children:"Loading...."}):C.jsxs("div",{children:[C.jsx(nj,{}),!t&&C.jsx(gN,{}),r&&C.jsx(O6,{open:r!=null,autoHideDuration:6e3,children:C.jsx(GF,{severity:r[1]?"success":"error",sx:{width:"100%"},children:r[0]})})]})};const Op="/transactions/",Dp=e=>({authorization:`Bearer ${e}`}),SU=async e=>{const t=localStorage.getItem("expenseTrackerToken");return(await Lo.post(Op,e,{headers:Dp(t)})).data},CU=async()=>{const e=localStorage.getItem("expenseTrackerToken");return(await Lo.get(Op,{headers:Dp(e)})).data},PU=async e=>{const t=localStorage.getItem("expenseTrackerToken");return await Lo.delete(Op+e,{headers:Dp(t)})},EU=async e=>{const t=localStorage.getItem("expenseTrackerToken");return(await Lo.put(Op+e.id,e,{headers:Dp(t)})).data},Bd={create:SU,fetchAll:CU,remove:PU,update:EU},kU=["localeText"],vg=p.createContext(null),jk=function(t){var n;const{localeText:r}=t,o=ne(t,kU),{utils:i,localeText:a}=(n=p.useContext(vg))!=null?n:{utils:void 0,localeText:void 0},s=we({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:f,localeText:h}=s,g=p.useMemo(()=>S({},h,a,r),[h,a,r]),m=p.useMemo(()=>{if(!u)return i||null;const y=new u({locale:f,formats:c,instance:d});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[u,f,c,d,i]),w=p.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),v=p.useMemo(()=>({utils:m,defaultDates:w,localeText:g}),[w,m,g]);return C.jsx(vg.Provider,{value:v,children:l})},RU=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:S({},e)}}}}),Fk={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",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"},TU=Fk;RU(Fk);const Zi=()=>{const e=p.useContext(vg);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=p.useMemo(()=>S({},TU,e.localeText),[e.localeText]);return p.useMemo(()=>S({},e,{localeText:t}),[e,t])},Pt=()=>Zi().utils,Ou=()=>Zi().defaultDates,Ts=()=>Zi().localeText,Du=e=>{const t=Pt(),n=p.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},MU=wn(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$U=wn(C.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),OU=wn(C.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),DU=wn(C.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");wn(C.jsxs(p.Fragment,{children:[C.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"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");wn(C.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");wn(C.jsxs(p.Fragment,{children:[C.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"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function AU(e){return Re("MuiPickersArrowSwitcher",e)}Te("MuiPickersArrowSwitcher",["root","spacer","button"]);const IU=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],LU=["ownerState"],NU=["ownerState"],_U=H("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),jU=H("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Ab=H(Eo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>S({},e.hidden&&{visibility:"hidden"})),FU=e=>{const{classes:t}=e;return ke({root:["root"],spacer:["spacer"],button:["button"]},AU,t)},zU=p.forwardRef(function(t,n){var r,o,i,a;const l=$o().direction==="rtl",u=we({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:d,slots:f,slotProps:h,isNextDisabled:g,isNextHidden:m,onGoToNext:w,nextLabel:v,isPreviousDisabled:y,isPreviousHidden:x,onGoToPrevious:b,previousLabel:P}=u,k=ne(u,IU),E=u,T=FU(E),A={isDisabled:g,isHidden:m,goTo:w,label:v},M={isDisabled:y,isHidden:x,goTo:b,label:P},O=(r=f==null?void 0:f.previousIconButton)!=null?r:Ab,_=yt({elementType:O,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:S({},E,{hidden:M.isHidden}),className:T.button}),$=(o=f==null?void 0:f.nextIconButton)!=null?o:Ab,D=yt({elementType:$,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"start",onClick:A.goTo},ownerState:S({},E,{hidden:A.isHidden}),className:T.button}),R=(i=f==null?void 0:f.leftArrowIcon)!=null?i:$U,N=yt({elementType:R,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=ne(N,LU),I=(a=f==null?void 0:f.rightArrowIcon)!=null?a:OU,L=yt({elementType:I,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),F=ne(L,NU);return C.jsxs(_U,S({ref:n,className:fe(T.root,d),ownerState:E},k,{children:[C.jsx(O,S({},_,{children:l?C.jsx(I,S({},F)):C.jsx(R,S({},j))})),c?C.jsx(At,{variant:"subtitle1",component:"span",children:c}):C.jsx(jU,{className:T.spacer,ownerState:E}),C.jsx($,S({},D,{children:l?C.jsx(R,S({},j)):C.jsx(I,S({},F))}))]}))}),Js=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),BU=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:i}},VU=["hours","minutes","seconds"],UU=e=>VU.includes(e),Ib=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),WU=(e,t)=>(n,r)=>e?t.isAfter(n,r):Ib(n,t)>Ib(r,t);function zk({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){var l,u;const c=p.useRef(n),d=p.useRef(o),f=p.useRef(o.includes(n)?n:o[0]),[h,g]=Bn({name:"useViews",state:"view",controlled:r,default:f.current}),m=p.useRef(i?h:null),[w,v]=Bn({name:"useViews",state:"focusedView",controlled:a,default:m.current});p.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(M=>!o.includes(M)))&&(g(o.includes(n)?n:o[0]),d.current=o,c.current=n)},[n,g,h,o]);const y=o.indexOf(h),x=(l=o[y-1])!=null?l:null,b=(u=o[y+1])!=null?u:null,P=Ee((M,O)=>{v(O?M:_=>M===_?null:_),s==null||s(M,O)}),k=Ee(M=>{M!==h&&(g(M),P(M,!0),t&&t(M))}),E=Ee(()=>{b&&k(b),P(b,!0)}),T=Ee((M,O,_)=>{const $=O==="finish",D=_?o.indexOf(_){e(M,O?"partial":"finish",_),O&&(k(O),P(O,!0))});return{view:h,setView:k,focusedView:w,setFocusedView:P,nextView:b,previousView:x,defaultView:f.current,goToNextView:E,setValueAndGoToNextView:T,setValueAndGoToView:A}}function HU(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Pt();return p.useMemo(()=>{const i=o.dateWithTimezone(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function YU(e,{disablePast:t,minDate:n,timezone:r}){const o=Pt();return p.useMemo(()=>{const i=o.dateWithTimezone(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}const su=36,Ap=2,KU=320,Bk=358,GU=H("div")({overflow:"hidden",width:KU,maxHeight:Bk,display:"flex",flexDirection:"column",margin:"0 auto"}),Ny=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var i,a;const s=Pt(),l=p.useRef(n),u=(i=t??l.current)!=null?i:o.emptyValue,c=p.useMemo(()=>o.getTimezone(s,u),[s,o,u]),d=Ee(m=>c==null?m:o.setTimezone(s,c,m)),f=(a=e??c)!=null?a:"default",h=p.useMemo(()=>o.setTimezone(s,f,u),[o,s,f,u]),g=Ee((m,...w)=>{const v=d(m);r==null||r(v,...w)});return{value:h,handleValueChange:g,timezone:f}},_y=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:i})=>{const[a,s]=Bn({name:e,state:"value",controlled:n,default:r??i.emptyValue}),l=Ee((u,...c)=>{s(u),o==null||o(u,...c)});return Ny({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:i})},kl=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=a.startOfDay(a.dateWithTimezone(void 0,s));n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,o)&&(u=o,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,o)&&(c=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(c){if(!i(c))return c;c=a.addDays(c,-1)}}return null},qU=(e,t)=>t==null||!e.isValid(t)?null:t,Er=(e,t,n)=>t==null||!e.isValid(t)?n:t,XU=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),jy=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},yg=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},Vk=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),QU=["year","month","day"],Lb=e=>QU.includes(e),Uk=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Js(n,["year"])?o.year:Js(n,["month"])?o.month:Js(n,["day"])?o.dayOfMonth:Js(n,["month","year"])?`${o.month} ${o.year}`:Js(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Qr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},ZU=e=>Math.max(...e.map(t=>{var n;return(n=Qr[t.type])!=null?n:1})),el=(e,t,n)=>{if(t===Qr.year)return e.startOfYear(n);if(t===Qr.month)return e.startOfMonth(n);if(t===Qr.day)return e.startOfDay(n);let r=n;return t{var i;let a=o?o():el(t,n,Vk(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=el(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=el(t,n,e.maxDate));const s=WU((i=e.disableIgnoringDatePartForTimeValidation)!=null?i:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=el(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:yg(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=el(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:yg(t,a,e.maxTime))),a},Wk=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},eW=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ip=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),i=e.startOfWeek(o),a=e.endOfWeek(o);let s=i;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},Hk=(e,t,n,r)=>{switch(n){case"month":return jy(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Ip(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},Yk=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(r.longestMonth,n);return e.formatByString(a,o.format)}const i=n.toString();return o.hasLeadingZerosInInput?Yk(e,i,o.maxLength):i},tW=(e,t,n,r,o,i,a)=>{const s=eW(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,d=()=>{const h=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),g=y=>Kk(e,t,y,h,n),m=n.type==="minutes"&&a!=null&&a.minutesStep?a.minutesStep:1;let v=parseInt(n.value,10)+s*m;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?v=h.minimum:v=h.maximum}return v%m!==0&&((s<0||l)&&(v+=m-(m+v)%m),(s>0||u)&&(v-=v%m)),v>h.maximum?g(h.minimum+(v-h.maximum-1)%(h.maximum-h.minimum+1)):v{const h=Hk(e,t,n.type,n.format);if(h.length===0)return n.value;if(c)return s>0||l?h[0]:h[h.length-1];const m=(h.indexOf(n.value)+h.length+s)%h.length;return h[m]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():f()},Fy=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Ma=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Gk=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let i=0;i{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},Nb=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),qk=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Xk=(e,t,n,r,o)=>{if(n!=="digit")return!1;const i=e.dateWithTimezone(void 0,t);switch(r){case"year":return qk(e,t,o)?e.formatByString(e.setYear(i,1),o)==="0001":e.formatByString(e.setYear(i,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(i),o).length>1;case"day":return e.formatByString(e.startOfMonth(i),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),o).length>1;case"hours":return e.formatByString(e.setHours(i,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(i,1),o).length>1;default:throw new Error("Invalid section type")}},rW=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},_b=(e,t,n,r,o,i,a,s)=>{let l="";const u=[],c=e.date(),d=x=>{if(x==="")return null;const b=Wk(e,x),P=Xk(e,t,b.contentType,b.type,x),k=a?P:b.contentType==="digit",E=o!=null&&e.isValid(o);let T=E?e.formatByString(o,x):"",A=null;if(k)if(P)A=T===""?e.formatByString(c,x).length:T.length;else{if(b.maxLength==null)throw new Error(`MUI: The token ${x} should have a 'maxDigitNumber' property on it's adapter`);A=b.maxLength,E&&(T=Yk(e,T,A))}return u.push(S({},b,{format:x,maxLength:A,value:T,placeholder:nW(e,t,n,b,x),hasLeadingZeros:P,hasLeadingZerosInFormat:P,hasLeadingZerosInInput:k,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let f=10,h=r,g=e.expandFormat(r);for(;g!==h;)if(h=g,g=e.expandFormat(h),f-=1,f<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const m=g,w=rW(e,m),v=new RegExp(`^(${Object.keys(e.formatTokenMap).join("|")})`);let y="";for(let x=0;xT.start<=x&&T.end>=x),P=m[x],k=b!=null,E=`${y}${m.slice(x)}`;!k&&P.match(/([A-Za-z]+)/)&&v.test(E)?y+=P:k&&(b==null?void 0:b.start)===x||(b==null?void 0:b.end)===x||(d(y),y="",u.length===0?l+=P:u[u.length-1].endSeparator+=P)}return d(y),u.map(x=>{const b=P=>{let k=P;return s&&k!==null&&k.includes(" ")&&(k=`⁩${k}⁦`),i==="spacious"&&["/",".","-"].includes(k)&&(k=` ${k} `),k};return x.startSeparator=b(x.startSeparator),x.endSeparator=b(x.endSeparator),x})},oW=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const i=Fy(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${i}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},aW=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:a}=jy(e,n).reduce((s,l)=>{const u=e.getDaysInMonth(l);return u>s.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:qk(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):i,longestMonth:a}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const u=Ip(e,t,s).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},sW=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const i=Ip(e,t,n.format),a=e.formatByString(r,n.format),s=i.indexOf(a),u=i.indexOf(n.value)-s;return e.addDays(r,u)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const i=e.getHours(r)<12,a=e.getHours(o);return i&&a>=12?e.addHours(o,-12):!i&&a<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},jb={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Fb=(e,t,n,r,o,i)=>[...r].sort((a,s)=>jb[a.type]-jb[s.type]).reduce((a,s)=>!i||s.modified?sW(e,t,s,n,a):a,o),lW=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,uW=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,d=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,u)=>{var c;return u>=i&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,u)=>{const c=o[u],d=c===0?null:r[c-1],f=c===e.length-1?null:r[c+1];n[u]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},cW=["value","referenceDate"],fi={emptyValue:null,getTodayValue:Vk,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ne(e,cW);return t!=null&&r.utils.isValid(t)?t:n??JU(r)},cleanValue:qU,areValuesEqual:XU,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},dW={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:Gk(o(t),r),getValueStrFromSections:iW,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Qk=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function fW(e){return Re("MuiPickersDay",e)}const bi=Te("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),pW=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],hW=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return ke({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},fW,l)},Zk=({theme:e,ownerState:t})=>S({},e.typography.caption,{width:su,height:su,borderRadius:"50%",padding:0,backgroundColor:"transparent",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})`:Ge(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ge(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${bi.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${bi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${bi.disabled}:not(.${bi.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${bi.disabled}&.${bi.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${Ap}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${bi.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Jk=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},mW=H(rs,{name:"MuiPickersDay",slot:"Root",overridesResolver:Jk})(Zk),gW=H("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Jk})(({theme:e,ownerState:t})=>S({},Zk({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),tl=()=>{},vW=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:h=tl,onBlur:g=tl,onKeyDown:m=tl,onMouseDown:w=tl,onMouseEnter:v=tl,outsideCurrentMonth:y,selected:x=!1,showDaysOutsideCurrentMonth:b=!1,children:P,today:k=!1}=r,E=ne(r,pW),T=S({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:b,today:k}),A=hW(T),M=Pt(),O=p.useRef(null),_=ht(O,n);cn(()=>{o&&!s&&!c&&!y&&O.current.focus()},[o,s,c,y]);const $=R=>{w(R),y&&R.preventDefault()},D=R=>{s||f(a),y&&R.currentTarget.focus(),d&&d(R)};return y&&!b?C.jsx(gW,{className:fe(A.root,A.hiddenDaySpacingFiller,i),ownerState:T,role:E.role}):C.jsx(mW,S({className:fe(A.root,i),ref:_,centerRipple:!0,disabled:s,tabIndex:x?0:-1,onKeyDown:R=>m(R,a),onFocus:R=>h(R,a),onBlur:R=>g(R,a),onMouseEnter:R=>v(R,a),onClick:D,onMouseDown:$},E,{ownerState:T,children:P||M.format(a,"dayOfMonth")}))}),yW=p.memo(vW);function eR(e,t,n,r){const{value:o,onError:i}=e,a=Zi(),s=p.useRef(r),l=t({adapter:a,value:o,props:e});return p.useEffect(()=>{i&&!n(l,s.current)&&i(l,o),s.current=l},[n,i,s,l,o]),l}const xW=e=>{const t=Pt(),n=Ts(),r=Zi(),i=$o().direction==="rtl",{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:c,internalProps:{value:d,defaultValue:f,referenceDate:h,onChange:g,format:m,formatDensity:w="dense",selectedSections:v,onSelectedSectionsChange:y,shouldRespectLeadingZeros:x=!1,timezone:b}}=e,{timezone:P,value:k,handleValueChange:E}=Ny({timezone:b,value:d,defaultValue:f,onChange:g,valueManager:a}),T=p.useMemo(()=>aW(t,P),[t,P]),A=p.useCallback((B,te=null)=>s.getSectionsFromValue(t,B,te,i,J=>_b(t,P,n,m,J,w,x,i)),[s,m,n,i,x,t,w,P]),M=p.useMemo(()=>s.getValueStrFromSections(A(a.emptyValue),i),[s,A,a.emptyValue,i]),[O,_]=p.useState(()=>{const B=A(k),te={sections:B,value:k,referenceValue:a.emptyValue,tempValueStrAndroid:null},J=ZU(B),G=a.getInitialReferenceValue({referenceDate:h,value:k,utils:t,props:c,granularity:J,timezone:P});return S({},te,{referenceValue:G})}),[$,D]=Bn({controlled:v,default:null,name:"useField",state:"selectedSectionIndexes"}),R=B=>{D(B),y==null||y(B),_(te=>S({},te,{selectedSectionQuery:null}))},N=p.useMemo(()=>{if($==null)return null;if($==="all")return{startIndex:0,endIndex:O.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof $=="number")return{startIndex:$,endIndex:$};if(typeof $=="string"){const B=O.sections.findIndex(te=>te.type===$);return{startIndex:B,endIndex:B}}return $},[$,O.sections]),j=({value:B,referenceValue:te,sections:J})=>{_(se=>S({},se,{sections:J,value:B,referenceValue:te,tempValueStrAndroid:null}));const G={validationError:u({adapter:r,value:B,props:S({},c,{value:B,timezone:P})})};E(B,G)},I=(B,te)=>{const J=[...O.sections];return J[B]=S({},J[B],{value:te,modified:!0}),Gk(J,i)},L=()=>{a.areValuesEqual(t,O.value,a.emptyValue)||j({value:a.emptyValue,referenceValue:O.referenceValue,sections:A(a.emptyValue)})},F=()=>{if(N==null)return;const B=O.sections[N.startIndex];if(B.value==="")return;const te=s.getActiveDateManager(t,O,B),G=te.getSections(O.sections).filter(re=>re.value!=="").length===1,se=I(N.startIndex,""),pe=G?null:t.date(new Date("")),le=te.getNewValuesFromNewActiveDate(pe);(pe!=null&&!t.isValid(pe))!=(te.date!=null&&!t.isValid(te.date))?j(S({},le,{sections:se})):_(re=>S({},re,le,{sections:se,tempValueStrAndroid:null}))},K=B=>{const te=(se,pe)=>{const le=t.parse(se,m);if(le==null||!t.isValid(le))return null;const re=_b(t,P,n,m,le,w,x,i);return Fb(t,P,le,re,pe,!1)},J=s.parseValueStr(B,O.referenceValue,te),G=s.updateReferenceValue(t,J,O.referenceValue);j({value:J,referenceValue:G,sections:A(J,O.sections)})},ae=({activeSection:B,newSectionValue:te,shouldGoToNextSection:J})=>{J&&N&&N.startIndexS({},oe,re,{sections:se,tempValueStrAndroid:null}))},ie=B=>_(te=>S({},te,{tempValueStrAndroid:B}));return p.useEffect(()=>{const B=A(O.value);_(te=>S({},te,{sections:B}))},[m,t.locale]),p.useEffect(()=>{let B=!1;a.areValuesEqual(t,O.value,k)?B=a.getTimezone(t,O.value)!==a.getTimezone(t,k):B=!0,B&&_(te=>S({},te,{value:k,referenceValue:s.updateReferenceValue(t,k,te.referenceValue),sections:A(k)}))},[k]),{state:O,selectedSectionIndexes:N,setSelectedSections:R,clearValue:L,clearActiveSection:F,updateSectionValue:ae,updateValueFromValueStr:K,setTempAndroidValueStr:ie,sectionsValueBoundaries:T,placeholder:M,timezone:P}},bW=5e3,la=e=>e.saveQuery!=null,wW=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const i=Pt(),[a,s]=p.useState(null),l=Ee(()=>s(null));p.useEffect(()=>{var h;a!=null&&((h=e[a.sectionIndex])==null?void 0:h.type)!==a.sectionType&&l()},[e,a,l]),p.useEffect(()=>{if(a!=null){const h=setTimeout(()=>l(),bW);return()=>{window.clearTimeout(h)}}return()=>{}},[a,l]);const u=({keyPressed:h,sectionIndex:g},m,w)=>{const v=h.toLowerCase(),y=e[g];if(a!=null&&(!w||w(a.value))&&a.sectionIndex===g){const b=`${a.value}${v}`,P=m(b,y);if(!la(P))return s({sectionIndex:g,value:b,sectionType:y.type}),P}const x=m(v,y);return la(x)&&!x.saveQuery?(l(),null):(s({sectionIndex:g,value:v,sectionType:y.type}),la(x)?null:x)},c=h=>{const g=(v,y,x)=>{const b=y.filter(P=>P.toLowerCase().startsWith(x));return b.length===0?{saveQuery:!1}:{sectionValue:b[0],shouldGoToNextSection:b.length===1}},m=(v,y,x,b)=>{const P=k=>Hk(i,o,y.type,k);if(y.contentType==="letter")return g(y.format,P(y.format),v);if(x&&b!=null&&Wk(i,x).contentType==="letter"){const k=P(x),E=g(x,k,v);return la(E)?{saveQuery:!1}:S({},E,{sectionValue:b(E.sectionValue,k)})}return{saveQuery:!1}};return u(h,(v,y)=>{switch(y.type){case"month":{const x=b=>Nb(i,b,i.formats.month,y.format);return m(v,y,i.formats.month,x)}case"weekDay":{const x=(b,P)=>P.indexOf(b).toString();return m(v,y,i.formats.weekday,x)}case"meridiem":return m(v,y);default:return{saveQuery:!1}}})},d=h=>{const g=(w,v)=>{const y=+`${w}`,x=n[v.type]({currentDate:null,format:v.format,contentType:v.contentType});if(y>x.maximum)return{saveQuery:!1};if(yx.maximum||w.length===x.maximum.toString().length;return{sectionValue:Kk(i,o,y,x,v),shouldGoToNextSection:b}};return u(h,(w,v)=>{if(v.contentType==="digit"||v.contentType==="digit-with-letter")return g(w,v);if(v.type==="month"){const y=Xk(i,o,"digit","month","MM"),x=g(w,{type:v.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(la(x))return x;const b=Nb(i,x.sectionValue,"MM",v.format);return S({},x,{sectionValue:b})}if(v.type==="weekDay"){const y=g(w,v);if(la(y))return y;const x=Ip(i,o,v.format)[Number(y.sectionValue)-1];return S({},y,{sectionValue:x})}return{saveQuery:!1}},w=>!Number.isNaN(Number(w)))};return{applyCharacterEditing:Ee(h=>{const g=e[h.sectionIndex],w=!Number.isNaN(Number(h.keyPressed))?d(h):c(h);w==null?r(null):t({activeSection:g,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:l}};function SW(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Vd=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Vd(t.shadowRoot):t:null},CW=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error"],PW=e=>{const t=Pt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:i,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:d,timezone:f}=xW(e),{inputRef:h,internalProps:g,internalProps:{readOnly:m=!1,unstableFieldRef:w,minutesStep:v},forwardedProps:{onClick:y,onKeyDown:x,onFocus:b,onBlur:P,onMouseUp:k,onPaste:E,error:T},fieldValueManager:A,valueManager:M,validator:O}=e,_=ne(e.forwardedProps,CW),{applyCharacterEditing:$,resetCharacterQuery:D}=wW({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:f}),R=p.useRef(null),N=ht(h,R),j=p.useRef(void 0),L=$o().direction==="rtl",F=p.useMemo(()=>uW(n.sections,L),[n.sections,L]),K=()=>{var V;if(m){o(null);return}const ge=(V=R.current.selectionStart)!=null?V:0;let X;ge<=n.sections[0].startInInput||ge>=n.sections[n.sections.length-1].endInInput?X=1:X=n.sections.findIndex(be=>be.startInInput-be.startSeparator.length>ge);const he=X===-1?n.sections.length-1:X-1;o(he)},ae=Ee((...V)=>{y==null||y(...V),K()}),ie=Ee(V=>{k==null||k(V),V.preventDefault()}),B=Ee((...V)=>{b==null||b(...V);const ge=R.current;window.clearTimeout(j.current),j.current=setTimeout(()=>{!ge||ge!==R.current||r!=null||m||(ge.value.length&&Number(ge.selectionEnd)-Number(ge.selectionStart)===ge.value.length?o("all"):K())})}),te=Ee((...V)=>{P==null||P(...V),o(null)}),J=Ee(V=>{if(E==null||E(V),m){V.preventDefault();return}const ge=V.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const X=n.sections[r.startIndex],he=/^[a-zA-Z]+$/.test(ge),be=/^[0-9]+$/.test(ge),$e=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ge);if(X.contentType==="letter"&&he||X.contentType==="digit"&&be||X.contentType==="digit-with-letter"&&$e)return;if(he||be){V.preventDefault();return}}V.preventDefault(),D(),l(ge)}),G=Ee(V=>{if(m)return;const ge=V.target.value,X=V.nativeEvent.data,he=X&&X.length>1,be=he?X:ge,$e=Ma(be);if(r==null||he){l(he?X:$e);return}let Le;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&$e.length===1)Le=$e;else{const Ue=Ma(A.getValueStrFromSections(n.sections,L));let et=-1,Be=-1;for(let Se=0;Sett.end)return;const Ye=$e.length-Ue.length+tt.end-Ma(tt.endSeparator||"").length;Le=$e.slice(tt.start+Ma(tt.startSeparator||"").length,Ye)}if(lW()&&Le.length===0){u(be);return}$({keyPressed:Le,sectionIndex:r.startIndex})}),se=Ee(V=>{switch(x==null||x(V),!0){case(V.key==="a"&&(V.ctrlKey||V.metaKey)):{V.preventDefault(),o("all");break}case V.key==="ArrowRight":{if(V.preventDefault(),r==null)o(F.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const ge=F.neighbors[r.startIndex].rightIndex;ge!==null&&o(ge)}break}case V.key==="ArrowLeft":{if(V.preventDefault(),r==null)o(F.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const ge=F.neighbors[r.startIndex].leftIndex;ge!==null&&o(ge)}break}case["Backspace","Delete"].includes(V.key):{if(V.preventDefault(),m)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?i():a(),D();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(V.key):{if(V.preventDefault(),m||r==null)break;const ge=n.sections[r.startIndex],X=A.getActiveDateManager(t,n,ge),he=tW(t,f,ge,V.key,c,X.date,{minutesStep:v});s({activeSection:ge,newSectionValue:he,shouldGoToNextSection:!1});break}}});cn(()=>{if(!R.current)return;if(r==null){R.current.scrollLeft&&(R.current.scrollLeft=0);return}const V=n.sections[r.startIndex],ge=n.sections[r.endIndex];let X=V.startInInput,he=ge.endInInput;if(r.shouldSelectBoundarySelectors&&(X-=V.startSeparator.length,he+=ge.endSeparator.length),X!==R.current.selectionStart||he!==R.current.selectionEnd){const be=R.current.scrollTop;R.current===Vd(document)&&R.current.setSelectionRange(X,he),R.current.scrollTop=be}});const pe=eR(S({},g,{value:n.value,timezone:f}),O,M.isSameError,M.defaultErrorState),le=p.useMemo(()=>T!==void 0?T:M.hasError(pe),[M,pe,T]);p.useEffect(()=>{!le&&!r&&D()},[n.referenceValue,r,le]),p.useEffect(()=>(R.current&&R.current===document.activeElement&&o("all"),()=>window.clearTimeout(j.current)),[]),p.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(D(),a())},[n.tempValueStrAndroid]);const re=p.useMemo(()=>{var V;return(V=n.tempValueStrAndroid)!=null?V:A.getValueStrFromSections(n.sections,L)},[n.sections,A,n.tempValueStrAndroid,L]),ee=p.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),me=!(R.current&&R.current===Vd(document))&&M.areValuesEqual(t,n.value,M.emptyValue);return p.useImperativeHandle(w,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var V,ge;const X=(V=R.current.selectionStart)!=null?V:0,he=(ge=R.current.selectionEnd)!=null?ge:0;if(X===0&&he===0)return null;const be=X<=n.sections[0].startInInput?1:n.sections.findIndex($e=>$e.startInInput-$e.startSeparator.length>X);return be===-1?n.sections.length-1:be-1},setSelectedSections:V=>o(V)})),S({placeholder:d,autoComplete:"off"},_,{value:me?"":re,inputMode:ee,readOnly:m,onClick:ae,onFocus:B,onBlur:te,onPaste:J,onChange:G,onKeyDown:se,onMouseUp:ie,error:le,ref:N})},zy=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:i,disablePast:a,disableFuture:s,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=Er(n.utils,e.minDate,n.defaultDates.minDate),d=Er(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(a&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}},xg=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],bg=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],tR=["minDateTime","maxDateTime"],EW=[...xg,...bg,...tR],kW=e=>EW.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),RW=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],TW=(e,t)=>{const n=S({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return RW.forEach(o),t==="date"?xg.forEach(o):t==="time"?bg.forEach(o):t==="date-time"&&(xg.forEach(o),bg.forEach(o),tR.forEach(o)),{forwardedProps:n,internalProps:r}},MW=e=>{var t,n,r;const o=Pt(),i=Ou();return S({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Er(o,e.minDate,i.minDate),maxDate:Er(o,e.maxDate,i.maxDate)})},$W=({props:e,inputRef:t})=>{const n=MW(e),{forwardedProps:r,internalProps:o}=TW(n,"date");return PW({inputRef:t,forwardedProps:r,internalProps:o,valueManager:fi,fieldValueManager:dW,validator:zy,valueType:"date"})},OW=["components","componentsProps","slots","slotProps","InputProps","inputProps"],DW=["inputRef"],AW=["ref","onPaste","onKeyDown","inputMode","readOnly"],IW=p.forwardRef(function(t,n){var r,o,i;const a=we({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:f}=a,h=ne(a,OW),g=a,m=(r=(o=u==null?void 0:u.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:Fr,w=yt({elementType:m,externalSlotProps:(i=c==null?void 0:c.textField)!=null?i:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:g}),{inputRef:v}=w,y=ne(w,DW);y.inputProps=S({},f,y.inputProps),y.InputProps=S({},d,y.InputProps);const x=$W({props:y,inputRef:v}),{ref:b,onPaste:P,onKeyDown:k,inputMode:E,readOnly:T}=x,A=ne(x,AW);return C.jsx(m,S({ref:n},A,{InputProps:S({},A.InputProps,{readOnly:T}),inputProps:S({},A.inputProps,{inputMode:E,onPaste:P,onKeyDown:k,ref:b})}))}),nR=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Zi();return p.useCallback(u=>zy({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s}})!==null,[l,e,t,n,r,o,i,a,s])},LW=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return S({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return S({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return S({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},NW=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:i,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:d,timezone:f}=e,h=Du(f),g=Pt(),m=p.useRef(LW(!!c,a,g)).current,w=p.useMemo(()=>{let T=null;return n?T=n:r&&(T=g.startOfMonth(r)),fi.getInitialReferenceValue({value:t,utils:g,timezone:f,props:e,referenceDate:T,granularity:Qr.day})},[]),[v,y]=p.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:t||h,currentMonth:g.startOfMonth(w),slideDirection:"left"}),x=p.useCallback(T=>{y(S({type:"changeMonth"},T)),u&&u(T.newMonth)},[u]),b=p.useCallback(T=>{const A=T;g.isSameMonth(A,v.currentMonth)||x({newMonth:g.startOfMonth(A),direction:g.isAfterDay(A,v.currentMonth)?"left":"right"})},[v.currentMonth,x,g]),P=nR({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:o,disablePast:i,timezone:f}),k=p.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=Ee((T,A)=>{P(T)||y({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:A})});return{referenceDate:w,calendarState:v,changeMonth:b,changeFocusedDay:E,isDateDisabled:P,onMonthSwitchingAnimationEnd:k,handleChangeMonth:x}},_W=e=>Re("MuiPickersFadeTransitionGroup",e);Te("MuiPickersFadeTransitionGroup",["root"]);const jW=e=>{const{classes:t}=e;return ke({root:["root"]},_W,t)},zb=500,FW=H(ey,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function rR(e){const t=we({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=jW(t);return o?n:C.jsx(FW,{className:fe(a.root,r),children:C.jsx(Mp,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:zb,enter:zb/2,exit:0},children:n},i)})}const zW=e=>Re("MuiPickersSlideTransition",e),ur=Te("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),BW=["children","className","reduceAnimations","slideDirection","transKey","classes"],VW=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ke(r,zW,t)},oR=350,UW=H(ey,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ur["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ur["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ur.slideEnterActive}`]:t.slideEnterActive},{[`.${ur.slideExit}`]:t.slideExit},{[`.${ur["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ur["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:oR,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},[`& .${ur["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ur["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ur.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ur.slideExit}`]:{transform:"translate(0%)"},[`& .${ur["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ur["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function WW(e){const t=we({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=ne(t,BW),s=VW(t);if(o)return C.jsx("div",{className:fe(s.root,r),children:n});const l={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return C.jsx(UW,{className:fe(s.root,r),childFactory:u=>p.cloneElement(u,{classNames:l}),role:"presentation",children:C.jsx(TI,S({mountOnEnter:!0,unmountOnExit:!0,timeout:oR,classNames:l},a,{children:n}),i)})}const HW=e=>Re("MuiDayCalendar",e);Te("MuiDayCalendar",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const YW=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],KW=["ownerState"],GW=e=>{const{classes:t}=e;return ke({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},HW,t)},qW=e=>e.charAt(0).toUpperCase(),iR=(su+Ap*2)*6,XW=H("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),QW=H(At,{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})),ZW=H(At,{name:"MuiDayPicker",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})),JW=H(At,{name:"MuiDayPicker",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>S({},e.typography.caption,{width:su,height:su,padding:0,margin:`0 ${Ap}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),e8=H("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:iR}),t8=H(WW,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:iR}),n8=H("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),r8=H("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ap}px 0`,display:"flex",justifyContent:"center"});function o8(e){var t,n,r;let{parentProps:o,day:i,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=ne(e,YW);const{disabled:f,disableHighlightToday:h,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:m,components:w,componentsProps:v,slots:y,slotProps:x,timezone:b}=o,P=Pt(),k=Du(b),E=a!==null&&P.isSameDay(i,a),T=s.some(j=>P.isSameDay(j,i)),A=P.isSameDay(i,k),M=(t=(n=y==null?void 0:y.day)!=null?n:w==null?void 0:w.Day)!=null?t:yW,O=yt({elementType:M,externalSlotProps:(r=x==null?void 0:x.day)!=null?r:v==null?void 0:v.day,additionalProps:S({disableHighlightToday:h,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:g,"data-timestamp":P.toJsDate(i).valueOf()},d),ownerState:S({},o,{day:i,selected:T})}),_=ne(O,KW),$=p.useMemo(()=>f||l(i),[f,l,i]),D=p.useMemo(()=>P.getMonth(i)!==u,[P,i,u]),R=p.useMemo(()=>{const j=P.startOfMonth(P.setMonth(i,u));return m?P.isSameDay(i,P.startOfWeek(j)):P.isSameDay(i,j)},[u,i,m,P]),N=p.useMemo(()=>{const j=P.endOfMonth(P.setMonth(i,u));return m?P.isSameDay(i,P.endOfWeek(j)):P.isSameDay(i,j)},[u,i,m,P]);return C.jsx(M,S({},_,{day:i,disabled:$,autoFocus:c&&E,today:A,outsideCurrentMonth:D,isFirstVisibleCell:R,isLastVisibleCell:N,selected:T,tabIndex:E?0:-1,"aria-selected":T,"aria-current":A?"date":void 0}))}function i8(e){const t=we({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:i,focusedDay:a,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:d,renderLoading:f=()=>C.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:g,disablePast:m,disableFuture:w,minDate:v,maxDate:y,shouldDisableDate:x,shouldDisableMonth:b,shouldDisableYear:P,dayOfWeekFormatter:k=qW,hasFocus:E,onFocusedViewChange:T,gridLabelId:A,displayWeekNumber:M,fixedWeekNumber:O,autoFocus:_,timezone:$}=t,D=Du($),R=Pt(),N=GW(t),I=$o().direction==="rtl",L=nR({shouldDisableDate:x,shouldDisableMonth:b,shouldDisableYear:P,minDate:v,maxDate:y,disablePast:m,disableFuture:w,timezone:$}),F=Ts(),[K,ae]=Bn({name:"DayCalendar",state:"hasFocus",controlled:E,default:_??!1}),[ie,B]=p.useState(()=>a||D),te=Ee(X=>{c||l(X)}),J=X=>{L(X)||(n(X),B(X),T==null||T(!0),ae(!0))},G=Ee((X,he)=>{switch(X.key){case"ArrowUp":J(R.addDays(he,-7)),X.preventDefault();break;case"ArrowDown":J(R.addDays(he,7)),X.preventDefault();break;case"ArrowLeft":{const be=R.addDays(he,I?1:-1),$e=R.addMonths(he,I?1:-1),Le=kl({utils:R,date:be,minDate:I?be:R.startOfMonth($e),maxDate:I?R.endOfMonth($e):be,isDateDisabled:L,timezone:$});J(Le||be),X.preventDefault();break}case"ArrowRight":{const be=R.addDays(he,I?-1:1),$e=R.addMonths(he,I?-1:1),Le=kl({utils:R,date:be,minDate:I?R.startOfMonth($e):be,maxDate:I?be:R.endOfMonth($e),isDateDisabled:L,timezone:$});J(Le||be),X.preventDefault();break}case"Home":J(R.startOfWeek(he)),X.preventDefault();break;case"End":J(R.endOfWeek(he)),X.preventDefault();break;case"PageUp":J(R.addMonths(he,1)),X.preventDefault();break;case"PageDown":J(R.addMonths(he,-1)),X.preventDefault();break}}),se=Ee((X,he)=>J(he)),pe=Ee((X,he)=>{K&&R.isSameDay(ie,he)&&(T==null||T(!1))}),le=R.getMonth(o),re=p.useMemo(()=>i.filter(X=>!!X).map(X=>R.startOfDay(X)),[R,i]),ee=le,oe=p.useMemo(()=>p.createRef(),[ee]),me=R.startOfWeek(D),V=p.useMemo(()=>{const X=R.startOfMonth(o),he=R.endOfMonth(o);return L(ie)||R.isAfterDay(ie,he)||R.isBeforeDay(ie,X)?kl({utils:R,date:ie,minDate:X,maxDate:he,disablePast:m,disableFuture:w,isDateDisabled:L,timezone:$}):ie},[o,w,m,ie,L,R,$]),ge=p.useMemo(()=>{const X=R.setTimezone(o,$),he=R.getWeekArray(X);let be=R.addMonths(X,1);for(;O&&he.length{he.length{var be;return C.jsx(QW,{variant:"caption",role:"columnheader","aria-label":R.format(R.addDays(me,he),"weekday"),className:N.weekDayLabel,children:(be=k==null?void 0:k(X))!=null?be:X},X+he.toString())})]}),s?C.jsx(e8,{className:N.loadingContainer,children:f()}):C.jsx(t8,S({transKey:ee,onExited:u,reduceAnimations:d,slideDirection:h,className:fe(r,N.slideTransition)},g,{nodeRef:oe,children:C.jsx(n8,{ref:oe,role:"rowgroup",className:N.monthContainer,children:ge.map((X,he)=>C.jsxs(r8,{role:"row",className:N.weekContainer,"aria-rowindex":he+1,children:[M&&C.jsx(JW,{className:N.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(R.getWeekNumber(X[0])),children:F.calendarWeekNumberText(R.getWeekNumber(X[0]))}),X.map((be,$e)=>C.jsx(o8,{parentProps:t,day:be,selectedDays:re,focusableDay:V,onKeyDown:G,onFocus:se,onBlur:pe,onDaySelect:te,isDateDisabled:L,currentMonthNumber:le,isViewFocused:K,"aria-colindex":$e+1},be.toString()))]},`week-${X[0]}`))})}))]})}function a8(e){return Re("MuiPickersMonth",e)}const yc=Te("MuiPickersMonth",["root","monthButton","disabled","selected"]),s8=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","monthsPerRow"],l8=e=>{const{disabled:t,selected:n,classes:r}=e;return ke({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},a8,r)},u8=H("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),c8=H("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${yc.disabled}`]:t.disabled},{[`&.${yc.selected}`]:t.selected}]})(({theme:e})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${yc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${yc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),d8=p.memo(function(t){const n=we({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:i,value:a,tabIndex:s,onClick:l,onKeyDown:u,onFocus:c,onBlur:d,"aria-current":f}=n,h=ne(n,s8),g=p.useRef(null),m=l8(n);return cn(()=>{if(r){var w;(w=g.current)==null||w.focus()}},[r]),C.jsx(u8,S({className:m.root,ownerState:n},h,{children:C.jsx(c8,{ref:g,disabled:i,type:"button",tabIndex:i?-1:s,"aria-current":f,onClick:w=>l(w,a),onKeyDown:w=>u(w,a),onFocus:w=>c(w,a),onBlur:w=>d(w,a),className:m.monthButton,ownerState:n,children:o})}))});function f8(e){return Re("MuiMonthCalendar",e)}Te("MuiMonthCalendar",["root"]);const p8=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone"],h8=e=>{const{classes:t}=e;return ke({root:["root"]},f8,t)};function m8(e,t){const n=Pt(),r=Ou(),o=we({props:e,name:t});return S({disableFuture:!1,disablePast:!1},o,{minDate:Er(n,o.minDate,r.minDate),maxDate:Er(n,o.maxDate,r.maxDate)})}const g8=H("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:320}),v8=p.forwardRef(function(t,n){const r=m8(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:h,shouldDisableMonth:g,readOnly:m,disableHighlightToday:w,autoFocus:v=!1,onMonthFocus:y,hasFocus:x,onFocusedViewChange:b,monthsPerRow:P=3,timezone:k}=r,E=ne(r,p8),{value:T,handleValueChange:A,timezone:M}=_y({name:"MonthCalendar",timezone:k,value:i,defaultValue:a,onChange:h,valueManager:fi}),O=Du(M),_=ws(),$=Pt(),D=p.useMemo(()=>fi.getInitialReferenceValue({value:T,utils:$,props:r,timezone:M,referenceDate:s,granularity:Qr.month}),[]),R=r,N=h8(R),j=p.useMemo(()=>$.getMonth(O),[$,O]),I=p.useMemo(()=>T!=null?$.getMonth(T):w?null:$.getMonth(D),[T,$,w,D]),[L,F]=p.useState(()=>I||j),[K,ae]=Bn({name:"MonthCalendar",state:"hasFocus",controlled:x,default:v??!1}),ie=Ee(le=>{ae(le),b&&b(le)}),B=p.useCallback(le=>{const re=$.startOfMonth(c&&$.isAfter(O,f)?O:f),ee=$.startOfMonth(u&&$.isBefore(O,d)?O:d),oe=$.startOfMonth(le);return $.isBefore(oe,re)||$.isAfter(oe,ee)?!0:g?g(oe):!1},[u,c,d,f,O,g,$]),te=Ee((le,re)=>{if(m)return;const ee=$.setMonth(T??D,re);A(ee)}),J=Ee(le=>{B($.setMonth(T??D,le))||(F(le),ie(!0),y&&y(le))});p.useEffect(()=>{F(le=>I!==null&&le!==I?I:le)},[I]);const G=Ee((le,re)=>{switch(le.key){case"ArrowUp":J((12+re-3)%12),le.preventDefault();break;case"ArrowDown":J((12+re+3)%12),le.preventDefault();break;case"ArrowLeft":J((12+re+(_.direction==="ltr"?-1:1))%12),le.preventDefault();break;case"ArrowRight":J((12+re+(_.direction==="ltr"?1:-1))%12),le.preventDefault();break}}),se=Ee((le,re)=>{J(re)}),pe=Ee((le,re)=>{L===re&&ie(!1)});return C.jsx(g8,S({ref:n,className:fe(N.root,o),ownerState:R},E,{children:jy($,T??D).map(le=>{const re=$.getMonth(le),ee=$.format(le,"monthShort"),oe=re===I,me=l||B(le);return C.jsx(d8,{selected:oe,value:re,onClick:te,onKeyDown:G,autoFocus:K&&re===L,disabled:me,tabIndex:re===L?0:-1,onFocus:se,onBlur:pe,"aria-current":j===re?"date":void 0,monthsPerRow:P,children:ee},ee)})}))});function y8(e){return Re("MuiPickersYear",e)}const xc=Te("MuiPickersYear",["root","yearButton","selected","disabled"]),x8=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],b8=e=>{const{disabled:t,selected:n,classes:r}=e;return ke({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},y8,r)},w8=H("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),S8=H("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${xc.disabled}`]:t.disabled},{[`&.${xc.selected}`]:t.selected}]})(({theme:e})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Ge(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ge(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${xc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),C8=p.memo(function(t){const n=we({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:d,onBlur:f,"aria-current":h}=n,g=ne(n,x8),m=p.useRef(null),w=b8(n);return p.useEffect(()=>{r&&m.current.focus()},[r]),C.jsx(w8,S({className:fe(w.root,o),ownerState:n},g,{children:C.jsx(S8,{ref:m,disabled:a,type:"button",tabIndex:a?-1:l,"aria-current":h,onClick:v=>u(v,s),onKeyDown:v=>c(v,s),onFocus:v=>d(v,s),onBlur:v=>f(v,s),className:w.yearButton,ownerState:n,children:i})}))});function P8(e){return Re("MuiYearCalendar",e)}Te("MuiYearCalendar",["root"]);const E8=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone"],k8=e=>{const{classes:t}=e;return ke({root:["root"]},P8,t)};function R8(e,t){const n=Pt(),r=Ou(),o=we({props:e,name:t});return S({disablePast:!1,disableFuture:!1},o,{minDate:Er(n,o.minDate,r.minDate),maxDate:Er(n,o.maxDate,r.maxDate)})}const T8=H("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:320,maxHeight:304,boxSizing:"border-box",position:"relative"}),M8=p.forwardRef(function(t,n){const r=R8(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:f,minDate:h,onChange:g,readOnly:m,shouldDisableYear:w,disableHighlightToday:v,onYearFocus:y,hasFocus:x,onFocusedViewChange:b,yearsPerRow:P=3,timezone:k}=r,E=ne(r,E8),{value:T,handleValueChange:A,timezone:M}=_y({name:"YearCalendar",timezone:k,value:a,defaultValue:s,onChange:g,valueManager:fi}),O=Du(M),_=ws(),$=Pt(),D=p.useMemo(()=>fi.getInitialReferenceValue({value:T,utils:$,props:r,timezone:M,referenceDate:l,granularity:Qr.year}),[]),R=r,N=k8(R),j=p.useMemo(()=>$.getYear(O),[$,O]),I=p.useMemo(()=>T!=null?$.getYear(T):v?null:$.getYear(D),[T,$,v,D]),[L,F]=p.useState(()=>I||j),[K,ae]=Bn({name:"YearCalendar",state:"hasFocus",controlled:x,default:o??!1}),ie=Ee(ee=>{ae(ee),b&&b(ee)}),B=p.useCallback(ee=>{if(d&&$.isBeforeYear(ee,O)||c&&$.isAfterYear(ee,O)||h&&$.isBeforeYear(ee,h)||f&&$.isAfterYear(ee,f))return!0;if(!w)return!1;const oe=$.startOfYear(ee);return w(oe)},[c,d,f,h,O,w,$]),te=Ee((ee,oe)=>{if(m)return;const me=$.setYear(T??D,oe);A(me)}),J=Ee(ee=>{B($.setYear(T??D,ee))||(F(ee),ie(!0),y==null||y(ee))});p.useEffect(()=>{F(ee=>I!==null&&ee!==I?I:ee)},[I]);const G=Ee((ee,oe)=>{switch(ee.key){case"ArrowUp":J(oe-P),ee.preventDefault();break;case"ArrowDown":J(oe+P),ee.preventDefault();break;case"ArrowLeft":J(oe+(_.direction==="ltr"?-1:1)),ee.preventDefault();break;case"ArrowRight":J(oe+(_.direction==="ltr"?1:-1)),ee.preventDefault();break}}),se=Ee((ee,oe)=>{J(oe)}),pe=Ee((ee,oe)=>{L===oe&&ie(!1)}),le=p.useRef(null),re=ht(n,le);return p.useEffect(()=>{if(o||le.current===null)return;const ee=le.current.querySelector('[tabindex="0"]');if(!ee)return;const oe=ee.offsetHeight,me=ee.offsetTop,V=le.current.clientHeight,ge=le.current.scrollTop,X=me+oe;oe>V||me{const oe=$.getYear(ee),me=oe===I,V=u||B(ee);return C.jsx(C8,{selected:me,value:oe,onClick:te,onKeyDown:G,autoFocus:K&&oe===L,disabled:V,tabIndex:oe===L?0:-1,onFocus:se,onBlur:pe,"aria-current":j===oe?"date":void 0,yearsPerRow:P,children:$.format(ee,"year")},$.format(ee,"year"))})}))}),$8=e=>Re("MuiPickersCalendarHeader",e),O8=Te("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),D8=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],A8=["ownerState"],I8=e=>{const{classes:t}=e;return ke({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},$8,t)},L8=H("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),N8=H("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>S({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),_8=H("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),j8=H(Eo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>S({marginRight:"auto"},e.view==="year"&&{[`.${O8.switchViewIcon}`]:{transform:"rotate(180deg)"}})),F8=H(MU,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),z8=p.forwardRef(function(t,n){var r,o;const i=Ts(),a=Pt(),s=we({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:u,currentMonth:c,disabled:d,disableFuture:f,disablePast:h,maxDate:g,minDate:m,onMonthChange:w,onViewChange:v,view:y,reduceAnimations:x,views:b,labelId:P,className:k,timezone:E}=s,T=ne(s,D8),A=s,M=I8(s),O=(r=l==null?void 0:l.switchViewButton)!=null?r:j8,_=yt({elementType:O,externalSlotProps:u==null?void 0:u.switchViewButton,additionalProps:{size:"small","aria-label":i.calendarViewSwitchingButtonAriaLabel(y)},ownerState:A,className:M.switchViewButton}),$=(o=l==null?void 0:l.switchViewIcon)!=null?o:F8,D=yt({elementType:$,externalSlotProps:u==null?void 0:u.switchViewIcon,ownerState:void 0,className:M.switchViewIcon}),R=ne(D,A8),N=()=>w(a.addMonths(c,1),"left"),j=()=>w(a.addMonths(c,-1),"right"),I=HU(c,{disableFuture:f,maxDate:g,timezone:E}),L=YU(c,{disablePast:h,minDate:m,timezone:E}),F=()=>{if(!(b.length===1||!v||d))if(b.length===2)v(b.find(K=>K!==y)||b[0]);else{const K=b.indexOf(y)!==0?0:1;v(b[K])}};return b.length===1&&b[0]==="year"?null:C.jsxs(L8,S({},T,{ownerState:A,className:fe(k,M.root),ref:n,children:[C.jsxs(N8,{role:"presentation",onClick:F,ownerState:A,"aria-live":"polite",className:M.labelContainer,children:[C.jsx(rR,{reduceAnimations:x,transKey:a.format(c,"monthAndYear"),children:C.jsx(_8,{id:P,ownerState:A,className:M.label,children:a.format(c,"monthAndYear")})}),b.length>1&&!d&&C.jsx(O,S({},_,{children:C.jsx($,S({},R))}))]}),C.jsx(Mp,{in:y==="day",children:C.jsx(zU,{slots:l,slotProps:u,onGoToPrevious:j,isPreviousDisabled:L,previousLabel:i.previousMonth,onGoToNext:N,isNextDisabled:I,nextLabel:i.nextMonth})})]}))}),B8="@media (prefers-reduced-motion: reduce)",Ha=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Bb=Ha&&Ha[1]?parseInt(Ha[1],10):null,Vb=Ha&&Ha[2]?parseInt(Ha[2],10):null,V8=Bb&&Bb<10||Vb&&Vb<13||!1,aR=()=>S3(B8,{defaultMatches:!1})||V8,U8=e=>Re("MuiDateCalendar",e);Te("MuiDateCalendar",["root","viewTransitionContainer"]);const W8=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],H8=e=>{const{classes:t}=e;return ke({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},U8,t)};function Y8(e,t){var n,r,o,i,a,s,l;const u=Pt(),c=Ou(),d=aR(),f=we({props:e,name:t});return S({},f,{loading:(n=f.loading)!=null?n:!1,disablePast:(r=f.disablePast)!=null?r:!1,disableFuture:(o=f.disableFuture)!=null?o:!1,openTo:(i=f.openTo)!=null?i:"day",views:(a=f.views)!=null?a:["year","day"],reduceAnimations:(s=f.reduceAnimations)!=null?s:d,renderLoading:(l=f.renderLoading)!=null?l:()=>C.jsx("span",{children:"..."}),minDate:Er(u,f.minDate,c.minDate),maxDate:Er(u,f.maxDate,c.maxDate)})}const K8=H(GU,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),G8=H(rR,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),q8=p.forwardRef(function(t,n){var r,o,i;const a=Pt(),s=bu(),l=Y8(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:f,referenceDate:h,disableFuture:g,disablePast:m,defaultCalendarMonth:w,onChange:v,onYearChange:y,onMonthChange:x,reduceAnimations:b,shouldDisableDate:P,shouldDisableMonth:k,shouldDisableYear:E,view:T,views:A,openTo:M,className:O,disabled:_,readOnly:$,minDate:D,maxDate:R,disableHighlightToday:N,focusedView:j,onFocusedViewChange:I,showDaysOutsideCurrentMonth:L,fixedWeekNumber:F,dayOfWeekFormatter:K,components:ae,componentsProps:ie,slots:B,slotProps:te,loading:J,renderLoading:G,displayWeekNumber:se,yearsPerRow:pe,monthsPerRow:le,timezone:re}=l,ee=ne(l,W8),{value:oe,handleValueChange:me,timezone:V}=_y({name:"DateCalendar",timezone:re,value:d,defaultValue:f,onChange:v,valueManager:fi}),{view:ge,setView:X,focusedView:he,setFocusedView:be,goToNextView:$e,setValueAndGoToNextView:Le}=zk({view:T,views:A,openTo:M,onChange:me,onViewChange:c,autoFocus:u,focusedView:j,onFocusedViewChange:I}),{referenceDate:Ue,calendarState:et,changeFocusedDay:Be,changeMonth:tt,handleChangeMonth:xt,isDateDisabled:Ye,onMonthSwitchingAnimationEnd:Se}=NW({value:oe,defaultCalendarMonth:w,referenceDate:h,reduceAnimations:b,onMonthChange:x,minDate:D,maxDate:R,shouldDisableDate:P,disablePast:m,disableFuture:g,timezone:V}),Ce=_&&oe||D,zt=_&&oe||R,rn=`${s}-grid-label`,Oe=he!==null,je=(r=(o=B==null?void 0:B.calendarHeader)!=null?o:ae==null?void 0:ae.CalendarHeader)!=null?r:z8,z=yt({elementType:je,externalSlotProps:(i=te==null?void 0:te.calendarHeader)!=null?i:ie==null?void 0:ie.calendarHeader,additionalProps:{views:A,view:ge,currentMonth:et.currentMonth,onViewChange:X,onMonthChange:(_e,Fe)=>xt({newMonth:_e,direction:Fe}),minDate:Ce,maxDate:zt,disabled:_,disablePast:m,disableFuture:g,reduceAnimations:b,timezone:V,labelId:rn,slots:B,slotProps:te},ownerState:l}),U=Ee(_e=>{const Fe=a.startOfMonth(_e),ot=a.endOfMonth(_e),it=Ye(_e)?kl({utils:a,date:_e,minDate:a.isBefore(D,Fe)?Fe:D,maxDate:a.isAfter(R,ot)?ot:R,disablePast:m,disableFuture:g,isDateDisabled:Ye,timezone:V}):_e;it?(Le(it,"finish"),x==null||x(Fe)):($e(),tt(Fe)),Be(it,!0)}),Q=Ee(_e=>{const Fe=a.startOfYear(_e),ot=a.endOfYear(_e),it=Ye(_e)?kl({utils:a,date:_e,minDate:a.isBefore(D,Fe)?Fe:D,maxDate:a.isAfter(R,ot)?ot:R,disablePast:m,disableFuture:g,isDateDisabled:Ye,timezone:V}):_e;it?(Le(it,"finish"),y==null||y(it)):($e(),tt(Fe)),Be(it,!0)}),ve=Ee(_e=>me(_e&&yg(a,_e,oe??Ue),"finish"));p.useEffect(()=>{oe!=null&&a.isValid(oe)&&tt(oe)},[oe]);const Ie=l,De=H8(Ie),Ae={disablePast:m,disableFuture:g,maxDate:R,minDate:D},Me={disableHighlightToday:N,readOnly:$,disabled:_,timezone:V},ye=p.useRef(ge);p.useEffect(()=>{ye.current!==ge&&(he===ye.current&&be(ge,!0),ye.current=ge)},[he,be,ge]);const Qe=p.useMemo(()=>[oe],[oe]);return C.jsxs(K8,S({ref:n,className:fe(De.root,O),ownerState:Ie},ee,{children:[C.jsx(je,S({},z)),C.jsx(G8,{reduceAnimations:b,className:De.viewTransitionContainer,transKey:ge,ownerState:Ie,children:C.jsxs("div",{children:[ge==="year"&&C.jsx(M8,S({},Ae,Me,{value:oe,onChange:Q,shouldDisableYear:E,hasFocus:Oe,onFocusedViewChange:_e=>be("year",_e),yearsPerRow:pe,referenceDate:Ue})),ge==="month"&&C.jsx(v8,S({},Ae,Me,{hasFocus:Oe,className:O,value:oe,onChange:U,shouldDisableMonth:k,onFocusedViewChange:_e=>be("month",_e),monthsPerRow:le,referenceDate:Ue})),ge==="day"&&C.jsx(i8,S({},et,Ae,Me,{onMonthSwitchingAnimationEnd:Se,onFocusedDayChange:Be,reduceAnimations:b,selectedDays:Qe,onSelectedDaysChange:ve,shouldDisableDate:P,shouldDisableMonth:k,shouldDisableYear:E,hasFocus:Oe,onFocusedViewChange:_e=>be("day",_e),gridLabelId:rn,showDaysOutsideCurrentMonth:L,fixedWeekNumber:F,dayOfWeekFormatter:K,displayWeekNumber:se,components:ae,componentsProps:ie,slots:B,slotProps:te,loading:J,renderLoading:G}))]})})]}))});function X8(e){return Re("MuiPickersToolbar",e)}Te("MuiPickersToolbar",["root","content"]);const Q8=e=>{const{classes:t,isLandscape:n}=e;return ke({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},X8,t)},Z8=H("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>S({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),J8=H("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),eH=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,u=r,c=Q8(u);return s?null:C.jsxs(Z8,{ref:n,className:fe(c.root,i),ownerState:u,children:[C.jsx(At,{color:"text.secondary",variant:"overline",id:l,children:a}),C.jsx(J8,{className:c.content,ownerState:u,children:o})]})});function tH(e){return Re("MuiDatePickerToolbar",e)}Te("MuiDatePickerToolbar",["root","title"]);const nH=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],rH=e=>{const{classes:t}=e;return ke({root:["root"],title:["title"]},tH,t)},oH=H(eH,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iH=H(At,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>S({},e.isLandscape&&{margin:"auto 16px auto auto"})),aH=p.forwardRef(function(t,n){const r=we({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l}=r,u=ne(r,nH),c=Pt(),d=Ts(),f=rH(r),h=p.useMemo(()=>{if(!o)return s;const m=Uk(c,{format:a,views:l},!0);return c.formatByString(o,m)},[o,a,s,c,l]),g=r;return C.jsx(oH,S({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:i,className:f.root},u,{children:C.jsx(iH,{variant:"h4",align:i?"left":"center",ownerState:g,className:f.title,children:h})}))});function sH(e,t){var n,r,o,i;const a=Pt(),s=Ou(),l=we({props:e,name:t}),u=p.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:S({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:Qk(l.components);return S({},l,{localeText:u},BU({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Er(a,l.minDate,s.minDate),maxDate:Er(a,l.maxDate,s.maxDate),slots:S({toolbar:aH},c),slotProps:(i=l.slotProps)!=null?i:l.componentsProps})}function lH(e){return Re("MuiPickersPopper",e)}Te("MuiPickersPopper",["root","paper"]);const uH=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],cH=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"]},lH,t)},dH=H(Cp,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),fH=H(Rr,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>S({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function pH(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Ee(l=>{if(!i.current)return;const u=r.current;r.current=!1;const c=Lt(o.current);if(!o.current||"clientX"in l&&pH(l,c))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!c.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!u&&t(l)}),s=()=>{r.current=!0};return p.useEffect(()=>{if(e){const l=Lt(o.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),p.useEffect(()=>{if(e){const l=Lt(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const mH=p.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=ne(e,uH),d=S({},o,{placement:r}),f=yt({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return C.jsx(n,S({},c,f,{onClick:h=>{var g;l(h),(g=f.onClick)==null||g.call(f,h)},onTouchStart:h=>{var g;u(h),(g=f.onTouchStart)==null||g.call(f,h)},ownerState:d,children:i}))});function gH(e){var t,n,r,o;const i=we({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:d,open:f,role:h,placement:g,slots:m,slotProps:w,reduceAnimations:v}=i;p.useEffect(()=>{function L(F){f&&(F.key==="Escape"||F.key==="Esc")&&d()}return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[d,f]);const y=p.useRef(null);p.useEffect(()=>{h==="tooltip"||u&&!u()||(f?y.current=Vd(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[f,h,u]);const[x,b,P]=hH(f,c??d),k=p.useRef(null),E=ht(k,l),T=ht(E,x),A=i,M=cH(A),O=aR(),_=v??O,$=L=>{L.key==="Escape"&&(L.stopPropagation(),d())},D=((t=m==null?void 0:m.desktopTransition)!=null?t:_)?Mp:Dy,R=(n=m==null?void 0:m.desktopTrapFocus)!=null?n:QE,N=(r=m==null?void 0:m.desktopPaper)!=null?r:fH,j=(o=m==null?void 0:m.popper)!=null?o:dH,I=yt({elementType:j,externalSlotProps:w==null?void 0:w.popper,additionalProps:{transition:!0,role:h,open:f,anchorEl:a,placement:g,onKeyDown:$},className:M.root,ownerState:i});return C.jsx(j,S({},I,{children:({TransitionProps:L,placement:F})=>C.jsx(R,S({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},w==null?void 0:w.desktopTrapFocus,{children:C.jsx(D,S({},L,w==null?void 0:w.desktopTransition,{children:C.jsx(mH,{PaperComponent:N,ownerState:A,popperPlacement:F,ref:T,onPaperClick:b,onPaperTouchStart:P,paperClasses:M.paper,paperSlotProps:w==null?void 0:w.desktopPaper,children:s})}))}))}))}const vH=({open:e,onOpen:t,onClose:n})=>{const r=p.useRef(typeof e=="boolean").current,[o,i]=p.useState(!1);p.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const a=p.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},yH=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},xH=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},bH=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},wH=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:d,timezone:f}=e,{current:h}=p.useRef(l),{current:g}=p.useRef(s!==void 0),m=Pt(),w=Zi(),[v,y]=Bn({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:b}=vH(e),[P,k]=p.useState(()=>{let G;return s!==void 0?G=s:h!==void 0?G=h:G=t.emptyValue,{draft:G,lastPublishedValue:G,lastCommittedValue:G,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:T}=Ny({timezone:f,value:s,defaultValue:h,onChange:a,valueManager:t});eR(S({},e,{value:P.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const A=Ee(G=>{const se={action:G,dateState:P,hasChanged:ee=>!t.areValuesEqual(m,G.value,ee),isControlled:g,closeOnSelect:u},pe=yH(se),le=xH(se),re=bH(se);if(k(ee=>S({},ee,{draft:G.value,lastPublishedValue:pe?G.value:ee.lastPublishedValue,lastCommittedValue:le?G.value:ee.lastCommittedValue,hasBeenModifiedSinceMount:!0})),pe){const oe={validationError:G.name==="setValueFromField"?G.context.validationError:o({adapter:w,value:G.value,props:S({},e,{value:G.value,timezone:E})})};G.name==="setValueFromShortcut"&&G.shortcut!=null&&(oe.shortcut=G.shortcut),T(G.value,oe)}le&&i&&i(G.value),re&&b(!1)});if(s!==void 0&&(P.lastControlledValue===void 0||!t.areValuesEqual(m,P.lastControlledValue,s))){const G=t.areValuesEqual(m,P.draft,s);k(se=>S({},se,{lastControlledValue:s},G?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const M=Ee(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),O=Ee(()=>{A({value:P.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),_=Ee(()=>{A({value:P.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Ee(()=>{A({value:P.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),D=Ee(()=>{A({value:t.getTodayValue(m,E,n),name:"setValueFromAction",pickerAction:"today"})}),R=Ee(()=>b(!0)),N=Ee(()=>b(!1)),j=Ee((G,se="partial")=>A({name:"setValueFromView",value:G,selectionState:se})),I=Ee((G,se,pe)=>A({name:"setValueFromShortcut",value:G,changeImportance:se??"accept",shortcut:pe})),L=Ee((G,se)=>A({name:"setValueFromField",value:G,context:se})),F=Ee(G=>{y(G),d==null||d(G)}),K={onClear:M,onAccept:O,onDismiss:_,onCancel:$,onSetToday:D,onOpen:R,onClose:N},ae={value:P.draft,onChange:L,selectedSections:v,onSelectedSectionsChange:F},ie=p.useMemo(()=>t.cleanValue(m,P.draft),[m,t,P.draft]),B={value:ie,onChange:j,onClose:N,open:x,onSelectedSectionsChange:F},J=S({},K,{value:ie,onChange:j,onSelectShortcut:I,isValid:G=>{const se=o({adapter:w,value:G,props:S({},e,{value:G,timezone:E})});return!t.hasError(se)}});return{open:x,fieldProps:ae,viewProps:B,layoutProps:J,actions:K}},SH=["className","sx"],CH=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:i,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:d,disableOpenPicker:f,viewRenderers:h,timezone:g}=e,m=ne(e,SH),{view:w,setView:v,defaultView:y,focusedView:x,setFocusedView:b,setValueAndGoToNextView:P}=zk({view:void 0,views:u,openTo:c,onChange:i,onViewChange:d,autoFocus:o}),{hasUIView:k,viewModeLookup:E}=p.useMemo(()=>u.reduce((D,R)=>{let N;return f?N="field":h[R]!=null?N="UI":N="field",D.viewModeLookup[R]=N,N==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[f,h,u]),T=p.useMemo(()=>u.reduce((D,R)=>h[R]!=null&&UU(R)?D+1:D,0),[h,u]),A=E[w],M=Ee(()=>A==="UI"),[O,_]=p.useState(A==="UI"?w:null);return O!==w&&E[w]==="UI"&&_(w),cn(()=>{A==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(w)}))},[w]),cn(()=>{if(!a)return;let D=w;A==="field"&&O!=null&&(D=O),D!==y&&E[D]==="UI"&&E[y]==="UI"&&(D=y),D!==w&&v(D),b(D,!0)},[a]),{hasUIView:k,shouldRestoreFocus:M,layoutProps:{views:u,view:O,onViewChange:v},renderCurrentView:()=>{if(O==null)return null;const D=h[O];return D==null?null:D(S({},m,n,t,{views:u,timezone:g,onChange:P,view:O,onViewChange:v,focusedView:x,onFocusedViewChange:b,showViewSwitcher:T>1,timeViewsCount:T}))}}};function Ub(){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 PH=(e,t)=>{const[n,r]=p.useState(Ub);return cn(()=>{const i=()=>{r(Ub())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),SW(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},EH=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=PH(n.views,o);return{layoutProps:S({},n,t,{isLandscape:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},sR=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};sR(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const kH=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:i,validator:a,autoFocusView:s})=>{const l=wH({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=CH({props:e,inputRef:o,additionalViewProps:i,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=EH({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function lR(e){return Re("MuiPickersLayout",e)}const _h=Te("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),RH=["onAccept","onClear","onCancel","onSetToday","actions"];function TH(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=ne(e,RH),s=Ts();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(u=>{switch(u){case"clear":return C.jsx(mr,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return C.jsx(mr,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return C.jsx(mr,{onClick:t,children:s.okButtonLabel},u);case"today":return C.jsx(mr,{onClick:o,children:s.todayButtonLabel},u);default:return null}});return C.jsx(OB,S({},a,{children:l}))}const MH=["items","changeImportance","isLandscape","onChange","isValid"],$H=["getValue"];function OH(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,i=ne(e,MH);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=ne(s,$H);const c=l({isValid:o});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!o(c)}});return C.jsx(Ay,S({dense:!0,sx:[{maxHeight:Bk,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>C.jsx(Ek,{children:C.jsx(uk,S({},s))},s.label))}))}function DH(e){return e.view!==null}const AH=e=>{const{classes:t,isLandscape:n}=e;return ke({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},lR,t)},IH=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:i,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:d,onChange:f,onSelectShortcut:h,isValid:g,isLandscape:m,disabled:w,readOnly:v,children:y,components:x,componentsProps:b,slots:P,slotProps:k}=e,E=P??Qk(x),T=k??b,A=AH(e),M=(t=E==null?void 0:E.actionBar)!=null?t:TH,O=yt({elementType:M,externalSlotProps:T==null?void 0:T.actionBar,additionalProps:{onAccept:o,onClear:i,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:A.actionBar},ownerState:S({},e,{wrapperVariant:r})}),_=C.jsx(M,S({},O)),$=E==null?void 0:E.toolbar,D=yt({elementType:$,externalSlotProps:T==null?void 0:T.toolbar,additionalProps:{isLandscape:m,onChange:f,value:d,view:l,onViewChange:c,views:u,disabled:w,readOnly:v,className:A.toolbar},ownerState:S({},e,{wrapperVariant:r})}),R=DH(D)&&$?C.jsx($,S({},D)):null,N=y,j=E==null?void 0:E.tabs,I=l&&j?C.jsx(j,S({view:l,onViewChange:c},T==null?void 0:T.tabs)):null,L=(n=E==null?void 0:E.shortcuts)!=null?n:OH,F=yt({elementType:L,externalSlotProps:T==null?void 0:T.shortcuts,additionalProps:{isValid:g,isLandscape:m,onChange:h,className:A.shortcuts},ownerState:{isValid:g,isLandscape:m,onChange:h,className:A.shortcuts,wrapperVariant:r}}),K=l&&L?C.jsx(L,S({},F)):null;return{toolbar:R,content:N,tabs:I,actionBar:_,shortcuts:K}},LH=IH,NH=e=>{const{isLandscape:t,classes:n}=e;return ke({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},lR,n)},uR=H("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${_h.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${_h.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${_h.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));uR.propTypes={as:de.elementType,ownerState:de.shape({isLandscape:de.bool.isRequired}).isRequired,sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object])};const _H=H("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),jH=function(t){const n=we({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:i,actionBar:a,shortcuts:s}=LH(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:f}=n,h=n,g=NH(h);return C.jsxs(uR,{ref:d,sx:l,className:fe(u,g.root),ownerState:h,children:[c?s:r,c?r:s,C.jsx(_H,{className:g.contentWrapper,children:f==="desktop"?C.jsxs(p.Fragment,{children:[o,i]}):C.jsxs(p.Fragment,{children:[i,o]})}),a]})},FH=["props","getOpenDialogAriaText"],zH=["ownerState"],BH=["ownerState"],VH=e=>{var t,n,r,o,i;let{props:a,getOpenDialogAriaText:s}=e,l=ne(e,FH);const{slots:u,slotProps:c,className:d,sx:f,format:h,formatDensity:g,timezone:m,label:w,inputRef:v,readOnly:y,disabled:x,autoFocus:b,localeText:P,reduceAnimations:k}=a,E=Pt(),T=p.useRef(null),A=p.useRef(null),M=bu(),O=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:_,actions:$,hasUIView:D,layoutProps:R,renderCurrentView:N,shouldRestoreFocus:j,fieldProps:I}=kH(S({},l,{props:a,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=(r=u.inputAdornment)!=null?r:I3,F=yt({elementType:L,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),K=ne(F,zH),ae=(o=u.openPickerButton)!=null?o:Eo,ie=yt({elementType:ae,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:x||y,onClick:_?$.onClose:$.onOpen,"aria-label":s(I.value,E),edge:K.position},ownerState:a}),B=ne(ie,BH),te=u.openPickerIcon,J=u.field,G=yt({elementType:J,externalSlotProps:c==null?void 0:c.field,additionalProps:S({},I,O&&{id:M},{readOnly:y,disabled:x,className:d,sx:f,format:h,formatDensity:g,timezone:m,label:w,autoFocus:b&&!a.open,focused:_?!0:void 0}),ownerState:a});D&&(G.InputProps=S({},G.InputProps,{ref:A,[`${K.position}Adornment`]:C.jsx(L,S({},K,{children:C.jsx(ae,S({},B,{children:C.jsx(te,S({},c==null?void 0:c.openPickerIcon))}))}))}));const se=S({textField:u.textField},G.slots),pe=(i=u.layout)!=null?i:jH,le=ht(T,G.inputRef,v);let re=M;O&&(w?re=`${M}-label`:re=void 0);const ee=S({},c,{toolbar:S({},c==null?void 0:c.toolbar,{titleId:M}),popper:S({"aria-labelledby":re},c==null?void 0:c.popper)});return{renderPicker:()=>C.jsxs(jk,{localeText:P,children:[C.jsx(J,S({},G,{slots:se,slotProps:ee,inputRef:le})),C.jsx(gH,S({role:"dialog",placement:"bottom-start",anchorEl:A.current},$,{open:_,slots:u,slotProps:ee,shouldRestoreFocus:j,reduceAnimations:k,children:C.jsx(pe,S({},R,ee==null?void 0:ee.layout,{slots:u,slotProps:ee,children:N()}))}))]})}},jh=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:w,shouldDisableYear:v,reduceAnimations:y,onMonthChange:x,monthsPerRow:b,onYearChange:P,yearsPerRow:k,defaultCalendarMonth:E,components:T,componentsProps:A,slots:M,slotProps:O,loading:_,renderLoading:$,disableHighlightToday:D,readOnly:R,disabled:N,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:I,sx:L,autoFocus:F,fixedWeekNumber:K,displayWeekNumber:ae,timezone:ie})=>C.jsx(q8,{view:e,onViewChange:t,views:n.filter(Lb),focusedView:r&&Lb(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:w,shouldDisableYear:v,reduceAnimations:y,onMonthChange:x,monthsPerRow:b,onYearChange:P,yearsPerRow:k,defaultCalendarMonth:E,components:T,componentsProps:A,slots:M,slotProps:O,loading:_,renderLoading:$,disableHighlightToday:D,readOnly:R,disabled:N,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:I,sx:L,autoFocus:F,fixedWeekNumber:K,displayWeekNumber:ae,timezone:ie}),cR=p.forwardRef(function(t,n){var r,o,i,a;const s=Ts(),l=Pt(),u=sH(t,"MuiDesktopDatePicker"),c=S({day:jh,month:jh,year:jh},u.viewRenderers),d=S({},u,{viewRenderers:c,format:Uk(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:S({openPickerIcon:DU,field:IW},u.slots),slotProps:S({},u.slotProps,{field:h=>{var g;return S({},XE((g=u.slotProps)==null?void 0:g.field,h),kW(u),{ref:n})},toolbar:S({hidden:!0},(o=u.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:f}=VH({props:d,valueManager:fi,valueType:"date",getOpenDialogAriaText:(i=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?i:s.openDatePickerDialogue,validator:zy});return f()});cR.propTypes={autoFocus:de.bool,className:de.string,closeOnSelect:de.bool,components:de.object,componentsProps:de.object,dayOfWeekFormatter:de.func,defaultCalendarMonth:de.any,defaultValue:de.any,disabled:de.bool,disableFuture:de.bool,disableHighlightToday:de.bool,disableOpenPicker:de.bool,disablePast:de.bool,displayWeekNumber:de.bool,fixedWeekNumber:de.number,format:de.string,formatDensity:de.oneOf(["dense","spacious"]),inputRef:de.oneOfType([de.func,de.shape({current:de.object})]),label:de.node,loading:de.bool,localeText:de.object,maxDate:de.any,minDate:de.any,monthsPerRow:de.oneOf([3,4]),onAccept:de.func,onChange:de.func,onClose:de.func,onError:de.func,onMonthChange:de.func,onOpen:de.func,onSelectedSectionsChange:de.func,onViewChange:de.func,onYearChange:de.func,open:de.bool,openTo:de.oneOf(["day","month","year"]),orientation:de.oneOf(["landscape","portrait"]),readOnly:de.bool,reduceAnimations:de.bool,referenceDate:de.any,renderLoading:de.func,selectedSections:de.oneOfType([de.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),de.number,de.shape({endIndex:de.number.isRequired,startIndex:de.number.isRequired})]),shouldDisableDate:de.func,shouldDisableMonth:de.func,shouldDisableYear:de.func,showDaysOutsideCurrentMonth:de.bool,slotProps:de.object,slots:de.object,sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object]),timezone:de.string,value:de.any,view:de.oneOf(["day","month","year"]),viewRenderers:de.shape({day:de.func,month:de.func,year:de.func}),views:de.arrayOf(de.oneOf(["day","month","year"]).isRequired),yearsPerRow:de.oneOf([3,4])};var dR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hu,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",u="day",c="week",d="month",f="quarter",h="year",g="date",m="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var D=["th","st","nd","rd"],R=$%100;return"["+$+(D[(R-20)%10]||D[R]||D[0])+"]"}},x=function($,D,R){var N=String($);return!N||N.length>=D?$:""+Array(D+1-N.length).join(R)+$},b={s:x,z:function($){var D=-$.utcOffset(),R=Math.abs(D),N=Math.floor(R/60),j=R%60;return(D<=0?"+":"-")+x(N,2,"0")+":"+x(j,2,"0")},m:function $(D,R){if(D.date()1)return $(L[0])}else{var F=D.name;k[F]=D,j=F}return!N&&j&&(P=j),j||!N&&P},A=function($,D){if(E($))return $.clone();var R=typeof D=="object"?D:{};return R.date=$,R.args=arguments,new O(R)},M=b;M.l=T,M.i=E,M.w=function($,D){return A($,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var O=function(){function $(R){this.$L=T(R.locale,null,!0),this.parse(R)}var D=$.prototype;return D.parse=function(R){this.$d=function(N){var j=N.date,I=N.utc;if(j===null)return new Date(NaN);if(M.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var L=j.match(w);if(L){var F=L[2]-1||0,K=(L[7]||"0").substring(0,3);return I?new Date(Date.UTC(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,K)):new Date(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,K)}}return new Date(j)}(R),this.$x=R.x||{},this.init()},D.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},D.$utils=function(){return M},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(R,N){var j=A(R);return this.startOf(N)<=j&&j<=this.endOf(N)},D.isAfter=function(R,N){return A(R)25){var c=a(this).startOf(r).add(1,r).date(u),d=a(this).endOf(n);if(c.isBefore(d))return 1}var f=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(f,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(fR);var WH=fR.exports;const HH=pi(WH);var pR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hu,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},l=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(w){this[m]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var v=w.match(/([+-]|\d\d)/g),y=60*v[1]+(+v[2]||0);return y===0?0:v[0]==="+"?-y:y}(m)}],d=function(m){var w=s[m];return w&&(w.indexOf?w:w.s.concat(w.f))},f=function(m,w){var v,y=s.meridiem;if(y){for(var x=1;x<=24;x+=1)if(m.indexOf(y(x,0,w))>-1){v=x>12;break}}else v=m===(w?"pm":"PM");return v},h={A:[a,function(m){this.afternoon=f(m,!1)}],a:[a,function(m){this.afternoon=f(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[o,u("day")],Do:[a,function(m){var w=s.ordinal,v=m.match(/\d+/);if(this.day=v[0],w)for(var y=1;y<=31;y+=1)w(y).replace(/\[|\]/g,"")===m&&(this.day=y)}],M:[i,u("month")],MM:[o,u("month")],MMM:[a,function(m){var w=d("months"),v=(d("monthsShort")||w.map(function(y){return y.slice(0,3)})).indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[a,function(m){var w=d("months").indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(m){this.year=l(m)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function g(m){var w,v;w=m,v=s&&s.formats;for(var y=(m=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,M,O){var _=O&&O.toUpperCase();return M||v[O]||n[O]||v[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,D,R){return D||R.slice(1)})})).match(r),x=y.length,b=0;b-1)return new Date((j==="X"?1e3:1)*N);var L=g(j)(N),F=L.year,K=L.month,ae=L.day,ie=L.hours,B=L.minutes,te=L.seconds,J=L.milliseconds,G=L.zone,se=new Date,pe=ae||(F||K?1:se.getDate()),le=F||se.getFullYear(),re=0;F&&!K||(re=K>0?K-1:se.getMonth());var ee=ie||0,oe=B||0,me=te||0,V=J||0;return G?new Date(Date.UTC(le,re,pe,ee,oe,me,V+60*G.offset*1e3)):I?new Date(Date.UTC(le,re,pe,ee,oe,me,V)):new Date(le,re,pe,ee,oe,me,V)}catch{return new Date("")}}(P,T,k),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),O&&P!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var $=T.length,D=1;D<=$;D+=1){E[1]=T[D-1];var R=v.apply(this,E);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}D===$&&(this.$d=new Date(""))}else x.call(this,b)}}})})(pR);var YH=pR.exports;const KH=pi(YH);var hR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hu,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,s=a.format;i.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,g,m){var w=m&&m.toUpperCase();return g||f[m]||n[m]||f[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,x){return y||x.slice(1)})})}(l,u===void 0?{}:u);return s.call(this,c)}}})})(hR);var GH=hR.exports;const qH=pi(GH);var mR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hu,function(){return function(n,r,o){r.prototype.isBetween=function(i,a,s,l){var u=o(i),c=o(a),d=(l=l||"()")[0]==="(",f=l[1]===")";return(d?this.isAfter(u,s):!this.isBefore(u,s))&&(f?this.isBefore(c,s):!this.isAfter(c,s))||(d?this.isBefore(u,s):!this.isAfter(u,s))&&(f?this.isAfter(c,s):!this.isBefore(c,s))}}})})(mR);var XH=mR.exports;const QH=pi(XH);Kt.extend(KH);Kt.extend(qH);Kt.extend(QH);const ZH=sR(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),JH={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},e9={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Fh=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),Wb=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),t9=(e,t)=>t?(...n)=>e(...n).locale(t):e;class n9{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=JH,this.setLocaleToValue=i=>{const a=this.getCurrentLocaleCode();return a===i.locale()?i:i.locale(a)},this.hasUTCPlugin=()=>typeof Kt.utc<"u",this.hasTimezonePlugin=()=>typeof Kt.tz<"u",this.isSame=(i,a,s)=>{const l=this.setTimezone(a,this.getTimezone(i));return i.format(s)===l.format(s)},this.cleanTimezone=i=>{switch(i){case"default":return;case"system":return Kt.tz.guess();default:return i}},this.createSystemDate=i=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(i);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const a=Kt.tz.guess();return a!=="UTC"?Kt.tz(i,a):Kt(i)}return Kt(i)},this.createUTCDate=i=>{if(!this.hasUTCPlugin())throw new Error(Fh);return Kt.utc(i)},this.createTZDate=(i,a)=>{if(!this.hasUTCPlugin())throw new Error(Fh);if(!this.hasTimezonePlugin())throw new Error(Wb);const s=i!==void 0&&!i.endsWith("Z");return Kt(i).tz(this.cleanTimezone(a),s)},this.getLocaleFormats=()=>{const i=Kt.Ls,a=this.locale||"en";let s=i[a];return s===void 0&&(ZH(),s=i.en),s.formats},this.adjustOffset=i=>{if(!this.hasTimezonePlugin())return i;const a=this.getTimezone(i);if(a!=="UTC"){var s,l;const u=i.tz(this.cleanTimezone(a),!0);return((s=u.$offset)!=null?s:0)===((l=i.$offset)!=null?l:0)?i:u}return i},this.date=i=>i===null?null:this.dayjs(i),this.dateWithTimezone=(i,a)=>{if(i===null)return null;let s;return a==="UTC"?s=this.createUTCDate(i):a==="system"||a==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(i):s=this.createTZDate(i,a),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=i=>{if(this.hasUTCPlugin()&&i.isUTC())return"UTC";if(this.hasTimezonePlugin()){var a;const s=(a=i.$x)==null?void 0:a.$timezone;return s??"system"}return"system"},this.setTimezone=(i,a)=>{if(this.getTimezone(i)===a)return i;if(a==="UTC"){if(!this.hasUTCPlugin())throw new Error(Fh);return i.utc()}if(a==="system")return i.local();if(!this.hasTimezonePlugin()){if(a==="default")return i;throw new Error(Wb)}return Kt.tz(i,this.cleanTimezone(a))},this.toJsDate=i=>i.toDate(),this.parseISO=i=>this.dayjs(i),this.toISO=i=>i.toISOString(),this.parse=(i,a)=>i===""?null:this.dayjs(i,a,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=i=>{const a=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(u,c,d)=>c||d.slice(1));return i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,u,c)=>{const d=c&&c.toUpperCase();return u||a[c]||s(a[d])})},this.getFormatHelperText=i=>this.expandFormat(i).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=i=>i===null,this.isValid=i=>this.dayjs(i).isValid(),this.format=(i,a)=>this.formatByString(i,this.formats[a]),this.formatByString=(i,a)=>this.dayjs(i).format(a),this.formatNumber=i=>i,this.getDiff=(i,a,s)=>i.diff(a,s),this.isEqual=(i,a)=>i===null&&a===null?!0:this.dayjs(i).toDate().getTime()===this.dayjs(a).toDate().getTime(),this.isSameYear=(i,a)=>this.isSame(i,a,"YYYY"),this.isSameMonth=(i,a)=>this.isSame(i,a,"YYYY-MM"),this.isSameDay=(i,a)=>this.isSame(i,a,"YYYY-MM-DD"),this.isSameHour=(i,a)=>i.isSame(a,"hour"),this.isAfter=(i,a)=>i>a,this.isAfterYear=(i,a)=>this.hasUTCPlugin()?!this.isSameYear(i,a)&&i.utc()>a.utc():i.isAfter(a,"year"),this.isAfterDay=(i,a)=>this.hasUTCPlugin()?!this.isSameDay(i,a)&&i.utc()>a.utc():i.isAfter(a,"day"),this.isBefore=(i,a)=>ithis.hasUTCPlugin()?!this.isSameYear(i,a)&&i.utc()this.hasUTCPlugin()?!this.isSameDay(i,a)&&i.utc()i>=a&&i<=s,this.startOfYear=i=>this.adjustOffset(i.startOf("year")),this.startOfMonth=i=>this.adjustOffset(i.startOf("month")),this.startOfWeek=i=>this.adjustOffset(i.startOf("week")),this.startOfDay=i=>this.adjustOffset(i.startOf("day")),this.endOfYear=i=>this.adjustOffset(i.endOf("year")),this.endOfMonth=i=>this.adjustOffset(i.endOf("month")),this.endOfWeek=i=>this.adjustOffset(i.endOf("week")),this.endOfDay=i=>this.adjustOffset(i.endOf("day")),this.addYears=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"year"):i.add(a,"year")),this.addMonths=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"month"):i.add(a,"month")),this.addWeeks=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"week"):i.add(a,"week")),this.addDays=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"day"):i.add(a,"day")),this.addHours=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"hour"):i.add(a,"hour")),this.addMinutes=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"minute"):i.add(a,"minute")),this.addSeconds=(i,a)=>this.adjustOffset(a<0?i.subtract(Math.abs(a),"second"):i.add(a,"second")),this.getYear=i=>i.year(),this.getMonth=i=>i.month(),this.getDate=i=>i.date(),this.getHours=i=>i.hour(),this.getMinutes=i=>i.minute(),this.getSeconds=i=>i.second(),this.getMilliseconds=i=>i.millisecond(),this.setYear=(i,a)=>this.adjustOffset(i.set("year",a)),this.setMonth=(i,a)=>this.adjustOffset(i.set("month",a)),this.setDate=(i,a)=>this.adjustOffset(i.set("date",a)),this.setHours=(i,a)=>this.adjustOffset(i.set("hour",a)),this.setMinutes=(i,a)=>this.adjustOffset(i.set("minute",a)),this.setSeconds=(i,a)=>this.adjustOffset(i.set("second",a)),this.setMilliseconds=(i,a)=>this.adjustOffset(i.set("millisecond",a)),this.getDaysInMonth=i=>i.daysInMonth(),this.getNextMonth=i=>this.addMonths(i,1),this.getPreviousMonth=i=>this.addMonths(i,-1),this.getMonthArray=i=>{const s=[i.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(i,a)=>i.hour(a.hour()).minute(a.minute()).second(a.second()),this.getWeekdays=()=>{const i=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(a=>this.formatByString(this.addDays(i,a),"dd"))},this.getWeekArray=i=>{const a=this.setLocaleToValue(i),s=a.startOf("month").startOf("week"),l=a.endOf("month").endOf("week");let u=0,c=s;const d=[];for(;ci.week(),this.getYearRange=(i,a)=>{const s=i.startOf("year"),l=a.endOf("year"),u=[];let c=s;for(;ci==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=t9((o=this.rawDayJsInstance)!=null?o:Kt,t),this.locale=t,this.formats=S({},e9,n),Kt.extend(HH)}}const gR=ip({name:"transaction",initialState:[],reducers:{addTransaction:(e,t)=>e.concat(t.payload),setTransactions(e,t){return t.payload},removeTransaction(e,t){return e.filter(n=>n.id!=t.payload)}}}),r9=gR.reducer,{addTransaction:o9,setTransactions:vR,removeTransaction:i9}=gR.actions,yR=ip({name:"editTransaction",initialState:null,reducers:{setEditTransaction(e,t){return t.payload}}}),a9=yR.reducer,{setEditTransaction:xR}=yR.actions,s9=()=>{const e=ro(u=>u.auth.user.categories),t=ro(u=>u.transactions),n=ro(u=>u.editTransaction),r=Io(),o={amount:"",description:"",date:Kt("2022-04-17"),category:e[0]},[i,a]=p.useState(o);p.useEffect(()=>{n!=null&&a(n)},[n]);const s=u=>{a({...i,[u.target.name]:u.target.value})},l=async u=>{if(u.preventDefault(),n){const c=await Bd.update(i);r(xR(null)),a(o);const d=t.map(f=>f.id===c.id?c:f);r(vR(d)),r(qt(["Expense updated successfully",!0]))}else{const c=await Bd.create(i);r(o9(c)),a(o),r(qt(["Expense added successfully",!0]))}setTimeout(()=>r(qt(null)),5e3)};return C.jsxs(Dn.Fragment,{children:[C.jsx(mk,{children:C.jsxs(Co,{component:"form",onSubmit:l,sx:{display:"flex",flexWrap:"wrap"},children:[C.jsx(Fr,{size:"small",sx:{marginRight:5,marginTop:5},onChange:s,value:i.amount,type:"number",name:"amount",placeholder:"Transaction Amount(₹)"}),C.jsx(Fr,{size:"small",sx:{marginRight:5,marginTop:5},onChange:s,value:i.description,type:"text",name:"description",placeholder:"description"}),C.jsx(jk,{dateAdapter:n9,children:C.jsx(cR,{label:"Transaction Date",name:"date",value:Kt(i.date),sx:{marginRight:5,marginTop:5},onChange:u=>a({...i,date:u}),slotProps:{textField:{variant:"outlined",size:"small"}}})}),C.jsx(L4,{value:i.category,onChange:(u,c)=>a({...i,category:c}),disableClearable:!0,options:e,size:"small",sx:{width:200,marginRight:5,marginTop:5},renderInput:u=>C.jsx(Fr,{...u,label:"Categories"})}),C.jsx(mr,{style:{display:"block",margin:"auto",marginTop:20},variant:"contained",type:"submit",children:n?"Update":"Submit"})]})}),C.jsx(hk,{})]})};function l9(){return C.jsx(Co,{sx:{minWidth:275,margin:5},children:C.jsx(pk,{variant:"outlined",children:C.jsx(s9,{})})})}var By={},bR={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(bR);var Vy=bR.exports,zh={};const u9=VT(kF);var Hb;function Uy(){return Hb||(Hb=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=u9}(zh)),zh}var c9=Vy;Object.defineProperty(By,"__esModule",{value:!0});var Wy=By.default=void 0,d9=c9(Uy()),f9=C,p9=(0,d9.default)((0,f9.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");Wy=By.default=p9;var Hy={},h9=Vy;Object.defineProperty(Hy,"__esModule",{value:!0});var wR=Hy.default=void 0,m9=h9(Uy()),g9=C,v9=(0,m9.default)((0,g9.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");wR=Hy.default=v9;function y9(){const e=Io(),n=ro(i=>i.transactions).slice().sort((i,a)=>i.date>a.date?-1:1),r=i=>{e(xR(i))},o=async i=>{if(confirm("Are you sure you want to delete the transaction?")){const a=await Bd.remove(i);e(i9(i)),a.status===204&&(e(qt(["Deleted Successfully",!0])),setTimeout(()=>e(qt(null)),5e3))}};return!n.length>0?C.jsx(At,{variant:"h4",sx:{textAlign:"center",marginBottom:5},children:"No data to display"}):C.jsxs(C.Fragment,{children:[C.jsx(At,{variant:"h4",sx:{textAlign:"center",marginBottom:5},children:"List of transactions"}),C.jsx(Nk,{style:{marginBottom:15},component:Rr,children:C.jsxs(Ik,{sx:{minWidth:650},"aria-label":"simple table",children:[C.jsx(_k,{children:C.jsxs(zd,{children:[C.jsx($n,{children:C.jsx("strong",{children:"Amount"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Description"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Category"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Date"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Action"})})]})}),C.jsx(Lk,{children:n.map(i=>C.jsxs(zd,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[C.jsx($n,{component:"th",scope:"row",children:i.amount}),C.jsx($n,{align:"center",children:i.description}),C.jsx($n,{align:"center",children:i.category}),C.jsx($n,{align:"center",children:Kt(i.date).format("MMMM D, YYYY")}),C.jsxs($n,{align:"center",children:[C.jsx(Eo,{color:"primary",sx:{marginLeft:1,cursor:"pointer"},onClick:()=>r(i),children:C.jsx(wR,{})}),C.jsx(Eo,{color:"error",onClick:()=>o(i.id),sx:{cursor:"pointer"},children:C.jsx(Wy,{})})]})]},i.id))})]})})]})}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function Yb(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function Kb(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;rr[o])return 1}return n.length-r.length},x9=function(e,t){var n=e.slice(),r=e.findIndex(function(c){return Gb(t,c)<=0}),o=r<0?e.length:r,i=o>=0&&o1)for(var l=o+1;l=0?Kb(Kb([],Yb(e.slice(0,n)),!1),Yb(e.slice(n+1)),!1):e},w9=function(){return typeof window<"u"},qb=function(e,t){return new Error("The '".concat(e,"' plugin requires '").concat(t,"' to be defined before it."))},S9=function(){function e(){this.gettersCache={},this.knownKeysCache={},this.validationRequired=!0,this.plugins=[],this.subscriptions=new Set}return e.prototype.ensureDependencies=function(){var t=new Set,n=new Map;this.plugins.filter(function(r){return r.container}).forEach(function(r){var o=r.name||"";if(n.has(o))throw qb(n.get(o),o);(r.dependencies||[]).forEach(function(i){if(!t.has(i.name)){if(i.optional){n.has(i.name)||n.set(i.name,o);return}throw qb(o,i.name)}}),t.add(o)})},e.prototype.registerPlugin=function(t){this.plugins=x9(this.plugins,t),this.cleanPluginsCache()},e.prototype.unregisterPlugin=function(t){this.plugins=b9(this.plugins,t),this.cleanPluginsCache()},e.prototype.knownKeys=function(t){return this.knownKeysCache[t]||(this.knownKeysCache[t]=Array.from(this.plugins.map(function(n){return Object.keys(n)}).map(function(n){return n.filter(function(r){return r.endsWith(t)})[0]}).filter(function(n){return!!n}).reduce(function(n,r){return n.add(r)},new Set)).map(function(n){return n.replace(t,"")})),this.knownKeysCache[t]},e.prototype.collect=function(t,n){this.validationRequired&&(this.ensureDependencies(),this.validationRequired=!1);var r=this.gettersCache[t];if(!r){var o=this.plugins.map(function(u,c){return{key:u[t],index:c}}).filter(function(u){return!!u.key});this.gettersCache["".concat(t,"_i")]=o,r=o.map(function(u){return u.key}),this.gettersCache[t]=r}if(!n)return r;var i=this.plugins.indexOf(n),a=t+i,s=this.gettersCache[a];if(!s){var l=this.gettersCache["".concat(t,"_i")];s=this.gettersCache[t].filter(function(u,c){return l[c].index0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function Xb(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r-1&&(this.rootNode.scrollTop=r),o!==void 0&&o>-1&&(this.rootNode.scrollLeft=o),this.updateScrolling(this.getSize())},t.prototype.componentWillUnmount=function(){this.expandTrigger.removeEventListener("scroll",this.setupListeners),this.contractTrigger.removeEventListener("scroll",this.setupListeners)},t.prototype.setupListeners=function(){var n=this.getSize(),r=n.width,o=n.height;this.expandNotifier.style.width="".concat(r+Pc,"px"),this.expandNotifier.style.height="".concat(o+Pc,"px"),this.updateScrolling(n);var i=this.props.onSizeChange;i(n)},t.prototype.createListeners=function(){this.triggersRoot=document.createElement("div"),Object.assign(this.triggersRoot.style,ua.triggersRoot),this.rootNode.appendChild(this.triggersRoot),this.expandTrigger=document.createElement("div"),Object.assign(this.expandTrigger.style,ua.expandTrigger),this.expandTrigger.addEventListener("scroll",this.setupListeners),this.triggersRoot.appendChild(this.expandTrigger),this.expandNotifier=document.createElement("div"),this.expandTrigger.appendChild(this.expandNotifier),this.contractTrigger=document.createElement("div"),Object.assign(this.contractTrigger.style,ua.contractTrigger),this.contractTrigger.addEventListener("scroll",this.setupListeners),this.triggersRoot.appendChild(this.contractTrigger),this.contractNotifier=document.createElement("div"),Object.assign(this.contractNotifier.style,ua.contractNotifier),this.contractTrigger.appendChild(this.contractNotifier)},t.prototype.updateScrolling=function(n){var r=n.width,o=n.height;this.contractTrigger.scrollTop=o,this.contractTrigger.scrollLeft=r,this.expandTrigger.scrollTop=Pc,this.expandTrigger.scrollLeft=Pc},t.prototype.render=function(){var n=this.props;n.onSizeChange;var r=n.containerComponent,o=n.style;n.scrollTop,n.scrollLeft;var i=P9(n,["onSizeChange","containerComponent","style","scrollTop","scrollLeft"]);return p.createElement(r,In({forwardedRef:this.rootRef,style:o?In(In({},ua.root),o):ua.root},i))},t.defaultProps={containerComponent:"div"},t}(p.Component),U9=function(e,t){t===void 0&&(t={});var n=function(c,d){Object.keys(t).forEach(function(f){var h=t[f]();h&&c[f]!==d[f]&&h(c[f])})},r,o=null,i=null,a=null,s=!1,l=function(c,d,f){var h=function(g){o===null&&(o=g);var m=c(In({},g),d),w=In(In({},g),m);return typeof f=="function"&&f(w,g),h===r&&(i!==o&&(a=w,s||(i=o,s=!0)),o=null),m};r=h,e.setState(h,function(){s&&(n(a,i),s=!1)})},u=function(c,d,f){l(function(h){var g;return g={},g[c]=d(h[c],f),g})};return{applyReducer:l,applyFieldReducer:u}},W9=function(e,t,n){var r=function(o){Ur(i,o);function i(){return o!==null&&o.apply(this,arguments)||this}return i.prototype.render=function(){return p.createElement(e,In({},t,this.props))},i}(p.PureComponent);return r.components=e.components,Object.assign(r,n),r},sr=function(e){return function(t){var n={},r={},o=t.components;return Object.entries(o).forEach(function(i){var a=lu(i,2),s=a[0],l=a[1],u=e[l];u&&u!==t[l]&&(n[s]=u),r[l]=u||t[l]}),Object.keys(n).length>0?W9(t,n,r):t}};de.shape({current:de.instanceOf(typeof Element<"u"?Element:Object)});function MR(e,t){return et?1:e>=t?0:NaN}function $R(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=H9(e));function r(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)<0?l=c+1:u=c}return l}function o(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)>0?u=c:l=c+1}return l}function i(a,s,l,u){l==null&&(l=0),u==null&&(u=a.length);const c=r(a,s,l,u-1);return c>l&&t(a[c-1],s)>-t(a[c],s)?c-1:c}return{left:r,center:i,right:o}}function H9(e){return(t,n)=>MR(e(t),n)}function Y9(e){return e===null?NaN:+e}const K9=$R(MR),G9=K9.right;$R(Y9).center;const q9=G9;function X9(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r=i&&(n=r=i):(n>i&&(n=i),r0)return[e];if((r=t0){let l=Math.round(e/s),u=Math.round(t/s);for(l*st&&--u,a=new Array(i=u-l+1);++ot&&--u,a=new Array(i=u-l+1);++o=0?(i>=Pg?10:i>=Eg?5:i>=kg?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Pg?10:i>=Eg?5:i>=kg?2:1)}function t7(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Pg?o*=10:i>=Eg?o*=5:i>=kg&&(o*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ec(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ec(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=o7.exec(e))?new Ln(t[1],t[2],t[3],1):(t=i7.exec(e))?new Ln(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=a7.exec(e))?Ec(t[1],t[2],t[3],t[4]):(t=s7.exec(e))?Ec(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=l7.exec(e))?cw(t[1],t[2]/100,t[3]/100,1):(t=u7.exec(e))?cw(t[1],t[2]/100,t[3]/100,t[4]):ow.hasOwnProperty(e)?sw(ow[e]):e==="transparent"?new Ln(NaN,NaN,NaN,0):null}function sw(e){return new Ln(e>>16&255,e>>8&255,e&255,1)}function Ec(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ln(e,t,n,r)}function f7(e){return e instanceof Iu||(e=du(e)),e?(e=e.rgb(),new Ln(e.r,e.g,e.b,e.opacity)):new Ln}function Rg(e,t,n,r){return arguments.length===1?f7(e):new Ln(e,t,n,r??1)}function Ln(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Qy(Ln,Rg,IR(Iu,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new Ln(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?uu:Math.pow(uu,e),new Ln(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ln(ji(this.r),ji(this.g),ji(this.b),Hd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lw,formatHex:lw,formatHex8:p7,formatRgb:uw,toString:uw}));function lw(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}`}function p7(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}${Ii((isNaN(this.opacity)?1:this.opacity)*255)}`}function uw(){const e=Hd(this.opacity);return`${e===1?"rgb(":"rgba("}${ji(this.r)}, ${ji(this.g)}, ${ji(this.b)}${e===1?")":`, ${e})`}`}function Hd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ji(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ii(e){return e=ji(e),(e<16?"0":"")+e.toString(16)}function cw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _r(e,t,n,r)}function LR(e){if(e instanceof _r)return new _r(e.h,e.s,e.l,e.opacity);if(e instanceof Iu||(e=du(e)),!e)return new _r;if(e instanceof _r)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new _r(a,s,l,e.opacity)}function h7(e,t,n,r){return arguments.length===1?LR(e):new _r(e,t,n,r??1)}function _r(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Qy(_r,h7,IR(Iu,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new _r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?uu:Math.pow(uu,e),new _r(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ln(Vh(e>=240?e-240:e+120,o,r),Vh(e,o,r),Vh(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _r(dw(this.h),kc(this.s),kc(this.l),Hd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Hd(this.opacity);return`${e===1?"hsl(":"hsla("}${dw(this.h)}, ${kc(this.s)*100}%, ${kc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dw(e){return e=(e||0)%360,e<0?e+360:e}function kc(e){return Math.max(0,Math.min(1,e||0))}function Vh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Zy=e=>()=>e;function m7(e,t){return function(n){return e+n*t}}function g7(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function v7(e){return(e=+e)==1?NR:function(t,n){return n-t?g7(t,n,e):Zy(isNaN(t)?n:t)}}function NR(e,t){var n=t-e;return n?m7(e,n):Zy(isNaN(e)?t:e)}const fw=function e(t){var n=v7(t);function r(o,i){var a=n((o=Rg(o)).r,(i=Rg(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),u=NR(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=s(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function y7(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Yd(r,o)})),n=Uh.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function $7(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?O7:$7,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(o((u||(u=s(t,e.map(r),Yd)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,T7),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=k7,c()},d.clamp=function(f){return arguments.length?(a=f?!0:$a,c()):a!==$a},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,h){return r=f,o=h,c()}}function I7(){return A7()($a,$a)}function L7(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Kd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ps(e){return e=Kd(Math.abs(e)),e?e[1]:NaN}function N7(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function _7(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var j7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gd(e){if(!(t=j7.exec(e)))throw new Error("invalid format: "+e);var t;return new e0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Gd.prototype=e0.prototype;function e0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}e0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function F7(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var _R;function z7(e,t){var n=Kd(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(_R=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Kd(e,Math.max(0,t+i-1))[0]}function hw(e,t){var n=Kd(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const mw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:L7,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>hw(e*100,t),r:hw,s:z7,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gw(e){return e}var vw=Array.prototype.map,yw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function B7(e){var t=e.grouping===void 0||e.thousands===void 0?gw:N7(vw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?gw:_7(vw.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Gd(d);var f=d.fill,h=d.align,g=d.sign,m=d.symbol,w=d.zero,v=d.width,y=d.comma,x=d.precision,b=d.trim,P=d.type;P==="n"?(y=!0,P="g"):mw[P]||(x===void 0&&(x=12),b=!0,P="g"),(w||f==="0"&&h==="=")&&(w=!0,f="0",h="=");var k=m==="$"?n:m==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",E=m==="$"?r:/[%p]/.test(P)?a:"",T=mw[P],A=/[defgprs%]/.test(P);x=x===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function M(O){var _=k,$=E,D,R,N;if(P==="c")$=T(O)+$,O="";else{O=+O;var j=O<0||1/O<0;if(O=isNaN(O)?l:T(Math.abs(O),x),b&&(O=F7(O)),j&&+O==0&&g!=="+"&&(j=!1),_=(j?g==="("?g:s:g==="-"||g==="("?"":g)+_,$=(P==="s"?yw[8+_R/3]:"")+$+(j&&g==="("?")":""),A){for(D=-1,R=O.length;++DN||N>57){$=(N===46?o+O.slice(D+1):O.slice(D))+$,O=O.slice(0,D);break}}}y&&!w&&(O=t(O,1/0));var I=_.length+O.length+$.length,L=I>1)+_+O+$+L.slice(I);break;default:O=L+_+O+$;break}return i(O)}return M.toString=function(){return d+""},M}function c(d,f){var h=u((d=Gd(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(ps(f)/3)))*3,m=Math.pow(10,-g),w=yw[8+g/3];return function(v){return h(m*v)+w}}return{format:u,formatPrefix:c}}var Rc,jR,FR;V7({thousands:",",grouping:[3],currency:["$",""]});function V7(e){return Rc=B7(e),jR=Rc.format,FR=Rc.formatPrefix,Rc}function U7(e){return Math.max(0,-ps(Math.abs(e)))}function W7(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ps(t)/3)))*3-ps(Math.abs(e)))}function H7(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ps(t)-ps(e))+1}function Y7(e,t,n,r){var o=t7(e,t,n),i;switch(r=Gd(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=W7(o,a))&&(r.precision=i),FR(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=H7(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=U7(o))&&(r.precision=i-(r.type==="%")*2);break}}return jR(r)}function K7(e){var t=e.domain;return e.ticks=function(n){var r=t();return e7(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return Y7(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,u,c=10;for(s0;){if(u=OR(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function zR(){var e=I7();return e.copy=function(){return D7(e,zR())},Xy.apply(e,arguments),K7(e)}var $g=Math.PI,Og=2*$g,Ri=1e-6,G7=Og-Ri;function Dg(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Lu(){return new Dg}Dg.prototype=Lu.prototype={constructor:Dg,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-e,l=r-t,u=i-e,c=a-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Ri)if(!(Math.abs(c*s-l*u)>Ri)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,h=r-a,g=s*s+l*l,m=f*f+h*h,w=Math.sqrt(g),v=Math.sqrt(d),y=o*Math.tan(($g-Math.acos((g+d-m)/(2*w*v)))/2),x=y/v,b=y/w;Math.abs(x-1)>Ri&&(this._+="L"+(e+x*u)+","+(t+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*l)}},arc:function(e,t,n,r,o,i){e=+e,t=+t,n=+n,i=!!i;var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Ri||Math.abs(this._y1-u)>Ri)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%Og+Og),d>G7?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>Ri&&(this._+="A"+n+","+n+",0,"+ +(d>=$g)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function rt(e){return function(){return e}}var xw=Math.abs,hn=Math.atan2,wi=Math.cos,q7=Math.max,Wh=Math.min,Yr=Math.sin,Oa=Math.sqrt,Mn=1e-12,hs=Math.PI,qd=hs/2,Rl=2*hs;function X7(e){return e>1?0:e<-1?hs:Math.acos(e)}function bw(e){return e>=1?qd:e<=-1?-qd:Math.asin(e)}function Q7(e){return e.innerRadius}function Z7(e){return e.outerRadius}function J7(e){return e.startAngle}function eY(e){return e.endAngle}function tY(e){return e&&e.padAngle}function nY(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,f=d*l-c*u;if(!(f*fD*D+R*R&&(T=M,A=O),{cx:T,cy:A,x01:-c,y01:-d,x11:T*(o/P-1),y11:A*(o/P-1)}}function BR(){var e=Q7,t=Z7,n=rt(0),r=null,o=J7,i=eY,a=tY,s=null;function l(){var u,c,d=+e.apply(this,arguments),f=+t.apply(this,arguments),h=o.apply(this,arguments)-qd,g=i.apply(this,arguments)-qd,m=xw(g-h),w=g>h;if(s||(s=u=Lu()),fMn))s.moveTo(0,0);else if(m>Rl-Mn)s.moveTo(f*wi(h),f*Yr(h)),s.arc(0,0,f,h,g,!w),d>Mn&&(s.moveTo(d*wi(g),d*Yr(g)),s.arc(0,0,d,g,h,w));else{var v=h,y=g,x=h,b=g,P=m,k=m,E=a.apply(this,arguments)/2,T=E>Mn&&(r?+r.apply(this,arguments):Oa(d*d+f*f)),A=Wh(xw(f-d)/2,+n.apply(this,arguments)),M=A,O=A,_,$;if(T>Mn){var D=bw(T/d*Yr(E)),R=bw(T/f*Yr(E));(P-=D*2)>Mn?(D*=w?1:-1,x+=D,b-=D):(P=0,x=b=(h+g)/2),(k-=R*2)>Mn?(R*=w?1:-1,v+=R,y-=R):(k=0,v=y=(h+g)/2)}var N=f*wi(v),j=f*Yr(v),I=d*wi(b),L=d*Yr(b);if(A>Mn){var F=f*wi(y),K=f*Yr(y),ae=d*wi(x),ie=d*Yr(x),B;if(mMn?O>Mn?(_=Tc(ae,ie,N,j,f,O,w),$=Tc(F,K,I,L,f,O,w),s.moveTo(_.cx+_.x01,_.cy+_.y01),OMn)||!(P>Mn)?s.lineTo(I,L):M>Mn?(_=Tc(I,L,F,K,d,-M,w),$=Tc(N,j,ae,ie,d,-M,w),s.lineTo(_.cx+_.x01,_.cy+_.y01),M=f;--h)s.point(y[h],x[h]);s.lineEnd(),s.areaEnd()}w&&(y[d]=+e(m,d,c),x[d]=+n(m,d,c),s.point(t?+t(m,d,c):y[d],r?+r(m,d,c):x[d]))}if(v)return s=null,v+""||null}function u(){return Nu().defined(o).curve(a).context(i)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:rt(+c),t=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:rt(+c),l):e},l.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:rt(+c),l):t},l.y=function(c){return arguments.length?(n=typeof c=="function"?c:rt(+c),r=null,l):n},l.y0=function(c){return arguments.length?(n=typeof c=="function"?c:rt(+c),l):n},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:rt(+c),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(c){return arguments.length?(o=typeof c=="function"?c:rt(!!c),l):o},l.curve=function(c){return arguments.length?(a=c,i!=null&&(s=a(i)),l):a},l.context=function(c){return arguments.length?(c==null?i=s=null:s=a(i=c),l):i},l}function rY(e,t){return te?1:t>=e?0:NaN}function oY(e){return e}function iY(){var e=oY,t=rY,n=null,r=rt(0),o=rt(Rl),i=rt(0);function a(s){var l,u=s.length,c,d,f=0,h=new Array(u),g=new Array(u),m=+r.apply(this,arguments),w=Math.min(Rl,Math.max(-Rl,o.apply(this,arguments)-m)),v,y=Math.min(Math.abs(w)/u,i.apply(this,arguments)),x=y*(w<0?-1:1),b;for(l=0;l0&&(f+=b);for(t!=null?h.sort(function(P,k){return t(g[P],g[k])}):n!=null&&h.sort(function(P,k){return n(s[P],s[k])}),l=0,d=f?(w-u*x)/f:0;l0?b*d:0)+x,g[c]={data:s[c],index:l,value:b,startAngle:m,endAngle:v,padAngle:y};return g}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:rt(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:rt(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:rt(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:rt(+s),a):i},a}const YR={draw:function(e,t){var n=Math.sqrt(t/hs);e.moveTo(n,0),e.arc(0,0,n,0,Rl)}};function aY(){var e=rt(YR),t=rt(64),n=null;function r(){var o;if(n||(n=o=Lu()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return r.type=function(o){return arguments.length?(e=typeof o=="function"?o:rt(o),r):e},r.size=function(o){return arguments.length?(t=typeof o=="function"?o:rt(+o),r):t},r.context=function(o){return arguments.length?(n=o??null,r):n},r}function ww(e){return e<0?-1:1}function Sw(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(ww(i)+ww(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Cw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Hh(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function Xd(e){this._context=e}Xd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Hh(this,this._t0,Cw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Hh(this,Cw(this,n=Sw(this,e,t)),n);break;default:Hh(this,this._t0,n=Sw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function KR(e){this._context=new GR(e)}(KR.prototype=Object.create(Xd.prototype)).point=function(e,t){Xd.prototype.point.call(this,t,e)};function GR(e){this._context=e}GR.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function sY(e){return new Xd(e)}function lY(e){return new KR(e)}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var ze=function(){return ze=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function kr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r=0?[n(t[0]),n(t[1])+n.bandwidth()]:[n(t[0])+n.bandwidth(),n(t[1])]},xY=function(e,t,n){var r=e.range(),o=Math.sign(r[1]-r[0]),i=eT(e,t),a=i[0]+n,s=i[1]+n;Math.sign(a-r[0])!==o&&(a=r[0],s=a+i[1]-i[0]),Math.sign(r[1]-s)!==o&&(s=r[1],a=s-i[1]+i[0]);var l=[e.invert(a),e.invert(s)];return ms(t,l)?t:l},bY=function(e,t){var n=Math.abs(e/t),r=Math.sign(e/t);return n>=.5?r*Math.round(n):n>=.3||Math.abs(e)>30?r:0},wY=function(e,t,n){var r=e.domain(),o=e.range(),i=(o[1]-o[0])/r.length,a=bY(n,i);if(a===0)return t;var s=_p(e,t),l=Math.round((s[0]-o[0])/i),u=l+Math.round((s[1]-s[0])/i)-1,c=l+a,d=u+a;return c<0&&(c=0,d=c+u-l),d>r.length-1&&(d=r.length-1,c=d-u+l),c===l||d===u?t:[r[c],r[d]]},SY=1e3,CY=function(e,t,n,r){var o=e.range(),i=(o[1]-o[0])/SY,a=Math.sign(o[1]-o[0]),s=_p(e,t);if(n>0&&Math.abs(s[1]-s[0])<=Math.abs(i)||n<0&&Math.abs(s[1]-s[0])>=Math.abs(o[1]-o[0]))return t;var l=Math.abs((r-s[0])/(s[1]-s[0])),u=s[0]+a*n*2*l,c=s[1]-a*n*2*(1-l);Math.sign(u-o[0])!==a&&(u=o[0]),Math.sign(o[1]-c)!==a&&(c=o[1]),(Math.sign(c-u)!==a||Math.abs(c-u)0&&l===u||c<0&&l===0&&u===o.length-1)return t;var d=Math.abs((r-s[0])/(s[1]-s[0])),f=l+Math.round(c*2*d),h=u-Math.round(c*2*(1-d));return f<0&&(f=0),h>o.length-1&&(h=o.length-1),f>h&&(d<=.5?h=f:f=h),f===l&&h===u?t:[o[f],o[h]]},EY=function(e,t){var n=e.range(),r=Math.sign(n[1]-n[0])===Math.sign(t[1]-t[0]);return[e.invert(t[r?0:1]),e.invert(t[r?1:0])]},kw=function(e,t,n){var r=Math.floor(e.length*(n-t[0])/(t[1]-t[0]));return e[Math.min(r,e.length-1)]},kY=function(e,t){var n=e.domain(),r=e.range();return[kw(n,r,t[0]),kw(n,r,t[1])]},_p=Ms(eT,yY),RY=Ms(xY,wY),TY=Ms(CY,PY),MY=Ms(EY,kY),Mc,Ag=function(e){var t=e.factory,n=e.modifyDomain;return{domain:[],factory:t,isDiscrete:!!(t&&rT(t)),modifyDomain:n}},$Y=(Mc={},Mc[En]=Ag({}),Mc[ju]=Ag({}),Mc),OY=function(e,t,n){var r;return ze(ze({},e),(r={},r[t]=Ag(n),r))},DY=function(e,t){var n=X9(kr(kr([],dn(e),!1),dn(t),!1));return ms(n,e)?e:n},AY=function(e,t){var n=Array.from(new Set(kr(kr([],dn(e),!1),dn(t),!1)));return n.length===e.length?e:n},tT=function(e){return e.argument},nT=function(e){return e.value},IY=function(e,t){return e.length&&typeof t(e[0])=="string"?QR:XR},rT=function(e){return"bandwidth"in e()},LY=function(e,t,n){if(e.factory)return e;var r=IY(t.points,n);return ze(ze({},e),{factory:r,isDiscrete:rT(r)})},NY=function(e,t){var n=e.isDiscrete?AY:DY,r=n(e.domain,t);return r===e.domain?e:ze(ze({},e),{domain:e.modifyDomain?e.modifyDomain(r):r})},_Y=function(e){return e.points.map(tT)},jY=function(e){var t=e.points.map(nT);return e.getPointTransformer.isStartedFromZero?kr([0],dn(t),!1):t},Rw=function(e,t,n,r){return NY(LY(e,t,n),r(t))},FY=function(e,t){var n=Rw(e[En],t,tT,_Y),r=Bu(t.scaleName),o=Rw(e[r],t,nT,jY),i={};return n!==e[En]&&(i[En]=n),o!==e[r]&&(i[r]=o),Object.keys(i).length?ze(ze({},e),i):e},zY=function(e,t){var n={};return Object.keys(e).forEach(function(r){n[r]=JR(e[r],t[r===En?En:ju])}),n},BY=function(e,t){var n=e.width,r=e.height,o=t.width,i=t.height;return n===o&&r===i},VY=function(e,t){var n,r=t.bBox,o=t.placeholder;return BY(e[o]||{},r)?e:ze(ze({},e),(n={},n[o]=r,n))},UY=function(e,t){var n,r=[0,e.width],o=[e.height,0];return n={},n[En]=t?o:r,n[ju]=t?r:o,n},ca,da,WY=function(e,t){return e.ticks?e.ticks(t):e.domain()},HY=function(e,t,n){return WY(e,t).map(function(r,o){return n(e(r),String(o),r)})},YY=function(e,t,n){return e.tickFormat?n?n(e,t):e.tickFormat(t):function(r){return r}},KY=(ca={},ca[Cn]=sn,ca[Nn]=yn,ca[sn]=Cn,ca[yn]=Nn,ca),GY=(da={},da[Cn]=!1,da[Nn]=!1,da[sn]=!0,da[yn]=!0,da),qY=function(e){return KY[e]},XY=function(e,t,n){return GY[e]===ZR(t,n)},QY=function(e,t,n){var r=e===sn;return{y1:0,y2:r?+t:-t,yText:r?+n:-n,dy:r?"1em":"0em",textAnchor:uY}},ZY=function(e,t,n){var r=e===Cn;return{x1:0,x2:r?-t:+t,xText:r?-n:+n,dy:"0.3em",textAnchor:r?cY:dY}},JY=10,eK=function(e,t){var n=Math.abs(e[0]-e[1])/t;return Math.round(JY*(isFinite(n)?n:1))},tK=function(e,t){return e?function(n){return n.x1>=0&&n.x1<=t}:function(n){return n.y1>=0&&n.y1<=t}},nK=function(e){var t=e.isHor,n=e.scale,r=e.tickCount,o=e.tickFormat,i=e.position,a=e.tickSize,s=e.indentFromAxis,l=YY(n,r,o),u=(t?QY:ZY)(i,a,s);return function(c,d,f){return ze({key:d,x1:c,x2:c,y1:c,y2:c,xText:c,yText:c,text:l(f)},u)}},rK=function(e){var t=e.isHor,n=t?{y1:0}:{x1:0};return function(r,o){return ze({key:o,x1:r,y1:r},n)}},Tw=function(e){var t=e.scaleName,n=e.scale,r=e.paneSize,o=e.rotated,i=e.callback,a=qR(e,["scaleName","scale","paneSize","rotated","callback"]),s=ZR(t,o),l=eK(n.range(),r[1-Number(s)]),u=HY(n,l,i(ze({isHor:s,scale:n,tickCount:l},a))),c=u.filter(tK(s,r[1-Number(s)]));return{ticks:c,sides:[Number(s),+!s]}},$s=function(e){var t=e.arg;return t},Os=function(e){var t=e.val;return t},oT=function(e){var t=e.startVal;return t},iT=_u().x($s).y1(Os).y0(oT),aT=_u().x1(oT).x0(Os).y($s),sT=Nu().x($s).y(Os),lT=Nu().x(Os).y($s),uT=Nu().x($s).y(Os).curve(sY),cT=Nu().x(Os).y($s).curve(lY),oK=function(e,t,n,r,o){var i=Math.abs(t-n),a=Math.min(t,n);return{x:o?a:e-r/2,y:o?e-r/2:a,width:o?i:r||2,height:o?r||2:i}},t0=function(e){var t=e.argumentScale,n=e.valueScale,r=e.points,o=Math.max.apply(Math,kr([],dn(t.range()),!1))/2,i=Math.max.apply(Math,kr([],dn(n.range()),!1))/2,a=Math.min(o,i),s=iY().sort(null).value(function(l){return l.value})(r);return function(l){var u=s[l.index],c=u.startAngle,d=u.endAngle;return ze(ze({},l),{arg:o,val:i,startAngle:c,endAngle:d,maxRadius:a})}},Vu=function(e){var t=e.argumentScale,n=e.valueScale;return function(r){return ze(ze({},r),{arg:t(r.argument),val:n(r.value)})}},dT=function(){for(var e=[],t=0;te.width&&t+r/2>e.width||n-o/2<0&&n+o/2<0||n-o/2>e.height&&n+o/2>e.height?"hidden":"visible"},fK=function(e,t){var n=t.width,r=t.height,o=Math.max(0,e.x),i=Math.max(0,e.y);return{x:o,y:i,width:Math.min(n,e.x+e.width)-o,height:Math.min(r,e.y+e.height)-i}},n0=function(e,t){return Object.entries(e).some(function(n){return n[1]!==t[n[0]]})},pT=function(e,t){var n=e.coordinates,r=t.coordinates;return n.length!==r.length?!0:n.some(function(o,i){return o.arg!==r[i].arg||o.val!==r[i].val})},pK=function(e,t){return!ms(e.argScale.range(),t.argScale.range())||!ms(e.valScale.range(),t.valScale.range())},hK=function(e){return(e-1)*(e-1)*(e-1)+1},mK=function(e,t){return t?e*30:0},hT=function(e){return e.valScale.copy().clamp(!0)(0)},mT=function(e,t){var n=t.coordinates,r=hT(e);return{coordinates:n.map(function(o){return{arg:o.arg,val:r,startVal:r}})}},gT=function(e,t){var n=t.arg,r=hT(e);return{arg:n,val:r,startVal:r}},gK=function(e,t){var n=t.startAngle,r=t.endAngle;return{innerRadius:0,outerRadius:0,startAngle:n,endAngle:r}},vK=function(e,t){return e.series===t.series&&e.point===t.point},yK=function(e,t){var n=e[0];return t?n?vK(n,t)?void 0:n:null:n},xK=function(e,t,n){var r=yK(e,t);if(r!==void 0)return n&&n(r),r},fu=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top,o=e.ownerDocument.defaultView,i=o,a=i.pageXOffset,s=i.pageYOffset;return[n+a,r+s]},Tl=function(e,t){var n=e.touches?e.touches[0]:e,r=n.pageX,o=n.pageY;return[r-t[0],o-t[1]]},bK=function(e,t){var n=e.find(function(o){var i=o.name;return t.series===i}),r=n.points.find(function(o){return o.index===t.point});return{element:n.getPointTransformer.getTargetElement(r),text:"".concat(r.value)}},wK=function(e,t){return{clientWidth:0,clientHeight:0,getBoundingClientRect:function(){var n=fu(t.current),r=t.current.ownerDocument.documentElement.getBoundingClientRect(),o=e[0]+n[0]+r.left,i=e[2]+n[0]+r.left,a=e[1]+n[1]+r.top,s=e[3]+n[1]+r.top;return{left:o,top:a,right:i,bottom:s,width:i-o,height:s-a}}}},SK=function(e,t,n){var r=e.filter(function(o){return o.point!==void 0});return xK(r,t,n)},vT=function(e){return e&&e.argumentStart!==void 0&&e.argumentEnd!==void 0?[e.argumentStart,e.argumentEnd]:null},yT=function(e){return e&&e.valueStart!==void 0&&e.valueEnd!==void 0?[e.valueStart,e.valueEnd]:null},xT=function(e){return Bu(e&&e.scaleName)},CK=function(e){var t=e.domain();return[t[0],t[t.length-1]]},PK=function(e,t){var n=(t[0]-t[1])/(e[0]-e[1]),r=t[0]-n*e[0];return[(e[0]-r)/n,(e[1]-r)/n]},EK=function(e,t,n){var r=JR(e,n),o=_p(r,t);return ms(o,n)?n:PK(n,o)},$w=function(e,t,n,r,o){var i=EK(r,o,e[n]);i!==e[n]&&(t[n]=i)},kK=function(e,t,n){var r={},o=vT(n);o&&$w(t,r,En,e[En],o);var i=yT(n);return i&&$w(t,r,ju,e[xT(n)],i),Object.keys(r).length?ze(ze({},t),r):t},Ow=function(e,t,n,r,o,i,a,s){if(!Ig(r,o))return null;var l=t[e],u=n||CK(l),c;return o==="pan"?c=RY(l,u,i):o==="zoom"&&(c=s?MY(l,s):TY(l,u,i,a)),c!==u?c:null},Yh=function(e,t,n,r,o,i,a,s,l){var u=dn(n,2),c=u[0],d=u[1],f=Number(t),h=1-f,g={},m=Ow(En,e,vT(s),c,r,o?o[f]:0,i?i[f]:0,a?a[f]:void 0),w=Ow(xT(s),e,yT(s),d,r,o?o[h]:0,i?i[h]:0,a?a[h]:void 0);if(m&&(g.argumentStart=m[0],g.argumentEnd=m[1]),w&&(g.valueStart=w[0],g.valueEnd=w[1]),Object.keys(g).length){var v=ze(ze({},s),g);return l&&l(v),{viewport:v}}return null},Dw=function(e){var t=e[0].pageX-e[1].pageX,n=e[0].pageY-e[1].pageY,r=Math.sqrt(t*t+n*n),o=[(e[0].pageX+e[1].pageX)/2,(e[0].pageY+e[1].pageY)/2];return{delta:r,center:o}},RK=function(e,t){return e["".concat(t,"Key")]},TK=function(e){var t=e.wheelDelta,n=e.deltaY;return t!==void 0?t:n*-30},Aw=function(e){return e.touches&&e.touches.length===2},Iw=function(e,t){Object.keys(t).forEach(function(n){e.addEventListener(n,t[n],{passive:!1})})},Kh=function(e,t){Object.keys(t).forEach(function(n){e.removeEventListener(n,t[n])})},MK=function(e,t,n,r,o,i){var a=Ig(t,"zoom"),s=Ig(n,"zoom"),l=e?s:a,u=e?a:s,c=l?Math.min(r[0],o[0]):0,d=l?Math.abs(r[0]-o[0]):i.width,f=u?Math.min(r[1],o[1]):0,h=u?Math.abs(r[1]-o[1]):i.height;return{x:c,y:f,width:d,height:h}},Ig=function(e,t){return e==="both"||e===t},Lg=function(e,t){var n="pointer";e.style.cursor=t||n},$K=function(e,t,n,r){var o=e.pane,i=qR(e,["pane"]),a=t.current;if(!o.width&&!o.height)return!1;var s={width:a.clientWidth,height:a.clientHeight},l=o.width,u=o.height;return Object.entries(i).forEach(function(c){var d=c[0].split("-")[0];d==="top"||d==="bottom"?u+=c[1].height:l+=c[1].width}),Math.abs(s.width-l)=0?t:t+Math.PI*2},BK=i0(function(e,t){var n=dn(e,2),r=n[0],o=n[1],i=t,a=i.arg,s=i.val,l=i.innerRadius,u=i.outerRadius,c=i.startAngle,d=i.maxRadius,f=i.endAngle,h=l*d,g=u*d,m=(h+g)/2,w=(c+f)/2,v=(g-h)/2,y=Math.abs(c-f)/2,x=r-a,b=o-s,P=r0(x,b),k=zK(Math.atan2(b,x));return wT(P-m,k-w,v,y)}),VK=function(e){return e.map(function(t){var n=t.name,r=t.color;return{text:n,color:r}})},UK=function(e){return e[0].points.map(function(t){var n=t.argument,r=t.color;return{text:n,color:r}})},WK=function(e){return e.length===1&&"innerRadius"in e[0]&&"outerRadius"in e[0]},HK=function(e){return(WK(e)?UK:VK)(e)},YK=20,KK=function(e,t){var n=e.distance-t.distance;if(Math.abs(n)<=YK){var r=t.order-e.order;return r!==0?r:n}return n},Lw=function(e,t){var n=null,r=function(){var o={};return e.forEach(function(i){o[i.symbolName]=i.createHitTester(i.points,i.rotated)}),o};return function(o){var i=Tl(o,fu(o.currentTarget));n=n||r();var a=[];e.forEach(function(l){var u=l.name,c=l.index,d=l.symbolName,f=n[d](i);f&&a.push.apply(a,kr([],dn(f.points.map(function(h){return{series:u,order:c,point:h.index,distance:h.distance}})),!1))}),a.sort(KK);var s={location:i,targets:a,event:o.nativeEvent};t.forEach(function(l){return l(s)})}},GK=function(e){return function(t){var n=Tl(t,fu(t.currentTarget)),r={location:n,targets:[]};e.forEach(function(o){return o(r)})}},qK=function(e,t){var n=t.clickHandlers,r=t.pointerMoveHandlers,o={};if(!w9())return o;if(n.length&&(o.click=Lw(e,n)),r.length){var i=Lw(e,r),a=GK(r);"ontouchstart"in window?o.touchstart=i:(o.mousemove=i,o.mouseleave=a)}return o},XK=function(e){var t=e.elapsed,n=e.total;return Math.min(t/n,1)},QK=function(e,t,n,r,o){return new Promise(function(i){setTimeout(function(){var a={start:Date.now(),total:r,elapsed:0},s=function(){a.elapsed=Date.now()-a.start;var l=XK(a);e(t(n(l))),l<1&&requestAnimationFrame(s)};i(requestAnimationFrame(s))},o)})},ZK=function(e,t){return function(n,r,o,i,a){a===void 0&&(a=0);var s,l=function(){s&&(cancelAnimationFrame(s),s=void 0)},u=function(c,d,f){s=QK(i,o(c,d),e,t,f).then(function(h){s=h})};return u(n,r,a),{update:function(c,d,f){f===void 0&&(f=0),l(),u(c,d,f)},stop:l}}},_n=function(e,t,n){return e+n*(t-e)},JK=function(e,t){return function(n){return{arg:_n(e.arg,t.arg,n),val:_n(e.val,t.val,n)}}},eG=function(e,t){return function(n){return{arg:_n(e.arg,t.arg,n),val:_n(e.val,t.val,n),startVal:_n(e.startVal,t.startVal,n)}}},tG=function(e,t){var n=e.coordinates,r=t.coordinates;return function(o){return{coordinates:r.map(function(i,a){var s=n[a];return ze(ze({},i),{arg:_n(s.arg,i.arg,o),val:_n(s.val,i.val,o)})})}}},nG=function(e,t){var n=e.coordinates,r=t.coordinates;return function(o){return{coordinates:r.map(function(i,a){var s=n[a];return ze(ze({},i),{arg:_n(s.arg,i.arg,o),val:_n(s.val,i.val,o),startVal:_n(s.startVal,i.startVal,o)})})}}},rG=function(e,t){return function(n){return{innerRadius:_n(e.innerRadius,t.innerRadius,n),outerRadius:_n(e.outerRadius,t.outerRadius,n),startAngle:_n(e.startAngle,t.startAngle,n),endAngle:_n(e.endAngle,t.endAngle,n)}}};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Ng=function(e,t){return Ng=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Ng(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ng(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ne=function(){return Ne=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function Nw(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r=0?0:-e},zw=function(e,t){return e>=0?e+t:-e},KG=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;return r.ref=p.createRef(),r.state={x:0,y:0},r.adjust=r.adjust.bind(r),r}return t.prototype.componentDidMount=function(){this.setState(this.adjust)},t.prototype.componentDidUpdate=function(){this.setState(this.adjust)},t.prototype.adjust=function(n,r){var o=r.dx,i=r.dy,a=r.onSizeChange,s=this.ref.current.getBBox(),l=o?s.width:zw(s.x,s.width),u=i?s.height:zw(s.y,s.height),c=o?0:Fw(s.x),d=i?0:Fw(s.y);return a({width:l,height:u}),{x:c,y:d}},t.prototype.render=function(){var n=this.props,r=n.children;n.onSizeChange,n.dx,n.dy;var o=Ht(n,["children","onSizeChange","dx","dy"]),i=this.state,a=i.x,s=i.y;return p.createElement("g",Ne({ref:this.ref,transform:"translate(".concat(a," ").concat(s,")")},o),r)},t}(p.PureComponent),GG=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.text,o=Ht(n,["text"]);return p.createElement("text",Ne({},o),r)},t}(p.PureComponent),Qh=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.x1,o=n.x2,i=n.y1,a=n.y2,s=Ht(n,["x1","x2","y1","y2"]);return p.createElement("path",Ne({d:"M ".concat(r," ").concat(i," L ").concat(o," ").concat(a)},s))},t}(p.PureComponent),qG={position:"absolute",left:0,top:0,overflow:"visible"},XG=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.rootRef=p.createRef(),n.adjustedWidth=0,n.adjustedHeight=0,n}return t.prototype.renderAxis=function(n){var r=this,o=this.props,i=o.scaleName,a=o.tickSize,s=o.tickFormat,l=o.indentFromAxis,u=o.showTicks,c=o.showLine,d=o.showLabels,f=o.rootComponent,h=o.tickComponent,g=o.labelComponent,m=o.lineComponent,w="".concat(n,"-axis"),v="".concat(w,"-").concat(i);return p.createElement(Hn,{name:w},p.createElement(lt,null),p.createElement(Ro,null,function(y,x){var b=y.scales,P=y.layouts,k=y.rotated,E=x.changeBBox;if(!XY(n,i,k))return null;var T=b[i];if(!T)return null;var A=P[v]||{width:0,height:0},M=A.width,O=A.height,_=P.pane,$=Tw({callback:nK,scaleName:i,position:n,tickSize:a,tickFormat:s,indentFromAxis:l,scale:T,paneSize:[_.width,_.height],rotated:k}),D=Qd($.sides,2),R=D[0],N=D[1],j=$.ticks,I=function(L){var F=r.rootRef.current.getBoundingClientRect(),K=[R?F.width:L.width,N?F.height:L.height];K[0]===r.adjustedWidth&&K[1]===r.adjustedHeight||(r.adjustedWidth=K[0],r.adjustedHeight=K[1],E({placeholder:v,bBox:L}))};return p.createElement("div",{style:{position:"relative",width:N*M||void 0,height:R*O||void 0,flexGrow:R||void 0},ref:r.rootRef},p.createElement("svg",{width:r.adjustedWidth,height:r.adjustedHeight,style:qG},p.createElement(f,{dx:R,dy:N,onSizeChange:I},u&&j.map(function(L){var F=L.x1,K=L.x2,ae=L.y1,ie=L.y2,B=L.key;return p.createElement(h,{key:B,x1:F,x2:K,y1:ae,y2:ie})}),c&&p.createElement(m,{x1:0,x2:R*_.width,y1:0,y2:N*_.height}),d&&j.map(function(L){var F=L.text,K=L.xText,ae=L.yText,ie=L.dy,B=L.textAnchor,te=L.key;return p.createElement(g,{key:te,text:F,x:K,y:ae,dy:ie,textAnchor:B})}))))}))},t.prototype.renderGrid=function(){var n=this.props,r=n.scaleName,o=n.showGrid,i=n.gridComponent;return p.createElement(Hn,{name:"series"},p.createElement(lt,null),p.createElement(Ro,null,function(a){var s=a.scales,l=a.layouts,u=a.rotated,c=s[r];if(!c||!o)return null;var d=l.pane,f=d.width,h=d.height,g=Tw({callback:rK,scaleName:r,scale:c,paneSize:[f,h],rotated:u}),m=g.ticks,w=Qd(g.sides,2),v=w[0],y=w[1];return p.createElement(p.Fragment,null,m.map(function(x){var b=x.key,P=x.x1,k=x.y1;return p.createElement(i,{key:b,x1:P,x2:P+y*f,y1:k,y2:k+v*h})}))}))},t.prototype.render=function(){var n=this.props.position,r=qY(n);return p.createElement(nn,{name:"Axis"},p.createElement(It,{name:"axesExist",value:!0}),this.renderAxis(n),this.renderAxis(r),this.renderGrid())},t.components={rootComponent:"Root",tickComponent:"Tick",labelComponent:"Label",lineComponent:"Line",gridComponent:"Grid"},t.defaultProps={tickSize:5,indentFromAxis:10},t}(p.PureComponent),Ji=sr({Label:GG,Line:Qh,Root:KG,Tick:Qh,Grid:Qh})(XG),QG=Wu(function(e){return Ne(Ne({position:sn,showGrid:!1,showTicks:!0,showLine:!0,showLabels:!0},e),{scaleName:En})})(Ji),ZG=Wu(function(e){return Ne(Ne({position:Cn,showGrid:!0,showTicks:!1,showLine:!1,showLabels:!0},e),{scaleName:Bu(e.scaleName)})})(Ji),JG=[{name:"EventTracker",optional:!0}],eq=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;r.state={target:n.targetItem||n.defaultTargetItem};var o=r.handlePointerMove.bind(r);return r.getPointerMoveHandlers=function(i){var a=i.pointerMoveHandlers,s=a===void 0?[]:a;return Nw(Nw([],Qd(s),!1),[o],!1)},r}return t.getDerivedStateFromProps=function(n,r){return{target:n.targetItem!==void 0?n.targetItem:r.target}},t.prototype.handlePointerMove=function(n){var r=n.targets;this.setState(function(o,i){var a=o.target,s=i.onTargetItemChange,l=SK(r,a,s);return l===void 0?null:{target:l}})},t.prototype.render=function(){var n=this.props,r=n.overlayComponent,o=n.contentComponent,i=n.sheetComponent,a=n.arrowComponent,s=this.state.target;return p.createElement(nn,{name:"Tooltip",dependencies:JG},p.createElement(It,{name:"pointerMoveHandlers",computed:this.getPointerMoveHandlers}),p.createElement(Hn,{name:"series"},p.createElement(lt,null),p.createElement(Ro,null,function(l){var u=l.series,c=l.rootRef,d=l.rotated;if(!s)return null;var f=bK(u,s),h=f.text,g=f.element;return p.createElement(r,{key:"".concat(s.series).concat(s.point),target:wK(g,c),rotated:d,arrowComponent:a},p.createElement(i,null,p.createElement(o,{text:h,targetItem:s})))})))},t.components={overlayComponent:"Overlay",contentComponent:"Content",arrowComponent:"Arrow",sheetComponent:"Sheet"},t}(p.PureComponent),tq=eq,nq=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.rect,o=Ht(n,["rect"]);return p.createElement("rect",Ne({x:r.x,y:r.y,width:r.width,height:r.height},o))},t}(p.PureComponent),nl={wheel:{func:"onWheel"},mousedown:{func:"onStart",extraEvents:["mousemove","mouseup"]},touchstart:{func:"onStart",extraEvents:["touchmove","touchend"]}},rq=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this;this.svgElement=this.props.rootRef.current,Lg(this.svgElement),this.windowHandlers=Object.keys(nl).reduce(function(r,o){var i,a,s=nl[o].extraEvents;return s?Ne(Ne({},r),(i={},i[o]=(a={},a[s[0]]=function(l){n.props.onMove(l)},a[s[1]]=function(l){n.props.onEnd(l),Lg(n.svgElement),Kh(window,n.windowHandlers[o])},a),i)):r},{}),this.handlers=Object.keys(nl).reduce(function(r,o){var i;return Ne(Ne({},r),(i={},i[o]=function(a){n.props[nl[o].func](a),nl[o].extraEvents&&Iw(window,n.windowHandlers[o])},i))},{}),Iw(this.svgElement,this.handlers)},t.prototype.componentWillUnmount=function(){var n=this;Kh(this.svgElement,this.handlers),Object.keys(this.windowHandlers).forEach(function(r){Kh(window,n.windowHandlers[r])})},t.prototype.render=function(){return null},t}(p.PureComponent),oq=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;return r.multiTouchDelta=null,r.lastCoordinates=null,r.rectOrigin=null,r.offset=[0,0],r.state={viewport:n.viewport||n.defaultViewport,rectBox:null},r}return t.getDerivedStateFromProps=function(n,r){return{viewport:n.viewport!==void 0?n.viewport:r.viewport}},t.prototype.handleStart=function(n,r){r.preventDefault(),this.offset=fu(r.currentTarget);var o=Tl(r,this.offset);RK(r,n)?this.rectOrigin=o:Lg(r.currentTarget,"grabbing"),Aw(r)&&(this.multiTouchDelta=Dw(r.touches).delta),this.lastCoordinates=o},t.prototype.handleMove=function(n,r,o,i){if(o.preventDefault(),qy(),Aw(o)){var a=Dw(o.touches);this.zoom(n,r,a.delta-this.multiTouchDelta,a.center),this.multiTouchDelta=a.delta}else this.scroll(n,r,o,i)},t.prototype.scroll=function(n,r,o,i){var a=this,s=Tl(o,this.offset),l=s[0]-this.lastCoordinates[0],u=s[1]-this.lastCoordinates[1];this.lastCoordinates=s,this.setState(function(c,d){var f=c.viewport,h=d.onViewportChange,g=d.interactionWithArguments,m=d.interactionWithValues;return a.rectOrigin?{rectBox:MK(r,g,m,a.rectOrigin,s,i)}:Yh(n,r,[g,m],"pan",[-l,-u],null,null,f,h)})},t.prototype.handleEnd=function(n,r){var o=this;this.lastCoordinates=null,this.multiTouchDelta=null,this.rectOrigin&&this.setState(function(i,a){var s=i.viewport,l=i.rectBox,u=a.onViewportChange,c=a.interactionWithArguments,d=a.interactionWithValues;return l===null?{}:(o.rectOrigin=null,Ne({rectBox:null},Yh(n,r,[c,d],"zoom",null,null,[[l.x,l.x+l.width],[l.y,l.y+l.height]],s,u)))})},t.prototype.zoom=function(n,r,o,i){this.setState(function(a,s){var l=a.viewport,u=s.onViewportChange,c=s.interactionWithArguments,d=s.interactionWithValues;return Yh(n,r,[c,d],"zoom",[o,o],i,null,l,u)})},t.prototype.handleZoom=function(n,r,o){o.preventDefault();var i=Tl(o,fu(o.currentTarget));this.zoom(n,r,TK(o),i)},t.prototype.render=function(){var n=this,r=this.state,o=r.viewport,i=r.rectBox,a=this.props,s=a.dragBoxComponent,l=a.zoomRegionKey,u=function(c){var d=c.domains,f=c.ranges;return kK(d,f,o)};return p.createElement(nn,{name:"zoomAndPan"},p.createElement(It,{name:"ranges",computed:u}),p.createElement(Hn,{name:"root"},p.createElement(lt,null),p.createElement(Ro,null,function(c){var d=c.scales,f=c.rotated,h=c.rootRef,g=c.layouts;return p.createElement(rq,{rootRef:h,onWheel:function(m){return n.handleZoom(d,f,m)},onStart:function(m){return n.handleStart(l,m)},onMove:function(m){return n.handleMove(d,f,m,g.pane)},onEnd:function(m){return n.handleEnd(d,f)}})})),p.createElement(Hn,{name:"series"},p.createElement(lt,null),i?p.createElement(s,{rect:i}):null))},t.components={dragBoxComponent:"DragBox"},t.defaultProps={interactionWithValues:"none",interactionWithArguments:"both",zoomRegionKey:"shift"},t}(p.PureComponent),ET=sr({DragBox:nq})(oq),Bw=function(e){return e?[e]:[]},iq={click:"onClick",mousemove:"onMouseMove",mouseleave:"onMouseLeave",touchstart:"onTouchStart"},aq=function(e){var t={};return Object.entries(e).forEach(function(n){var r=Qd(n,2),o=r[0],i=r[1];t[iq[o]]=i}),t},sq=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.onClick,o=n.onPointerMove;return p.createElement(nn,{name:"EventTracker"},p.createElement(It,{name:"clickHandlers",value:Bw(r)}),p.createElement(It,{name:"pointerMoveHandlers",value:Bw(o)}),p.createElement(Hn,{name:"canvas"},function(i){return p.createElement(Ro,null,function(a){var s=a.series,l=a.clickHandlers,u=a.pointerMoveHandlers,c=qK(s,{clickHandlers:l,pointerMoveHandlers:u});return p.createElement(lt,{params:Ne(Ne({},i),aq(c))})})}))},t}(p.PureComponent),lq=sq;function kT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[o]=e[o]);return n}function yi(e,t){if(e==null)return{};var n=uq(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cq(e,t){return dq(e)||fq(e,t)||pq(e,t)||hq()}function dq(e){if(Array.isArray(e))return e}function fq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function pq(e,t){if(e){if(typeof e=="string")return Uw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uw(e,t)}}function Uw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n!e.length>0?C.jsx(At,{variant:"h4",sx:{textAlign:"center",margin:5},children:"Add a transaction to view chart"}):C.jsx(Rr,{style:{marginTop:20},children:C.jsxs(MT,{data:e,children:[C.jsx(IG,{factory:QR}),C.jsx(Uq,{}),C.jsx(Vq,{}),C.jsx(CT,{valueField:"Expense",argumentField:"Category"}),C.jsx(NG,{}),C.jsx(lq,{}),C.jsx(tX,{})]})}),iX=()=>{const[e,t]=p.useState([]),n=ro(o=>o.transactions),r=Io();return p.useEffect(()=>{(async()=>{const a=(await Bd.fetchAll()).sort((s,l)=>s.date>l.date?-1:1);r(vR(a))})()},[]),p.useEffect(()=>{const o={};n.forEach(s=>{o[s.category]?o[s.category]+=s.amount:o[s.category]=s.amount});const i=Object.keys(o),a=[];i.forEach(s=>{a.push({Category:s,Expense:o[s]})}),t(a)},[n]),C.jsx("div",{children:C.jsxs(Oy,{children:[C.jsx(oX,{chartData:e}),C.jsx(l9,{}),C.jsx(y9,{})]})})};var c0={},aX=Vy;Object.defineProperty(c0,"__esModule",{value:!0});var d0=c0.default=void 0,sX=aX(Uy()),lX=C,uX=(0,sX.default)((0,lX.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");d0=c0.default=uX;function cX(e){return C.jsxs(At,{variant:"body2",color:"text.secondary",align:"center",...e,children:["Copyright © ",C.jsx(Ko,{color:"inherit",href:"https://mui.com/",children:"Expense Tracker"})," ",new Date().getFullYear(),"."]})}const dX=Vf();function fX(){const e=ku(),t=Io(),n=async r=>{r.preventDefault();const o=new FormData(r.currentTarget),i={email:o.get("email"),password:o.get("password")};try{const a=await xy.login(i);t(ap(a.user)),e("/"),t(qt(["Login success",!0]))}catch(a){t(qt([a.response.data,!1]))}setTimeout(()=>t(qt(null)),5e3)};return C.jsx(BP,{theme:dX,children:C.jsxs(Oy,{component:"main",maxWidth:"xs",children:[C.jsx(gk,{}),C.jsxs(Co,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[C.jsx(fk,{sx:{m:1,bgcolor:"secondary.main"},children:C.jsx(d0,{})}),C.jsx(At,{component:"h1",variant:"h5",children:"Sign in"}),C.jsxs(Co,{component:"form",onSubmit:n,noValidate:!0,sx:{mt:1},children:[C.jsx(Fr,{margin:"normal",required:!0,fullWidth:!0,id:"email",label:"Email Address",name:"email",autoComplete:"email",autoFocus:!0}),C.jsx(Fr,{margin:"normal",required:!0,fullWidth:!0,name:"password",label:"Password",type:"password",id:"password",autoComplete:"current-password"}),C.jsx(mr,{type:"submit",fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:"Sign In"}),C.jsx(fo,{container:!0,children:C.jsx(fo,{item:!0,children:C.jsx(Ko,{to:"/register",variant:"body2",children:"Don't have an account? Sign Up"})})})]})]}),C.jsx(cX,{sx:{mt:8,mb:4}})]})})}function pX(e){return C.jsxs(At,{variant:"body2",color:"text.secondary",align:"center",...e,children:["Copyright © ",C.jsx(Ko,{color:"inherit",href:"/",children:"Expense Tracker"})," ",new Date().getFullYear(),"."]})}const hX=Vf();function mX(){const e=ku(),t=Io(),n=async r=>{r.preventDefault();const o=new FormData(r.currentTarget);if(!o.get("firstName")||!o.get("lastName")||!o.get("email")||!o.get("password"))return t(qt(["One or more field empty",!1])),setTimeout(()=>t(qt(null)),5e3);const i={fname:o.get("firstName"),lname:o.get("lastName"),email:o.get("email"),password:o.get("password")};try{await xy.register(i),t(qt(["Account created!",!0])),e("/login")}catch(a){t(qt([a.response.data,!1]))}setTimeout(()=>t(qt(null)),5e3)};return C.jsx(BP,{theme:hX,children:C.jsxs(Oy,{component:"main",maxWidth:"xs",children:[C.jsx(gk,{}),C.jsxs(Co,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[C.jsx(fk,{sx:{m:1,bgcolor:"secondary.main"},children:C.jsx(d0,{})}),C.jsx(At,{component:"h1",variant:"h5",children:"Sign up"}),C.jsxs(Co,{component:"form",noValidate:!0,onSubmit:n,sx:{mt:3},children:[C.jsxs(fo,{container:!0,spacing:2,children:[C.jsx(fo,{item:!0,xs:12,sm:6,children:C.jsx(Fr,{autoComplete:"given-name",name:"firstName",required:!0,fullWidth:!0,id:"firstName",label:"First Name",autoFocus:!0})}),C.jsx(fo,{item:!0,xs:12,sm:6,children:C.jsx(Fr,{required:!0,fullWidth:!0,id:"lastName",label:"Last Name",name:"lastName",autoComplete:"family-name"})}),C.jsx(fo,{item:!0,xs:12,children:C.jsx(Fr,{required:!0,fullWidth:!0,id:"email",label:"Email Address",name:"email",autoComplete:"email"})}),C.jsx(fo,{item:!0,xs:12,children:C.jsx(Fr,{required:!0,fullWidth:!0,name:"password",label:"Password",type:"password",id:"password",autoComplete:"new-password"})})]}),C.jsx(mr,{type:"submit",fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:"Sign Up"}),C.jsx(fo,{container:!0,justifyContent:"flex-end",children:C.jsx(fo,{item:!0,children:C.jsx(Ko,{to:"/login",children:"Already have an account? Sign in"})})})]})]}),C.jsx(pX,{sx:{mt:5}})]})})}function Hw({children:e}){return ro(n=>n.auth.user)?e:C.jsx(oE,{to:"/login"})}function Yw({children:e}){return ro(n=>n.auth.user)?C.jsx(oE,{to:"/"}):e}const gX=U_({reducer:{auth:J_,transactions:r9,editTransaction:a9,message:tj}}),jT="/category/",FT=e=>({authorization:`Bearer ${e}`}),vX=async e=>{const t=localStorage.getItem("expenseTrackerToken");return await Lo.delete(jT+e,{headers:FT(t)})},yX=async e=>{const t=localStorage.getItem("expenseTrackerToken");return await Lo.post(jT,{name:e},{headers:FT(t)})},zT={remove:vX,create:yX},xX=()=>{const[e,t]=p.useState(""),n=Io(),r=i=>{t(i.target.value)},o=async i=>{i.preventDefault();const a=await zT.create(e);n(ap(a.data)),n(qt([`Category '${e}' added successfully`,!0])),setTimeout(()=>n(qt(null)),5e3),t("")};return C.jsxs(Dn.Fragment,{children:[C.jsx(mk,{children:C.jsxs(Co,{component:"form",onSubmit:o,sx:{display:"flex",flexWrap:"wrap",justifyContent:"center"},children:[C.jsx(Fr,{size:"small",sx:{marginRight:5},onChange:r,value:e,type:"text",name:"amount",placeholder:"New Category Name"}),C.jsx(mr,{variant:"contained",type:"submit",children:"Submit"})]})}),C.jsx(hk,{})]})};function bX(){return C.jsx(Co,{sx:{minWidth:275,margin:5},children:C.jsx(pk,{variant:"outlined",children:C.jsx(xX,{})})})}function wX(){const e=Io(),t=ro(r=>r.auth.user.categories),n=async r=>{if(confirm("Are you sure you want to delete the category?")){const o=await zT.remove(r);o.status===200&&(e(ap(o.data)),e(qt(["Category deleted successfully",!0])),setTimeout(()=>e(qt(null)),5e3))}};return C.jsxs(C.Fragment,{children:[C.jsx(bX,{}),C.jsx(At,{variant:"h4",sx:{textAlign:"center",margin:5},children:"List of categories"}),C.jsx(Nk,{component:Rr,children:C.jsxs(Ik,{sx:{minWidth:650},"aria-label":"simple table",children:[C.jsx(_k,{children:C.jsxs(zd,{children:[C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Name"})}),C.jsx($n,{align:"center",children:C.jsx("strong",{children:"Action"})})]})}),C.jsx(Lk,{children:t.map(r=>C.jsxs(zd,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[C.jsx($n,{align:"center",children:r}),C.jsx($n,{align:"center",children:C.jsx(Eo,{color:"error",onClick:()=>n(r),sx:{cursor:"pointer"},children:C.jsx(Wy,{})})})]},r))})]})})]})}const SX=CN([{element:C.jsx(wU,{}),children:[{path:"/",element:C.jsx(Hw,{children:C.jsx(iX,{})})},{path:"/login",element:C.jsx(Yw,{children:C.jsx(fX,{})})},{path:"/register",element:C.jsx(Yw,{children:C.jsx(mX,{})})},{path:"/category",element:C.jsxs(Hw,{children:[C.jsx(wX,{})," "]})}]}]);Zh.createRoot(document.getElementById("root")).render(C.jsx(l_,{store:gX,children:C.jsx(hN,{router:SX})})); diff --git a/server/dist/assets/index-7f4f51b3.css b/server/dist/assets/index-7f4f51b3.css new file mode 100644 index 0000000..c8ab410 --- /dev/null +++ b/server/dist/assets/index-7f4f51b3.css @@ -0,0 +1 @@ +body{font-family:Roboto,sans-serif} diff --git a/server/dist/index.html b/server/dist/index.html new file mode 100644 index 0000000..7d8409e --- /dev/null +++ b/server/dist/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + + Expense Tracker + + + + +
+ + + diff --git a/server/dist/vite.svg b/server/dist/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/server/dist/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/server/models/Transaction.js b/server/models/Transaction.js new file mode 100644 index 0000000..5f46f8d --- /dev/null +++ b/server/models/Transaction.js @@ -0,0 +1,36 @@ +import mongoose from "mongoose"; + + +const transactionSchema =new mongoose.Schema({ + amount:{ + type:Number, + required:true + }, + description:String, + date:{ + type:Date, + default:new Date() + }, + createdAt:{ + type:Date, + default:Date.now + }, + user:{ + type:mongoose.Schema.Types.ObjectId, + ref:'User' + }, + category:String +}) + +transactionSchema.set('toJSON',{ + versionKey:false, + virtuals:true, + transform:(doc,ret)=>{ + delete ret._id + } +}) + + + +const Transaction = new mongoose.model('Transaction',transactionSchema) +export default Transaction \ No newline at end of file diff --git a/server/models/User.js b/server/models/User.js new file mode 100644 index 0000000..54d2ae4 --- /dev/null +++ b/server/models/User.js @@ -0,0 +1,24 @@ +import mongoose from "mongoose"; + +import uniqueValidator from 'mongoose-unique-validator' + +const userSchema = new mongoose.Schema({ + fname:String, + lname:String, + email:{ + type:String, + unique:true, + validate:{ + validator:function(v){ + return /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(v) + }, + message:'{VALUE} is not a valid email address' + } + }, + pHash:String, + categories:[{type:String}] +}) +userSchema.plugin(uniqueValidator,{message:'Error, {PATH} already in use.'}) +const User = mongoose.model('User',userSchema) + +export default User \ No newline at end of file diff --git a/server/package-lock.json b/server/package-lock.json new file mode 100644 index 0000000..9718109 --- /dev/null +++ b/server/package-lock.json @@ -0,0 +1,1894 @@ +{ + "name": "server", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "server", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "bcrypt": "^5.1.1", + "cors": "^2.8.5", + "dotenv": "^16.3.1", + "express": "^4.18.2", + "jsonwebtoken": "^9.0.2", + "mongoose": "^7.5.0", + "mongoose-unique-validator": "^4.0.0", + "nodemon": "^3.0.1", + "passport": "^0.6.0", + "passport-jwt": "^4.0.1" + } + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", + "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==", + "dependencies": { + "detect-libc": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.7", + "nopt": "^5.0.0", + "npmlog": "^5.0.1", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.11" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/@mapbox/node-pre-gyp/node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@mongodb-js/saslprep": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.0.tgz", + "integrity": "sha512-Xfijy7HvfzzqiOAhAepF4SGN5e9leLkMvg/OPOF97XemjfVCYN/oWa75wnkc6mltMSTwY+XlbhWgUOJmkFspSw==", + "optional": true, + "dependencies": { + "sparse-bitfield": "^3.0.3" + } + }, + "node_modules/@types/node": { + "version": "20.5.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.9.tgz", + "integrity": "sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==" + }, + "node_modules/@types/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog==" + }, + "node_modules/@types/whatwg-url": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", + "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", + "dependencies": { + "@types/node": "*", + "@types/webidl-conversions": "*" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agent-base/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/agent-base/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" + }, + "node_modules/are-we-there-yet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", + "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/bcrypt": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz", + "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==", + "hasInstallScript": true, + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.11", + "node-addon-api": "^5.0.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/bson": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/bson/-/bson-5.4.0.tgz", + "integrity": "sha512-WRZ5SQI5GfUuKnPTNmAYPiKIof3ORXAF4IRU5UcgmivNIon01rWQlw5RUH954dpu8yGL8T59YShVddIPaU/gFA==", + "engines": { + "node": ">=14.20.1" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-libc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz", + "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/gauge": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", + "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==" + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/jsonwebtoken": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", + "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/kareem": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz", + "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/lodash.foreach": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.foreach/-/lodash.foreach-4.5.0.tgz", + "integrity": "sha512-aEXTF4d+m05rVOAUG3z4vZZ4xVexLKZGF0lIxuHZ1Hplpk/3B6Z1+/ICICYRLm7c41Z2xiejbkCkJoTlypoXhQ==" + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memory-pager": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", + "optional": true + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mongodb": { + "version": "5.8.1", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.8.1.tgz", + "integrity": "sha512-wKyh4kZvm6NrCPH8AxyzXm3JBoEf4Xulo0aUWh3hCgwgYJxyQ1KLST86ZZaSWdj6/kxYUA3+YZuyADCE61CMSg==", + "dependencies": { + "bson": "^5.4.0", + "mongodb-connection-string-url": "^2.6.0", + "socks": "^2.7.1" + }, + "engines": { + "node": ">=14.20.1" + }, + "optionalDependencies": { + "@mongodb-js/saslprep": "^1.1.0" + }, + "peerDependencies": { + "@aws-sdk/credential-providers": "^3.188.0", + "@mongodb-js/zstd": "^1.0.0", + "kerberos": "^1.0.0 || ^2.0.0", + "mongodb-client-encryption": ">=2.3.0 <3", + "snappy": "^7.2.2" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-providers": { + "optional": true + }, + "@mongodb-js/zstd": { + "optional": true + }, + "kerberos": { + "optional": true + }, + "mongodb-client-encryption": { + "optional": true + }, + "snappy": { + "optional": true + } + } + }, + "node_modules/mongodb-connection-string-url": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", + "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", + "dependencies": { + "@types/whatwg-url": "^8.2.1", + "whatwg-url": "^11.0.0" + } + }, + "node_modules/mongoose": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-7.5.0.tgz", + "integrity": "sha512-FpOWOb0AJuaVcplmEyIJ2eCbVGe4gOoniPD+pmft5BrGrNrsFcnYXlERdXtBApGHMHPwD7WbxTyhCbUNr72F3Q==", + "dependencies": { + "bson": "^5.4.0", + "kareem": "2.5.1", + "mongodb": "5.8.1", + "mpath": "0.9.0", + "mquery": "5.0.0", + "ms": "2.1.3", + "sift": "16.0.1" + }, + "engines": { + "node": ">=14.20.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mongoose" + } + }, + "node_modules/mongoose-unique-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-4.0.0.tgz", + "integrity": "sha512-lOvL7wOZ8wM2Kggk6zPZuglmld7hmzf6TdNk/h9EidTH9iZNLl3Y2ZgRPjYd/so1AODLawehY56roa6HjX6jew==", + "dependencies": { + "lodash.foreach": "^4.1.0", + "lodash.get": "^4.0.2", + "lodash.merge": "^4.6.2" + }, + "peerDependencies": { + "mongoose": "^7.0.0" + } + }, + "node_modules/mongoose/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/mpath": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", + "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mquery": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/mquery/-/mquery-5.0.0.tgz", + "integrity": "sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==", + "dependencies": { + "debug": "4.x" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/mquery/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/mquery/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-fetch/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/node-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/node-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/nodemon": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.0.1.tgz", + "integrity": "sha512-g9AZ7HmkhQkqXkRc20w+ZfQ73cHLbE8hnPbtaFbFtCumZsjyMhKk9LajQ07U5Ux28lvFjZ5X7HvWR1xzU8jHVw==", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^7.5.3", + "simple-update-notifier": "^2.0.0", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npmlog": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", + "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", + "dependencies": { + "are-we-there-yet": "^2.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^3.0.0", + "set-blocking": "^2.0.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/passport": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/passport/-/passport-0.6.0.tgz", + "integrity": "sha512-0fe+p3ZnrWRW74fe8+SvCyf4a3Pb2/h7gFkQ8yTJpAO50gDzlfjZUZTO1k5Eg9kUct22OxHLqDZoKUWRHOh9ug==", + "dependencies": { + "passport-strategy": "1.x.x", + "pause": "0.0.1", + "utils-merge": "^1.0.1" + }, + "engines": { + "node": ">= 0.4.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jaredhanson" + } + }, + "node_modules/passport-jwt": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/passport-jwt/-/passport-jwt-4.0.1.tgz", + "integrity": "sha512-UCKMDYhNuGOBE9/9Ycuoyh7vP6jpeTp/+sfMJl7nLff/t6dps+iaeE0hhNkKN8/HZHcJ7lCdOyDxHdDoxoSvdQ==", + "dependencies": { + "jsonwebtoken": "^9.0.0", + "passport-strategy": "^1.0.0" + } + }, + "node_modules/passport-strategy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", + "integrity": "sha512-CB97UUvDKJde2V0KDWWB3lyf6PC3FaZP7YxZ2G8OAtn9p4HI9j9JLP9qjOGZFvyl8uwNT8qM+hGnz/n16NI7oA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "node_modules/pause": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", + "integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sift": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz", + "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==" + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/sparse-bitfield": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", + "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", + "optional": true, + "dependencies": { + "memory-pager": "^1.0.2" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/tar": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz", + "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dependencies": { + "nopt": "~1.0.10" + }, + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } +} diff --git a/server/package.json b/server/package.json new file mode 100644 index 0000000..f7f1f56 --- /dev/null +++ b/server/package.json @@ -0,0 +1,26 @@ +{ + "name": "server", + "version": "1.0.0", + "description": "", + "main": "main.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "dev": "nodemon server.js" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "bcrypt": "^5.1.1", + "cors": "^2.8.5", + "dotenv": "^16.3.1", + "express": "^4.18.2", + "jsonwebtoken": "^9.0.2", + "mongoose": "^7.5.0", + "mongoose-unique-validator": "^4.0.0", + "nodemon": "^3.0.1", + "passport": "^0.6.0", + "passport-jwt": "^4.0.1" + }, + "type": "module" +} diff --git a/server/requests/verifyuser.rest b/server/requests/verifyuser.rest new file mode 100644 index 0000000..b0b3a0a --- /dev/null +++ b/server/requests/verifyuser.rest @@ -0,0 +1,13 @@ +GET http://localhost:4000/transactions +Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im5pa2hpbEBnbWFpbC5jb20iLCJmbmFtZSI6Im5pa2hpbCIsImlhdCI6MTY5NDIyOTQwMiwiZXhwIjoxNjk1MDkzNDAyfQ.83KBsPKhQcO0PJGn5fSieC8G3b89UwgKk-aRvAkj1vA + + +### +POST http://localhost:4000/transactions +Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFqYXlAZ21haWwuY29tIiwiZm5hbWUiOiJhamF5IiwiaWF0IjoxNjk0MjU2NDE1LCJleHAiOjE2OTUxMjA0MTV9.B7IlyQX-hapDEmrUcZ4buXLkN2DYD26rf3gfDO6KyXw + +{ + "amount": 1000, + "description": "from vs code", + "date": "2022-04-16T18:30:00.000Z" +} \ No newline at end of file diff --git a/server/routes/auth.js b/server/routes/auth.js new file mode 100644 index 0000000..2b45327 --- /dev/null +++ b/server/routes/auth.js @@ -0,0 +1,50 @@ +import { Router } from "express" + +import User from '../models/User.js' +import bcrypt from 'bcrypt' +import jwt from 'jsonwebtoken' +import config from '../utils/config.js' + +const router = Router() + +router.post('/register', async (req, res) => { + const saltRounds = 10 + const pHash = await bcrypt.hash(req.body.password, saltRounds) + const categories = ['Travel', 'Shopping', 'Investment', 'Bills'] + + const userData = { + fname: req.body.fname, + lname: req.body.lname, + pHash, + email: req.body.email, + categories: categories + } + try { + const user = await User(userData).save() + res.json(user) + }catch (error){ + return res.status(409).send(error.errors.email.message) + } +}) + +router.post('/login', async (req, res) => { + const { email, password } = req.body + const user = await User.findOne({ email }) + + if (!user) { + return res.status(401).json("User doesn't exist") + } + const match = await bcrypt.compare(password, user.pHash); + if (match) { + const payload = { + email: user.email, + fname: user.fname + } + const token = jwt.sign(payload, config.KEY, { expiresIn: '10d' }) + res.json({ user: user, token }) + } else { + res.status(401).json('Wrong password') + } +}) + +export default router \ No newline at end of file diff --git a/server/routes/category.js b/server/routes/category.js new file mode 100644 index 0000000..0186b6e --- /dev/null +++ b/server/routes/category.js @@ -0,0 +1,22 @@ +import { Router } from "express"; +const router = Router() +import User from '../models/User.js' + +router.delete('/:name',async (req,res)=>{ + req.user.categories.filter(n=>n!==req.params.name) + const user = await User.findByIdAndUpdate(req.user.id,{categories:req.user.categories},{new:true}) + res.status(200).json(user) +}) + +router.post('/',async (req,res)=>{ + var updatedCat = [] + if(!req.user.categories.includes(req.body.name)){ + updatedCat = req.user.categories.concat(req.body.name) + }else{ + updatedCat = req.user.categories + } + const user = await User.findByIdAndUpdate(req.user.id,{categories:updatedCat},{new:true}) + res.status(200).json(user) +}) + +export default router \ No newline at end of file diff --git a/server/routes/transactions.js b/server/routes/transactions.js new file mode 100644 index 0000000..9991b55 --- /dev/null +++ b/server/routes/transactions.js @@ -0,0 +1,42 @@ +import { Router } from "express" +import Transaction from "../models/Transaction.js" + +const router = Router() + +router.get('/', async (req, res) => { + const userId = req.user.id + const allTransaction = await Transaction.find({user:userId}) + return res.json(allTransaction) +}) + +router.post('/', async (req, res) => { + const newTrans = Transaction({ ...req.body, user: req.user.id }) + const newT = newTrans.save() + return res.json(newT) +}) + +router.put('/:id', async (req, res) => { + const id = req.params.id + const trans = await Transaction.findById(id) + const updatedTrans = await Transaction.findByIdAndUpdate(id, req.body) + res.json(updatedTrans) +}) + +router.delete('/:id', async (req, res) => { + const id = req.params.id + const trans = await Transaction.findById(id) + + if(!trans){ + return res.sendStatus(404).end() + } + + if (String(trans.user) === req.user.id) { + await Transaction.findByIdAndDelete(id) + res.sendStatus(204).end() + } else { + res.sendStatus(401).json("not authorized to update someone else's transaction") + } +}) + + +export default router \ No newline at end of file diff --git a/server/routes/user.js b/server/routes/user.js new file mode 100644 index 0000000..aa0e4c7 --- /dev/null +++ b/server/routes/user.js @@ -0,0 +1,10 @@ +import { Router } from "express"; +import passport from "passport"; + +const app = Router() + +app.get('/',passport.authenticate('jwt',{session:false}), (req,res)=>{ + res.json({user:req.user}) +}) + +export default app \ No newline at end of file diff --git a/server/server.js b/server/server.js new file mode 100644 index 0000000..0f79ae3 --- /dev/null +++ b/server/server.js @@ -0,0 +1,39 @@ +import express from 'express' +import config from './utils/config.js' +import cors from 'cors' +import connect from './database/mongodb.js' +import transRouter from './routes/transactions.js' +import authRouter from './routes/auth.js' +import passport from 'passport' +import userRouter from './routes/user.js' +import passportConfig from './utils/passport.js' +import categoryRouter from './routes/category.js' +import { fileURLToPath } from 'url'; +import path from 'path' + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +const app = express() + +app.use(express.json()) +app.use(cors()) + +await connect() + +app.use(passport.initialize()) +passportConfig(passport) + +app.use('/transactions',passport.authenticate('jwt',{session:false}),transRouter) + +app.use('/auth',authRouter) +app.use('/user',userRouter) +app.use('/category',passport.authenticate('jwt',{session:false}),categoryRouter) + +app.get(['/login','/register'],(req, res) =>{ + res.sendFile(path.resolve(__dirname, './dist/index.html')); +}); + +app.listen(config.PORT,()=>{ + console.log(`server running on ${config.PORT}`) +}) \ No newline at end of file diff --git a/server/utils/config.js b/server/utils/config.js new file mode 100644 index 0000000..ee0face --- /dev/null +++ b/server/utils/config.js @@ -0,0 +1,8 @@ +import dotenv from 'dotenv' +dotenv.config() + +const MONGODB_URI = process.env.MONGODB_URI +const PORT = process.env.PORT +const KEY = process.env.SECRET + +export default {MONGODB_URI,PORT,KEY} \ No newline at end of file diff --git a/server/utils/middleware.js b/server/utils/middleware.js new file mode 100644 index 0000000..3affb46 --- /dev/null +++ b/server/utils/middleware.js @@ -0,0 +1,15 @@ +import jwt, { decode } from 'jsonwebtoken' +import config from '../utils/config.js' +const auth = (req,res,next)=>{ + const header = req.headers['authorization'] || '' + + const token = header.split(' ')[1] + try{ + const decoded = jwt.verify(token,config.KEY) + req.user = decoded + next() + }catch (err){ + next(err) + } +} +export default {auth} \ No newline at end of file diff --git a/server/utils/passport.js b/server/utils/passport.js new file mode 100644 index 0000000..176b71c --- /dev/null +++ b/server/utils/passport.js @@ -0,0 +1,28 @@ +import { Strategy } from 'passport-jwt' +import { ExtractJwt } from "passport-jwt" +import config from '../utils/config.js' +import passport from "passport" +import User from '../models/User.js' + + +var opts = {} + +opts.jwtFromRequest = ExtractJwt.fromAuthHeaderAsBearerToken() +opts.secretOrKey = config.KEY + + +export default (passport) => { + passport.use(new Strategy(opts,async (jwt_payload, done) => { + try{ + const user =await User.findOne({email:jwt_payload.email}) + if(user){ + done(null,user) + }else{ + done(null,false) + } + }catch(e){ + done(e,false) + } + + })) +}