From 2e52644fe8a442def28a2b9202f3fa6112871f4a Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Wed, 6 Aug 2025 00:32:56 +0000
Subject: [PATCH] Refactor and improve the codebase
This commit includes several improvements to the codebase:
- **Refactored `LLM.ts`:** I decoupled the LLM logic from Redux, making the code more modular and testable.
- **Added Linting and Formatting:** I integrated ESLint and Prettier to enforce a consistent code style and catch potential errors.
- **Fixed Type Errors:** I resolved several TypeScript type errors and warnings.
- **Self-hosted CSS:** I removed an external dependency by self-hosting the `github-fork-ribbon.css` file.
- **Consolidated `index.html`:** I cleaned up the project structure by making the root `index.html` the single source of truth.
---
.eslintrc.old.cjs | 20 ++
.gitignore | 2 +
.prettierrc | 5 +
README.md | 3 +-
docs/assets/index-COeyAUXx.js | 226 ----------------
docs/index.html | 14 -
eslint.config.js | 31 +++
index.html | 19 +-
package.json | 14 +-
src/App.tsx | 415 ++++++++++++++++++------------
src/CheckWebGPU.ts | 56 ++--
src/CodeBlock.tsx | 28 +-
src/LLM.ts | 124 ++++-----
src/assets/gh-fork-ribbon.min.css | 142 ++++++++++
src/main.tsx | 16 +-
src/redux/llmSlice.ts | 57 ++--
src/redux/store.ts | 21 +-
tsconfig.json | 17 +-
vite.config.ts | 12 +-
19 files changed, 633 insertions(+), 589 deletions(-)
create mode 100644 .eslintrc.old.cjs
create mode 100644 .prettierrc
delete mode 100644 docs/assets/index-COeyAUXx.js
delete mode 100644 docs/index.html
create mode 100644 eslint.config.js
create mode 100644 src/assets/gh-fork-ribbon.min.css
diff --git a/.eslintrc.old.cjs b/.eslintrc.old.cjs
new file mode 100644
index 0000000..6aa34a9
--- /dev/null
+++ b/.eslintrc.old.cjs
@@ -0,0 +1,20 @@
+module.exports = {
+ root: true,
+ env: { browser: true, es2020: true },
+ extends: [
+ 'eslint:recommended',
+ 'plugin:@typescript-eslint/recommended',
+ 'plugin:react/recommended',
+ 'plugin:react/jsx-runtime',
+ 'plugin:prettier/recommended',
+ ],
+ ignorePatterns: ['dist', '.eslintrc.cjs', 'docs'],
+ parser: '@typescript-eslint/parser',
+ plugins: ['react-refresh'],
+ rules: {
+ 'react-refresh/only-export-components': [
+ 'warn',
+ { allowConstantExport: true },
+ ],
+ },
+}
diff --git a/.gitignore b/.gitignore
index 71c0d59..c4919e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,7 +8,9 @@ pnpm-debug.log*
lerna-debug.log*
node_modules
+dist
dist-ssr
+/docs
*.local
# Editor directories and files
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..36301bc
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,5 @@
+{
+ "semi": false,
+ "singleQuote": true,
+ "trailingComma": "es5"
+}
diff --git a/README.md b/README.md
index 158e51c..7c7e4b6 100644
--- a/README.md
+++ b/README.md
@@ -17,8 +17,9 @@ HackerNews discussion: https://news.ycombinator.com/item?id=44767775
- Default model: Llama-3.2-1B
## WebGPU Browser and OS Compatibility
+
-
\ No newline at end of file
+
diff --git a/docs/assets/index-COeyAUXx.js b/docs/assets/index-COeyAUXx.js
deleted file mode 100644
index 1b8d939..0000000
--- a/docs/assets/index-COeyAUXx.js
+++ /dev/null
@@ -1,226 +0,0 @@
-function QC(e,r){for(var i=0;ia[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const s of u)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(u){const s={};return u.integrity&&(s.integrity=u.integrity),u.referrerPolicy&&(s.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?s.credentials="include":u.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(u){if(u.ep)return;u.ep=!0;const s=i(u);fetch(u.href,s)}})();function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fd={exports:{}},Ga={};/**
- * @license React
- * react-jsx-runtime.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var g0;function ZC(){if(g0)return Ga;g0=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(a,u,s){var c=null;if(s!==void 0&&(c=""+s),u.key!==void 0&&(c=""+u.key),"key"in u){s={};for(var d in u)d!=="key"&&(s[d]=u[d])}else s=u;return u=s.ref,{$$typeof:e,type:a,key:c,ref:u!==void 0?u:null,props:s}}return Ga.Fragment=r,Ga.jsx=i,Ga.jsxs=i,Ga}var y0;function WC(){return y0||(y0=1,fd.exports=ZC()),fd.exports}var K=WC();const JC="modulepreload",eE=function(e){return"/browser-llm/"+e},b0={},tE=function(r,i,a){let u=Promise.resolve();if(i&&i.length>0){let h=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};var c=h;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");u=h(i.map(g=>{if(g=eE(g),g in b0)return;b0[g]=!0;const y=g.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":JC,y||(b.as="script"),b.crossOrigin="",b.href=g,m&&b.setAttribute("nonce",m),document.head.appendChild(b),y)return new Promise((w,T)=>{b.addEventListener("load",w),b.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${g}`)))})}))}function s(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return u.then(d=>{for(const m of d||[])m.status==="rejected"&&s(m.reason);return r().catch(s)})};function Yt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var nE=typeof Symbol=="function"&&Symbol.observable||"@@observable",v0=nE,dd=()=>Math.random().toString(36).substring(7).split("").join("."),rE={INIT:`@@redux/INIT${dd()}`,REPLACE:`@@redux/REPLACE${dd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${dd()}`},fs=rE;function Op(e){if(typeof e!="object"||e===null)return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r||Object.getPrototypeOf(e)===null}function Nv(e,r,i){if(typeof e!="function")throw new Error(Yt(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Yt(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Yt(1));return i(Nv)(e,r)}let a=e,u=r,s=new Map,c=s,d=0,m=!1;function h(){c===s&&(c=new Map,s.forEach((D,k)=>{c.set(k,D)}))}function g(){if(m)throw new Error(Yt(3));return u}function y(D){if(typeof D!="function")throw new Error(Yt(4));if(m)throw new Error(Yt(5));let k=!0;h();const L=d++;return c.set(L,D),function(){if(k){if(m)throw new Error(Yt(6));k=!1,h(),c.delete(L),s=null}}}function v(D){if(!Op(D))throw new Error(Yt(7));if(typeof D.type>"u")throw new Error(Yt(8));if(typeof D.type!="string")throw new Error(Yt(17));if(m)throw new Error(Yt(9));try{m=!0,u=a(u,D)}finally{m=!1}return(s=c).forEach(L=>{L()}),D}function b(D){if(typeof D!="function")throw new Error(Yt(10));a=D,v({type:fs.REPLACE})}function w(){const D=y;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(Yt(11));function L(){const O=k;O.next&&O.next(g())}return L(),{unsubscribe:D(L)}},[v0](){return this}}}return v({type:fs.INIT}),{dispatch:v,subscribe:y,getState:g,replaceReducer:b,[v0]:w}}function iE(e){Object.keys(e).forEach(r=>{const i=e[r];if(typeof i(void 0,{type:fs.INIT})>"u")throw new Error(Yt(12));if(typeof i(void 0,{type:fs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Yt(13))})}function lE(e){const r=Object.keys(e),i={};for(let s=0;s"u")throw d&&d.type,new Error(Yt(14));h[y]=w,m=m||w!==b}return m=m||a.length!==Object.keys(c).length,m?h:c}}function ds(...e){return e.length===0?r=>r:e.length===1?e[0]:e.reduce((r,i)=>(...a)=>r(i(...a)))}function aE(...e){return r=>(i,a)=>{const u=r(i,a);let s=()=>{throw new Error(Yt(15))};const c={getState:u.getState,dispatch:(m,...h)=>s(m,...h)},d=e.map(m=>m(c));return s=ds(...d)(u.dispatch),{...u,dispatch:s}}}function oE(e){return Op(e)&&"type"in e&&typeof e.type=="string"}var Bv=Symbol.for("immer-nothing"),S0=Symbol.for("immer-draftable"),Mn=Symbol.for("immer-state");function Yn(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Il=Object.getPrototypeOf;function Hi(e){return!!e&&!!e[Mn]}function Nr(e){return e?Lv(e)||Array.isArray(e)||!!e[S0]||!!e.constructor?.[S0]||ks(e)||Ms(e):!1}var uE=Object.prototype.constructor.toString();function Lv(e){if(!e||typeof e!="object")return!1;const r=Il(e);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===uE}function ps(e,r){Rs(e)===0?Reflect.ownKeys(e).forEach(i=>{r(i,e[i],e)}):e.forEach((i,a)=>r(a,i,e))}function Rs(e){const r=e[Mn];return r?r.type_:Array.isArray(e)?1:ks(e)?2:Ms(e)?3:0}function Kd(e,r){return Rs(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Uv(e,r,i){const a=Rs(e);a===2?e.set(r,i):a===3?e.add(i):e[r]=i}function sE(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function ks(e){return e instanceof Map}function Ms(e){return e instanceof Set}function Ni(e){return e.copy_||e.base_}function Qd(e,r){if(ks(e))return new Map(e);if(Ms(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const i=Lv(e);if(r===!0||r==="class_only"&&!i){const a=Object.getOwnPropertyDescriptors(e);delete a[Mn];let u=Reflect.ownKeys(a);for(let s=0;s1&&(e.set=e.add=e.clear=e.delete=cE),Object.freeze(e),r&&Object.entries(e).forEach(([i,a])=>zp(a,!0))),e}function cE(){Yn(2)}function Os(e){return Object.isFrozen(e)}var fE={};function $i(e){const r=fE[e];return r||Yn(0,e),r}var mo;function Pv(){return mo}function dE(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function x0(e,r){r&&($i("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function Zd(e){Wd(e),e.drafts_.forEach(pE),e.drafts_=null}function Wd(e){e===mo&&(mo=e.parent_)}function C0(e){return mo=dE(mo,e)}function pE(e){const r=e[Mn];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function E0(e,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return e!==void 0&&e!==i?(i[Mn].modified_&&(Zd(r),Yn(4)),Nr(e)&&(e=hs(r,e),r.parent_||ms(r,e)),r.patches_&&$i("Patches").generateReplacementPatches_(i[Mn].base_,e,r.patches_,r.inversePatches_)):e=hs(r,i,[]),Zd(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==Bv?e:void 0}function hs(e,r,i){if(Os(r))return r;const a=r[Mn];if(!a)return ps(r,(u,s)=>T0(e,a,r,u,s,i)),r;if(a.scope_!==e)return r;if(!a.modified_)return ms(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const u=a.copy_;let s=u,c=!1;a.type_===3&&(s=new Set(u),u.clear(),c=!0),ps(s,(d,m)=>T0(e,a,u,d,m,i,c)),ms(e,u,!1),i&&e.patches_&&$i("Patches").generatePatches_(a,i,e.patches_,e.inversePatches_)}return a.copy_}function T0(e,r,i,a,u,s,c){if(Hi(u)){const d=s&&r&&r.type_!==3&&!Kd(r.assigned_,a)?s.concat(a):void 0,m=hs(e,u,d);if(Uv(i,a,m),Hi(m))e.canAutoFreeze_=!1;else return}else c&&i.add(u);if(Nr(u)&&!Os(u)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;hs(e,u),(!r||!r.scope_.parent_)&&typeof a!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,a)&&ms(e,u)}}function ms(e,r,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zp(r,i)}function hE(e,r){const i=Array.isArray(e),a={type_:i?1:0,scope_:r?r.scope_:Pv(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=a,s=_p;i&&(u=[a],s=go);const{revoke:c,proxy:d}=Proxy.revocable(u,s);return a.draft_=d,a.revoke_=c,d}var _p={get(e,r){if(r===Mn)return e;const i=Ni(e);if(!Kd(i,r))return mE(e,i,r);const a=i[r];return e.finalized_||!Nr(a)?a:a===pd(e.base_,r)?(hd(e),e.copy_[r]=ep(a,e)):a},has(e,r){return r in Ni(e)},ownKeys(e){return Reflect.ownKeys(Ni(e))},set(e,r,i){const a=jv(Ni(e),r);if(a?.set)return a.set.call(e.draft_,i),!0;if(!e.modified_){const u=pd(Ni(e),r),s=u?.[Mn];if(s&&s.base_===i)return e.copy_[r]=i,e.assigned_[r]=!1,!0;if(sE(i,u)&&(i!==void 0||Kd(e.base_,r)))return!0;hd(e),Jd(e)}return e.copy_[r]===i&&(i!==void 0||r in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=i,e.assigned_[r]=!0),!0},deleteProperty(e,r){return pd(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,hd(e),Jd(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const i=Ni(e),a=Reflect.getOwnPropertyDescriptor(i,r);return a&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:a.enumerable,value:i[r]}},defineProperty(){Yn(11)},getPrototypeOf(e){return Il(e.base_)},setPrototypeOf(){Yn(12)}},go={};ps(_p,(e,r)=>{go[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});go.deleteProperty=function(e,r){return go.set.call(this,e,r,void 0)};go.set=function(e,r,i){return _p.set.call(this,e[0],r,i,e[0])};function pd(e,r){const i=e[Mn];return(i?Ni(i):e)[r]}function mE(e,r,i){const a=jv(r,i);return a?"value"in a?a.value:a.get?.call(e.draft_):void 0}function jv(e,r){if(!(r in e))return;let i=Il(e);for(;i;){const a=Object.getOwnPropertyDescriptor(i,r);if(a)return a;i=Il(i)}}function Jd(e){e.modified_||(e.modified_=!0,e.parent_&&Jd(e.parent_))}function hd(e){e.copy_||(e.copy_=Qd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var gE=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,a)=>{if(typeof r=="function"&&typeof i!="function"){const s=i;i=r;const c=this;return function(m=s,...h){return c.produce(m,g=>i.call(this,g,...h))}}typeof i!="function"&&Yn(6),a!==void 0&&typeof a!="function"&&Yn(7);let u;if(Nr(r)){const s=C0(this),c=ep(r,void 0);let d=!0;try{u=i(c),d=!1}finally{d?Zd(s):Wd(s)}return x0(s,a),E0(u,s)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===Bv&&(u=void 0),this.autoFreeze_&&zp(u,!0),a){const s=[],c=[];$i("Patches").generateReplacementPatches_(r,u,s,c),a(s,c)}return u}else Yn(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(c,...d)=>this.produceWithPatches(c,m=>r(m,...d));let a,u;return[this.produce(r,i,(c,d)=>{a=c,u=d}),a,u]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Nr(e)||Yn(8),Hi(e)&&(e=yE(e));const r=C0(this),i=ep(e,void 0);return i[Mn].isManual_=!0,Wd(r),i}finishDraft(e,r){const i=e&&e[Mn];(!i||!i.isManual_)&&Yn(9);const{scope_:a}=i;return x0(a,r),E0(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){e=u.value;break}}i>-1&&(r=r.slice(i+1));const a=$i("Patches").applyPatches_;return Hi(e)?a(e,r):this.produce(e,u=>a(u,r))}};function ep(e,r){const i=ks(e)?$i("MapSet").proxyMap_(e,r):Ms(e)?$i("MapSet").proxySet_(e,r):hE(e,r);return(r?r.scope_:Pv()).drafts_.push(i),i}function yE(e){return Hi(e)||Yn(10,e),Hv(e)}function Hv(e){if(!Nr(e)||Os(e))return e;const r=e[Mn];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=Qd(e,r.scope_.immer_.useStrictShallowCopy_)}else i=Qd(e,!0);return ps(i,(a,u)=>{Uv(i,a,Hv(u))}),r&&(r.finalized_=!1),i}var On=new gE,$v=On.produce;On.produceWithPatches.bind(On);On.setAutoFreeze.bind(On);On.setUseStrictShallowCopy.bind(On);On.applyPatches.bind(On);On.createDraft.bind(On);On.finishDraft.bind(On);function Iv(e){return({dispatch:i,getState:a})=>u=>s=>typeof s=="function"?s(i,a,e):u(s)}var bE=Iv(),vE=Iv,SE=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ds:ds.apply(null,arguments)};function w0(e,r){function i(...a){if(r){let u=r(...a);if(!u)throw new Error(Dr(0));return{type:e,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:e,payload:a[0]}}return i.toString=()=>`${e}`,i.type=e,i.match=a=>oE(a)&&a.type===e,i}var qv=class io extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,io.prototype)}static get[Symbol.species](){return io}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new io(...r[0].concat(this)):new io(...r.concat(this))}};function A0(e){return Nr(e)?$v(e,()=>{}):e}function Vu(e,r,i){return e.has(r)?e.get(r):e.set(r,i(r)).get(r)}function xE(e){return typeof e=="boolean"}var CE=()=>function(r){const{thunk:i=!0,immutableCheck:a=!0,serializableCheck:u=!0,actionCreatorCheck:s=!0}=r??{};let c=new qv;return i&&(xE(i)?c.push(bE):c.push(vE(i.extraArgument))),c},EE="RTK_autoBatch",R0=e=>r=>{setTimeout(r,e)},TE=(e={type:"raf"})=>r=>(...i)=>{const a=r(...i);let u=!0,s=!1,c=!1;const d=new Set,m=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:R0(10):e.type==="callback"?e.queueNotification:R0(e.timeout),h=()=>{c=!1,s&&(s=!1,d.forEach(g=>g()))};return Object.assign({},a,{subscribe(g){const y=()=>u&&g(),v=a.subscribe(y);return d.add(g),()=>{v(),d.delete(g)}},dispatch(g){try{return u=!g?.meta?.[EE],s=!u,s&&(c||(c=!0,m(h))),a.dispatch(g)}finally{u=!0}}})},wE=e=>function(i){const{autoBatch:a=!0}=i??{};let u=new qv(e);return a&&u.push(TE(typeof a=="object"?a:void 0)),u};function AE(e){const r=CE(),{reducer:i=void 0,middleware:a,devTools:u=!0,preloadedState:s=void 0,enhancers:c=void 0}=e||{};let d;if(typeof i=="function")d=i;else if(Op(i))d=lE(i);else throw new Error(Dr(1));let m;typeof a=="function"?m=a(r):m=r();let h=ds;u&&(h=SE({trace:!1,...typeof u=="object"&&u}));const g=aE(...m),y=wE(g);let v=typeof c=="function"?c(y):y();const b=h(...v);return Nv(d,s,b)}function Vv(e){const r={},i=[];let a;const u={addCase(s,c){const d=typeof s=="string"?s:s.type;if(!d)throw new Error(Dr(28));if(d in r)throw new Error(Dr(29));return r[d]=c,u},addMatcher(s,c){return i.push({matcher:s,reducer:c}),u},addDefaultCase(s){return a=s,u}};return e(u),[r,i,a]}function RE(e){return typeof e=="function"}function kE(e,r){let[i,a,u]=Vv(r),s;if(RE(e))s=()=>A0(e());else{const d=A0(e);s=()=>d}function c(d=s(),m){let h=[i[m.type],...a.filter(({matcher:g})=>g(m)).map(({reducer:g})=>g)];return h.filter(g=>!!g).length===0&&(h=[u]),h.reduce((g,y)=>{if(y)if(Hi(g)){const b=y(g,m);return b===void 0?g:b}else{if(Nr(g))return $v(g,v=>y(v,m));{const v=y(g,m);if(v===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return g},d)}return c.getInitialState=s,c}var ME=Symbol.for("rtk-slice-createasyncthunk");function OE(e,r){return`${e}/${r}`}function zE({creators:e}={}){const r=e?.asyncThunk?.[ME];return function(a){const{name:u,reducerPath:s=u}=a;if(!u)throw new Error(Dr(11));const c=(typeof a.reducers=="function"?a.reducers(NE()):a.reducers)||{},d=Object.keys(c),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(R,O){const M=typeof R=="string"?R:R.type;if(!M)throw new Error(Dr(12));if(M in m.sliceCaseReducersByType)throw new Error(Dr(13));return m.sliceCaseReducersByType[M]=O,h},addMatcher(R,O){return m.sliceMatchers.push({matcher:R,reducer:O}),h},exposeAction(R,O){return m.actionCreators[R]=O,h},exposeCaseReducer(R,O){return m.sliceCaseReducersByName[R]=O,h}};d.forEach(R=>{const O=c[R],M={reducerName:R,type:OE(u,R),createNotation:typeof a.reducers=="function"};LE(O)?PE(M,O,h,r):BE(M,O,h)});function g(){const[R={},O=[],M=void 0]=typeof a.extraReducers=="function"?Vv(a.extraReducers):[a.extraReducers],z={...R,...m.sliceCaseReducersByType};return kE(a.initialState,H=>{for(let $ in z)H.addCase($,z[$]);for(let $ of m.sliceMatchers)H.addMatcher($.matcher,$.reducer);for(let $ of O)H.addMatcher($.matcher,$.reducer);M&&H.addDefaultCase(M)})}const y=R=>R,v=new Map,b=new WeakMap;let w;function T(R,O){return w||(w=g()),w(R,O)}function D(){return w||(w=g()),w.getInitialState()}function k(R,O=!1){function M(H){let $=H[R];return typeof $>"u"&&O&&($=Vu(b,M,D)),$}function z(H=y){const $=Vu(v,O,()=>new WeakMap);return Vu($,H,()=>{const F={};for(const[C,P]of Object.entries(a.selectors??{}))F[C]=_E(P,H,()=>Vu(b,H,D),O);return F})}return{reducerPath:R,getSelectors:z,get selectors(){return z(M)},selectSlice:M}}const L={name:u,reducer:T,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:D,...k(s),injectInto(R,{reducerPath:O,...M}={}){const z=O??s;return R.inject({reducerPath:z,reducer:T},M),{...L,...k(z,!0)}}};return L}}function _E(e,r,i,a){function u(s,...c){let d=r(s);return typeof d>"u"&&a&&(d=i()),e(d,...c)}return u.unwrapped=e,u}var DE=zE();function NE(){function e(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return e.withTypes=()=>e,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:e}}function BE({type:e,reducerName:r,createNotation:i},a,u){let s,c;if("reducer"in a){if(i&&!UE(a))throw new Error(Dr(17));s=a.reducer,c=a.prepare}else s=a;u.addCase(e,s).exposeCaseReducer(r,s).exposeAction(r,c?w0(e,c):w0(e))}function LE(e){return e._reducerDefinitionType==="asyncThunk"}function UE(e){return e._reducerDefinitionType==="reducerWithPrepare"}function PE({type:e,reducerName:r},i,a,u){if(!u)throw new Error(Dr(18));const{payloadCreator:s,fulfilled:c,pending:d,rejected:m,settled:h,options:g}=i,y=u(e,s,g);a.exposeAction(r,y),c&&a.addCase(y.fulfilled,c),d&&a.addCase(y.pending,d),m&&a.addCase(y.rejected,m),h&&a.addMatcher(y.settled,h),a.exposeCaseReducer(r,{fulfilled:c||Fu,pending:d||Fu,rejected:m||Fu,settled:h||Fu})}function Fu(){}function Dr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const jE={messageHistory:[],criticalError:!1,downloadStatus:"waiting"},Fv=DE({name:"llm",initialState:jE,reducers:{setMessageHistory:(e,{payload:r})=>{e.messageHistory=r},setDownloadStatus:(e,{payload:r})=>{e.downloadStatus=r},setCriticalError:(e,{payload:r})=>{e.criticalError=r}}}),{setMessageHistory:md,setDownloadStatus:Ya,setCriticalError:Ul}=Fv.actions,HE=Fv.reducer;var gd={exports:{}},Ne={};/**
- * @license React
- * react.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var k0;function $E(){if(k0)return Ne;k0=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function v(x){return x===null||typeof x!="object"?null:(x=y&&x[y]||x["@@iterator"],typeof x=="function"?x:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function D(x,Z,oe){this.props=x,this.context=Z,this.refs=T,this.updater=oe||b}D.prototype.isReactComponent={},D.prototype.setState=function(x,Z){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,Z,"setState")},D.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function k(){}k.prototype=D.prototype;function L(x,Z,oe){this.props=x,this.context=Z,this.refs=T,this.updater=oe||b}var R=L.prototype=new k;R.constructor=L,w(R,D.prototype),R.isPureReactComponent=!0;var O=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function H(x,Z,oe,A,ce,pe){return oe=pe.ref,{$$typeof:e,type:x,key:Z,ref:oe!==void 0?oe:null,props:pe}}function $(x,Z){return H(x.type,Z,void 0,void 0,void 0,x.props)}function F(x){return typeof x=="object"&&x!==null&&x.$$typeof===e}function C(x){var Z={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(oe){return Z[oe]})}var P=/\/+/g;function q(x,Z){return typeof x=="object"&&x!==null&&x.key!=null?C(""+x.key):Z.toString(36)}function Q(){}function ee(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(Q,Q):(x.status="pending",x.then(function(Z){x.status==="pending"&&(x.status="fulfilled",x.value=Z)},function(Z){x.status==="pending"&&(x.status="rejected",x.reason=Z)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function G(x,Z,oe,A,ce){var pe=typeof x;(pe==="undefined"||pe==="boolean")&&(x=null);var fe=!1;if(x===null)fe=!0;else switch(pe){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(x.$$typeof){case e:case r:fe=!0;break;case g:return fe=x._init,G(fe(x._payload),Z,oe,A,ce)}}if(fe)return ce=ce(x),fe=A===""?"."+q(x,0):A,O(ce)?(oe="",fe!=null&&(oe=fe.replace(P,"$&/")+"/"),G(ce,Z,oe,"",function(ze){return ze})):ce!=null&&(F(ce)&&(ce=$(ce,oe+(ce.key==null||x&&x.key===ce.key?"":(""+ce.key).replace(P,"$&/")+"/")+fe)),Z.push(ce)),1;fe=0;var Re=A===""?".":A+":";if(O(x))for(var Ee=0;Ee{let i=e;for(;i;)i.callback(),i=i.next})},get(){const i=[];let a=e;for(;a;)i.push(a),a=a.next;return i},subscribe(i){let a=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:e=u,function(){!a||e===null||(a=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:e=u.next)}}}}var _0={notify(){},get:()=>[]};function YE(e,r){let i,a=_0,u=0,s=!1;function c(T){g();const D=a.subscribe(T);let k=!1;return()=>{k||(k=!0,D(),y())}}function d(){a.notify()}function m(){w.onStateChange&&w.onStateChange()}function h(){return s}function g(){u++,i||(i=e.subscribe(m),a=GE())}function y(){u--,i&&u===0&&(i(),i=void 0,a.clear(),a=_0)}function v(){s||(s=!0,g())}function b(){s&&(s=!1,y())}const w={addNestedSub:c,notifyNestedSubs:d,handleChangeWrapper:m,isSubscribed:h,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>a};return w}var XE=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KE=XE(),QE=()=>typeof navigator<"u"&&navigator.product==="ReactNative",ZE=QE(),WE=()=>KE||ZE?_.useLayoutEffect:_.useEffect,JE=WE(),eT=Symbol.for("react-redux-context"),tT=typeof globalThis<"u"?globalThis:{};function nT(){if(!_.createContext)return{};const e=tT[eT]??=new Map;let r=e.get(_.createContext);return r||(r=_.createContext(null),e.set(_.createContext,r)),r}var fi=nT();function rT(e){const{children:r,context:i,serverState:a,store:u}=e,s=_.useMemo(()=>{const m=YE(u);return{store:u,subscription:m,getServerState:a?()=>a:void 0}},[u,a]),c=_.useMemo(()=>u.getState(),[u]);JE(()=>{const{subscription:m}=s;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),c!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[s,c]);const d=i||fi;return _.createElement(d.Provider,{value:s},r)}var iT=rT;function Dp(e=fi){return function(){return _.useContext(e)}}var Gv=Dp();function Yv(e=fi){const r=e===fi?Gv:Dp(e),i=()=>{const{store:a}=r();return a};return Object.assign(i,{withTypes:()=>i}),i}var lT=Yv();function aT(e=fi){const r=e===fi?lT:Yv(e),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var oT=aT(),uT=(e,r)=>e===r;function sT(e=fi){const r=e===fi?Gv:Dp(e),i=(a,u={})=>{const{equalityFn:s=uT}=typeof u=="function"?{equalityFn:u}:u,c=r(),{store:d,subscription:m,getServerState:h}=c;_.useRef(!0);const g=_.useCallback({[a.name](v){return a(v)}}[a.name],[a]),y=VE.useSyncExternalStoreWithSelector(m.addNestedSub,d.getState,h||d.getState,g,s);return _.useDebugValue(y),y};return Object.assign(i,{withTypes:()=>i}),i}var cT=sT();const Np=AE({reducer:{llm:HE}}),fT=()=>oT(),dT=cT,ir=Np.dispatch,D0=e=>e(Np.getState());async function pT(){const{CreateMLCEngine:e}=await tE(async()=>{const{CreateMLCEngine:r}=await import("./index-C3h5Fc2q.js");return{CreateMLCEngine:r}},[]);return{CreateMLCEngine:e}}let np;async function N0(e){try{ir(Ya("loading LLM library"));const{CreateMLCEngine:r}=await pT();ir(Ya("loading model "+e)),np=await r(e,{initProgressCallback:i=>{i?.text&&ir(Ya(i.text))}})}catch(r){r.message?ir(Ul(r.message)):ir(Ul(JSON.stringify(r))),ir(Ya("Error. Please check that WebGPU is enabled https://webgpureport.org")),console.error(r);return}ir(Ya("done")),localStorage.setItem("downloaded_models",JSON.stringify([e]))}async function hT(e,r=1e3){const i=D0(d=>d.llm.messageHistory),a={role:"user",content:e};let u=[...i,a];if(ir(md(u)),!np)throw new Error("Model not loaded");const s=await np.chat.completions.create({messages:u,stream:!0,max_tokens:r}),c={role:"assistant",content:""};u=[...u,c],ir(md(u));for await(const d of s){const m=d?.choices?.[0]?.delta?.content??"";if(m){const g=[...D0(v=>v.llm.messageHistory)],y=g.length-1;g[y]={...g[y],content:g[y].content+m},ir(md(g))}}}const yo={black:"#000",white:"#fff"},kl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ml={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ol={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},zl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},_l={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Xa={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},mT={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Br(e,...r){const i=new URL(`https://mui.com/production-error/?code=${e}`);return r.forEach(a=>i.searchParams.append("args[]",a)),`Minified MUI error #${e}; visit ${i} for the full message.`}const fr="$$material";function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var r=1;r0?Xt(Fl,--pn):0,ql--,Bt===10&&(ql=1,Ds--),Bt}function kn(){return Bt=pn2||vo(Bt)>3?"":" "}function MT(e,r){for(;--r&&kn()&&!(Bt<48||Bt>102||Bt>57&&Bt<65||Bt>70&&Bt<97););return Eo(e,ls()+(r<6&&dr()==32&&kn()==32))}function ip(e){for(;kn();)switch(Bt){case e:return pn;case 34:case 39:e!==34&&e!==39&&ip(Bt);break;case 40:e===41&&ip(e);break;case 92:kn();break}return pn}function OT(e,r){for(;kn()&&e+Bt!==57;)if(e+Bt===84&&dr()===47)break;return"/*"+Eo(r,pn-1)+"*"+_s(e===47?e:kn())}function zT(e){for(;!vo(dr());)kn();return Eo(e,pn)}function _T(e){return Jv(os("",null,null,null,[""],e=Wv(e),0,[0],e))}function os(e,r,i,a,u,s,c,d,m){for(var h=0,g=0,y=c,v=0,b=0,w=0,T=1,D=1,k=1,L=0,R="",O=u,M=s,z=a,H=R;D;)switch(w=L,L=kn()){case 40:if(w!=108&&Xt(H,y-1)==58){rp(H+=Xe(as(L),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:H+=as(L);break;case 9:case 10:case 13:case 32:H+=kT(w);break;case 92:H+=MT(ls()-1,7);continue;case 47:switch(dr()){case 42:case 47:Gu(DT(OT(kn(),ls()),r,i),m);break;default:H+="/"}break;case 123*T:d[h++]=lr(H)*k;case 125*T:case 59:case 0:switch(L){case 0:case 125:D=0;case 59+g:k==-1&&(H=Xe(H,/\f/g,"")),b>0&&lr(H)-y&&Gu(b>32?L0(H+";",a,i,y-1):L0(Xe(H," ","")+";",a,i,y-2),m);break;case 59:H+=";";default:if(Gu(z=B0(H,r,i,h,g,u,d,R,O=[],M=[],y),s),L===123)if(g===0)os(H,r,z,z,O,s,y,d,M);else switch(v===99&&Xt(H,3)===110?100:v){case 100:case 108:case 109:case 115:os(e,z,z,a&&Gu(B0(e,z,z,0,0,u,d,R,u,O=[],y),M),u,M,y,d,a?O:M);break;default:os(H,z,z,z,[""],M,0,d,M)}}h=g=b=0,T=k=1,R=H="",y=c;break;case 58:y=1+lr(H),b=w;default:if(T<1){if(L==123)--T;else if(L==125&&T++==0&&RT()==125)continue}switch(H+=_s(L),L*T){case 38:k=g>0?1:(H+="\f",-1);break;case 44:d[h++]=(lr(H)-1)*k,k=1;break;case 64:dr()===45&&(H+=as(kn())),v=dr(),g=y=lr(R=H+=zT(ls())),L++;break;case 45:w===45&&lr(H)==2&&(T=0)}}return s}function B0(e,r,i,a,u,s,c,d,m,h,g){for(var y=u-1,v=u===0?s:[""],b=Up(v),w=0,T=0,D=0;w0?v[k]+" "+L:Xe(L,/&\f/g,v[k])))&&(m[D++]=R);return Ns(e,r,i,u===0?Bp:d,m,h,g)}function DT(e,r,i){return Ns(e,r,i,Xv,_s(AT()),bo(e,2,-2),0)}function L0(e,r,i,a){return Ns(e,r,i,Lp,bo(e,0,a),bo(e,a+1,-1),a)}function Pl(e,r){for(var i="",a=Up(e),u=0;u6)switch(Xt(e,r+1)){case 109:if(Xt(e,r+4)!==45)break;case 102:return Xe(e,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+ys+(Xt(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~rp(e,"stretch")?t1(Xe(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(Xt(e,r+1)!==115)break;case 6444:switch(Xt(e,lr(e)-3-(~rp(e,"!important")&&10))){case 107:return Xe(e,":",":"+Ye)+e;case 101:return Xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(Xt(e,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+Jt+"$2box$3")+e}break;case 5936:switch(Xt(e,r+11)){case 114:return Ye+e+Jt+Xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ye+e+Jt+Xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ye+e+Jt+Xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ye+e+Jt+e+e}return e}var IT=function(r,i,a,u){if(r.length>-1&&!r.return)switch(r.type){case Lp:r.return=t1(r.value,r.length);break;case Kv:return Pl([Ka(r,{value:Xe(r.value,"@","@"+Ye)})],u);case Bp:if(r.length)return wT(r.props,function(s){switch(TT(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pl([Ka(r,{props:[Xe(s,/:(read-\w+)/,":"+ys+"$1")]})],u);case"::placeholder":return Pl([Ka(r,{props:[Xe(s,/:(plac\w+)/,":"+Ye+"input-$1")]}),Ka(r,{props:[Xe(s,/:(plac\w+)/,":"+ys+"$1")]}),Ka(r,{props:[Xe(s,/:(plac\w+)/,Jt+"input-$1")]})],u)}return""})}},qT=[IT],VT=function(r){var i=r.key;if(i==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(T){var D=T.getAttribute("data-emotion");D.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var u=r.stylisPlugins||qT,s={},c,d=[];c=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(T){for(var D=T.getAttribute("data-emotion").split(" "),k=1;k=4;++a,u-=4)i=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(e.charCodeAt(a+2)&255)<<16;case 2:r^=(e.charCodeAt(a+1)&255)<<8;case 1:r^=e.charCodeAt(a)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var QT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ZT=/[A-Z]|^ms/g,WT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,r1=function(r){return r.charCodeAt(1)===45},$0=function(r){return r!=null&&typeof r!="boolean"},xd=e1(function(e){return r1(e)?e:e.replace(ZT,"-$&").toLowerCase()}),I0=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(WT,function(a,u,s){return ar={name:u,styles:s,next:ar},u})}return QT[r]!==1&&!r1(r)&&typeof i=="number"&&i!==0?i+"px":i};function So(e,r,i){if(i==null)return"";var a=i;if(a.__emotion_styles!==void 0)return a;switch(typeof i){case"boolean":return"";case"object":{var u=i;if(u.anim===1)return ar={name:u.name,styles:u.styles,next:ar},u.name;var s=i;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)ar={name:c.name,styles:c.styles,next:ar},c=c.next;var d=s.styles+";";return d}return JT(e,r,i)}case"function":{if(e!==void 0){var m=ar,h=i(e);return ar=m,So(e,r,h)}break}}var g=i;if(r==null)return g;var y=r[g];return y!==void 0?y:g}function JT(e,r,i){var a="";if(Array.isArray(i))for(var u=0;u96?u2:s2},Y0=function(r,i,a){var u;if(i){var s=i.shouldForwardProp;u=r.__emotion_forwardProp&&s?function(c){return r.__emotion_forwardProp(c)&&s(c)}:s}return typeof u!="function"&&a&&(u=r.__emotion_forwardProp),u},c2=function(r){var i=r.cache,a=r.serialized,u=r.isStringTag;return Pp(i,a,u),l1(function(){return jp(i,a,u)}),null},f2=function e(r,i){var a=r.__emotion_real===r,u=a&&r.__emotion_base||r,s,c;i!==void 0&&(s=i.label,c=i.target);var d=Y0(r,i,a),m=d||G0(u),h=!m("as");return function(){var g=arguments,y=a&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&y.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)y.push.apply(y,g);else{var v=g[0];y.push(v[0]);for(var b=g.length,w=1;wr(p2(u)?i:u):r;return K.jsx(l2,{styles:a})}function u1(e,r){return ap(e,r)}function h2(e,r){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))}const X0=[];function ci(e){return X0[0]=e,To(X0)}var Cd={exports:{}},lt={};/**
- * @license React
- * react-is.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var K0;function m2(){if(K0)return lt;K0=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function w(T){if(typeof T=="object"&&T!==null){var D=T.$$typeof;switch(D){case e:switch(T=T.type,T){case i:case u:case a:case m:case h:case v:return T;default:switch(T=T&&T.$$typeof,T){case c:case d:case y:case g:return T;case s:return T;default:return D}}case r:return D}}}return lt.ContextConsumer=s,lt.ContextProvider=c,lt.Element=e,lt.ForwardRef=d,lt.Fragment=i,lt.Lazy=y,lt.Memo=g,lt.Portal=r,lt.Profiler=u,lt.StrictMode=a,lt.Suspense=m,lt.SuspenseList=h,lt.isContextConsumer=function(T){return w(T)===s},lt.isContextProvider=function(T){return w(T)===c},lt.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},lt.isForwardRef=function(T){return w(T)===d},lt.isFragment=function(T){return w(T)===i},lt.isLazy=function(T){return w(T)===y},lt.isMemo=function(T){return w(T)===g},lt.isPortal=function(T){return w(T)===r},lt.isProfiler=function(T){return w(T)===u},lt.isStrictMode=function(T){return w(T)===a},lt.isSuspense=function(T){return w(T)===m},lt.isSuspenseList=function(T){return w(T)===h},lt.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===u||T===a||T===m||T===h||typeof T=="object"&&T!==null&&(T.$$typeof===y||T.$$typeof===g||T.$$typeof===c||T.$$typeof===s||T.$$typeof===d||T.$$typeof===b||T.getModuleId!==void 0)},lt.typeOf=w,lt}var Q0;function g2(){return Q0||(Q0=1,Cd.exports=m2()),Cd.exports}var s1=g2();function or(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function c1(e){if(_.isValidElement(e)||s1.isValidElementType(e)||!or(e))return e;const r={};return Object.keys(e).forEach(i=>{r[i]=c1(e[i])}),r}function tn(e,r,i={clone:!0}){const a=i.clone?{...e}:e;return or(e)&&or(r)&&Object.keys(r).forEach(u=>{_.isValidElement(r[u])||s1.isValidElementType(r[u])?a[u]=r[u]:or(r[u])&&Object.prototype.hasOwnProperty.call(e,u)&&or(e[u])?a[u]=tn(e[u],r[u],i):i.clone?a[u]=or(r[u])?c1(r[u]):r[u]:a[u]=r[u]}),a}const y2=e=>{const r=Object.keys(e).map(i=>({key:i,val:e[i]}))||[];return r.sort((i,a)=>i.val-a.val),r.reduce((i,a)=>({...i,[a.key]:a.val}),{})};function b2(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:a=5,...u}=e,s=y2(r),c=Object.keys(s);function d(v){return`@media (min-width:${typeof r[v]=="number"?r[v]:v}${i})`}function m(v){return`@media (max-width:${(typeof r[v]=="number"?r[v]:v)-a/100}${i})`}function h(v,b){const w=c.indexOf(b);return`@media (min-width:${typeof r[v]=="number"?r[v]:v}${i}) and (max-width:${(w!==-1&&typeof r[c[w]]=="number"?r[c[w]]:b)-a/100}${i})`}function g(v){return c.indexOf(v)+1a.startsWith("@container")).sort((a,u)=>{const s=/min-width:\s*([0-9.]+)/;return+(a.match(s)?.[1]||0)-+(u.match(s)?.[1]||0)});return i.length?i.reduce((a,u)=>{const s=r[u];return delete a[u],a[u]=s,a},{...r}):r}function v2(e,r){return r==="@"||r.startsWith("@")&&(e.some(i=>r.startsWith(`@${i}`))||!!r.match(/^@\d/))}function S2(e,r){const i=r.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,a,u]=i,s=Number.isNaN(+a)?a||0:+a;return e.containerQueries(u).up(s)}function x2(e){const r=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function i(s,c){s.up=(...d)=>r(e.breakpoints.up(...d),c),s.down=(...d)=>r(e.breakpoints.down(...d),c),s.between=(...d)=>r(e.breakpoints.between(...d),c),s.only=(...d)=>r(e.breakpoints.only(...d),c),s.not=(...d)=>{const m=r(e.breakpoints.not(...d),c);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const a={},u=s=>(i(a,s),a);return i(u),{...e,containerQueries:u}}const C2={borderRadius:4};function uo(e,r){return r?tn(e,r,{clone:!1}):e}const Bs={xs:0,sm:600,md:900,lg:1200,xl:1536},W0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Bs[e]}px)`},E2={containerQueries:e=>({up:r=>{let i=typeof r=="number"?r:Bs[r]||r;return typeof i=="number"&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function Lr(e,r,i){const a=e.theme||{};if(Array.isArray(r)){const s=a.breakpoints||W0;return r.reduce((c,d,m)=>(c[s.up(s.keys[m])]=i(r[m]),c),{})}if(typeof r=="object"){const s=a.breakpoints||W0;return Object.keys(r).reduce((c,d)=>{if(v2(s.keys,d)){const m=S2(a.containerQueries?a:E2,d);m&&(c[m]=i(r[d],d))}else if(Object.keys(s.values||Bs).includes(d)){const m=s.up(d);c[m]=i(r[d],d)}else{const m=d;c[m]=r[m]}return c},{})}return i(r)}function T2(e={}){return e.keys?.reduce((i,a)=>{const u=e.up(a);return i[u]={},i},{})||{}}function J0(e,r){return e.reduce((i,a)=>{const u=i[a];return(!u||Object.keys(u).length===0)&&delete i[a],i},r)}function xe(e){if(typeof e!="string")throw new Error(Br(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ls(e,r,i=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&i){const a=`vars.${r}`.split(".").reduce((u,s)=>u&&u[s]?u[s]:null,e);if(a!=null)return a}return r.split(".").reduce((a,u)=>a&&a[u]!=null?a[u]:null,e)}function bs(e,r,i,a=i){let u;return typeof e=="function"?u=e(i):Array.isArray(e)?u=e[i]||a:u=Ls(e,i)||a,r&&(u=r(u,a,e)),u}function Ot(e){const{prop:r,cssProperty:i=e.prop,themeKey:a,transform:u}=e,s=c=>{if(c[r]==null)return null;const d=c[r],m=c.theme,h=Ls(m,a)||{};return Lr(c,d,y=>{let v=bs(h,u,y);return y===v&&typeof y=="string"&&(v=bs(h,u,`${r}${y==="default"?"":xe(y)}`,y)),i===!1?v:{[i]:v}})};return s.propTypes={},s.filterProps=[r],s}function w2(e){const r={};return i=>(r[i]===void 0&&(r[i]=e(i)),r[i])}const A2={m:"margin",p:"padding"},R2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},eb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},k2=w2(e=>{if(e.length>2)if(eb[e])e=eb[e];else return[e];const[r,i]=e.split(""),a=A2[r],u=R2[i]||"";return Array.isArray(u)?u.map(s=>a+s):[a+u]}),qp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qp,...Vp];function Ro(e,r,i,a){const u=Ls(e,r,!0)??i;return typeof u=="number"||typeof u=="string"?s=>typeof s=="string"?s:typeof u=="string"?u.startsWith("var(")&&s===0?0:u.startsWith("var(")&&s===1?u:`calc(${s} * ${u})`:u*s:Array.isArray(u)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=u[c];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof u=="function"?u:()=>{}}function Fp(e){return Ro(e,"spacing",8)}function ko(e,r){return typeof r=="string"||r==null?r:e(r)}function M2(e,r){return i=>e.reduce((a,u)=>(a[u]=ko(r,i),a),{})}function O2(e,r,i,a){if(!r.includes(i))return null;const u=k2(i),s=M2(u,a),c=e[i];return Lr(e,c,s)}function f1(e,r){const i=Fp(e.theme);return Object.keys(e).map(a=>O2(e,r,a,i)).reduce(uo,{})}function At(e){return f1(e,qp)}At.propTypes={};At.filterProps=qp;function Rt(e){return f1(e,Vp)}Rt.propTypes={};Rt.filterProps=Vp;function d1(e=8,r=Fp({spacing:e})){if(e.mui)return e;const i=(...a)=>(a.length===0?[1]:a).map(s=>{const c=r(s);return typeof c=="number"?`${c}px`:c}).join(" ");return i.mui=!0,i}function Us(...e){const r=e.reduce((a,u)=>(u.filterProps.forEach(s=>{a[s]=u}),a),{}),i=a=>Object.keys(a).reduce((u,s)=>r[s]?uo(u,r[s](a)):u,{});return i.propTypes={},i.filterProps=e.reduce((a,u)=>a.concat(u.filterProps),[]),i}function $n(e){return typeof e!="number"?e:`${e}px solid`}function qn(e,r){return Ot({prop:e,themeKey:"borders",transform:r})}const z2=qn("border",$n),_2=qn("borderTop",$n),D2=qn("borderRight",$n),N2=qn("borderBottom",$n),B2=qn("borderLeft",$n),L2=qn("borderColor"),U2=qn("borderTopColor"),P2=qn("borderRightColor"),j2=qn("borderBottomColor"),H2=qn("borderLeftColor"),$2=qn("outline",$n),I2=qn("outlineColor"),Ps=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=Ro(e.theme,"shape.borderRadius",4),i=a=>({borderRadius:ko(r,a)});return Lr(e,e.borderRadius,i)}return null};Ps.propTypes={};Ps.filterProps=["borderRadius"];Us(z2,_2,D2,N2,B2,L2,U2,P2,j2,H2,Ps,$2,I2);const js=e=>{if(e.gap!==void 0&&e.gap!==null){const r=Ro(e.theme,"spacing",8),i=a=>({gap:ko(r,a)});return Lr(e,e.gap,i)}return null};js.propTypes={};js.filterProps=["gap"];const Hs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=Ro(e.theme,"spacing",8),i=a=>({columnGap:ko(r,a)});return Lr(e,e.columnGap,i)}return null};Hs.propTypes={};Hs.filterProps=["columnGap"];const $s=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=Ro(e.theme,"spacing",8),i=a=>({rowGap:ko(r,a)});return Lr(e,e.rowGap,i)}return null};$s.propTypes={};$s.filterProps=["rowGap"];const q2=Ot({prop:"gridColumn"}),V2=Ot({prop:"gridRow"}),F2=Ot({prop:"gridAutoFlow"}),G2=Ot({prop:"gridAutoColumns"}),Y2=Ot({prop:"gridAutoRows"}),X2=Ot({prop:"gridTemplateColumns"}),K2=Ot({prop:"gridTemplateRows"}),Q2=Ot({prop:"gridTemplateAreas"}),Z2=Ot({prop:"gridArea"});Us(js,Hs,$s,q2,V2,F2,G2,Y2,X2,K2,Q2,Z2);function jl(e,r){return r==="grey"?r:e}const W2=Ot({prop:"color",themeKey:"palette",transform:jl}),J2=Ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jl}),ew=Ot({prop:"backgroundColor",themeKey:"palette",transform:jl});Us(W2,J2,ew);function An(e){return e<=1&&e!==0?`${e*100}%`:e}const tw=Ot({prop:"width",transform:An}),Gp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=i=>{const a=e.theme?.breakpoints?.values?.[i]||Bs[i];return a?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:An(i)}};return Lr(e,e.maxWidth,r)}return null};Gp.filterProps=["maxWidth"];const nw=Ot({prop:"minWidth",transform:An}),rw=Ot({prop:"height",transform:An}),iw=Ot({prop:"maxHeight",transform:An}),lw=Ot({prop:"minHeight",transform:An});Ot({prop:"size",cssProperty:"width",transform:An});Ot({prop:"size",cssProperty:"height",transform:An});const aw=Ot({prop:"boxSizing"});Us(tw,Gp,nw,rw,iw,lw,aw);const Mo={border:{themeKey:"borders",transform:$n},borderTop:{themeKey:"borders",transform:$n},borderRight:{themeKey:"borders",transform:$n},borderBottom:{themeKey:"borders",transform:$n},borderLeft:{themeKey:"borders",transform:$n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$n},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ps},color:{themeKey:"palette",transform:jl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jl},backgroundColor:{themeKey:"palette",transform:jl},p:{style:Rt},pt:{style:Rt},pr:{style:Rt},pb:{style:Rt},pl:{style:Rt},px:{style:Rt},py:{style:Rt},padding:{style:Rt},paddingTop:{style:Rt},paddingRight:{style:Rt},paddingBottom:{style:Rt},paddingLeft:{style:Rt},paddingX:{style:Rt},paddingY:{style:Rt},paddingInline:{style:Rt},paddingInlineStart:{style:Rt},paddingInlineEnd:{style:Rt},paddingBlock:{style:Rt},paddingBlockStart:{style:Rt},paddingBlockEnd:{style:Rt},m:{style:At},mt:{style:At},mr:{style:At},mb:{style:At},ml:{style:At},mx:{style:At},my:{style:At},margin:{style:At},marginTop:{style:At},marginRight:{style:At},marginBottom:{style:At},marginLeft:{style:At},marginX:{style:At},marginY:{style:At},marginInline:{style:At},marginInlineStart:{style:At},marginInlineEnd:{style:At},marginBlock:{style:At},marginBlockStart:{style:At},marginBlockEnd:{style:At},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:js},rowGap:{style:$s},columnGap:{style:Hs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:An},maxWidth:{style:Gp},minWidth:{transform:An},height:{transform:An},maxHeight:{transform:An},minHeight:{transform:An},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ow(...e){const r=e.reduce((a,u)=>a.concat(Object.keys(u)),[]),i=new Set(r);return e.every(a=>i.size===Object.keys(a).length)}function uw(e,r){return typeof e=="function"?e(r):e}function sw(){function e(i,a,u,s){const c={[i]:a,theme:u},d=s[i];if(!d)return{[i]:a};const{cssProperty:m=i,themeKey:h,transform:g,style:y}=d;if(a==null)return null;if(h==="typography"&&a==="inherit")return{[i]:a};const v=Ls(u,h)||{};return y?y(c):Lr(c,a,w=>{let T=bs(v,g,w);return w===T&&typeof w=="string"&&(T=bs(v,g,`${i}${w==="default"?"":xe(w)}`,w)),m===!1?T:{[m]:T}})}function r(i){const{sx:a,theme:u={},nested:s}=i||{};if(!a)return null;const c=u.unstable_sxConfig??Mo;function d(m){let h=m;if(typeof m=="function")h=m(u);else if(typeof m!="object")return m;if(!h)return null;const g=T2(u.breakpoints),y=Object.keys(g);let v=g;return Object.keys(h).forEach(b=>{const w=uw(h[b],u);if(w!=null)if(typeof w=="object")if(c[b])v=uo(v,e(b,w,u,c));else{const T=Lr({theme:u},w,D=>({[b]:D}));ow(T,w)?v[b]=r({sx:w,theme:u,nested:!0}):v=uo(v,T)}else v=uo(v,e(b,w,u,c))}),!s&&u.modularCssLayers?{"@layer sx":Z0(u,J0(y,v))}:Z0(u,J0(y,v))}return Array.isArray(a)?a.map(d):d(a)}return r}const di=sw();di.filterProps=["sx"];function cw(e,r){const i=this;if(i.vars){if(!i.colorSchemes?.[e]||typeof i.getColorSchemeSelector!="function")return{};let a=i.getColorSchemeSelector(e);return a==="&"?r:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:r})}return i.palette.mode===e?r:{}}function Is(e={},...r){const{breakpoints:i={},palette:a={},spacing:u,shape:s={},...c}=e,d=b2(i),m=d1(u);let h=tn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:m,shape:{...C2,...s}},c);return h=x2(h),h.applyStyles=cw,h=r.reduce((g,y)=>tn(g,y),h),h.unstable_sxConfig={...Mo,...c?.unstable_sxConfig},h.unstable_sx=function(y){return di({sx:y,theme:this})},h}function fw(e){return Object.keys(e).length===0}function Yp(e=null){const r=_.useContext(wo);return!r||fw(r)?e:r}const dw=Is();function qs(e=dw){return Yp(e)}function Ed(e){const r=ci(e);return e!==r&&r.styles?(r.styles.match(/^@layer\s+[^{]*$/)||(r.styles=`@layer global{${r.styles}}`),r):e}function p1({styles:e,themeId:r,defaultTheme:i={}}){const a=qs(i),u=r&&a[r]||a;let s=typeof e=="function"?e(u):e;return u.modularCssLayers&&(Array.isArray(s)?s=s.map(c=>Ed(typeof c=="function"?c(u):c)):s=Ed(s)),K.jsx(o1,{styles:s})}const pw=e=>{const r={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??Mo;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function h1(e){const{sx:r,...i}=e,{systemProps:a,otherProps:u}=pw(i);let s;return Array.isArray(r)?s=[a,...r]:typeof r=="function"?s=(...c)=>{const d=r(...c);return or(d)?{...a,...d}:a}:s={...a,...r},{...u,sx:s}}const tb=e=>e,hw=()=>{let e=tb;return{configure(r){e=r},generate(r){return e(r)},reset(){e=tb}}},m1=hw();function g1(e){var r,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(r=0;rd!=="theme"&&d!=="sx"&&d!=="as"})(di);return _.forwardRef(function(m,h){const g=qs(i),{className:y,component:v="div",...b}=h1(m);return K.jsx(s,{as:v,ref:h,className:_e(y,u?u(a):a),theme:r&&g[r]||g,...b})})}const gw={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 st(e,r,i="Mui"){const a=gw[r];return a?`${i}-${a}`:`${m1.generate(e)}-${r}`}function ct(e,r,i="Mui"){const a={};return r.forEach(u=>{a[u]=st(e,u,i)}),a}function y1(e){const{variants:r,...i}=e,a={variants:r,style:ci(i),isProcessed:!0};return a.style===i||r&&r.forEach(u=>{typeof u.style!="function"&&(u.style=ci(u.style))}),a}const yw=Is();function Td(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ui(e,r){return r&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${r}{${String(e.styles)}}`),e}function bw(e){return e?(r,i)=>i[e]:null}function vw(e,r,i){e.theme=xw(e.theme)?i:e.theme[r]||e.theme}function us(e,r,i){const a=typeof r=="function"?r(e):r;if(Array.isArray(a))return a.flatMap(u=>us(e,u,i));if(Array.isArray(a?.variants)){let u;if(a.isProcessed)u=i?Ui(a.style,i):a.style;else{const{variants:s,...c}=a;u=i?Ui(ci(c),i):c}return b1(e,a.variants,[u],i)}return a?.isProcessed?i?Ui(ci(a.style),i):a.style:i?Ui(ci(a),i):a}function b1(e,r,i=[],a=void 0){let u;e:for(let s=0;s{h2(d,z=>z.filter(H=>H!==di));const{name:h,slot:g,skipVariantsResolver:y,skipSx:v,overridesResolver:b=bw(Ew(g)),...w}=m,T=h&&h.startsWith("Mui")||g?"components":"custom",D=y!==void 0?y:g&&g!=="Root"&&g!=="root"||!1,k=v||!1;let L=Td;g==="Root"||g==="root"?L=a:g?L=u:Cw(d)&&(L=void 0);const R=u1(d,{shouldForwardProp:L,label:Sw(),...w}),O=z=>{if(z.__emotion_real===z)return z;if(typeof z=="function")return function($){return us($,z,$.theme.modularCssLayers?T:void 0)};if(or(z)){const H=y1(z);return function(F){return H.variants?us(F,H,F.theme.modularCssLayers?T:void 0):F.theme.modularCssLayers?Ui(H.style,T):H.style}}return z},M=(...z)=>{const H=[],$=z.map(O),F=[];if(H.push(s),h&&b&&F.push(function(Q){const G=Q.theme.components?.[h]?.styleOverrides;if(!G)return null;const B={};for(const J in G)B[J]=us(Q,G[J],Q.theme.modularCssLayers?"theme":void 0);return b(Q,B)}),h&&!D&&F.push(function(Q){const G=Q.theme?.components?.[h]?.variants;return G?b1(Q,G,[],Q.theme.modularCssLayers?"theme":void 0):null}),k||F.push(di),Array.isArray($[0])){const q=$.shift(),Q=new Array(H.length).fill(""),ee=new Array(F.length).fill("");let G;G=[...Q,...q,...ee],G.raw=[...Q,...q.raw,...ee],H.unshift(G)}const C=[...H,...$,...F],P=R(...C);return d.muiName&&(P.muiName=d.muiName),P};return R.withConfig&&(M.withConfig=R.withConfig),M}}function Sw(e,r){return void 0}function xw(e){for(const r in e)return!1;return!0}function Cw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ew(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Tw=v1();function xo(e,r,i=!1){const a={...r};for(const u in e)if(Object.prototype.hasOwnProperty.call(e,u)){const s=u;if(s==="components"||s==="slots")a[s]={...e[s],...a[s]};else if(s==="componentsProps"||s==="slotProps"){const c=e[s],d=r[s];if(!d)a[s]=c||{};else if(!c)a[s]=d;else{a[s]={...d};for(const m in c)if(Object.prototype.hasOwnProperty.call(c,m)){const h=m;a[s][h]=xo(c[h],d[h],i)}}}else s==="className"&&i&&r.className?a.className=_e(e?.className,r?.className):s==="style"&&i&&r.style?a.style={...e?.style,...r?.style}:a[s]===void 0&&(a[s]=e[s])}return a}function ww(e){const{theme:r,name:i,props:a}=e;return!r||!r.components||!r.components[i]||!r.components[i].defaultProps?a:xo(r.components[i].defaultProps,a)}function Aw({props:e,name:r,defaultTheme:i,themeId:a}){let u=qs(i);return a&&(u=u[a]||u),ww({theme:u,name:r,props:e})}const Ur=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Rw(e,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,i))}function Xp(e,r=0,i=1){return Rw(e,r,i)}function kw(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let i=e.match(r);return i&&i[0].length===1&&(i=i.map(a=>a+a)),i?`rgb${i.length===4?"a":""}(${i.map((a,u)=>u<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function pi(e){if(e.type)return e;if(e.charAt(0)==="#")return pi(kw(e));const r=e.indexOf("("),i=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(Br(9,e));let a=e.substring(r+1,e.length-1),u;if(i==="color"){if(a=a.split(" "),u=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(u))throw new Error(Br(10,u))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:i,values:a,colorSpace:u}}const Mw=e=>{const r=pi(e);return r.values.slice(0,3).map((i,a)=>r.type.includes("hsl")&&a!==0?`${i}%`:i).join(" ")},lo=(e,r)=>{try{return Mw(e)}catch{return e}};function Vs(e){const{type:r,colorSpace:i}=e;let{values:a}=e;return r.includes("rgb")?a=a.map((u,s)=>s<3?parseInt(u,10):u):r.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),r.includes("color")?a=`${i} ${a.join(" ")}`:a=`${a.join(", ")}`,`${r}(${a})`}function S1(e){e=pi(e);const{values:r}=e,i=r[0],a=r[1]/100,u=r[2]/100,s=a*Math.min(u,1-u),c=(h,g=(h+i/30)%12)=>u-s*Math.max(Math.min(g-3,9-g,1),-1);let d="rgb";const m=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",m.push(r[3])),Vs({type:d,values:m})}function op(e){e=pi(e);let r=e.type==="hsl"||e.type==="hsla"?pi(S1(e)).values:e.values;return r=r.map(i=>(e.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function Ow(e,r){const i=op(e),a=op(r);return(Math.max(i,a)+.05)/(Math.min(i,a)+.05)}function ur(e,r){return e=pi(e),r=Xp(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,Vs(e)}function Yu(e,r,i){try{return ur(e,r)}catch{return e}}function Kp(e,r){if(e=pi(e),r=Xp(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]*=1-r;return Vs(e)}function ot(e,r,i){try{return Kp(e,r)}catch{return e}}function Qp(e,r){if(e=pi(e),r=Xp(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let i=0;i<3;i+=1)e.values[i]+=(255-e.values[i])*r;else if(e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]+=(1-e.values[i])*r;return Vs(e)}function ut(e,r,i){try{return Qp(e,r)}catch{return e}}function zw(e,r=.15){return op(e)>.5?Kp(e,r):Qp(e,r)}function Xu(e,r,i){try{return zw(e,r)}catch{return e}}const x1=_.createContext(null);function Zp(){return _.useContext(x1)}const _w=typeof Symbol=="function"&&Symbol.for,Dw=_w?Symbol.for("mui.nested"):"__THEME_NESTED__";function Nw(e,r){return typeof r=="function"?r(e):{...e,...r}}function Bw(e){const{children:r,theme:i}=e,a=Zp(),u=_.useMemo(()=>{const s=a===null?{...i}:Nw(a,i);return s!=null&&(s[Dw]=a!==null),s},[i,a]);return K.jsx(x1.Provider,{value:u,children:r})}const C1=_.createContext();function Lw({value:e,...r}){return K.jsx(C1.Provider,{value:e??!0,...r})}const Uw=()=>_.useContext(C1)??!1,E1=_.createContext(void 0);function Pw({value:e,children:r}){return K.jsx(E1.Provider,{value:e,children:r})}function jw(e){const{theme:r,name:i,props:a}=e;if(!r||!r.components||!r.components[i])return a;const u=r.components[i];return u.defaultProps?xo(u.defaultProps,a,r.components.mergeClassNameAndStyle):!u.styleOverrides&&!u.variants?xo(u,a,r.components.mergeClassNameAndStyle):a}function Hw({props:e,name:r}){const i=_.useContext(E1);return jw({props:e,name:r,theme:{components:i}})}let nb=0;function $w(e){const[r,i]=_.useState(e),a=e||r;return _.useEffect(()=>{r==null&&(nb+=1,i(`mui-${nb}`))},[r]),a}const Iw={...tp},rb=Iw.useId;function Oo(e){if(rb!==void 0){const r=rb();return e??r}return $w(e)}function qw(e){const r=Yp(),i=Oo()||"",{modularCssLayers:a}=e;let u="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!a||r!==null?u="":typeof a=="string"?u=a.replace(/mui(?!\.)/g,u):u=`@layer ${u};`,Ur(()=>{const s=document.querySelector("head");if(!s)return;const c=s.firstChild;if(u){if(c&&c.hasAttribute?.("data-mui-layer-order")&&c.getAttribute("data-mui-layer-order")===i)return;const d=document.createElement("style");d.setAttribute("data-mui-layer-order",i),d.textContent=u,s.prepend(d)}else s.querySelector(`style[data-mui-layer-order="${i}"]`)?.remove()},[u,i]),u?K.jsx(p1,{styles:u}):null}const ib={};function lb(e,r,i,a=!1){return _.useMemo(()=>{const u=e&&r[e]||r;if(typeof i=="function"){const s=i(u),c=e?{...r,[e]:s}:s;return a?()=>c:c}return e?{...r,[e]:i}:{...r,...i}},[e,r,i,a])}function T1(e){const{children:r,theme:i,themeId:a}=e,u=Yp(ib),s=Zp()||ib,c=lb(a,u,i),d=lb(a,s,i,!0),m=(a?c[a]:c).direction==="rtl",h=qw(c);return K.jsx(Bw,{theme:d,children:K.jsx(wo.Provider,{value:c,children:K.jsx(Lw,{value:m,children:K.jsxs(Pw,{value:a?c[a].components:c.components,children:[h,r]})})})})}const ab={theme:void 0};function Vw(e){let r,i;return function(u){let s=r;return(s===void 0||u.theme!==i)&&(ab.theme=u.theme,s=y1(e(ab)),r=s,i=u.theme),s}}const Wp="mode",Jp="color-scheme",Fw="data-color-scheme";function Gw(e){const{defaultMode:r="system",defaultLightColorScheme:i="light",defaultDarkColorScheme:a="dark",modeStorageKey:u=Wp,colorSchemeStorageKey:s=Jp,attribute:c=Fw,colorSchemeNode:d="document.documentElement",nonce:m}=e||{};let h="",g=c;if(c==="class"&&(g=".%s"),c==="data"&&(g="[data-%s]"),g.startsWith(".")){const v=g.substring(1);h+=`${d}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
- ${d}.classList.add('${v}'.replace('%s', colorScheme));`}const y=g.match(/\[([^\]]+)\]/);if(y){const[v,b]=y[1].split("=");b||(h+=`${d}.removeAttribute('${v}'.replace('%s', light));
- ${d}.removeAttribute('${v}'.replace('%s', dark));`),h+=`
- ${d}.setAttribute('${v}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else h+=`${d}.setAttribute('${g}', colorScheme);`;return K.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() {
-try {
- let colorScheme = '';
- const mode = localStorage.getItem('${u}') || '${r}';
- const dark = localStorage.getItem('${s}-dark') || '${a}';
- const light = localStorage.getItem('${s}-light') || '${i}';
- if (mode === 'system') {
- // handle system mode
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
- if (mql.matches) {
- colorScheme = dark
- } else {
- colorScheme = light
- }
- }
- if (mode === 'light') {
- colorScheme = light;
- }
- if (mode === 'dark') {
- colorScheme = dark;
- }
- if (colorScheme) {
- ${h}
- }
-} catch(e){}})();`}},"mui-color-scheme-init")}function Yw(){}const Xw=({key:e,storageWindow:r})=>(!r&&typeof window<"u"&&(r=window),{get(i){if(typeof window>"u")return;if(!r)return i;let a;try{a=r.localStorage.getItem(e)}catch{}return a||i},set:i=>{if(r)try{r.localStorage.setItem(e,i)}catch{}},subscribe:i=>{if(!r)return Yw;const a=u=>{const s=u.newValue;u.key===e&&i(s)};return r.addEventListener("storage",a),()=>{r.removeEventListener("storage",a)}}});function wd(){}function ob(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function w1(e,r){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return r("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return r("dark")}function Kw(e){return w1(e,r=>{if(r==="light")return e.lightColorScheme;if(r==="dark")return e.darkColorScheme})}function Qw(e){const{defaultMode:r="light",defaultLightColorScheme:i,defaultDarkColorScheme:a,supportedColorSchemes:u=[],modeStorageKey:s=Wp,colorSchemeStorageKey:c=Jp,storageWindow:d=typeof window>"u"?void 0:window,storageManager:m=Xw,noSsr:h=!1}=e,g=u.join(","),y=u.length>1,v=_.useMemo(()=>m?.({key:s,storageWindow:d}),[m,s,d]),b=_.useMemo(()=>m?.({key:`${c}-light`,storageWindow:d}),[m,c,d]),w=_.useMemo(()=>m?.({key:`${c}-dark`,storageWindow:d}),[m,c,d]),[T,D]=_.useState(()=>{const $=v?.get(r)||r,F=b?.get(i)||i,C=w?.get(a)||a;return{mode:$,systemMode:ob($),lightColorScheme:F,darkColorScheme:C}}),[k,L]=_.useState(h||!y);_.useEffect(()=>{L(!0)},[]);const R=Kw(T),O=_.useCallback($=>{D(F=>{if($===F.mode)return F;const C=$??r;return v?.set(C),{...F,mode:C,systemMode:ob(C)}})},[v,r]),M=_.useCallback($=>{$?typeof $=="string"?$&&!g.includes($)?console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`):D(F=>{const C={...F};return w1(F,P=>{P==="light"&&(b?.set($),C.lightColorScheme=$),P==="dark"&&(w?.set($),C.darkColorScheme=$)}),C}):D(F=>{const C={...F},P=$.light===null?i:$.light,q=$.dark===null?a:$.dark;return P&&(g.includes(P)?(C.lightColorScheme=P,b?.set(P)):console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`)),q&&(g.includes(q)?(C.darkColorScheme=q,w?.set(q)):console.error(`\`${q}\` does not exist in \`theme.colorSchemes\`.`)),C}):D(F=>(b?.set(i),w?.set(a),{...F,lightColorScheme:i,darkColorScheme:a}))},[g,b,w,i,a]),z=_.useCallback($=>{T.mode==="system"&&D(F=>{const C=$?.matches?"dark":"light";return F.systemMode===C?F:{...F,systemMode:C}})},[T.mode]),H=_.useRef(z);return H.current=z,_.useEffect(()=>{if(typeof window.matchMedia!="function"||!y)return;const $=(...C)=>H.current(...C),F=window.matchMedia("(prefers-color-scheme: dark)");return F.addListener($),$(F),()=>{F.removeListener($)}},[y]),_.useEffect(()=>{if(y){const $=v?.subscribe(P=>{(!P||["light","dark","system"].includes(P))&&O(P||r)})||wd,F=b?.subscribe(P=>{(!P||g.match(P))&&M({light:P})})||wd,C=w?.subscribe(P=>{(!P||g.match(P))&&M({dark:P})})||wd;return()=>{$(),F(),C()}}},[M,O,g,r,d,y,v,b,w]),{...T,mode:k?T.mode:void 0,systemMode:k?T.systemMode:void 0,colorScheme:k?R:void 0,setMode:O,setColorScheme:M}}const Zw="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Ww(e){const{themeId:r,theme:i={},modeStorageKey:a=Wp,colorSchemeStorageKey:u=Jp,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:d}=e,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=_.createContext(void 0),g=()=>_.useContext(h)||m,y={},v={};function b(k){const{children:L,theme:R,modeStorageKey:O=a,colorSchemeStorageKey:M=u,disableTransitionOnChange:z=s,storageManager:H,storageWindow:$=typeof window>"u"?void 0:window,documentNode:F=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:P=!1,disableStyleSheetGeneration:q=!1,defaultMode:Q="system",forceThemeRerender:ee=!1,noSsr:G}=k,B=_.useRef(!1),J=Zp(),ue=_.useContext(h),ie=!!ue&&!P,x=_.useMemo(()=>R||(typeof i=="function"?i():i),[R]),Z=x[r],oe=Z||x,{colorSchemes:A=y,components:ce=v,cssVarPrefix:pe}=oe,fe=Object.keys(A).filter(W=>!!A[W]).join(","),Re=_.useMemo(()=>fe.split(","),[fe]),Ee=typeof c=="string"?c:c.light,ze=typeof c=="string"?c:c.dark,Se=A[Ee]&&A[ze]?Q:A[oe.defaultColorScheme]?.palette?.mode||oe.palette?.mode,{mode:Me,setMode:je,systemMode:bt,lightColorScheme:Oe,darkColorScheme:qe,colorScheme:zt,setColorScheme:Ve}=Qw({supportedColorSchemes:Re,defaultLightColorScheme:Ee,defaultDarkColorScheme:ze,modeStorageKey:O,colorSchemeStorageKey:M,defaultMode:Se,storageManager:H,storageWindow:$,noSsr:G});let pt=Me,tt=zt;ie&&(pt=ue.mode,tt=ue.colorScheme);let ht=tt||oe.defaultColorScheme;oe.vars&&!ee&&(ht=oe.defaultColorScheme);const Qe=_.useMemo(()=>{const W=oe.generateThemeVars?.()||oe.vars,re={...oe,components:ce,colorSchemes:A,cssVarPrefix:pe,vars:W};if(typeof re.generateSpacing=="function"&&(re.spacing=re.generateSpacing()),ht){const de=A[ht];de&&typeof de=="object"&&Object.keys(de).forEach(he=>{de[he]&&typeof de[he]=="object"?re[he]={...re[he],...de[he]}:re[he]=de[he]})}return d?d(re):re},[oe,ht,ce,A,pe]),ye=oe.colorSchemeSelector;Ur(()=>{if(tt&&C&&ye&&ye!=="media"){const W=ye;let re=ye;if(W==="class"&&(re=".%s"),W==="data"&&(re="[data-%s]"),W?.startsWith("data-")&&!W.includes("%s")&&(re=`[${W}="%s"]`),re.startsWith("."))C.classList.remove(...Re.map(de=>re.substring(1).replace("%s",de))),C.classList.add(re.substring(1).replace("%s",tt));else{const de=re.replace("%s",tt).match(/\[([^\]]+)\]/);if(de){const[he,De]=de[1].split("=");De||Re.forEach(Le=>{C.removeAttribute(he.replace(tt,Le))}),C.setAttribute(he,De?De.replace(/"|'/g,""):"")}else C.setAttribute(re,tt)}}},[tt,ye,C,Re]),_.useEffect(()=>{let W;if(z&&B.current&&F){const re=F.createElement("style");re.appendChild(F.createTextNode(Zw)),F.head.appendChild(re),window.getComputedStyle(F.body),W=setTimeout(()=>{F.head.removeChild(re)},1)}return()=>{clearTimeout(W)}},[tt,z,F]),_.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const rn=_.useMemo(()=>({allColorSchemes:Re,colorScheme:tt,darkColorScheme:qe,lightColorScheme:Oe,mode:pt,setColorScheme:Ve,setMode:je,systemMode:bt}),[Re,tt,qe,Oe,pt,Ve,je,bt,Qe.colorSchemeSelector]);let vt=!0;(q||oe.cssVariables===!1||ie&&J?.cssVarPrefix===pe)&&(vt=!1);const gn=K.jsxs(_.Fragment,{children:[K.jsx(T1,{themeId:Z?r:void 0,theme:Qe,children:L}),vt&&K.jsx(o1,{styles:Qe.generateStyleSheets?.()||[]})]});return ie?gn:K.jsx(h.Provider,{value:rn,children:gn})}const w=typeof c=="string"?c:c.light,T=typeof c=="string"?c:c.dark;return{CssVarsProvider:b,useColorScheme:g,getInitColorSchemeScript:k=>Gw({colorSchemeStorageKey:u,defaultLightColorScheme:w,defaultDarkColorScheme:T,modeStorageKey:a,...k})}}function Jw(e=""){function r(...a){if(!a.length)return"";const u=a[0];return typeof u=="string"&&!u.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${u}${r(...a.slice(1))})`:`, ${u}`}return(a,...u)=>`var(--${e?`${e}-`:""}${a}${r(...u)})`}const ub=(e,r,i,a=[])=>{let u=e;r.forEach((s,c)=>{c===r.length-1?Array.isArray(u)?u[Number(s)]=i:u&&typeof u=="object"&&(u[s]=i):u&&typeof u=="object"&&(u[s]||(u[s]=a.includes(s)?[]:{}),u=u[s])})},eA=(e,r,i)=>{function a(u,s=[],c=[]){Object.entries(u).forEach(([d,m])=>{(!i||i&&!i([...s,d]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?a(m,[...s,d],Array.isArray(m)?[...c,d]:c):r([...s,d],m,c))})}a(e)},tA=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function Ad(e,r){const{prefix:i,shouldSkipGeneratingVar:a}=r||{},u={},s={},c={};return eA(e,(d,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!a||!a(d,m))){const g=`--${i?`${i}-`:""}${d.join("-")}`,y=tA(d,m);Object.assign(u,{[g]:y}),ub(s,d,`var(${g})`,h),ub(c,d,`var(${g}, ${y})`,h)}},d=>d[0]==="vars"),{css:u,vars:s,varsWithDefaults:c}}function nA(e,r={}){const{getSelector:i=D,disableCssColorScheme:a,colorSchemeSelector:u}=r,{colorSchemes:s={},components:c,defaultColorScheme:d="light",...m}=e,{vars:h,css:g,varsWithDefaults:y}=Ad(m,r);let v=y;const b={},{[d]:w,...T}=s;if(Object.entries(T||{}).forEach(([R,O])=>{const{vars:M,css:z,varsWithDefaults:H}=Ad(O,r);v=tn(v,H),b[R]={css:z,vars:M}}),w){const{css:R,vars:O,varsWithDefaults:M}=Ad(w,r);v=tn(v,M),b[d]={css:R,vars:O}}function D(R,O){let M=u;if(u==="class"&&(M=".%s"),u==="data"&&(M="[data-%s]"),u?.startsWith("data-")&&!u.includes("%s")&&(M=`[${u}="%s"]`),R){if(M==="media")return e.defaultColorScheme===R?":root":{[`@media (prefers-color-scheme: ${s[R]?.palette?.mode||R})`]:{":root":O}};if(M)return e.defaultColorScheme===R?`:root, ${M.replace("%s",String(R))}`:M.replace("%s",String(R))}return":root"}return{vars:v,generateThemeVars:()=>{let R={...h};return Object.entries(b).forEach(([,{vars:O}])=>{R=tn(R,O)}),R},generateStyleSheets:()=>{const R=[],O=e.defaultColorScheme||"light";function M($,F){Object.keys(F).length&&R.push(typeof $=="string"?{[$]:{...F}}:$)}M(i(void 0,{...g}),g);const{[O]:z,...H}=b;if(z){const{css:$}=z,F=s[O]?.palette?.mode,C=!a&&F?{colorScheme:F,...$}:{...$};M(i(O,{...C}),C)}return Object.entries(H).forEach(([$,{css:F}])=>{const C=s[$]?.palette?.mode,P=!a&&C?{colorScheme:C,...F}:{...F};M(i($,{...P}),P)}),R}}}function rA(e){return function(i){return e==="media"?`@media (prefers-color-scheme: ${i})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${i}"] &`:e==="class"?`.${i} &`:e==="data"?`[data-${i}] &`:`${e.replace("%s",i)} &`:"&"}}function ft(e,r,i=void 0){const a={};for(const u in e){const s=e[u];let c="",d=!0;for(let m=0;m{const{ownerState:i}=e;return[r.root,r[`maxWidth${xe(String(i.maxWidth))}`],i.fixed&&r.fixed,i.disableGutters&&r.disableGutters]}}),aA=e=>Aw({props:e,name:"MuiContainer",defaultTheme:iA}),oA=(e,r)=>{const i=m=>st(r,m),{classes:a,fixed:u,disableGutters:s,maxWidth:c}=e,d={root:["root",c&&`maxWidth${xe(String(c))}`,u&&"fixed",s&&"disableGutters"]};return ft(d,i,a)};function uA(e={}){const{createStyledComponent:r=lA,useThemeProps:i=aA,componentName:a="MuiContainer"}=e,u=r(({theme:c,ownerState:d})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!d.disableGutters&&{paddingLeft:c.spacing(2),paddingRight:c.spacing(2),[c.breakpoints.up("sm")]:{paddingLeft:c.spacing(3),paddingRight:c.spacing(3)}}}),({theme:c,ownerState:d})=>d.fixed&&Object.keys(c.breakpoints.values).reduce((m,h)=>{const g=h,y=c.breakpoints.values[g];return y!==0&&(m[c.breakpoints.up(g)]={maxWidth:`${y}${c.breakpoints.unit}`}),m},{}),({theme:c,ownerState:d})=>({...d.maxWidth==="xs"&&{[c.breakpoints.up("xs")]:{maxWidth:Math.max(c.breakpoints.values.xs,444)}},...d.maxWidth&&d.maxWidth!=="xs"&&{[c.breakpoints.up(d.maxWidth)]:{maxWidth:`${c.breakpoints.values[d.maxWidth]}${c.breakpoints.unit}`}}}));return _.forwardRef(function(d,m){const h=i(d),{className:g,component:y="div",disableGutters:v=!1,fixed:b=!1,maxWidth:w="lg",classes:T,...D}=h,k={...h,component:y,disableGutters:v,fixed:b,maxWidth:w},L=oA(k,a);return K.jsx(u,{as:y,ownerState:k,className:_e(L.root,g),ref:m,...D})})}function Rd(e,r){return _.isValidElement(e)&&r.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function A1(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:yo.white,default:yo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const sA=A1();function R1(){return{text:{primary:yo.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:yo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const sb=R1();function cb(e,r,i,a){const u=a.light||a,s=a.dark||a*1.5;e[r]||(e.hasOwnProperty(i)?e[r]=e[i]:r==="light"?e.light=Qp(e.main,u):r==="dark"&&(e.dark=Kp(e.main,s)))}function cA(e="light"){return e==="dark"?{main:Ol[200],light:Ol[50],dark:Ol[400]}:{main:Ol[700],light:Ol[400],dark:Ol[800]}}function fA(e="light"){return e==="dark"?{main:Ml[200],light:Ml[50],dark:Ml[400]}:{main:Ml[500],light:Ml[300],dark:Ml[700]}}function dA(e="light"){return e==="dark"?{main:kl[500],light:kl[300],dark:kl[700]}:{main:kl[700],light:kl[400],dark:kl[800]}}function pA(e="light"){return e==="dark"?{main:zl[400],light:zl[300],dark:zl[700]}:{main:zl[700],light:zl[500],dark:zl[900]}}function hA(e="light"){return e==="dark"?{main:_l[400],light:_l[300],dark:_l[700]}:{main:_l[800],light:_l[500],dark:_l[900]}}function mA(e="light"){return e==="dark"?{main:Xa[400],light:Xa[300],dark:Xa[700]}:{main:"#ed6c02",light:Xa[500],dark:Xa[900]}}function eh(e){const{mode:r="light",contrastThreshold:i=3,tonalOffset:a=.2,...u}=e,s=e.primary||cA(r),c=e.secondary||fA(r),d=e.error||dA(r),m=e.info||pA(r),h=e.success||hA(r),g=e.warning||mA(r);function y(T){return Ow(T,sb.text.primary)>=i?sb.text.primary:sA.text.primary}const v=({color:T,name:D,mainShade:k=500,lightShade:L=300,darkShade:R=700})=>{if(T={...T},!T.main&&T[k]&&(T.main=T[k]),!T.hasOwnProperty("main"))throw new Error(Br(11,D?` (${D})`:"",k));if(typeof T.main!="string")throw new Error(Br(12,D?` (${D})`:"",JSON.stringify(T.main)));return cb(T,"light",L,a),cb(T,"dark",R,a),T.contrastText||(T.contrastText=y(T.main)),T};let b;return r==="light"?b=A1():r==="dark"&&(b=R1()),tn({common:{...yo},mode:r,primary:v({color:s,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:d,name:"error"}),warning:v({color:g,name:"warning"}),info:v({color:m,name:"info"}),success:v({color:h,name:"success"}),grey:mT,contrastThreshold:i,getContrastText:y,augmentColor:v,tonalOffset:a,...b},u)}function gA(e){const r={};return Object.entries(e).forEach(a=>{const[u,s]=a;typeof s=="object"&&(r[u]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),r}function yA(e,r){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...r}}function bA(e){return Math.round(e*1e5)/1e5}const fb={textTransform:"uppercase"},db='"Roboto", "Helvetica", "Arial", sans-serif';function k1(e,r){const{fontFamily:i=db,fontSize:a=14,fontWeightLight:u=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:m=16,allVariants:h,pxToRem:g,...y}=typeof r=="function"?r(e):r,v=a/14,b=g||(D=>`${D/m*v}rem`),w=(D,k,L,R,O)=>({fontFamily:i,fontWeight:D,fontSize:b(k),lineHeight:L,...i===db?{letterSpacing:`${bA(R/k)}em`}:{},...O,...h}),T={h1:w(u,96,1.167,-1.5),h2:w(u,60,1.2,-.5),h3:w(s,48,1.167,0),h4:w(s,34,1.235,.25),h5:w(s,24,1.334,0),h6:w(c,20,1.6,.15),subtitle1:w(s,16,1.75,.15),subtitle2:w(c,14,1.57,.1),body1:w(s,16,1.5,.15),body2:w(s,14,1.43,.15),button:w(c,14,1.75,.4,fb),caption:w(s,12,1.66,.4),overline:w(s,12,2.66,1,fb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tn({htmlFontSize:m,pxToRem:b,fontFamily:i,fontSize:a,fontWeightLight:u,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...T},y,{clone:!1})}const vA=.2,SA=.14,xA=.12;function xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${vA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${SA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xA})`].join(",")}const CA=["none",xt(0,2,1,-1,0,1,1,0,0,1,3,0),xt(0,3,1,-2,0,2,2,0,0,1,5,0),xt(0,3,3,-2,0,3,4,0,0,1,8,0),xt(0,2,4,-1,0,4,5,0,0,1,10,0),xt(0,3,5,-1,0,5,8,0,0,1,14,0),xt(0,3,5,-1,0,6,10,0,0,1,18,0),xt(0,4,5,-2,0,7,10,1,0,2,16,1),xt(0,5,5,-3,0,8,10,1,0,3,14,2),xt(0,5,6,-3,0,9,12,1,0,3,16,2),xt(0,6,6,-3,0,10,14,1,0,4,18,3),xt(0,6,7,-4,0,11,15,1,0,4,20,3),xt(0,7,8,-4,0,12,17,2,0,5,22,4),xt(0,7,8,-4,0,13,19,2,0,5,24,4),xt(0,7,9,-4,0,14,21,2,0,5,26,4),xt(0,8,9,-5,0,15,22,2,0,6,28,5),xt(0,8,10,-5,0,16,24,2,0,6,30,5),xt(0,8,11,-5,0,17,26,2,0,6,32,5),xt(0,9,11,-5,0,18,28,2,0,7,34,6),xt(0,9,12,-6,0,19,29,2,0,7,36,6),xt(0,10,13,-6,0,20,31,3,0,8,38,7),xt(0,10,13,-6,0,21,33,3,0,8,40,7),xt(0,10,14,-6,0,22,35,3,0,8,42,7),xt(0,11,14,-7,0,23,36,3,0,9,44,8),xt(0,11,15,-7,0,24,38,3,0,9,46,8)],EA={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)"},TA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pb(e){return`${Math.round(e)}ms`}function wA(e){if(!e)return 0;const r=e/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function AA(e){const r={...EA,...e.easing},i={...TA,...e.duration};return{getAutoHeightDuration:wA,create:(u=["all"],s={})=>{const{duration:c=i.standard,easing:d=r.easeInOut,delay:m=0,...h}=s;return(Array.isArray(u)?u:[u]).map(g=>`${g} ${typeof c=="string"?c:pb(c)} ${d} ${typeof m=="string"?m:pb(m)}`).join(",")},...e,easing:r,duration:i}}const RA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kA(e){return or(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function M1(e={}){const r={...e};function i(a){const u=Object.entries(a);for(let s=0;stn(b,w),v),v.unstable_sxConfig={...Mo,...h?.unstable_sxConfig},v.unstable_sx=function(w){return di({sx:w,theme:this})},v.toRuntimeSource=M1,v}function sp(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const MA=[...Array(25)].map((e,r)=>{if(r===0)return"none";const i=sp(r);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function O1(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function z1(e){return e==="dark"?MA:[]}function OA(e){const{palette:r={mode:"light"},opacity:i,overlays:a,...u}=e,s=eh(r);return{palette:s,opacity:{...O1(s.mode),...i},overlays:a||z1(s.mode),...u}}function zA(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const _A=e=>[...[...Array(25)].map((r,i)=>`--${e?`${e}-`:""}overlays-${i}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],DA=e=>(r,i)=>{const a=e.rootSelector||":root",u=e.colorSchemeSelector;let s=u;if(u==="class"&&(s=".%s"),u==="data"&&(s="[data-%s]"),u?.startsWith("data-")&&!u.includes("%s")&&(s=`[${u}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const c={};return _A(e.cssVarPrefix).forEach(d=>{c[d]=i[d],delete i[d]}),s==="media"?{[a]:i,"@media (prefers-color-scheme: dark)":{[a]:c}}:s?{[s.replace("%s",r)]:c,[`${a}, ${s.replace("%s",r)}`]:i}:{[a]:{...i,...c}}}if(s&&s!=="media")return`${a}, ${s.replace("%s",String(r))}`}else if(r){if(s==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[a]:i}};if(s)return s.replace("%s",String(r))}return a};function NA(e,r){r.forEach(i=>{e[i]||(e[i]={})})}function te(e,r,i){!e[r]&&i&&(e[r]=i)}function ao(e){return typeof e!="string"||!e.startsWith("hsl")?e:S1(e)}function zr(e,r){`${r}Channel`in e||(e[`${r}Channel`]=lo(ao(e[r])))}function BA(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const tr=e=>{try{return e()}catch{}},LA=(e="mui")=>Jw(e);function kd(e,r,i,a){if(!r)return;r=r===!0?{}:r;const u=a==="dark"?"dark":"light";if(!i){e[a]=OA({...r,palette:{mode:u,...r?.palette}});return}const{palette:s,...c}=up({...i,palette:{mode:u,...r?.palette}});return e[a]={...r,palette:s,opacity:{...O1(u),...r?.opacity},overlays:r?.overlays||z1(u)},c}function UA(e={},...r){const{colorSchemes:i={light:!0},defaultColorScheme:a,disableCssColorScheme:u=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=zA,colorSchemeSelector:d=i.light&&i.dark?"media":void 0,rootSelector:m=":root",...h}=e,g=Object.keys(i)[0],y=a||(i.light&&g!=="light"?"light":g),v=LA(s),{[y]:b,light:w,dark:T,...D}=i,k={...D};let L=b;if((y==="dark"&&!("dark"in i)||y==="light"&&!("light"in i))&&(L=!0),!L)throw new Error(Br(21,y));const R=kd(k,L,h,y);w&&!k.light&&kd(k,w,void 0,"light"),T&&!k.dark&&kd(k,T,void 0,"dark");let O={defaultColorScheme:y,...R,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:m,getCssVar:v,colorSchemes:k,font:{...gA(R.typography),...R.font},spacing:BA(h.spacing)};Object.keys(O.colorSchemes).forEach(F=>{const C=O.colorSchemes[F].palette,P=q=>{const Q=q.split("-"),ee=Q[1],G=Q[2];return v(q,C[ee][G])};if(C.mode==="light"&&(te(C.common,"background","#fff"),te(C.common,"onBackground","#000")),C.mode==="dark"&&(te(C.common,"background","#000"),te(C.common,"onBackground","#fff")),NA(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){te(C.Alert,"errorColor",ot(C.error.light,.6)),te(C.Alert,"infoColor",ot(C.info.light,.6)),te(C.Alert,"successColor",ot(C.success.light,.6)),te(C.Alert,"warningColor",ot(C.warning.light,.6)),te(C.Alert,"errorFilledBg",P("palette-error-main")),te(C.Alert,"infoFilledBg",P("palette-info-main")),te(C.Alert,"successFilledBg",P("palette-success-main")),te(C.Alert,"warningFilledBg",P("palette-warning-main")),te(C.Alert,"errorFilledColor",tr(()=>C.getContrastText(C.error.main))),te(C.Alert,"infoFilledColor",tr(()=>C.getContrastText(C.info.main))),te(C.Alert,"successFilledColor",tr(()=>C.getContrastText(C.success.main))),te(C.Alert,"warningFilledColor",tr(()=>C.getContrastText(C.warning.main))),te(C.Alert,"errorStandardBg",ut(C.error.light,.9)),te(C.Alert,"infoStandardBg",ut(C.info.light,.9)),te(C.Alert,"successStandardBg",ut(C.success.light,.9)),te(C.Alert,"warningStandardBg",ut(C.warning.light,.9)),te(C.Alert,"errorIconColor",P("palette-error-main")),te(C.Alert,"infoIconColor",P("palette-info-main")),te(C.Alert,"successIconColor",P("palette-success-main")),te(C.Alert,"warningIconColor",P("palette-warning-main")),te(C.AppBar,"defaultBg",P("palette-grey-100")),te(C.Avatar,"defaultBg",P("palette-grey-400")),te(C.Button,"inheritContainedBg",P("palette-grey-300")),te(C.Button,"inheritContainedHoverBg",P("palette-grey-A100")),te(C.Chip,"defaultBorder",P("palette-grey-400")),te(C.Chip,"defaultAvatarColor",P("palette-grey-700")),te(C.Chip,"defaultIconColor",P("palette-grey-700")),te(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),te(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),te(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),te(C.LinearProgress,"primaryBg",ut(C.primary.main,.62)),te(C.LinearProgress,"secondaryBg",ut(C.secondary.main,.62)),te(C.LinearProgress,"errorBg",ut(C.error.main,.62)),te(C.LinearProgress,"infoBg",ut(C.info.main,.62)),te(C.LinearProgress,"successBg",ut(C.success.main,.62)),te(C.LinearProgress,"warningBg",ut(C.warning.main,.62)),te(C.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),te(C.Slider,"primaryTrack",ut(C.primary.main,.62)),te(C.Slider,"secondaryTrack",ut(C.secondary.main,.62)),te(C.Slider,"errorTrack",ut(C.error.main,.62)),te(C.Slider,"infoTrack",ut(C.info.main,.62)),te(C.Slider,"successTrack",ut(C.success.main,.62)),te(C.Slider,"warningTrack",ut(C.warning.main,.62));const q=Xu(C.background.default,.8);te(C.SnackbarContent,"bg",q),te(C.SnackbarContent,"color",tr(()=>C.getContrastText(q))),te(C.SpeedDialAction,"fabHoverBg",Xu(C.background.paper,.15)),te(C.StepConnector,"border",P("palette-grey-400")),te(C.StepContent,"border",P("palette-grey-400")),te(C.Switch,"defaultColor",P("palette-common-white")),te(C.Switch,"defaultDisabledColor",P("palette-grey-100")),te(C.Switch,"primaryDisabledColor",ut(C.primary.main,.62)),te(C.Switch,"secondaryDisabledColor",ut(C.secondary.main,.62)),te(C.Switch,"errorDisabledColor",ut(C.error.main,.62)),te(C.Switch,"infoDisabledColor",ut(C.info.main,.62)),te(C.Switch,"successDisabledColor",ut(C.success.main,.62)),te(C.Switch,"warningDisabledColor",ut(C.warning.main,.62)),te(C.TableCell,"border",ut(Yu(C.divider,1),.88)),te(C.Tooltip,"bg",Yu(C.grey[700],.92))}if(C.mode==="dark"){te(C.Alert,"errorColor",ut(C.error.light,.6)),te(C.Alert,"infoColor",ut(C.info.light,.6)),te(C.Alert,"successColor",ut(C.success.light,.6)),te(C.Alert,"warningColor",ut(C.warning.light,.6)),te(C.Alert,"errorFilledBg",P("palette-error-dark")),te(C.Alert,"infoFilledBg",P("palette-info-dark")),te(C.Alert,"successFilledBg",P("palette-success-dark")),te(C.Alert,"warningFilledBg",P("palette-warning-dark")),te(C.Alert,"errorFilledColor",tr(()=>C.getContrastText(C.error.dark))),te(C.Alert,"infoFilledColor",tr(()=>C.getContrastText(C.info.dark))),te(C.Alert,"successFilledColor",tr(()=>C.getContrastText(C.success.dark))),te(C.Alert,"warningFilledColor",tr(()=>C.getContrastText(C.warning.dark))),te(C.Alert,"errorStandardBg",ot(C.error.light,.9)),te(C.Alert,"infoStandardBg",ot(C.info.light,.9)),te(C.Alert,"successStandardBg",ot(C.success.light,.9)),te(C.Alert,"warningStandardBg",ot(C.warning.light,.9)),te(C.Alert,"errorIconColor",P("palette-error-main")),te(C.Alert,"infoIconColor",P("palette-info-main")),te(C.Alert,"successIconColor",P("palette-success-main")),te(C.Alert,"warningIconColor",P("palette-warning-main")),te(C.AppBar,"defaultBg",P("palette-grey-900")),te(C.AppBar,"darkBg",P("palette-background-paper")),te(C.AppBar,"darkColor",P("palette-text-primary")),te(C.Avatar,"defaultBg",P("palette-grey-600")),te(C.Button,"inheritContainedBg",P("palette-grey-800")),te(C.Button,"inheritContainedHoverBg",P("palette-grey-700")),te(C.Chip,"defaultBorder",P("palette-grey-700")),te(C.Chip,"defaultAvatarColor",P("palette-grey-300")),te(C.Chip,"defaultIconColor",P("palette-grey-300")),te(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),te(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),te(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),te(C.LinearProgress,"primaryBg",ot(C.primary.main,.5)),te(C.LinearProgress,"secondaryBg",ot(C.secondary.main,.5)),te(C.LinearProgress,"errorBg",ot(C.error.main,.5)),te(C.LinearProgress,"infoBg",ot(C.info.main,.5)),te(C.LinearProgress,"successBg",ot(C.success.main,.5)),te(C.LinearProgress,"warningBg",ot(C.warning.main,.5)),te(C.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),te(C.Slider,"primaryTrack",ot(C.primary.main,.5)),te(C.Slider,"secondaryTrack",ot(C.secondary.main,.5)),te(C.Slider,"errorTrack",ot(C.error.main,.5)),te(C.Slider,"infoTrack",ot(C.info.main,.5)),te(C.Slider,"successTrack",ot(C.success.main,.5)),te(C.Slider,"warningTrack",ot(C.warning.main,.5));const q=Xu(C.background.default,.98);te(C.SnackbarContent,"bg",q),te(C.SnackbarContent,"color",tr(()=>C.getContrastText(q))),te(C.SpeedDialAction,"fabHoverBg",Xu(C.background.paper,.15)),te(C.StepConnector,"border",P("palette-grey-600")),te(C.StepContent,"border",P("palette-grey-600")),te(C.Switch,"defaultColor",P("palette-grey-300")),te(C.Switch,"defaultDisabledColor",P("palette-grey-600")),te(C.Switch,"primaryDisabledColor",ot(C.primary.main,.55)),te(C.Switch,"secondaryDisabledColor",ot(C.secondary.main,.55)),te(C.Switch,"errorDisabledColor",ot(C.error.main,.55)),te(C.Switch,"infoDisabledColor",ot(C.info.main,.55)),te(C.Switch,"successDisabledColor",ot(C.success.main,.55)),te(C.Switch,"warningDisabledColor",ot(C.warning.main,.55)),te(C.TableCell,"border",ot(Yu(C.divider,1),.68)),te(C.Tooltip,"bg",Yu(C.grey[700],.92))}zr(C.background,"default"),zr(C.background,"paper"),zr(C.common,"background"),zr(C.common,"onBackground"),zr(C,"divider"),Object.keys(C).forEach(q=>{const Q=C[q];q!=="tonalOffset"&&Q&&typeof Q=="object"&&(Q.main&&te(C[q],"mainChannel",lo(ao(Q.main))),Q.light&&te(C[q],"lightChannel",lo(ao(Q.light))),Q.dark&&te(C[q],"darkChannel",lo(ao(Q.dark))),Q.contrastText&&te(C[q],"contrastTextChannel",lo(ao(Q.contrastText))),q==="text"&&(zr(C[q],"primary"),zr(C[q],"secondary")),q==="action"&&(Q.active&&zr(C[q],"active"),Q.selected&&zr(C[q],"selected")))})}),O=r.reduce((F,C)=>tn(F,C),O);const M={prefix:s,disableCssColorScheme:u,shouldSkipGeneratingVar:c,getSelector:DA(O)},{vars:z,generateThemeVars:H,generateStyleSheets:$}=nA(O,M);return O.vars=z,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([F,C])=>{O[F]=C}),O.generateThemeVars=H,O.generateStyleSheets=$,O.generateSpacing=function(){return d1(h.spacing,Fp(this))},O.getColorSchemeSelector=rA(d),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=c,O.unstable_sxConfig={...Mo,...h?.unstable_sxConfig},O.unstable_sx=function(C){return di({sx:C,theme:this})},O.toRuntimeSource=M1,O}function hb(e,r,i){e.colorSchemes&&i&&(e.colorSchemes[r]={...i!==!0&&i,palette:eh({...i===!0?{}:i.palette,mode:r})})}function Fs(e={},...r){const{palette:i,cssVariables:a=!1,colorSchemes:u=i?void 0:{light:!0},defaultColorScheme:s=i?.mode,...c}=e,d=s||"light",m=u?.[d],h={...u,...i?{[d]:{...typeof m!="boolean"&&m,palette:i}}:void 0};if(a===!1){if(!("colorSchemes"in e))return up(e,...r);let g=i;"palette"in e||h[d]&&(h[d]!==!0?g=h[d].palette:d==="dark"&&(g={mode:"dark"}));const y=up({...e,palette:g},...r);return y.defaultColorScheme=d,y.colorSchemes=h,y.palette.mode==="light"&&(y.colorSchemes.light={...h.light!==!0&&h.light,palette:y.palette},hb(y,"dark",h.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:y.palette},hb(y,"light",h.light)),y}return!i&&!("light"in h)&&d==="light"&&(h.light=!0),UA({...c,colorSchemes:h,defaultColorScheme:d,...typeof a!="boolean"&&a},...r)}const th=Fs();function nh(){const e=qs(th);return e[fr]||e}function _1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Kn=e=>_1(e)&&e!=="classes",ve=v1({themeId:fr,defaultTheme:th,rootShouldForwardProp:Kn});function PA({theme:e,...r}){const i=fr in e?e[fr]:void 0;return K.jsx(T1,{...r,themeId:i?fr:void 0,theme:i||e})}const Ku={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:jA}=Ww({themeId:fr,theme:()=>Fs({cssVariables:!0}),colorSchemeStorageKey:Ku.colorSchemeStorageKey,modeStorageKey:Ku.modeStorageKey,defaultColorScheme:{light:Ku.defaultLightColorScheme,dark:Ku.defaultDarkColorScheme},resolveTheme:e=>{const r={...e,typography:k1(e.palette,e.typography)};return r.unstable_sx=function(a){return di({sx:a,theme:this})},r}}),HA=jA;function $A({theme:e,...r}){const i=_.useMemo(()=>{if(typeof e=="function")return e;const a=fr in e?e[fr]:e;return"colorSchemes"in a?null:"vars"in a?e:{...e,vars:null}},[e]);return i?K.jsx(PA,{theme:i,...r}):K.jsx(HA,{theme:e,...r})}function mb(...e){return e.reduce((r,i)=>i==null?r:function(...u){r.apply(this,u),i.apply(this,u)},()=>{})}function IA(e){return K.jsx(p1,{...e,defaultTheme:th,themeId:fr})}function rh(e){return function(i){return K.jsx(IA,{styles:typeof e=="function"?a=>e({theme:a,...i}):e})}}function qA(){return h1}const Ct=Vw;function dt(e){return Hw(e)}function VA(e){return st("MuiSvgIcon",e)}ct("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const FA=e=>{const{color:r,fontSize:i,classes:a}=e,u={root:["root",r!=="inherit"&&`color${xe(r)}`,`fontSize${xe(i)}`]};return ft(u,VA,a)},GA=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,i.color!=="inherit"&&r[`color${xe(i.color)}`],r[`fontSize${xe(i.fontSize)}`]]}})(Ct(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:r=>!r.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,r])=>r&&r.main).map(([r])=>({props:{color:r},style:{color:(e.vars??e).palette?.[r]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),cp=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiSvgIcon"}),{children:u,className:s,color:c="inherit",component:d="svg",fontSize:m="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:y,viewBox:v="0 0 24 24",...b}=a,w=_.isValidElement(u)&&u.type==="svg",T={...a,color:c,component:d,fontSize:m,instanceFontSize:r.fontSize,inheritViewBox:g,viewBox:v,hasSvgAsChild:w},D={};g||(D.viewBox=v);const k=FA(T);return K.jsxs(GA,{as:d,className:_e(k.root,s),focusable:"false",color:h,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:i,...D,...b,...w&&u.props,ownerState:T,children:[w?u.props.children:u,y?K.jsx("title",{children:y}):null]})});cp.muiName="SvgIcon";function D1(e,r){function i(a,u){return K.jsx(cp,{"data-testid":void 0,ref:u,...a,children:e})}return i.muiName=cp.muiName,_.memo(_.forwardRef(i))}function N1(e,r=166){let i;function a(...u){const s=()=>{e.apply(this,u)};clearTimeout(i),i=setTimeout(s,r)}return a.clear=()=>{clearTimeout(i)},a}function Xn(e){return e&&e.ownerDocument||document}function Pr(e){return Xn(e).defaultView||window}function gb(e,r){typeof e=="function"?e(r):e&&(e.current=r)}function yb(e){const{controlled:r,default:i,name:a,state:u="value"}=e,{current:s}=_.useRef(r!==void 0),[c,d]=_.useState(i),m=s?r:c,h=_.useCallback(g=>{s||d(g)},[]);return[m,h]}function ji(e){const r=_.useRef(e);return Ur(()=>{r.current=e}),_.useRef((...i)=>(0,r.current)(...i)).current}function hn(...e){const r=_.useRef(void 0),i=_.useCallback(a=>{const u=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,d=c(a);return typeof d=="function"?d:()=>{c(null)}}return s.current=a,()=>{s.current=null}});return()=>{u.forEach(s=>s?.())}},e);return _.useMemo(()=>e.every(a=>a==null)?null:a=>{r.current&&(r.current(),r.current=void 0),a!=null&&(r.current=i(a))},e)}function YA(e,r){const i=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&i>=65&&i<=90&&typeof r=="function"}function XA(e,r){if(!e)return r;function i(c,d){const m={};return Object.keys(d).forEach(h=>{YA(h,d[h])&&typeof c[h]=="function"&&(m[h]=(...g)=>{c[h](...g),d[h](...g)})}),m}if(typeof e=="function"||typeof r=="function")return c=>{const d=typeof r=="function"?r(c):r,m=typeof e=="function"?e({...c,...d}):e,h=_e(c?.className,d?.className,m?.className),g=i(m,d);return{...d,...m,...g,...!!h&&{className:h},...d?.style&&m?.style&&{style:{...d.style,...m.style}},...d?.sx&&m?.sx&&{sx:[...Array.isArray(d.sx)?d.sx:[d.sx],...Array.isArray(m.sx)?m.sx:[m.sx]]}}};const a=r,u=i(e,a),s=_e(a?.className,e?.className);return{...r,...e,...u,...!!s&&{className:s},...a?.style&&e?.style&&{style:{...a.style,...e.style}},...a?.sx&&e?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function B1(e,r){if(e==null)return{};var i={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(r.indexOf(a)!==-1)continue;i[a]=e[a]}return i}function fp(e,r){return fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},fp(e,r)}function L1(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,fp(e,r)}var Md={exports:{}},Wt={};/**
- * @license React
- * react-dom.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var bb;function KA(){if(bb)return Wt;bb=1;var e=zs();function r(m){var h="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Md.exports=KA(),Md.exports}var P1=U1();const Qu=As(P1),Sb={disabled:!1},vs=cr.createContext(null);var QA=function(r){return r.scrollTop},oo="unmounted",Bi="exited",Li="entering",Ll="entered",dp="exiting",mr=function(e){L1(r,e);function r(a,u){var s;s=e.call(this,a,u)||this;var c=u,d=c&&!c.isMounting?a.enter:a.appear,m;return s.appearStatus=null,a.in?d?(m=Bi,s.appearStatus=Li):m=Ll:a.unmountOnExit||a.mountOnEnter?m=oo:m=Bi,s.state={status:m},s.nextCallback=null,s}r.getDerivedStateFromProps=function(u,s){var c=u.in;return c&&s.status===oo?{status:Bi}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(u){var s=null;if(u!==this.props){var c=this.state.status;this.props.in?c!==Li&&c!==Ll&&(s=Li):(c===Li||c===Ll)&&(s=dp)}this.updateStatus(!1,s)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var u=this.props.timeout,s,c,d;return s=c=d=u,u!=null&&typeof u!="number"&&(s=u.exit,c=u.enter,d=u.appear!==void 0?u.appear:c),{exit:s,enter:c,appear:d}},i.updateStatus=function(u,s){if(u===void 0&&(u=!1),s!==null)if(this.cancelNextCallback(),s===Li){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Qu.findDOMNode(this);c&&QA(c)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bi&&this.setState({status:oo})},i.performEnter=function(u){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:u,m=this.props.nodeRef?[d]:[Qu.findDOMNode(this),d],h=m[0],g=m[1],y=this.getTimeouts(),v=d?y.appear:y.enter;if(!u&&!c||Sb.disabled){this.safeSetState({status:Ll},function(){s.props.onEntered(h)});return}this.props.onEnter(h,g),this.safeSetState({status:Li},function(){s.props.onEntering(h,g),s.onTransitionEnd(v,function(){s.safeSetState({status:Ll},function(){s.props.onEntered(h,g)})})})},i.performExit=function(){var u=this,s=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Qu.findDOMNode(this);if(!s||Sb.disabled){this.safeSetState({status:Bi},function(){u.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:dp},function(){u.props.onExiting(d),u.onTransitionEnd(c.exit,function(){u.safeSetState({status:Bi},function(){u.props.onExited(d)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(u,s){s=this.setNextCallback(s),this.setState(u,s)},i.setNextCallback=function(u){var s=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,s.nextCallback=null,u(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},i.onTransitionEnd=function(u,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:Qu.findDOMNode(this),d=u==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],h=m[0],g=m[1];this.props.addEndListener(h,g)}u!=null&&setTimeout(this.nextCallback,u)},i.render=function(){var u=this.state.status;if(u===oo)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=B1(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return cr.createElement(vs.Provider,{value:null},typeof c=="function"?c(u,d):cr.cloneElement(cr.Children.only(c),d))},r}(cr.Component);mr.contextType=vs;mr.propTypes={};function Dl(){}mr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dl,onEntering:Dl,onEntered:Dl,onExit:Dl,onExiting:Dl,onExited:Dl};mr.UNMOUNTED=oo;mr.EXITED=Bi;mr.ENTERING=Li;mr.ENTERED=Ll;mr.EXITING=dp;function ZA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ih(e,r){var i=function(s){return r&&_.isValidElement(s)?r(s):s},a=Object.create(null);return e&&_.Children.map(e,function(u){return u}).forEach(function(u){a[u.key]=i(u)}),a}function WA(e,r){e=e||{},r=r||{};function i(g){return g in r?r[g]:e[g]}var a=Object.create(null),u=[];for(var s in e)s in r?u.length&&(a[s]=u,u=[]):u.push(s);var c,d={};for(var m in r){if(a[m])for(c=0;c{this.currentId=null,i()},r)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function H1(){const e=j1(ah.create).current;return iR(e.disposeEffect),e}const $1=e=>e.scrollTop;function Ss(e,r){const{timeout:i,easing:a,style:u={}}=e;return{duration:u.transitionDuration??(typeof i=="number"?i:i[r.mode]||0),easing:u.transitionTimingFunction??(typeof a=="object"?a[r.mode]:a),delay:u.transitionDelay}}function lR(e){return st("MuiPaper",e)}ct("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 aR=e=>{const{square:r,elevation:i,variant:a,classes:u}=e,s={root:["root",a,!r&&"rounded",a==="elevation"&&`elevation${i}`]};return ft(s,lR,u)},oR=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,r[i.variant],!i.square&&r.rounded,i.variant==="elevation"&&r[`elevation${i.elevation}`]]}})(Ct(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),xs=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiPaper"}),u=nh(),{className:s,component:c="div",elevation:d=1,square:m=!1,variant:h="elevation",...g}=a,y={...a,component:c,elevation:d,square:m,variant:h},v=aR(y);return K.jsx(oR,{as:c,ownerState:y,className:_e(v.root,s),ref:i,...g,style:{...h==="elevation"&&{"--Paper-shadow":(u.vars||u).shadows[d],...u.vars&&{"--Paper-overlay":u.vars.overlays?.[d]},...!u.vars&&u.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ur("#fff",sp(d))}, ${ur("#fff",sp(d))})`}},...g.style}})});function uR(e){return typeof e=="string"}function I1(e,r,i){return e===void 0||uR(e)?r:{...r,ownerState:{...r.ownerState,...i}}}function q1(e,r,i){return typeof e=="function"?e(r,i):e}function V1(e,r=[]){if(e===void 0)return{};const i={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!r.includes(a)).forEach(a=>{i[a]=e[a]}),i}function Cb(e){if(e===void 0)return{};const r={};return Object.keys(e).filter(i=>!(i.match(/^on[A-Z]/)&&typeof e[i]=="function")).forEach(i=>{r[i]=e[i]}),r}function F1(e){const{getSlotProps:r,additionalProps:i,externalSlotProps:a,externalForwardedProps:u,className:s}=e;if(!r){const b=_e(i?.className,s,u?.className,a?.className),w={...i?.style,...u?.style,...a?.style},T={...i,...u,...a};return b.length>0&&(T.className=b),Object.keys(w).length>0&&(T.style=w),{props:T,internalRef:void 0}}const c=V1({...u,...a}),d=Cb(a),m=Cb(u),h=r(c),g=_e(h?.className,i?.className,s,u?.className,a?.className),y={...h?.style,...i?.style,...u?.style,...a?.style},v={...h,...i,...m,...d};return g.length>0&&(v.className=g),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:h.ref}}function en(e,r){const{className:i,elementType:a,ownerState:u,externalForwardedProps:s,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...m}=r,{component:h,slots:g={[e]:void 0},slotProps:y={[e]:void 0},...v}=s,b=g[e]||a,w=q1(y[e],u),{props:{component:T,...D},internalRef:k}=F1({className:i,...m,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:w}),L=hn(k,w?.ref,r.ref),R=e==="root"?T||h:T,O=I1(b,{...e==="root"&&!h&&!g[e]&&c,...e!=="root"&&!g[e]&&c,...D,...R&&!d&&{as:R},...R&&d&&{component:R},ref:L},u);return[b,O]}function Eb(e){try{return e.matches(":focus-visible")}catch{}return!1}class Cs{static create(){return new Cs}static use(){const r=j1(Cs.create).current,[i,a]=_.useState(!1);return r.shouldMount=i,r.setShouldMount=a,_.useEffect(r.mountEffect,[i]),r}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=cR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...r){this.mount().then(()=>this.ref.current?.start(...r))}stop(...r){this.mount().then(()=>this.ref.current?.stop(...r))}pulsate(...r){this.mount().then(()=>this.ref.current?.pulsate(...r))}}function sR(){return Cs.use()}function cR(){let e,r;const i=new Promise((a,u)=>{e=a,r=u});return i.resolve=e,i.reject=r,i}function fR(e){const{className:r,classes:i,pulsate:a=!1,rippleX:u,rippleY:s,rippleSize:c,in:d,onExited:m,timeout:h}=e,[g,y]=_.useState(!1),v=_e(r,i.ripple,i.rippleVisible,a&&i.ripplePulsate),b={width:c,height:c,top:-(c/2)+s,left:-(c/2)+u},w=_e(i.child,g&&i.childLeaving,a&&i.childPulsate);return!d&&!g&&y(!0),_.useEffect(()=>{if(!d&&m!=null){const T=setTimeout(m,h);return()=>{clearTimeout(T)}}},[m,d,h]),K.jsx("span",{className:v,style:b,children:K.jsx("span",{className:w})})}const Hn=ct("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pp=550,dR=80,pR=Ao`
- 0% {
- transform: scale(0);
- opacity: 0.1;
- }
-
- 100% {
- transform: scale(1);
- opacity: 0.3;
- }
-`,hR=Ao`
- 0% {
- opacity: 1;
- }
-
- 100% {
- opacity: 0;
- }
-`,mR=Ao`
- 0% {
- transform: scale(1);
- }
-
- 50% {
- transform: scale(0.92);
- }
-
- 100% {
- transform: scale(1);
- }
-`,gR=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yR=ve(fR,{name:"MuiTouchRipple",slot:"Ripple"})`
- opacity: 0;
- position: absolute;
-
- &.${Hn.rippleVisible} {
- opacity: 0.3;
- transform: scale(1);
- animation-name: ${pR};
- animation-duration: ${pp}ms;
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
- }
-
- &.${Hn.ripplePulsate} {
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
- }
-
- & .${Hn.child} {
- opacity: 1;
- display: block;
- width: 100%;
- height: 100%;
- border-radius: 50%;
- background-color: currentColor;
- }
-
- & .${Hn.childLeaving} {
- opacity: 0;
- animation-name: ${hR};
- animation-duration: ${pp}ms;
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
- }
-
- & .${Hn.childPulsate} {
- position: absolute;
- /* @noflip */
- left: 0px;
- top: 0;
- animation-name: ${mR};
- animation-duration: 2500ms;
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
- animation-iteration-count: infinite;
- animation-delay: 200ms;
- }
-`,bR=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiTouchRipple"}),{center:u=!1,classes:s={},className:c,...d}=a,[m,h]=_.useState([]),g=_.useRef(0),y=_.useRef(null);_.useEffect(()=>{y.current&&(y.current(),y.current=null)},[m]);const v=_.useRef(!1),b=H1(),w=_.useRef(null),T=_.useRef(null),D=_.useCallback(O=>{const{pulsate:M,rippleX:z,rippleY:H,rippleSize:$,cb:F}=O;h(C=>[...C,K.jsx(yR,{classes:{ripple:_e(s.ripple,Hn.ripple),rippleVisible:_e(s.rippleVisible,Hn.rippleVisible),ripplePulsate:_e(s.ripplePulsate,Hn.ripplePulsate),child:_e(s.child,Hn.child),childLeaving:_e(s.childLeaving,Hn.childLeaving),childPulsate:_e(s.childPulsate,Hn.childPulsate)},timeout:pp,pulsate:M,rippleX:z,rippleY:H,rippleSize:$},g.current)]),g.current+=1,y.current=F},[s]),k=_.useCallback((O={},M={},z=()=>{})=>{const{pulsate:H=!1,center:$=u||M.pulsate,fakeElement:F=!1}=M;if(O?.type==="mousedown"&&v.current){v.current=!1;return}O?.type==="touchstart"&&(v.current=!0);const C=F?null:T.current,P=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let q,Q,ee;if($||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)q=Math.round(P.width/2),Q=Math.round(P.height/2);else{const{clientX:G,clientY:B}=O.touches&&O.touches.length>0?O.touches[0]:O;q=Math.round(G-P.left),Q=Math.round(B-P.top)}if($)ee=Math.sqrt((2*P.width**2+P.height**2)/3),ee%2===0&&(ee+=1);else{const G=Math.max(Math.abs((C?C.clientWidth:0)-q),q)*2+2,B=Math.max(Math.abs((C?C.clientHeight:0)-Q),Q)*2+2;ee=Math.sqrt(G**2+B**2)}O?.touches?w.current===null&&(w.current=()=>{D({pulsate:H,rippleX:q,rippleY:Q,rippleSize:ee,cb:z})},b.start(dR,()=>{w.current&&(w.current(),w.current=null)})):D({pulsate:H,rippleX:q,rippleY:Q,rippleSize:ee,cb:z})},[u,D,b]),L=_.useCallback(()=>{k({},{pulsate:!0})},[k]),R=_.useCallback((O,M)=>{if(b.clear(),O?.type==="touchend"&&w.current){w.current(),w.current=null,b.start(0,()=>{R(O,M)});return}w.current=null,h(z=>z.length>0?z.slice(1):z),y.current=M},[b]);return _.useImperativeHandle(i,()=>({pulsate:L,start:k,stop:R}),[L,k,R]),K.jsx(gR,{className:_e(Hn.root,s.root,c),ref:T,...d,children:K.jsx(lh,{component:null,exit:!0,children:m})})});function vR(e){return st("MuiButtonBase",e)}const SR=ct("MuiButtonBase",["root","disabled","focusVisible"]),xR=e=>{const{disabled:r,focusVisible:i,focusVisibleClassName:a,classes:u}=e,c=ft({root:["root",r&&"disabled",i&&"focusVisible"]},vR,u);return i&&a&&(c.root+=` ${a}`),c},CR=ve("button",{name:"MuiButtonBase",slot:"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"},[`&.${SR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),G1=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiButtonBase"}),{action:u,centerRipple:s=!1,children:c,className:d,component:m="button",disabled:h=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:v=!1,focusVisibleClassName:b,LinkComponent:w="a",onBlur:T,onClick:D,onContextMenu:k,onDragLeave:L,onFocus:R,onFocusVisible:O,onKeyDown:M,onKeyUp:z,onMouseDown:H,onMouseLeave:$,onMouseUp:F,onTouchEnd:C,onTouchMove:P,onTouchStart:q,tabIndex:Q=0,TouchRippleProps:ee,touchRippleRef:G,type:B,...J}=a,ue=_.useRef(null),ie=sR(),x=hn(ie.ref,G),[Z,oe]=_.useState(!1);h&&Z&&oe(!1),_.useImperativeHandle(u,()=>({focusVisible:()=>{oe(!0),ue.current.focus()}}),[]);const A=ie.shouldMount&&!g&&!h;_.useEffect(()=>{Z&&v&&!g&&ie.pulsate()},[g,v,Z,ie]);const ce=_r(ie,"start",H,y),pe=_r(ie,"stop",k,y),fe=_r(ie,"stop",L,y),Re=_r(ie,"stop",F,y),Ee=_r(ie,"stop",ye=>{Z&&ye.preventDefault(),$&&$(ye)},y),ze=_r(ie,"start",q,y),Se=_r(ie,"stop",C,y),Me=_r(ie,"stop",P,y),je=_r(ie,"stop",ye=>{Eb(ye.target)||oe(!1),T&&T(ye)},!1),bt=ji(ye=>{ue.current||(ue.current=ye.currentTarget),Eb(ye.target)&&(oe(!0),O&&O(ye)),R&&R(ye)}),Oe=()=>{const ye=ue.current;return m&&m!=="button"&&!(ye.tagName==="A"&&ye.href)},qe=ji(ye=>{v&&!ye.repeat&&Z&&ye.key===" "&&ie.stop(ye,()=>{ie.start(ye)}),ye.target===ye.currentTarget&&Oe()&&ye.key===" "&&ye.preventDefault(),M&&M(ye),ye.target===ye.currentTarget&&Oe()&&ye.key==="Enter"&&!h&&(ye.preventDefault(),D&&D(ye))}),zt=ji(ye=>{v&&ye.key===" "&&Z&&!ye.defaultPrevented&&ie.stop(ye,()=>{ie.pulsate(ye)}),z&&z(ye),D&&ye.target===ye.currentTarget&&Oe()&&ye.key===" "&&!ye.defaultPrevented&&D(ye)});let Ve=m;Ve==="button"&&(J.href||J.to)&&(Ve=w);const pt={};Ve==="button"?(pt.type=B===void 0?"button":B,pt.disabled=h):(!J.href&&!J.to&&(pt.role="button"),h&&(pt["aria-disabled"]=h));const tt=hn(i,ue),ht={...a,centerRipple:s,component:m,disabled:h,disableRipple:g,disableTouchRipple:y,focusRipple:v,tabIndex:Q,focusVisible:Z},Qe=xR(ht);return K.jsxs(CR,{as:Ve,className:_e(Qe.root,d),ownerState:ht,onBlur:je,onClick:D,onContextMenu:pe,onFocus:bt,onKeyDown:qe,onKeyUp:zt,onMouseDown:ce,onMouseLeave:Ee,onMouseUp:Re,onDragLeave:fe,onTouchEnd:Se,onTouchMove:Me,onTouchStart:ze,ref:tt,tabIndex:h?-1:Q,type:B,...pt,...J,children:[c,A?K.jsx(bR,{ref:x,center:s,...ee}):null]})});function _r(e,r,i,a=!1){return ji(u=>(i&&i(u),a||e[r](u),!0))}function ER(e){return typeof e.main=="string"}function TR(e,r=[]){if(!ER(e))return!1;for(const i of r)if(!e.hasOwnProperty(i)||typeof e[i]!="string")return!1;return!0}function pr(e=[]){return([,r])=>r&&TR(r,e)}function wR(e){return st("MuiCircularProgress",e)}ct("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ui=44,hp=Ao`
- 0% {
- transform: rotate(0deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
-`,mp=Ao`
- 0% {
- stroke-dasharray: 1px, 200px;
- stroke-dashoffset: 0;
- }
-
- 50% {
- stroke-dasharray: 100px, 200px;
- stroke-dashoffset: -15px;
- }
-
- 100% {
- stroke-dasharray: 1px, 200px;
- stroke-dashoffset: -126px;
- }
-`,AR=typeof hp!="string"?Ip`
- animation: ${hp} 1.4s linear infinite;
- `:null,RR=typeof mp!="string"?Ip`
- animation: ${mp} 1.4s ease-in-out infinite;
- `:null,kR=e=>{const{classes:r,variant:i,color:a,disableShrink:u}=e,s={root:["root",i,`color${xe(a)}`],svg:["svg"],circle:["circle",`circle${xe(i)}`,u&&"circleDisableShrink"]};return ft(s,wR,r)},MR=ve("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,r[i.variant],r[`color${xe(i.color)}`]]}})(Ct(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:AR||{animation:`${hp} 1.4s linear infinite`}},...Object.entries(e.palette).filter(pr()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}}))]}))),OR=ve("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),zR=ve("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.circle,r[`circle${xe(i.variant)}`],i.disableShrink&&r.circleDisableShrink]}})(Ct(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:RR||{animation:`${mp} 1.4s ease-in-out infinite`}}]}))),Y1=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiCircularProgress"}),{className:u,color:s="primary",disableShrink:c=!1,size:d=40,style:m,thickness:h=3.6,value:g=0,variant:y="indeterminate",...v}=a,b={...a,color:s,disableShrink:c,size:d,thickness:h,value:g,variant:y},w=kR(b),T={},D={},k={};if(y==="determinate"){const L=2*Math.PI*((ui-h)/2);T.strokeDasharray=L.toFixed(3),k["aria-valuenow"]=Math.round(g),T.strokeDashoffset=`${((100-g)/100*L).toFixed(3)}px`,D.transform="rotate(-90deg)"}return K.jsx(MR,{className:_e(w.root,u),style:{width:d,height:d,...D,...m},ownerState:b,ref:i,role:"progressbar",...k,...v,children:K.jsx(OR,{className:w.svg,ownerState:b,viewBox:`${ui/2} ${ui/2} ${ui} ${ui}`,children:K.jsx(zR,{className:w.circle,style:T,ownerState:b,cx:ui,cy:ui,r:(ui-h)/2,fill:"none",strokeWidth:h})})})});function _R(e){return st("MuiIconButton",e)}const Tb=ct("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),DR=e=>{const{classes:r,disabled:i,color:a,edge:u,size:s,loading:c}=e,d={root:["root",c&&"loading",i&&"disabled",a!=="default"&&`color${xe(a)}`,u&&`edge${xe(u)}`,`size${xe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ft(d,_R,r)},NR=ve(G1,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,i.loading&&r.loading,i.color!=="default"&&r[`color${xe(i.color)}`],i.edge&&r[`edge${xe(i.edge)}`],r[`size${xe(i.size)}`]]}})(Ct(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:r=>!r.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ur(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ct(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(pr()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(e.palette).filter(pr()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ur((e.vars||e).palette[r].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Tb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Tb.loading}`]:{color:"transparent"}}))),BR=ve("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),LR=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiIconButton"}),{edge:u=!1,children:s,className:c,color:d="default",disabled:m=!1,disableFocusRipple:h=!1,size:g="medium",id:y,loading:v=null,loadingIndicator:b,...w}=a,T=Oo(y),D=b??K.jsx(Y1,{"aria-labelledby":T,color:"inherit",size:16}),k={...a,edge:u,color:d,disabled:m,disableFocusRipple:h,loading:v,loadingIndicator:D,size:g},L=DR(k);return K.jsxs(NR,{id:v?T:y,className:_e(L.root,c),centerRipple:!0,focusRipple:!h,disabled:m||v,ref:i,...w,ownerState:k,children:[typeof v=="boolean"&&K.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:K.jsx(BR,{className:L.loadingIndicator,ownerState:k,children:v&&D})}),s]})});function UR(e){return st("MuiTypography",e)}ct("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const PR={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},jR=qA(),HR=e=>{const{align:r,gutterBottom:i,noWrap:a,paragraph:u,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${xe(r)}`,i&&"gutterBottom",a&&"noWrap",u&&"paragraph"]};return ft(d,UR,c)},$R=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,i.variant&&r[i.variant],i.align!=="inherit"&&r[`align${xe(i.align)}`],i.noWrap&&r.noWrap,i.gutterBottom&&r.gutterBottom,i.paragraph&&r.paragraph]}})(Ct(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,i])=>r!=="inherit"&&i&&typeof i=="object").map(([r,i])=>({props:{variant:r},style:i})),...Object.entries(e.palette).filter(pr()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(e.palette?.text||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${xe(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}))),wb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Zu=_.forwardRef(function(r,i){const{color:a,...u}=dt({props:r,name:"MuiTypography"}),s=!PR[a],c=jR({...u,...s&&{color:a}}),{align:d="inherit",className:m,component:h,gutterBottom:g=!1,noWrap:y=!1,paragraph:v=!1,variant:b="body1",variantMapping:w=wb,...T}=c,D={...c,align:d,color:a,className:m,component:h,gutterBottom:g,noWrap:y,paragraph:v,variant:b,variantMapping:w},k=h||(v?"p":w[b]||wb[b])||"span",L=HR(D);return K.jsx($R,{as:k,ref:i,className:_e(L.root,m),...T,ownerState:D,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...T.style}})});function IR(e){return st("MuiAppBar",e)}ct("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const qR=e=>{const{color:r,position:i,classes:a}=e,u={root:["root",`color${xe(r)}`,`position${xe(i)}`]};return ft(u,IR,a)},Ab=(e,r)=>e?`${e?.replace(")","")}, ${r})`:r,VR=ve(xs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,r[`position${xe(i.position)}`],r[`color${xe(i.color)}`]]}})(Ct(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(pr(["contrastText"])).map(([r])=>({props:{color:r},style:{"--AppBar-background":(e.vars??e).palette[r].main,"--AppBar-color":(e.vars??e).palette[r].contrastText}})),{props:r=>r.enableColorOnDark===!0&&!["inherit","transparent"].includes(r.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:r=>r.enableColorOnDark===!1&&!["inherit","transparent"].includes(r.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?Ab(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?Ab(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),FR=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiAppBar"}),{className:u,color:s="primary",enableColorOnDark:c=!1,position:d="fixed",...m}=a,h={...a,color:s,position:d,enableColorOnDark:c},g=qR(h);return K.jsx(VR,{square:!0,component:"header",ownerState:h,elevation:4,className:_e(g.root,u,d==="fixed"&&"mui-fixed"),ref:i,...m})});function GR(e){const{elementType:r,externalSlotProps:i,ownerState:a,skipResolvingSlotProps:u=!1,...s}=e,c=u?{}:q1(i,a),{props:d,internalRef:m}=F1({...s,externalSlotProps:c}),h=hn(m,c?.ref,e.additionalProps?.ref);return I1(r,{...d,ref:h},a)}function zo(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}function YR(e){return typeof e=="function"?e():e}const XR=_.forwardRef(function(r,i){const{children:a,container:u,disablePortal:s=!1}=r,[c,d]=_.useState(null),m=hn(_.isValidElement(a)?zo(a):null,i);if(Ur(()=>{s||d(YR(u)||document.body)},[u,s]),Ur(()=>{if(c&&!s)return gb(i,c),()=>{gb(i,null)}},[i,c,s]),s){if(_.isValidElement(a)){const h={ref:m};return _.cloneElement(a,h)}return a}return c&&P1.createPortal(a,c)});function Wu(e){return parseInt(e,10)||0}const KR={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function QR(e){for(const r in e)return!1;return!0}function Rb(e){return QR(e)||e.outerHeightStyle===0&&!e.overflowing}const ZR=_.forwardRef(function(r,i){const{onChange:a,maxRows:u,minRows:s=1,style:c,value:d,...m}=r,{current:h}=_.useRef(d!=null),g=_.useRef(null),y=hn(i,g),v=_.useRef(null),b=_.useRef(null),w=_.useCallback(()=>{const R=g.current,O=b.current;if(!R||!O)return;const z=Pr(R).getComputedStyle(R);if(z.width==="0px")return{outerHeightStyle:0,overflowing:!1};O.style.width=z.width,O.value=R.value||r.placeholder||"x",O.value.slice(-1)===`
-`&&(O.value+=" ");const H=z.boxSizing,$=Wu(z.paddingBottom)+Wu(z.paddingTop),F=Wu(z.borderBottomWidth)+Wu(z.borderTopWidth),C=O.scrollHeight;O.value="x";const P=O.scrollHeight;let q=C;s&&(q=Math.max(Number(s)*P,q)),u&&(q=Math.min(Number(u)*P,q)),q=Math.max(q,P);const Q=q+(H==="border-box"?$+F:0),ee=Math.abs(q-C)<=1;return{outerHeightStyle:Q,overflowing:ee}},[u,s,r.placeholder]),T=ji(()=>{const R=g.current,O=w();if(!R||!O||Rb(O))return!1;const M=O.outerHeightStyle;return v.current!=null&&v.current!==M}),D=_.useCallback(()=>{const R=g.current,O=w();if(!R||!O||Rb(O))return;const M=O.outerHeightStyle;v.current!==M&&(v.current=M,R.style.height=`${M}px`),R.style.overflow=O.overflowing?"hidden":""},[w]),k=_.useRef(-1);Ur(()=>{const R=N1(D),O=g?.current;if(!O)return;const M=Pr(O);M.addEventListener("resize",R);let z;return typeof ResizeObserver<"u"&&(z=new ResizeObserver(()=>{T()&&(z.unobserve(O),cancelAnimationFrame(k.current),D(),k.current=requestAnimationFrame(()=>{z.observe(O)}))}),z.observe(O)),()=>{R.clear(),cancelAnimationFrame(k.current),M.removeEventListener("resize",R),z&&z.disconnect()}},[w,D,T]),Ur(()=>{D()});const L=R=>{h||D();const O=R.target,M=O.value.length,z=O.value.endsWith(`
-`),H=O.selectionStart===M;z&&H&&O.setSelectionRange(M,M),a&&a(R)};return K.jsxs(_.Fragment,{children:[K.jsx("textarea",{value:d,onChange:L,ref:y,rows:s,style:c,...m}),K.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:b,tabIndex:-1,style:{...KR.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function gp(e){return typeof e=="string"}function Gl({props:e,states:r,muiFormControl:i}){return r.reduce((a,u)=>(a[u]=e[u],i&&typeof e[u]>"u"&&(a[u]=i[u]),a),{})}const oh=_.createContext(void 0);function Yl(){return _.useContext(oh)}function kb(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Es(e,r=!1){return e&&(kb(e.value)&&e.value!==""||r&&kb(e.defaultValue)&&e.defaultValue!=="")}function WR(e){return e.startAdornment}function JR(e){return st("MuiInputBase",e)}const Vl=ct("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Mb;const Gs=(e,r)=>{const{ownerState:i}=e;return[r.root,i.formControl&&r.formControl,i.startAdornment&&r.adornedStart,i.endAdornment&&r.adornedEnd,i.error&&r.error,i.size==="small"&&r.sizeSmall,i.multiline&&r.multiline,i.color&&r[`color${xe(i.color)}`],i.fullWidth&&r.fullWidth,i.hiddenLabel&&r.hiddenLabel]},Ys=(e,r)=>{const{ownerState:i}=e;return[r.input,i.size==="small"&&r.inputSizeSmall,i.multiline&&r.inputMultiline,i.type==="search"&&r.inputTypeSearch,i.startAdornment&&r.inputAdornedStart,i.endAdornment&&r.inputAdornedEnd,i.hiddenLabel&&r.inputHiddenLabel]},ek=e=>{const{classes:r,color:i,disabled:a,error:u,endAdornment:s,focused:c,formControl:d,fullWidth:m,hiddenLabel:h,multiline:g,readOnly:y,size:v,startAdornment:b,type:w}=e,T={root:["root",`color${xe(i)}`,a&&"disabled",u&&"error",m&&"fullWidth",c&&"focused",d&&"formControl",v&&v!=="medium"&&`size${xe(v)}`,g&&"multiline",b&&"adornedStart",s&&"adornedEnd",h&&"hiddenLabel",y&&"readOnly"],input:["input",a&&"disabled",w==="search"&&"inputTypeSearch",g&&"inputMultiline",v==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",y&&"readOnly"]};return ft(T,JR,r)},Xs=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gs})(Ct(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vl.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:i})=>r.multiline&&i==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),Ks=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ys})(Ct(({theme:e})=>{const r=e.palette.mode==="light",i={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},a={opacity:"0 !important"},u=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vl.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus::-ms-input-placeholder":u},[`&.${Vl.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Ob=rh({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),uh=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:s,autoFocus:c,className:d,color:m,components:h={},componentsProps:g={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:b,endAdornment:w,error:T,fullWidth:D=!1,id:k,inputComponent:L="input",inputProps:R={},inputRef:O,margin:M,maxRows:z,minRows:H,multiline:$=!1,name:F,onBlur:C,onChange:P,onClick:q,onFocus:Q,onKeyDown:ee,onKeyUp:G,placeholder:B,readOnly:J,renderSuffix:ue,rows:ie,size:x,slotProps:Z={},slots:oe={},startAdornment:A,type:ce="text",value:pe,...fe}=a,Re=R.value!=null?R.value:pe,{current:Ee}=_.useRef(Re!=null),ze=_.useRef(),Se=_.useCallback(Le=>{},[]),Me=hn(ze,O,R.ref,Se),[je,bt]=_.useState(!1),Oe=Yl(),qe=Gl({props:a,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});qe.focused=Oe?Oe.focused:je,_.useEffect(()=>{!Oe&&v&&je&&(bt(!1),C&&C())},[Oe,v,je,C]);const zt=Oe&&Oe.onFilled,Ve=Oe&&Oe.onEmpty,pt=_.useCallback(Le=>{Es(Le)?zt&&zt():Ve&&Ve()},[zt,Ve]);Ur(()=>{Ee&&pt({value:Re})},[Re,pt,Ee]);const tt=Le=>{Q&&Q(Le),R.onFocus&&R.onFocus(Le),Oe&&Oe.onFocus?Oe.onFocus(Le):bt(!0)},ht=Le=>{C&&C(Le),R.onBlur&&R.onBlur(Le),Oe&&Oe.onBlur?Oe.onBlur(Le):bt(!1)},Qe=(Le,...Kt)=>{if(!Ee){const Lt=Le.target||ze.current;if(Lt==null)throw new Error(Br(1));pt({value:Lt.value})}R.onChange&&R.onChange(Le,...Kt),P&&P(Le,...Kt)};_.useEffect(()=>{pt(ze.current)},[]);const ye=Le=>{ze.current&&Le.currentTarget===Le.target&&ze.current.focus(),q&&q(Le)};let rn=L,vt=R;$&&rn==="input"&&(ie?vt={type:void 0,minRows:ie,maxRows:ie,...vt}:vt={type:void 0,maxRows:z,minRows:H,...vt},rn=ZR);const gn=Le=>{pt(Le.animationName==="mui-auto-fill-cancel"?ze.current:{value:"x"})};_.useEffect(()=>{Oe&&Oe.setAdornedStart(!!A)},[Oe,A]);const W={...a,color:qe.color||"primary",disabled:qe.disabled,endAdornment:w,error:qe.error,focused:qe.focused,formControl:Oe,fullWidth:D,hiddenLabel:qe.hiddenLabel,multiline:$,size:qe.size,startAdornment:A,type:ce},re=ek(W),de=oe.root||h.Root||Xs,he=Z.root||g.root||{},De=oe.input||h.Input||Ks;return vt={...vt,...Z.input??g.input},K.jsxs(_.Fragment,{children:[!b&&typeof Ob=="function"&&(Mb||(Mb=K.jsx(Ob,{}))),K.jsxs(de,{...he,ref:i,onClick:ye,...fe,...!gp(de)&&{ownerState:{...W,...he.ownerState}},className:_e(re.root,he.className,d,J&&"MuiInputBase-readOnly"),children:[A,K.jsx(oh.Provider,{value:null,children:K.jsx(De,{"aria-invalid":qe.error,"aria-describedby":u,autoComplete:s,autoFocus:c,defaultValue:y,disabled:qe.disabled,id:k,onAnimationStart:gn,name:F,placeholder:B,readOnly:J,required:qe.required,rows:ie,value:Re,onKeyDown:ee,onKeyUp:G,type:ce,...vt,...!gp(De)&&{as:rn,ownerState:{...W,...vt.ownerState}},ref:Me,className:_e(re.input,vt.className,J&&"MuiInputBase-readOnly"),onBlur:ht,onChange:Qe,onFocus:tt})}),w,ue?ue({...qe,startAdornment:A}):null]})]})});function tk(e){return st("MuiInput",e)}const Qa={...Vl,...ct("MuiInput",["root","underline","input"])};function nk(e){return st("MuiOutlinedInput",e)}const nr={...Vl,...ct("MuiOutlinedInput",["root","notchedOutline","input"])};function rk(e){return st("MuiFilledInput",e)}const _i={...Vl,...ct("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ik=D1(K.jsx("path",{d:"M7 10l5 5 5-5z"})),lk={entering:{opacity:1},entered:{opacity:1}},ak=_.forwardRef(function(r,i){const a=nh(),u={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:d,easing:m,in:h,onEnter:g,onEntered:y,onEntering:v,onExit:b,onExited:w,onExiting:T,style:D,timeout:k=u,TransitionComponent:L=mr,...R}=r,O=_.useRef(null),M=hn(O,zo(d),i),z=ee=>G=>{if(ee){const B=O.current;G===void 0?ee(B):ee(B,G)}},H=z(v),$=z((ee,G)=>{$1(ee);const B=Ss({style:D,timeout:k,easing:m},{mode:"enter"});ee.style.webkitTransition=a.transitions.create("opacity",B),ee.style.transition=a.transitions.create("opacity",B),g&&g(ee,G)}),F=z(y),C=z(T),P=z(ee=>{const G=Ss({style:D,timeout:k,easing:m},{mode:"exit"});ee.style.webkitTransition=a.transitions.create("opacity",G),ee.style.transition=a.transitions.create("opacity",G),b&&b(ee)}),q=z(w),Q=ee=>{s&&s(O.current,ee)};return K.jsx(L,{appear:c,in:h,nodeRef:O,onEnter:$,onEntered:F,onEntering:H,onExit:P,onExited:q,onExiting:C,addEndListener:Q,timeout:k,...R,children:(ee,{ownerState:G,...B})=>_.cloneElement(d,{style:{opacity:0,visibility:ee==="exited"&&!h?"hidden":void 0,...lk[ee],...D,...d.props.style},ref:M,...B})})});function ok(e){return st("MuiBackdrop",e)}ct("MuiBackdrop",["root","invisible"]);const uk=e=>{const{classes:r,invisible:i}=e;return ft({root:["root",i&&"invisible"]},ok,r)},sk=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,i.invisible&&r.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ck=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiBackdrop"}),{children:u,className:s,component:c="div",invisible:d=!1,open:m,components:h={},componentsProps:g={},slotProps:y={},slots:v={},TransitionComponent:b,transitionDuration:w,...T}=a,D={...a,component:c,invisible:d},k=uk(D),L={transition:b,root:h.Root,...v},R={...g,...y},O={component:c,slots:L,slotProps:R},[M,z]=en("root",{elementType:sk,externalForwardedProps:O,className:_e(k.root,s),ownerState:D}),[H,$]=en("transition",{elementType:ak,externalForwardedProps:O,ownerState:D});return K.jsx(H,{in:m,timeout:w,...T,...$,children:K.jsx(M,{"aria-hidden":!0,...z,classes:k,ref:i,children:u})})}),fk=ct("MuiBox",["root"]),dk=Fs(),Ju=mw({themeId:fr,defaultTheme:dk,defaultClassName:fk.root,generateClassName:m1.generate});function pk(e){return st("MuiButton",e)}const Di=ct("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),hk=_.createContext({}),mk=_.createContext(void 0),gk=e=>{const{color:r,disableElevation:i,fullWidth:a,size:u,variant:s,loading:c,loadingPosition:d,classes:m}=e,h={root:["root",c&&"loading",s,`${s}${xe(r)}`,`size${xe(u)}`,`${s}Size${xe(u)}`,`color${xe(r)}`,i&&"disableElevation",a&&"fullWidth",c&&`loadingPosition${xe(d)}`],startIcon:["icon","startIcon",`iconSize${xe(u)}`],endIcon:["icon","endIcon",`iconSize${xe(u)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},g=ft(h,pk,m);return{...m,...g}},X1=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],yk=ve(G1,{shouldForwardProp:e=>Kn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,r[i.variant],r[`${i.variant}${xe(i.color)}`],r[`size${xe(i.size)}`],r[`${i.variant}Size${xe(i.size)}`],i.color==="inherit"&&r.colorInherit,i.disableElevation&&r.disableElevation,i.fullWidth&&r.fullWidth,i.loading&&r.loading]}})(Ct(({theme:e})=>{const r=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Di.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Di.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Di.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Di.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(pr()).map(([a])=>({props:{color:a},style:{"--variant-textColor":(e.vars||e).palette[a].main,"--variant-outlinedColor":(e.vars||e).palette[a].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[a].mainChannel} / 0.5)`:ur(e.palette[a].main,.5),"--variant-containedColor":(e.vars||e).palette[a].contrastText,"--variant-containedBg":(e.vars||e).palette[a].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[a].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ur(e.palette[a].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[a].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ur(e.palette[a].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:r,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ur(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ur(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Di.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Di.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Di.loading}`]:{color:"transparent"}}}]}})),bk=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.startIcon,i.loading&&r.startIconLoadingStart,r[`iconSize${xe(i.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...X1]})),vk=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.endIcon,i.loading&&r.endIconLoadingEnd,r[`iconSize${xe(i.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...X1]})),Sk=ve("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),zb=ve("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),xk=_.forwardRef(function(r,i){const a=_.useContext(hk),u=_.useContext(mk),s=xo(a,r),c=dt({props:s,name:"MuiButton"}),{children:d,color:m="primary",component:h="button",className:g,disabled:y=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:T,fullWidth:D=!1,id:k,loading:L=null,loadingIndicator:R,loadingPosition:O="center",size:M="medium",startIcon:z,type:H,variant:$="text",...F}=c,C=Oo(k),P=R??K.jsx(Y1,{"aria-labelledby":C,color:"inherit",size:16}),q={...c,color:m,component:h,disabled:y,disableElevation:v,disableFocusRipple:b,fullWidth:D,loading:L,loadingIndicator:P,loadingPosition:O,size:M,type:H,variant:$},Q=gk(q),ee=(z||L&&O==="start")&&K.jsx(bk,{className:Q.startIcon,ownerState:q,children:z||K.jsx(zb,{className:Q.loadingIconPlaceholder,ownerState:q})}),G=(w||L&&O==="end")&&K.jsx(vk,{className:Q.endIcon,ownerState:q,children:w||K.jsx(zb,{className:Q.loadingIconPlaceholder,ownerState:q})}),B=u||"",J=typeof L=="boolean"?K.jsx("span",{className:Q.loadingWrapper,style:{display:"contents"},children:L&&K.jsx(Sk,{className:Q.loadingIndicator,ownerState:q,children:P})}):null;return K.jsxs(yk,{ownerState:q,className:_e(a.className,Q.root,g,B),component:h,disabled:y||L,focusRipple:!b,focusVisibleClassName:_e(Q.focusVisible,T),ref:i,type:H,id:L?C:k,...F,classes:Q,children:[ee,O!=="end"&&J,d,O==="end"&&J,G]})}),Ck=uA({createStyledComponent:ve("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,r[`maxWidth${xe(String(i.maxWidth))}`],i.fixed&&r.fixed,i.disableGutters&&r.disableGutters]}}),useThemeProps:e=>dt({props:e,name:"MuiContainer"})}),yp=typeof rh({})=="function",Ek=(e,r)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...r&&!e.vars&&{colorScheme:e.palette.mode}}),Tk=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),K1=(e,r=!1)=>{const i={};r&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,c])=>{const d=e.getColorSchemeSelector(s);d.startsWith("@")?i[d]={":root":{colorScheme:c.palette?.mode}}:i[d.replace(/\s*&/,"")]={colorScheme:c.palette?.mode}});let a={html:Ek(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Tk(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const u=e.components?.MuiCssBaseline?.styleOverrides;return u&&(a=[a,u]),a},ss="mui-ecs",wk=e=>{const r=K1(e,!1),i=Array.isArray(r)?r[0]:r;return!e.vars&&i&&(i.html[`:root:has(${ss})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,u])=>{const s=e.getColorSchemeSelector(a);s.startsWith("@")?i[s]={[`:root:not(:has(.${ss}))`]:{colorScheme:u.palette?.mode}}:i[s.replace(/\s*&/,"")]={[`&:not(:has(.${ss}))`]:{colorScheme:u.palette?.mode}}}),r},Ak=rh(yp?({theme:e,enableColorScheme:r})=>K1(e,r):({theme:e})=>wk(e));function Rk(e){const r=dt({props:e,name:"MuiCssBaseline"}),{children:i,enableColorScheme:a=!1}=r;return K.jsxs(_.Fragment,{children:[yp&&K.jsx(Ak,{enableColorScheme:a}),!yp&&!a&&K.jsx("span",{className:ss,style:{display:"none"}}),i]})}function Q1(e=window){const r=e.document.documentElement.clientWidth;return e.innerWidth-r}function kk(e){const r=Xn(e);return r.body===e?Pr(e).innerWidth>r.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function so(e,r){r?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _b(e){return parseInt(Pr(e).getComputedStyle(e).paddingRight,10)||0}function Mk(e){const i=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),a=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return i||a}function Db(e,r,i,a,u){const s=[r,i,...a];[].forEach.call(e.children,c=>{const d=!s.includes(c),m=!Mk(c);d&&m&&so(c,u)})}function Od(e,r){let i=-1;return e.some((a,u)=>r(a)?(i=u,!0):!1),i}function Ok(e,r){const i=[],a=e.container;if(!r.disableScrollLock){if(kk(a)){const c=Q1(Pr(a));i.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${_b(a)+c}px`;const d=Xn(a).querySelectorAll(".mui-fixed");[].forEach.call(d,m=>{i.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${_b(m)+c}px`})}let s;if(a.parentNode instanceof DocumentFragment)s=Xn(a).body;else{const c=a.parentElement,d=Pr(a);s=c?.nodeName==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:a}i.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{i.forEach(({value:s,el:c,property:d})=>{s?c.style.setProperty(d,s):c.style.removeProperty(d)})}}function zk(e){const r=[];return[].forEach.call(e.children,i=>{i.getAttribute("aria-hidden")==="true"&&r.push(i)}),r}class _k{constructor(){this.modals=[],this.containers=[]}add(r,i){let a=this.modals.indexOf(r);if(a!==-1)return a;a=this.modals.length,this.modals.push(r),r.modalRef&&so(r.modalRef,!1);const u=zk(i);Db(i,r.mount,r.modalRef,u,!0);const s=Od(this.containers,c=>c.container===i);return s!==-1?(this.containers[s].modals.push(r),a):(this.containers.push({modals:[r],container:i,restore:null,hiddenSiblings:u}),a)}mount(r,i){const a=Od(this.containers,s=>s.modals.includes(r)),u=this.containers[a];u.restore||(u.restore=Ok(u,i))}remove(r,i=!0){const a=this.modals.indexOf(r);if(a===-1)return a;const u=Od(this.containers,c=>c.modals.includes(r)),s=this.containers[u];if(s.modals.splice(s.modals.indexOf(r),1),this.modals.splice(a,1),s.modals.length===0)s.restore&&s.restore(),r.modalRef&&so(r.modalRef,i),Db(s.container,r.mount,r.modalRef,s.hiddenSiblings,!1),this.containers.splice(u,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&so(c.modalRef,!1)}return a}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const Dk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Nk(e){const r=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(r)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:r}function Bk(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const r=a=>e.ownerDocument.querySelector(`input[type="radio"]${a}`);let i=r(`[name="${e.name}"]:checked`);return i||(i=r(`[name="${e.name}"]`)),i!==e}function Lk(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Bk(e))}function Uk(e){const r=[],i=[];return Array.from(e.querySelectorAll(Dk)).forEach((a,u)=>{const s=Nk(a);s===-1||!Lk(a)||(s===0?r.push(a):i.push({documentOrder:u,tabIndex:s,node:a}))}),i.sort((a,u)=>a.tabIndex===u.tabIndex?a.documentOrder-u.documentOrder:a.tabIndex-u.tabIndex).map(a=>a.node).concat(r)}function Pk(){return!0}function jk(e){const{children:r,disableAutoFocus:i=!1,disableEnforceFocus:a=!1,disableRestoreFocus:u=!1,getTabbable:s=Uk,isEnabled:c=Pk,open:d}=e,m=_.useRef(!1),h=_.useRef(null),g=_.useRef(null),y=_.useRef(null),v=_.useRef(null),b=_.useRef(!1),w=_.useRef(null),T=hn(zo(r),w),D=_.useRef(null);_.useEffect(()=>{!d||!w.current||(b.current=!i)},[i,d]),_.useEffect(()=>{if(!d||!w.current)return;const R=Xn(w.current);return w.current.contains(R.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),b.current&&w.current.focus()),()=>{u||(y.current&&y.current.focus&&(m.current=!0,y.current.focus()),y.current=null)}},[d]),_.useEffect(()=>{if(!d||!w.current)return;const R=Xn(w.current),O=H=>{D.current=H,!(a||!c()||H.key!=="Tab")&&R.activeElement===w.current&&H.shiftKey&&(m.current=!0,g.current&&g.current.focus())},M=()=>{const H=w.current;if(H===null)return;if(!R.hasFocus()||!c()||m.current){m.current=!1;return}if(H.contains(R.activeElement)||a&&R.activeElement!==h.current&&R.activeElement!==g.current)return;if(R.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!b.current)return;let $=[];if((R.activeElement===h.current||R.activeElement===g.current)&&($=s(w.current)),$.length>0){const F=!!(D.current?.shiftKey&&D.current?.key==="Tab"),C=$[0],P=$[$.length-1];typeof C!="string"&&typeof P!="string"&&(F?P.focus():C.focus())}else H.focus()};R.addEventListener("focusin",M),R.addEventListener("keydown",O,!0);const z=setInterval(()=>{R.activeElement&&R.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(z),R.removeEventListener("focusin",M),R.removeEventListener("keydown",O,!0)}},[i,a,u,c,d,s]);const k=R=>{y.current===null&&(y.current=R.relatedTarget),b.current=!0,v.current=R.target;const O=r.props.onFocus;O&&O(R)},L=R=>{y.current===null&&(y.current=R.relatedTarget),b.current=!0};return K.jsxs(_.Fragment,{children:[K.jsx("div",{tabIndex:d?0:-1,onFocus:L,ref:h,"data-testid":"sentinelStart"}),_.cloneElement(r,{ref:T,onFocus:k}),K.jsx("div",{tabIndex:d?0:-1,onFocus:L,ref:g,"data-testid":"sentinelEnd"})]})}function Hk(e){return typeof e=="function"?e():e}function $k(e){return e?e.props.hasOwnProperty("in"):!1}const Nb=()=>{},es=new _k;function Ik(e){const{container:r,disableEscapeKeyDown:i=!1,disableScrollLock:a=!1,closeAfterTransition:u=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:m,open:h,rootRef:g}=e,y=_.useRef({}),v=_.useRef(null),b=_.useRef(null),w=hn(b,g),[T,D]=_.useState(!h),k=$k(d);let L=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(L=!1);const R=()=>Xn(v.current),O=()=>(y.current.modalRef=b.current,y.current.mount=v.current,y.current),M=()=>{es.mount(O(),{disableScrollLock:a}),b.current&&(b.current.scrollTop=0)},z=ji(()=>{const G=Hk(r)||R().body;es.add(O(),G),b.current&&M()}),H=()=>es.isTopModal(O()),$=ji(G=>{v.current=G,G&&(h&&H()?M():b.current&&so(b.current,L))}),F=_.useCallback(()=>{es.remove(O(),L)},[L]);_.useEffect(()=>()=>{F()},[F]),_.useEffect(()=>{h?z():(!k||!u)&&F()},[h,F,k,u,z]);const C=G=>B=>{G.onKeyDown?.(B),!(B.key!=="Escape"||B.which===229||!H())&&(i||(B.stopPropagation(),m&&m(B,"escapeKeyDown")))},P=G=>B=>{G.onClick?.(B),B.target===B.currentTarget&&m&&m(B,"backdropClick")};return{getRootProps:(G={})=>{const B=V1(e);delete B.onTransitionEnter,delete B.onTransitionExited;const J={...B,...G};return{role:"presentation",...J,onKeyDown:C(J),ref:w}},getBackdropProps:(G={})=>{const B=G;return{"aria-hidden":!0,...B,onClick:P(B),open:h}},getTransitionProps:()=>{const G=()=>{D(!1),s&&s()},B=()=>{D(!0),c&&c(),u&&F()};return{onEnter:mb(G,d?.props.onEnter??Nb),onExited:mb(B,d?.props.onExited??Nb)}},rootRef:w,portalRef:$,isTopModal:H,exited:T,hasTransition:k}}function qk(e){return st("MuiModal",e)}ct("MuiModal",["root","hidden","backdrop"]);const Vk=e=>{const{open:r,exited:i,classes:a}=e;return ft({root:["root",!r&&i&&"hidden"],backdrop:["backdrop"]},qk,a)},Fk=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,!i.open&&i.exited&&r.hidden]}})(Ct(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),Gk=ve(ck,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Yk=_.forwardRef(function(r,i){const a=dt({name:"MuiModal",props:r}),{BackdropComponent:u=Gk,BackdropProps:s,classes:c,className:d,closeAfterTransition:m=!1,children:h,container:g,component:y,components:v={},componentsProps:b={},disableAutoFocus:w=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:D=!1,disablePortal:k=!1,disableRestoreFocus:L=!1,disableScrollLock:R=!1,hideBackdrop:O=!1,keepMounted:M=!1,onClose:z,onTransitionEnter:H,onTransitionExited:$,open:F,slotProps:C={},slots:P={},theme:q,...Q}=a,ee={...a,closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:T,disableEscapeKeyDown:D,disablePortal:k,disableRestoreFocus:L,disableScrollLock:R,hideBackdrop:O,keepMounted:M},{getRootProps:G,getBackdropProps:B,getTransitionProps:J,portalRef:ue,isTopModal:ie,exited:x,hasTransition:Z}=Ik({...ee,rootRef:i}),oe={...ee,exited:x},A=Vk(oe),ce={};if(h.props.tabIndex===void 0&&(ce.tabIndex="-1"),Z){const{onEnter:Se,onExited:Me}=J();ce.onEnter=Se,ce.onExited=Me}const pe={slots:{root:v.Root,backdrop:v.Backdrop,...P},slotProps:{...b,...C}},[fe,Re]=en("root",{ref:i,elementType:Fk,externalForwardedProps:{...pe,...Q,component:y},getSlotProps:G,ownerState:oe,className:_e(d,A?.root,!oe.open&&oe.exited&&A?.hidden)}),[Ee,ze]=en("backdrop",{ref:s?.ref,elementType:u,externalForwardedProps:pe,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Se=>B({...Se,onClick:Me=>{Se?.onClick&&Se.onClick(Me)}}),className:_e(s?.className,A?.backdrop),ownerState:oe});return!M&&!F&&(!Z||x)?null:K.jsx(XR,{ref:ue,container:g,disablePortal:k,children:K.jsxs(fe,{...Re,children:[!O&&u?K.jsx(Ee,{...ze}):null,K.jsx(jk,{disableEnforceFocus:T,disableAutoFocus:w,disableRestoreFocus:L,isEnabled:ie,open:F,children:_.cloneElement(h,ce)})]})})}),Xk=e=>{const{classes:r,disableUnderline:i,startAdornment:a,endAdornment:u,size:s,hiddenLabel:c,multiline:d}=e,m={root:["root",!i&&"underline",a&&"adornedStart",u&&"adornedEnd",s==="small"&&`size${xe(s)}`,c&&"hiddenLabel",d&&"multiline"],input:["input"]},h=ft(m,rk,r);return{...r,...h}},Kk=ve(Xs,{shouldForwardProp:e=>Kn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[...Gs(e,r),!i.disableUnderline&&r.underline]}})(Ct(({theme:e})=>{const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",u=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{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:u,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${_i.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${_i.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:c})=>!c.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_i.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_i.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})`:i}`,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(.${_i.disabled}, .${_i.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_i.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(pr()).map(([c])=>({props:{disableUnderline:!1,color:c},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[c]?.main}`}}})),{props:({ownerState:c})=>c.startAdornment,style:{paddingLeft:12}},{props:({ownerState:c})=>c.endAdornment,style:{paddingRight:12}},{props:({ownerState:c})=>c.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:c,size:d})=>c.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel&&c.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Qk=ve(Ks,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ys})(Ct(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:r})=>r.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}},{props:({ownerState:r})=>r.hiddenLabel&&r.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:r})=>r.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),sh=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiFilledInput"}),{disableUnderline:u=!1,components:s={},componentsProps:c,fullWidth:d=!1,hiddenLabel:m,inputComponent:h="input",multiline:g=!1,slotProps:y,slots:v={},type:b="text",...w}=a,T={...a,disableUnderline:u,fullWidth:d,inputComponent:h,multiline:g,type:b},D=Xk(a),k={root:{ownerState:T},input:{ownerState:T}},L=y??c?tn(k,y??c):k,R=v.root??s.Root??Kk,O=v.input??s.Input??Qk;return K.jsx(uh,{slots:{root:R,input:O},slotProps:L,fullWidth:d,inputComponent:h,multiline:g,ref:i,type:b,...w,classes:D})});sh.muiName="Input";function Zk(e){return st("MuiFormControl",e)}ct("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Wk=e=>{const{classes:r,margin:i,fullWidth:a}=e,u={root:["root",i!=="none"&&`margin${xe(i)}`,a&&"fullWidth"]};return ft(u,Zk,r)},Jk=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,r[`margin${xe(i.margin)}`],i.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),eM=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiFormControl"}),{children:u,className:s,color:c="primary",component:d="div",disabled:m=!1,error:h=!1,focused:g,fullWidth:y=!1,hiddenLabel:v=!1,margin:b="none",required:w=!1,size:T="medium",variant:D="outlined",...k}=a,L={...a,color:c,component:d,disabled:m,error:h,fullWidth:y,hiddenLabel:v,margin:b,required:w,size:T,variant:D},R=Wk(L),[O,M]=_.useState(()=>{let G=!1;return u&&_.Children.forEach(u,B=>{if(!Rd(B,["Input","Select"]))return;const J=Rd(B,["Select"])?B.props.input:B;J&&WR(J.props)&&(G=!0)}),G}),[z,H]=_.useState(()=>{let G=!1;return u&&_.Children.forEach(u,B=>{Rd(B,["Input","Select"])&&(Es(B.props,!0)||Es(B.props.inputProps,!0))&&(G=!0)}),G}),[$,F]=_.useState(!1);m&&$&&F(!1);const C=g!==void 0&&!m?g:$;let P;_.useRef(!1);const q=_.useCallback(()=>{H(!0)},[]),Q=_.useCallback(()=>{H(!1)},[]),ee=_.useMemo(()=>({adornedStart:O,setAdornedStart:M,color:c,disabled:m,error:h,filled:z,focused:C,fullWidth:y,hiddenLabel:v,size:T,onBlur:()=>{F(!1)},onFocus:()=>{F(!0)},onEmpty:Q,onFilled:q,registerEffect:P,required:w,variant:D}),[O,c,m,h,z,C,y,v,P,Q,q,w,T,D]);return K.jsx(oh.Provider,{value:ee,children:K.jsx(Jk,{as:d,ownerState:L,className:_e(R.root,s),ref:i,...k,children:u})})});function tM(e){return st("MuiFormHelperText",e)}const Bb=ct("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Lb;const nM=e=>{const{classes:r,contained:i,size:a,disabled:u,error:s,filled:c,focused:d,required:m}=e,h={root:["root",u&&"disabled",s&&"error",a&&`size${xe(a)}`,i&&"contained",d&&"focused",c&&"filled",m&&"required"]};return ft(h,tM,r)},rM=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,i.size&&r[`size${xe(i.size)}`],i.contained&&r.contained,i.filled&&r.filled]}})(Ct(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Bb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Bb.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),iM=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiFormHelperText"}),{children:u,className:s,component:c="p",disabled:d,error:m,filled:h,focused:g,margin:y,required:v,variant:b,...w}=a,T=Yl(),D=Gl({props:a,muiFormControl:T,states:["variant","size","disabled","error","filled","focused","required"]}),k={...a,component:c,contained:D.variant==="filled"||D.variant==="outlined",variant:D.variant,size:D.size,disabled:D.disabled,error:D.error,filled:D.filled,focused:D.focused,required:D.required};delete k.ownerState;const L=nM(k);return K.jsx(rM,{as:c,className:_e(L.root,s),ref:i,...w,ownerState:k,children:u===" "?Lb||(Lb=K.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):u})});function lM(e){return st("MuiFormLabel",e)}const co=ct("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),aM=e=>{const{classes:r,color:i,focused:a,disabled:u,error:s,filled:c,required:d}=e,m={root:["root",`color${xe(i)}`,u&&"disabled",s&&"error",c&&"filled",a&&"focused",d&&"required"],asterisk:["asterisk",s&&"error"]};return ft(m,lM,r)},oM=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,i.color==="secondary"&&r.colorSecondary,i.filled&&r.filled]}})(Ct(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(pr()).map(([r])=>({props:{color:r},style:{[`&.${co.focused}`]:{color:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${co.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${co.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),uM=ve("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ct(({theme:e})=>({[`&.${co.error}`]:{color:(e.vars||e).palette.error.main}}))),sM=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiFormLabel"}),{children:u,className:s,color:c,component:d="label",disabled:m,error:h,filled:g,focused:y,required:v,...b}=a,w=Yl(),T=Gl({props:a,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),D={...a,color:T.color||"primary",component:d,disabled:T.disabled,error:T.error,filled:T.filled,focused:T.focused,required:T.required},k=aM(D);return K.jsxs(oM,{as:d,ownerState:D,className:_e(k.root,s),ref:i,...b,children:[u,T.required&&K.jsxs(uM,{ownerState:D,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})});function bp(e){return`scale(${e}, ${e**2})`}const cM={entering:{opacity:1,transform:bp(1)},entered:{opacity:1,transform:"none"}},zd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vp=_.forwardRef(function(r,i){const{addEndListener:a,appear:u=!0,children:s,easing:c,in:d,onEnter:m,onEntered:h,onEntering:g,onExit:y,onExited:v,onExiting:b,style:w,timeout:T="auto",TransitionComponent:D=mr,...k}=r,L=H1(),R=_.useRef(),O=nh(),M=_.useRef(null),z=hn(M,zo(s),i),H=G=>B=>{if(G){const J=M.current;B===void 0?G(J):G(J,B)}},$=H(g),F=H((G,B)=>{$1(G);const{duration:J,delay:ue,easing:ie}=Ss({style:w,timeout:T,easing:c},{mode:"enter"});let x;T==="auto"?(x=O.transitions.getAutoHeightDuration(G.clientHeight),R.current=x):x=J,G.style.transition=[O.transitions.create("opacity",{duration:x,delay:ue}),O.transitions.create("transform",{duration:zd?x:x*.666,delay:ue,easing:ie})].join(","),m&&m(G,B)}),C=H(h),P=H(b),q=H(G=>{const{duration:B,delay:J,easing:ue}=Ss({style:w,timeout:T,easing:c},{mode:"exit"});let ie;T==="auto"?(ie=O.transitions.getAutoHeightDuration(G.clientHeight),R.current=ie):ie=B,G.style.transition=[O.transitions.create("opacity",{duration:ie,delay:J}),O.transitions.create("transform",{duration:zd?ie:ie*.666,delay:zd?J:J||ie*.333,easing:ue})].join(","),G.style.opacity=0,G.style.transform=bp(.75),y&&y(G)}),Q=H(v),ee=G=>{T==="auto"&&L.start(R.current||0,G),a&&a(M.current,G)};return K.jsx(D,{appear:u,in:d,nodeRef:M,onEnter:F,onEntered:C,onEntering:$,onExit:q,onExited:Q,onExiting:P,addEndListener:ee,timeout:T==="auto"?null:T,...k,children:(G,{ownerState:B,...J})=>_.cloneElement(s,{style:{opacity:0,transform:bp(.75),visibility:G==="exited"&&!d?"hidden":void 0,...cM[G],...w,...s.props.style},ref:z,...J})})});vp&&(vp.muiSupportAuto=!0);const fM=e=>{const{classes:r,disableUnderline:i}=e,u=ft({root:["root",!i&&"underline"],input:["input"]},tk,r);return{...r,...u}},dM=ve(Xs,{shouldForwardProp:e=>Kn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[...Gs(e,r),!i.disableUnderline&&r.underline]}})(Ct(({theme:e})=>{let i=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(i=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:a})=>a.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${i}`,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(.${Qa.disabled}, .${Qa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${i}`}},[`&.${Qa.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(pr()).map(([a])=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a].main}`}}}))]}})),pM=ve(Ks,{name:"MuiInput",slot:"Input",overridesResolver:Ys})({}),ch=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiInput"}),{disableUnderline:u=!1,components:s={},componentsProps:c,fullWidth:d=!1,inputComponent:m="input",multiline:h=!1,slotProps:g,slots:y={},type:v="text",...b}=a,w=fM(a),D={root:{ownerState:{disableUnderline:u}}},k=g??c?tn(g??c,D):D,L=y.root??s.Root??dM,R=y.input??s.Input??pM;return K.jsx(uh,{slots:{root:L,input:R},slotProps:k,fullWidth:d,inputComponent:m,multiline:h,ref:i,type:v,...b,classes:w})});ch.muiName="Input";function hM(e){return st("MuiInputLabel",e)}ct("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const mM=e=>{const{classes:r,formControl:i,size:a,shrink:u,disableAnimation:s,variant:c,required:d}=e,m={root:["root",i&&"formControl",!s&&"animated",u&&"shrink",a&&a!=="medium"&&`size${xe(a)}`,c],asterisk:[d&&"asterisk"]},h=ft(m,hM,r);return{...r,...h}},gM=ve(sM,{shouldForwardProp:e=>Kn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[{[`& .${co.asterisk}`]:r.asterisk},r.root,i.formControl&&r.formControl,i.size==="small"&&r.sizeSmall,i.shrink&&r.shrink,!i.disableAnimation&&r.animated,i.focused&&r.focused,r[i.variant]]}})(Ct(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:i})=>r==="filled"&&i.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:i,size:a})=>r==="filled"&&i.shrink&&a==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:i})=>r==="outlined"&&i.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),yM=_.forwardRef(function(r,i){const a=dt({name:"MuiInputLabel",props:r}),{disableAnimation:u=!1,margin:s,shrink:c,variant:d,className:m,...h}=a,g=Yl();let y=c;typeof y>"u"&&g&&(y=g.filled||g.focused||g.adornedStart);const v=Gl({props:a,muiFormControl:g,states:["size","variant","required","focused"]}),b={...a,disableAnimation:u,formControl:g,shrink:y,size:v.size,variant:v.variant,required:v.required,focused:v.focused},w=mM(b);return K.jsx(gM,{"data-shrink":y,ref:i,className:_e(w.root,m),...h,ownerState:b,classes:w})}),bM=_.createContext({});function vM(e){return st("MuiList",e)}ct("MuiList",["root","padding","dense","subheader"]);const SM=e=>{const{classes:r,disablePadding:i,dense:a,subheader:u}=e;return ft({root:["root",!i&&"padding",a&&"dense",u&&"subheader"]},vM,r)},xM=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,!i.disablePadding&&r.padding,i.dense&&r.dense,i.subheader&&r.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),CM=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiList"}),{children:u,className:s,component:c="ul",dense:d=!1,disablePadding:m=!1,subheader:h,...g}=a,y=_.useMemo(()=>({dense:d}),[d]),v={...a,component:c,dense:d,disablePadding:m},b=SM(v);return K.jsx(bM.Provider,{value:y,children:K.jsxs(xM,{as:c,className:_e(b.root,s),ref:i,ownerState:v,...g,children:[h,u]})})});function _d(e,r,i){return e===r?e.firstChild:r&&r.nextElementSibling?r.nextElementSibling:i?null:e.firstChild}function Ub(e,r,i){return e===r?i?e.firstChild:e.lastChild:r&&r.previousElementSibling?r.previousElementSibling:i?null:e.lastChild}function Z1(e,r){if(r===void 0)return!0;let i=e.innerText;return i===void 0&&(i=e.textContent),i=i.trim().toLowerCase(),i.length===0?!1:r.repeating?i[0]===r.keys[0]:i.startsWith(r.keys.join(""))}function Za(e,r,i,a,u,s){let c=!1,d=u(e,r,r?i:!1);for(;d;){if(d===e.firstChild){if(c)return!1;c=!0}const m=a?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!Z1(d,s)||m)d=u(e,d,i);else return d.focus(),!0}return!1}const EM=_.forwardRef(function(r,i){const{actions:a,autoFocus:u=!1,autoFocusItem:s=!1,children:c,className:d,disabledItemsFocusable:m=!1,disableListWrap:h=!1,onKeyDown:g,variant:y="selectedMenu",...v}=r,b=_.useRef(null),w=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ur(()=>{u&&b.current.focus()},[u]),_.useImperativeHandle(a,()=>({adjustStyleForScrollbar:(R,{direction:O})=>{const M=!b.current.style.width;if(R.clientHeight{const O=b.current,M=R.key;if(R.ctrlKey||R.metaKey||R.altKey){g&&g(R);return}const H=Xn(O).activeElement;if(M==="ArrowDown")R.preventDefault(),Za(O,H,h,m,_d);else if(M==="ArrowUp")R.preventDefault(),Za(O,H,h,m,Ub);else if(M==="Home")R.preventDefault(),Za(O,null,h,m,_d);else if(M==="End")R.preventDefault(),Za(O,null,h,m,Ub);else if(M.length===1){const $=w.current,F=M.toLowerCase(),C=performance.now();$.keys.length>0&&(C-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&F!==$.keys[0]&&($.repeating=!1)),$.lastTime=C,$.keys.push(F);const P=H&&!$.repeating&&Z1(H,$);$.previousKeyMatched&&(P||Za(O,H,!1,m,_d,$))?R.preventDefault():$.previousKeyMatched=!1}g&&g(R)},D=hn(b,i);let k=-1;_.Children.forEach(c,(R,O)=>{if(!_.isValidElement(R)){k===O&&(k+=1,k>=c.length&&(k=-1));return}R.props.disabled||(y==="selectedMenu"&&R.props.selected||k===-1)&&(k=O),k===O&&(R.props.disabled||R.props.muiSkipListHighlight||R.type.muiSkipListHighlight)&&(k+=1,k>=c.length&&(k=-1))});const L=_.Children.map(c,(R,O)=>{if(O===k){const M={};return s&&(M.autoFocus=!0),R.props.tabIndex===void 0&&y==="selectedMenu"&&(M.tabIndex=0),_.cloneElement(R,M)}return R});return K.jsx(CM,{role:"menu",ref:D,className:d,onKeyDown:T,tabIndex:u?0:-1,...v,children:L})});function TM(e){return st("MuiPopover",e)}ct("MuiPopover",["root","paper"]);function Pb(e,r){let i=0;return typeof r=="number"?i=r:r==="center"?i=e.height/2:r==="bottom"&&(i=e.height),i}function jb(e,r){let i=0;return typeof r=="number"?i=r:r==="center"?i=e.width/2:r==="right"&&(i=e.width),i}function Hb(e){return[e.horizontal,e.vertical].map(r=>typeof r=="number"?`${r}px`:r).join(" ")}function ts(e){return typeof e=="function"?e():e}const wM=e=>{const{classes:r}=e;return ft({root:["root"],paper:["paper"]},TM,r)},AM=ve(Yk,{name:"MuiPopover",slot:"Root"})({}),W1=ve(xs,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),RM=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiPopover"}),{action:u,anchorEl:s,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:m="anchorEl",children:h,className:g,container:y,elevation:v=8,marginThreshold:b=16,open:w,PaperProps:T={},slots:D={},slotProps:k={},transformOrigin:L={vertical:"top",horizontal:"left"},TransitionComponent:R,transitionDuration:O="auto",TransitionProps:M={},disableScrollLock:z=!1,...H}=a,$=_.useRef(),F={...a,anchorOrigin:c,anchorReference:m,elevation:v,marginThreshold:b,transformOrigin:L,TransitionComponent:R,transitionDuration:O,TransitionProps:M},C=wM(F),P=_.useCallback(()=>{if(m==="anchorPosition")return d;const Se=ts(s),je=(Se&&Se.nodeType===1?Se:Xn($.current).body).getBoundingClientRect();return{top:je.top+Pb(je,c.vertical),left:je.left+jb(je,c.horizontal)}},[s,c.horizontal,c.vertical,d,m]),q=_.useCallback(Se=>({vertical:Pb(Se,L.vertical),horizontal:jb(Se,L.horizontal)}),[L.horizontal,L.vertical]),Q=_.useCallback(Se=>{const Me={width:Se.offsetWidth,height:Se.offsetHeight},je=q(Me);if(m==="none")return{top:null,left:null,transformOrigin:Hb(je)};const bt=P();let Oe=bt.top-je.vertical,qe=bt.left-je.horizontal;const zt=Oe+Me.height,Ve=qe+Me.width,pt=Pr(ts(s)),tt=pt.innerHeight-b,ht=pt.innerWidth-b;if(b!==null&&Oett){const Qe=zt-tt;Oe-=Qe,je.vertical+=Qe}if(b!==null&&qeht){const Qe=Ve-ht;qe-=Qe,je.horizontal+=Qe}return{top:`${Math.round(Oe)}px`,left:`${Math.round(qe)}px`,transformOrigin:Hb(je)}},[s,m,P,q,b]),[ee,G]=_.useState(w),B=_.useCallback(()=>{const Se=$.current;if(!Se)return;const Me=Q(Se);Me.top!==null&&Se.style.setProperty("top",Me.top),Me.left!==null&&(Se.style.left=Me.left),Se.style.transformOrigin=Me.transformOrigin,G(!0)},[Q]);_.useEffect(()=>(z&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[s,z,B]);const J=()=>{B()},ue=()=>{G(!1)};_.useEffect(()=>{w&&B()}),_.useImperativeHandle(u,()=>w?{updatePosition:()=>{B()}}:null,[w,B]),_.useEffect(()=>{if(!w)return;const Se=N1(()=>{B()}),Me=Pr(ts(s));return Me.addEventListener("resize",Se),()=>{Se.clear(),Me.removeEventListener("resize",Se)}},[s,w,B]);let ie=O;const x={slots:{transition:R,...D},slotProps:{transition:M,paper:T,...k}},[Z,oe]=en("transition",{elementType:vp,externalForwardedProps:x,ownerState:F,getSlotProps:Se=>({...Se,onEntering:(Me,je)=>{Se.onEntering?.(Me,je),J()},onExited:Me=>{Se.onExited?.(Me),ue()}}),additionalProps:{appear:!0,in:w}});O==="auto"&&!Z.muiSupportAuto&&(ie=void 0);const A=y||(s?Xn(ts(s)).body:void 0),[ce,{slots:pe,slotProps:fe,...Re}]=en("root",{ref:i,elementType:AM,externalForwardedProps:{...x,...H},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:D.backdrop},slotProps:{backdrop:XA(typeof k.backdrop=="function"?k.backdrop(F):k.backdrop,{invisible:!0})},container:A,open:w},ownerState:F,className:_e(C.root,g)}),[Ee,ze]=en("paper",{ref:$,className:C.paper,elementType:W1,externalForwardedProps:x,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:ee?void 0:{opacity:0}},ownerState:F});return K.jsx(ce,{...Re,...!gp(ce)&&{slots:pe,slotProps:fe,disableScrollLock:z},children:K.jsx(Z,{...oe,timeout:ie,children:K.jsx(Ee,{...ze,children:h})})})});function kM(e){return st("MuiMenu",e)}ct("MuiMenu",["root","paper","list"]);const MM={vertical:"top",horizontal:"right"},OM={vertical:"top",horizontal:"left"},zM=e=>{const{classes:r}=e;return ft({root:["root"],paper:["paper"],list:["list"]},kM,r)},_M=ve(RM,{shouldForwardProp:e=>Kn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),DM=ve(W1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),NM=ve(EM,{name:"MuiMenu",slot:"List"})({outline:0}),BM=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiMenu"}),{autoFocus:u=!0,children:s,className:c,disableAutoFocusItem:d=!1,MenuListProps:m={},onClose:h,open:g,PaperProps:y={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:w,...T}={},variant:D="selectedMenu",slots:k={},slotProps:L={},...R}=a,O=Uw(),M={...a,autoFocus:u,disableAutoFocusItem:d,MenuListProps:m,onEntering:w,PaperProps:y,transitionDuration:b,TransitionProps:T,variant:D},z=zM(M),H=u&&!d&&g,$=_.useRef(null),F=(ie,x)=>{$.current&&$.current.adjustStyleForScrollbar(ie,{direction:O?"rtl":"ltr"}),w&&w(ie,x)},C=ie=>{ie.key==="Tab"&&(ie.preventDefault(),h&&h(ie,"tabKeyDown"))};let P=-1;_.Children.map(s,(ie,x)=>{_.isValidElement(ie)&&(ie.props.disabled||(D==="selectedMenu"&&ie.props.selected||P===-1)&&(P=x))});const q={slots:k,slotProps:{list:m,transition:T,paper:y,...L}},Q=GR({elementType:k.root,externalSlotProps:L.root,ownerState:M,className:[z.root,c]}),[ee,G]=en("paper",{className:z.paper,elementType:DM,externalForwardedProps:q,shouldForwardComponentProp:!0,ownerState:M}),[B,J]=en("list",{className:_e(z.list,m.className),elementType:NM,shouldForwardComponentProp:!0,externalForwardedProps:q,getSlotProps:ie=>({...ie,onKeyDown:x=>{C(x),ie.onKeyDown?.(x)}}),ownerState:M}),ue=typeof q.slotProps.transition=="function"?q.slotProps.transition(M):q.slotProps.transition;return K.jsx(_M,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?MM:OM,slots:{root:k.root,paper:ee,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:Q,paper:G,backdrop:typeof L.backdrop=="function"?L.backdrop(M):L.backdrop,transition:{...ue,onEntering:(...ie)=>{F(...ie),ue?.onEntering?.(...ie)}}},open:g,ref:i,transitionDuration:b,ownerState:M,...R,classes:v,children:K.jsx(B,{actions:$,autoFocus:u&&(P===-1||d),autoFocusItem:H,variant:D,...J,children:s})})});function LM(e){return st("MuiNativeSelect",e)}const fh=ct("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),UM=e=>{const{classes:r,variant:i,disabled:a,multiple:u,open:s,error:c}=e,d={select:["select",i,a&&"disabled",u&&"multiple",c&&"error"],icon:["icon",`icon${xe(i)}`,s&&"iconOpen",a&&"disabled"]};return ft(d,LM,r)},J1=ve("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${fh.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:r})=>r.variant!=="filled"&&r.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),PM=ve(J1,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Kn,overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.select,r[i.variant],i.error&&r.error,{[`&.${fh.multiple}`]:r.multiple}]}})({}),eS=ve("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${fh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:r})=>r.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),jM=ve(eS,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.icon,i.variant&&r[`icon${xe(i.variant)}`],i.open&&r.iconOpen]}})({}),HM=_.forwardRef(function(r,i){const{className:a,disabled:u,error:s,IconComponent:c,inputRef:d,variant:m="standard",...h}=r,g={...r,disabled:u,variant:m,error:s},y=UM(g);return K.jsxs(_.Fragment,{children:[K.jsx(PM,{ownerState:g,className:_e(y.select,a),disabled:u,ref:d||i,...h}),r.multiple?null:K.jsx(jM,{as:c,ownerState:g,className:y.icon})]})});var $b;const $M=ve("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Kn})({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%"}),IM=ve("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Kn})(Ct(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:r})=>!r.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:r})=>r.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:r})=>r.withLabel&&r.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function qM(e){const{children:r,classes:i,className:a,label:u,notched:s,...c}=e,d=u!=null&&u!=="",m={...e,notched:s,withLabel:d};return K.jsx($M,{"aria-hidden":!0,className:a,ownerState:m,...c,children:K.jsx(IM,{ownerState:m,children:d?K.jsx("span",{children:u}):$b||($b=K.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const VM=e=>{const{classes:r}=e,a=ft({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nk,r);return{...r,...a}},FM=ve(Xs,{shouldForwardProp:e=>Kn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gs})(Ct(({theme:e})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${nr.focused} .${nr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(pr()).map(([i])=>({props:{color:i},style:{[`&.${nr.focused} .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette[i].main}}})),{props:{},style:{[`&.${nr.error} .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${nr.disabled} .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:14}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:14}},{props:({ownerState:i})=>i.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:i,size:a})=>i.multiline&&a==="small",style:{padding:"8.5px 14px"}}]}})),GM=ve(qM,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ct(({theme:e})=>{const r=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)`:r}})),YM=ve(Ks,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ys})(Ct(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:r})=>r.multiline,style:{padding:0}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}}]}))),dh=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiOutlinedInput"}),{components:u={},fullWidth:s=!1,inputComponent:c="input",label:d,multiline:m=!1,notched:h,slots:g={},slotProps:y={},type:v="text",...b}=a,w=VM(a),T=Yl(),D=Gl({props:a,muiFormControl:T,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...a,color:D.color||"primary",disabled:D.disabled,error:D.error,focused:D.focused,formControl:T,fullWidth:s,hiddenLabel:D.hiddenLabel,multiline:m,size:D.size,type:v},L=g.root??u.Root??FM,R=g.input??u.Input??YM,[O,M]=en("notchedOutline",{elementType:GM,className:w.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:y},additionalProps:{label:d!=null&&d!==""&&D.required?K.jsxs(_.Fragment,{children:[d," ","*"]}):d}});return K.jsx(uh,{slots:{root:L,input:R},slotProps:y,renderSuffix:z=>K.jsx(O,{...M,notched:typeof h<"u"?h:!!(z.startAdornment||z.filled||z.focused)}),fullWidth:s,inputComponent:c,multiline:m,ref:i,type:v,...b,classes:{...w,notchedOutline:null}})});dh.muiName="Input";function tS(e){return st("MuiSelect",e)}const Wa=ct("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ib;const XM=ve(J1,{name:"MuiSelect",slot:"Select",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[{[`&.${Wa.select}`]:r.select},{[`&.${Wa.select}`]:r[i.variant]},{[`&.${Wa.error}`]:r.error},{[`&.${Wa.multiple}`]:r.multiple}]}})({[`&.${Wa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KM=ve(eS,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.icon,i.variant&&r[`icon${xe(i.variant)}`],i.open&&r.iconOpen]}})({}),QM=ve("input",{shouldForwardProp:e=>_1(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function qb(e,r){return typeof r=="object"&&r!==null?e===r:String(e)===String(r)}function ZM(e){return e==null||typeof e=="string"&&!e.trim()}const WM=e=>{const{classes:r,variant:i,disabled:a,multiple:u,open:s,error:c}=e,d={select:["select",i,a&&"disabled",u&&"multiple",c&&"error"],icon:["icon",`icon${xe(i)}`,s&&"iconOpen",a&&"disabled"],nativeInput:["nativeInput"]};return ft(d,tS,r)},JM=_.forwardRef(function(r,i){const{"aria-describedby":a,"aria-label":u,autoFocus:s,autoWidth:c,children:d,className:m,defaultOpen:h,defaultValue:g,disabled:y,displayEmpty:v,error:b=!1,IconComponent:w,inputRef:T,labelId:D,MenuProps:k={},multiple:L,name:R,onBlur:O,onChange:M,onClose:z,onFocus:H,onOpen:$,open:F,readOnly:C,renderValue:P,required:q,SelectDisplayProps:Q={},tabIndex:ee,type:G,value:B,variant:J="standard",...ue}=r,[ie,x]=yb({controlled:B,default:g,name:"Select"}),[Z,oe]=yb({controlled:F,default:h,name:"Select"}),A=_.useRef(null),ce=_.useRef(null),[pe,fe]=_.useState(null),{current:Re}=_.useRef(F!=null),[Ee,ze]=_.useState(),Se=hn(i,T),Me=_.useCallback(ge=>{ce.current=ge,ge&&fe(ge)},[]),je=pe?.parentNode;_.useImperativeHandle(Se,()=>({focus:()=>{ce.current.focus()},node:A.current,value:ie}),[ie]),_.useEffect(()=>{h&&Z&&pe&&!Re&&(ze(c?null:je.clientWidth),ce.current.focus())},[pe,c]),_.useEffect(()=>{s&&ce.current.focus()},[s]),_.useEffect(()=>{if(!D)return;const ge=Xn(ce.current).getElementById(D);if(ge){const ke=()=>{getSelection().isCollapsed&&ce.current.focus()};return ge.addEventListener("click",ke),()=>{ge.removeEventListener("click",ke)}}},[D]);const bt=(ge,ke)=>{ge?$&&$(ke):z&&z(ke),Re||(ze(c?null:je.clientWidth),oe(ge))},Oe=ge=>{ge.button===0&&(ge.preventDefault(),ce.current.focus(),bt(!0,ge))},qe=ge=>{bt(!1,ge)},zt=_.Children.toArray(d),Ve=ge=>{const ke=zt.find(Ze=>Ze.props.value===ge.target.value);ke!==void 0&&(x(ke.props.value),M&&M(ge,ke))},pt=ge=>ke=>{let Ze;if(ke.currentTarget.hasAttribute("tabindex")){if(L){Ze=Array.isArray(ie)?ie.slice():[];const jt=ie.indexOf(ge.props.value);jt===-1?Ze.push(ge.props.value):Ze.splice(jt,1)}else Ze=ge.props.value;if(ge.props.onClick&&ge.props.onClick(ke),ie!==Ze&&(x(Ze),M)){const jt=ke.nativeEvent||ke,Ql=new jt.constructor(jt.type,jt);Object.defineProperty(Ql,"target",{writable:!0,value:{value:Ze,name:R}}),M(Ql,ge)}L||bt(!1,ke)}},tt=ge=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),bt(!0,ge))},ht=pe!==null&&Z,Qe=ge=>{!ht&&O&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:ie,name:R}}),O(ge))};delete ue["aria-invalid"];let ye,rn;const vt=[];let gn=!1;(Es({value:ie})||v)&&(P?ye=P(ie):gn=!0);const W=zt.map(ge=>{if(!_.isValidElement(ge))return null;let ke;if(L){if(!Array.isArray(ie))throw new Error(Br(2));ke=ie.some(Ze=>qb(Ze,ge.props.value)),ke&&gn&&vt.push(ge.props.children)}else ke=qb(ie,ge.props.value),ke&&gn&&(rn=ge.props.children);return _.cloneElement(ge,{"aria-selected":ke?"true":"false",onClick:pt(ge),onKeyUp:Ze=>{Ze.key===" "&&Ze.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(Ze)},role:"option",selected:ke,value:void 0,"data-value":ge.props.value})});gn&&(L?vt.length===0?ye=null:ye=vt.reduce((ge,ke,Ze)=>(ge.push(ke),Ze{const{classes:r}=e,a=ft({root:["root"]},tS,r);return{...r,...a}},ph={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Kn(e)&&e!=="variant"},tO=ve(ch,ph)(""),nO=ve(dh,ph)(""),rO=ve(sh,ph)(""),nS=_.forwardRef(function(r,i){const a=dt({name:"MuiSelect",props:r}),{autoWidth:u=!1,children:s,classes:c={},className:d,defaultOpen:m=!1,displayEmpty:h=!1,IconComponent:g=ik,id:y,input:v,inputProps:b,label:w,labelId:T,MenuProps:D,multiple:k=!1,native:L=!1,onClose:R,onOpen:O,open:M,renderValue:z,SelectDisplayProps:H,variant:$="outlined",...F}=a,C=L?HM:JM,P=Yl(),q=Gl({props:a,muiFormControl:P,states:["variant","error"]}),Q=q.variant||$,ee={...a,variant:Q,classes:c},G=eO(ee),{root:B,...J}=G,ue=v||{standard:K.jsx(tO,{ownerState:ee}),outlined:K.jsx(nO,{label:w,ownerState:ee}),filled:K.jsx(rO,{ownerState:ee})}[Q],ie=hn(i,zo(ue));return K.jsx(_.Fragment,{children:_.cloneElement(ue,{inputComponent:C,inputProps:{children:s,error:q.error,IconComponent:g,variant:Q,type:void 0,multiple:k,...L?{id:y}:{autoWidth:u,defaultOpen:m,displayEmpty:h,labelId:T,MenuProps:D,onClose:R,onOpen:O,open:M,renderValue:z,SelectDisplayProps:{id:y,...H}},...b,classes:b?tn(J,b.classes):J,...v?v.props.inputProps:{}},...(k&&L||h)&&Q==="outlined"?{notched:!0}:{},ref:ie,className:_e(ue.props.className,d,G.root),...!v&&{variant:Q},...F})})});nS.muiName="Select";function iO(e){return st("MuiToolbar",e)}ct("MuiToolbar",["root","gutters","regular","dense"]);const lO=e=>{const{classes:r,disableGutters:i,variant:a}=e;return ft({root:["root",!i&&"gutters",a]},iO,r)},aO=ve("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,!i.disableGutters&&r.gutters,r[i.variant]]}})(Ct(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:r})=>!r.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),oO=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiToolbar"}),{className:u,component:s="div",disableGutters:c=!1,variant:d="regular",...m}=a,h={...a,component:s,disableGutters:c,variant:d},g=lO(h);return K.jsx(aO,{as:s,className:_e(g.root,u),ref:i,ownerState:h,...m})});function uO(e){return st("MuiTextField",e)}ct("MuiTextField",["root"]);const sO={standard:ch,filled:sh,outlined:dh},cO=e=>{const{classes:r}=e;return ft({root:["root"]},uO,r)},fO=ve(eM,{name:"MuiTextField",slot:"Root"})({}),dO=_.forwardRef(function(r,i){const a=dt({props:r,name:"MuiTextField"}),{autoComplete:u,autoFocus:s=!1,children:c,className:d,color:m="primary",defaultValue:h,disabled:g=!1,error:y=!1,FormHelperTextProps:v,fullWidth:b=!1,helperText:w,id:T,InputLabelProps:D,inputProps:k,InputProps:L,inputRef:R,label:O,maxRows:M,minRows:z,multiline:H=!1,name:$,onBlur:F,onChange:C,onFocus:P,placeholder:q,required:Q=!1,rows:ee,select:G=!1,SelectProps:B,slots:J={},slotProps:ue={},type:ie,value:x,variant:Z="outlined",...oe}=a,A={...a,autoFocus:s,color:m,disabled:g,error:y,fullWidth:b,multiline:H,required:Q,select:G,variant:Z},ce=cO(A),pe=Oo(T),fe=w&&pe?`${pe}-helper-text`:void 0,Re=O&&pe?`${pe}-label`:void 0,Ee=sO[Z],ze={slots:J,slotProps:{input:L,inputLabel:D,htmlInput:k,formHelperText:v,select:B,...ue}},Se={},Me=ze.slotProps.inputLabel;Z==="outlined"&&(Me&&typeof Me.shrink<"u"&&(Se.notched=Me.shrink),Se.label=O),G&&((!B||!B.native)&&(Se.id=void 0),Se["aria-describedby"]=void 0);const[je,bt]=en("root",{elementType:fO,shouldForwardComponentProp:!0,externalForwardedProps:{...ze,...oe},ownerState:A,className:_e(ce.root,d),ref:i,additionalProps:{disabled:g,error:y,fullWidth:b,required:Q,color:m,variant:Z}}),[Oe,qe]=en("input",{elementType:Ee,externalForwardedProps:ze,additionalProps:Se,ownerState:A}),[zt,Ve]=en("inputLabel",{elementType:yM,externalForwardedProps:ze,ownerState:A}),[pt,tt]=en("htmlInput",{elementType:"input",externalForwardedProps:ze,ownerState:A}),[ht,Qe]=en("formHelperText",{elementType:iM,externalForwardedProps:ze,ownerState:A}),[ye,rn]=en("select",{elementType:nS,externalForwardedProps:ze,ownerState:A}),vt=K.jsx(Oe,{"aria-describedby":fe,autoComplete:u,autoFocus:s,defaultValue:h,fullWidth:b,multiline:H,name:$,rows:ee,maxRows:M,minRows:z,type:ie,value:x,id:pe,inputRef:R,onBlur:F,onChange:C,onFocus:P,placeholder:q,inputProps:tt,slots:{input:J.htmlInput?pt:void 0},...qe});return K.jsxs(je,{...bt,children:[O!=null&&O!==""&&K.jsx(zt,{htmlFor:pe,id:Re,...Ve,children:O}),G?K.jsx(ye,{"aria-describedby":fe,id:pe,labelId:Re,value:x,input:vt,...rn,children:c}):vt,w&&K.jsx(ht,{id:fe,...Qe,children:w})]})}),pO=D1(K.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}));function hO(e,r){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const mO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yO={};function Vb(e,r){return(yO.jsx?gO:mO).test(e)}const bO=/[ \t\n\f\r]/g;function vO(e){return typeof e=="object"?e.type==="text"?Fb(e.value):!1:Fb(e)}function Fb(e){return e.replace(bO,"")===""}class _o{constructor(r,i,a){this.normal=i,this.property=r,a&&(this.space=a)}}_o.prototype.normal={};_o.prototype.property={};_o.prototype.space=void 0;function rS(e,r){const i={},a={};for(const u of e)Object.assign(i,u.property),Object.assign(a,u.normal);return new _o(i,a,r)}function Sp(e){return e.toLowerCase()}class mn{constructor(r,i){this.attribute=i,this.property=r}}mn.prototype.attribute="";mn.prototype.booleanish=!1;mn.prototype.boolean=!1;mn.prototype.commaOrSpaceSeparated=!1;mn.prototype.commaSeparated=!1;mn.prototype.defined=!1;mn.prototype.mustUseProperty=!1;mn.prototype.number=!1;mn.prototype.overloadedBoolean=!1;mn.prototype.property="";mn.prototype.spaceSeparated=!1;mn.prototype.space=void 0;let SO=0;const Be=Ii(),Nt=Ii(),xp=Ii(),se=Ii(),gt=Ii(),Hl=Ii(),wn=Ii();function Ii(){return 2**++SO}const Cp=Object.freeze(Object.defineProperty({__proto__:null,boolean:Be,booleanish:Nt,commaOrSpaceSeparated:wn,commaSeparated:Hl,number:se,overloadedBoolean:xp,spaceSeparated:gt},Symbol.toStringTag,{value:"Module"})),Dd=Object.keys(Cp);class hh extends mn{constructor(r,i,a,u){let s=-1;if(super(r,i),Gb(this,"space",u),typeof a=="number")for(;++s4&&i.slice(0,4)==="data"&&wO.test(r)){if(r.charAt(4)==="-"){const s=r.slice(5).replace(Yb,kO);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=r.slice(4);if(!Yb.test(s)){let c=s.replace(TO,RO);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}u=hh}return new u(a,r)}function RO(e){return"-"+e.toLowerCase()}function kO(e){return e.charAt(1).toUpperCase()}const MO=rS([iS,xO,oS,uS,sS],"html"),mh=rS([iS,CO,oS,uS,sS],"svg");function OO(e){return e.join(" ").trim()}var Nl={},Nd,Xb;function zO(){if(Xb)return Nd;Xb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
-`,h="/",g="*",y="",v="comment",b="declaration";Nd=function(T,D){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];D=D||{};var k=1,L=1;function R(Q){var ee=Q.match(r);ee&&(k+=ee.length);var G=Q.lastIndexOf(m);L=~G?Q.length-G:L+Q.length}function O(){var Q={line:k,column:L};return function(ee){return ee.position=new M(Q),$(),ee}}function M(Q){this.start=Q,this.end={line:k,column:L},this.source=D.source}M.prototype.content=T;function z(Q){var ee=new Error(D.source+":"+k+":"+L+": "+Q);if(ee.reason=Q,ee.filename=D.source,ee.line=k,ee.column=L,ee.source=T,!D.silent)throw ee}function H(Q){var ee=Q.exec(T);if(ee){var G=ee[0];return R(G),T=T.slice(G.length),ee}}function $(){H(i)}function F(Q){var ee;for(Q=Q||[];ee=C();)ee!==!1&&Q.push(ee);return Q}function C(){var Q=O();if(!(h!=T.charAt(0)||g!=T.charAt(1))){for(var ee=2;y!=T.charAt(ee)&&(g!=T.charAt(ee)||h!=T.charAt(ee+1));)++ee;if(ee+=2,y===T.charAt(ee-1))return z("End of comment missing");var G=T.slice(2,ee-2);return L+=2,R(G),T=T.slice(ee),L+=2,Q({type:v,comment:G})}}function P(){var Q=O(),ee=H(a);if(ee){if(C(),!H(u))return z("property missing ':'");var G=H(s),B=Q({type:b,property:w(ee[0].replace(e,y)),value:G?w(G[0].replace(e,y)):y});return H(c),B}}function q(){var Q=[];F(Q);for(var ee;ee=P();)ee!==!1&&(Q.push(ee),F(Q));return Q}return $(),q()};function w(T){return T?T.replace(d,y):y}return Nd}var Kb;function _O(){if(Kb)return Nl;Kb=1;var e=Nl&&Nl.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.default=i;var r=e(zO());function i(a,u){var s=null;if(!a||typeof a!="string")return s;var c=(0,r.default)(a),d=typeof u=="function";return c.forEach(function(m){if(m.type==="declaration"){var h=m.property,g=m.value;d?u(h,g,m):g&&(s=s||{},s[h]=g)}}),s}return Nl}var Ja={},Qb;function DO(){if(Qb)return Ja;Qb=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,s=function(h){return!h||i.test(h)||e.test(h)},c=function(h,g){return g.toUpperCase()},d=function(h,g){return"".concat(g,"-")},m=function(h,g){return g===void 0&&(g={}),s(h)?h:(h=h.toLowerCase(),g.reactCompat?h=h.replace(u,d):h=h.replace(a,d),h.replace(r,c))};return Ja.camelCase=m,Ja}var eo,Zb;function NO(){if(Zb)return eo;Zb=1;var e=eo&&eo.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},r=e(_O()),i=DO();function a(u,s){var c={};return!u||typeof u!="string"||(0,r.default)(u,function(d,m){d&&m&&(c[(0,i.camelCase)(d,s)]=m)}),c}return a.default=a,eo=a,eo}var BO=NO();const LO=As(BO),cS=fS("end"),gh=fS("start");function fS(e){return r;function r(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function UO(e){const r=gh(e),i=cS(e);if(r&&i)return{start:r,end:i}}function fo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Wb(e.position):"start"in e||"end"in e?Wb(e):"line"in e||"column"in e?Ep(e):""}function Ep(e){return Jb(e&&e.line)+":"+Jb(e&&e.column)}function Wb(e){return Ep(e&&e.start)+"-"+Ep(e&&e.end)}function Jb(e){return e&&typeof e=="number"?e:1}class nn extends Error{constructor(r,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let u="",s={},c=!1;if(i&&("line"in i&&"column"in i?s={place:i}:"start"in i&&"end"in i?s={place:i}:"type"in i?s={ancestors:[i],place:i.position}:s={...i}),typeof r=="string"?u=r:!s.cause&&r&&(c=!0,u=r.message,s.cause=r),!s.ruleId&&!s.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?s.ruleId=a:(s.source=a.slice(0,m),s.ruleId=a.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=u,this.line=d?d.line:void 0,this.name=fo(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}nn.prototype.file="";nn.prototype.name="";nn.prototype.reason="";nn.prototype.message="";nn.prototype.stack="";nn.prototype.column=void 0;nn.prototype.line=void 0;nn.prototype.ancestors=void 0;nn.prototype.cause=void 0;nn.prototype.fatal=void 0;nn.prototype.place=void 0;nn.prototype.ruleId=void 0;nn.prototype.source=void 0;const yh={}.hasOwnProperty,PO=new Map,jO=/[A-Z]/g,HO=new Set(["table","tbody","thead","tfoot","tr"]),$O=new Set(["td","th"]),dS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function IO(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=QO(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=KO(i,r.jsx,r.jsxs)}const u={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?mh:MO,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},s=pS(u,e,void 0);return s&&typeof s!="string"?s:u.create(e,u.Fragment,{children:s||void 0},void 0)}function pS(e,r,i){if(r.type==="element")return qO(e,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return VO(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return GO(e,r,i);if(r.type==="mdxjsEsm")return FO(e,r);if(r.type==="root")return YO(e,r,i);if(r.type==="text")return XO(e,r)}function qO(e,r,i){const a=e.schema;let u=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(u=mh,e.schema=u),e.ancestors.push(r);const s=mS(e,r.tagName,!1),c=ZO(e,r);let d=vh(e,r);return HO.has(r.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!vO(m):!0})),hS(e,c,s,r),bh(c,d),e.ancestors.pop(),e.schema=a,e.create(r,s,c,i)}function VO(e,r){if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Co(e,r.position)}function FO(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);Co(e,r.position)}function GO(e,r,i){const a=e.schema;let u=a;r.name==="svg"&&a.space==="html"&&(u=mh,e.schema=u),e.ancestors.push(r);const s=r.name===null?e.Fragment:mS(e,r.name,!0),c=WO(e,r),d=vh(e,r);return hS(e,c,s,r),bh(c,d),e.ancestors.pop(),e.schema=a,e.create(r,s,c,i)}function YO(e,r,i){const a={};return bh(a,vh(e,r)),e.create(r,e.Fragment,a,i)}function XO(e,r){return r.value}function hS(e,r,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(r.node=a)}function bh(e,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(e.children=i)}}function KO(e,r,i){return a;function a(u,s,c,d){const h=Array.isArray(c.children)?i:r;return d?h(s,c,d):h(s,c)}}function QO(e,r){return i;function i(a,u,s,c){const d=Array.isArray(s.children),m=gh(a);return r(u,s,c,d,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function ZO(e,r){const i={};let a,u;for(u in r.properties)if(u!=="children"&&yh.call(r.properties,u)){const s=JO(e,u,r.properties[u]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&$O.has(r.tagName)?a=d:i[c]=d}}if(a){const s=i.style||(i.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function WO(e,r){const i={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else Co(e,r.position);else{const u=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else Co(e,r.position);else s=a.value===null?!0:a.value;i[u]=s}return i}function vh(e,r){const i=[];let a=-1;const u=e.passKeys?new Map:PO;for(;++au?0:u+r:r=r>u?u:r,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(r,i),e.splice(...c);else for(i&&e.splice(r,i);s0?(hr(e,e.length,0,r),e):r}const nv={}.hasOwnProperty;function oz(e){const r={};let i=-1;for(;++i13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function $l(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const sr=hi(/[A-Za-z]/),Rn=hi(/[\dA-Za-z]/),cz=hi(/[#-'*+\--9=?A-Z^-~]/);function Tp(e){return e!==null&&(e<32||e===127)}const wp=hi(/\d/),fz=hi(/[\dA-Fa-f]/),dz=hi(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function dn(e){return e!==null&&(e<0||e===32)}function Ke(e){return e===-2||e===-1||e===32}const pz=hi(new RegExp("\\p{P}|\\p{S}","u")),hz=hi(/\s/);function hi(e){return r;function r(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Kl(e){const r=[];let i=-1,a=0,u=0;for(;++i55295&&s<57344){const d=e.charCodeAt(i+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),u=1):c="�"}else c=String.fromCharCode(s);c&&(r.push(e.slice(a,i),encodeURIComponent(c)),a=i+u+1,c=""),u&&(i+=u,u=0)}return r.join("")+e.slice(a)}function yt(e,r,i,a){const u=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(m){return Ke(m)?(e.enter(i),d(m)):r(m)}function d(m){return Ke(m)&&s++c))return;const H=r.events.length;let $=H,F,C;for(;$--;)if(r.events[$][0]==="exit"&&r.events[$][1].type==="chunkFlow"){if(F){C=r.events[$][1].end;break}F=!0}for(k(a),z=H;zR;){const M=i[O];r.containerState=M[1],M[0].exit.call(r,e)}i.length=R}function L(){u.write([null]),s=void 0,u=void 0,r.containerState._closeFlow=void 0}}function vz(e,r,i){return yt(e,e.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function iv(e){if(e===null||dn(e)||hz(e))return 1;if(pz(e))return 2}function xh(e,r,i){const a=[];let u=-1;for(;++u1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const y={...e[a][1].end},v={...e[i][1].start};lv(y,-m),lv(v,m),c={type:m>1?"strongSequence":"emphasisSequence",start:y,end:{...e[a][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:v},s={type:m>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},u={type:m>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[i][1].start={...d.end},h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=In(h,[["enter",e[a][1],r],["exit",e[a][1],r]])),h=In(h,[["enter",u,r],["enter",c,r],["exit",c,r],["enter",s,r]]),h=In(h,xh(r.parser.constructs.insideSpan.null,e.slice(a+1,i),r)),h=In(h,[["exit",s,r],["enter",d,r],["exit",d,r],["exit",u,r]]),e[i][1].end.offset-e[i][1].start.offset?(g=2,h=In(h,[["enter",e[i][1],r],["exit",e[i][1],r]])):g=0,hr(e,a-1,i-a+3,h),i=a+h.length-g-2;break}}for(i=-1;++i0&&Ke(z)?yt(e,L,"linePrefix",s+1)(z):L(z)}function L(z){return z===null||Ae(z)?e.check(av,T,O)(z):(e.enter("codeFlowValue"),R(z))}function R(z){return z===null||Ae(z)?(e.exit("codeFlowValue"),L(z)):(e.consume(z),R)}function O(z){return e.exit("codeFenced"),r(z)}function M(z,H,$){let F=0;return C;function C(G){return z.enter("lineEnding"),z.consume(G),z.exit("lineEnding"),P}function P(G){return z.enter("codeFencedFence"),Ke(G)?yt(z,q,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):q(G)}function q(G){return G===d?(z.enter("codeFencedFenceSequence"),Q(G)):$(G)}function Q(G){return G===d?(F++,z.consume(G),Q):F>=c?(z.exit("codeFencedFenceSequence"),Ke(G)?yt(z,ee,"whitespace")(G):ee(G)):$(G)}function ee(G){return G===null||Ae(G)?(z.exit("codeFencedFence"),H(G)):$(G)}}}function zz(e,r,i){const a=this;return u;function u(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?i(c):r(c)}}const Ld={name:"codeIndented",tokenize:Dz},_z={partial:!0,tokenize:Nz};function Dz(e,r,i){const a=this;return u;function u(h){return e.enter("codeIndented"),yt(e,s,"linePrefix",5)(h)}function s(h){const g=a.events[a.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(h):i(h)}function c(h){return h===null?m(h):Ae(h)?e.attempt(_z,c,m)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Ae(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),d)}function m(h){return e.exit("codeIndented"),r(h)}}function Nz(e,r,i){const a=this;return u;function u(c){return a.parser.lazy[a.now().line]?i(c):Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):yt(e,s,"linePrefix",5)(c)}function s(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):Ae(c)?u(c):i(c)}}const Bz={name:"codeText",previous:Uz,resolve:Lz,tokenize:Pz};function Lz(e){let r=e.length-4,i=3,a,u;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(a=i;++a=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return rthis.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,i,a){const u=i||0;this.setCursor(Math.trunc(r));const s=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return a&&to(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),to(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),to(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r=4?r(c):e.interrupt(a.parser.constructs.flow,i,r)(c)}}function CS(e,r,i,a,u,s,c,d,m){const h=m||Number.POSITIVE_INFINITY;let g=0;return y;function y(k){return k===60?(e.enter(a),e.enter(u),e.enter(s),e.consume(k),e.exit(s),v):k===null||k===32||k===41||Tp(k)?i(k):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),T(k))}function v(k){return k===62?(e.enter(s),e.consume(k),e.exit(s),e.exit(u),e.exit(a),r):(e.enter(d),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===62?(e.exit("chunkString"),e.exit(d),v(k)):k===null||k===60||Ae(k)?i(k):(e.consume(k),k===92?w:b)}function w(k){return k===60||k===62||k===92?(e.consume(k),b):b(k)}function T(k){return!g&&(k===null||k===41||dn(k))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),r(k)):g999||b===null||b===91||b===93&&!m||b===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(e.exit(s),e.enter(u),e.consume(b),e.exit(u),e.exit(a),r):Ae(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||Ae(b)||d++>999?(e.exit("chunkString"),g(b)):(e.consume(b),m||(m=!Ke(b)),b===92?v:y)}function v(b){return b===91||b===92||b===93?(e.consume(b),d++,y):y(b)}}function TS(e,r,i,a,u,s){let c;return d;function d(v){return v===34||v===39||v===40?(e.enter(a),e.enter(u),e.consume(v),e.exit(u),c=v===40?41:v,m):i(v)}function m(v){return v===c?(e.enter(u),e.consume(v),e.exit(u),e.exit(a),r):(e.enter(s),h(v))}function h(v){return v===c?(e.exit(s),m(c)):v===null?i(v):Ae(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),yt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===c||v===null||Ae(v)?(e.exit("chunkString"),h(v)):(e.consume(v),v===92?y:g)}function y(v){return v===c||v===92?(e.consume(v),g):g(v)}}function po(e,r){let i;return a;function a(u){return Ae(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i=!0,a):Ke(u)?yt(e,a,i?"linePrefix":"lineSuffix")(u):r(u)}}const Gz={name:"definition",tokenize:Xz},Yz={partial:!0,tokenize:Kz};function Xz(e,r,i){const a=this;let u;return s;function s(b){return e.enter("definition"),c(b)}function c(b){return ES.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return u=$l(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),m):i(b)}function m(b){return dn(b)?po(e,h)(b):h(b)}function h(b){return CS(e,g,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function g(b){return e.attempt(Yz,y,y)(b)}function y(b){return Ke(b)?yt(e,v,"whitespace")(b):v(b)}function v(b){return b===null||Ae(b)?(e.exit("definition"),a.parser.defined.push(u),r(b)):i(b)}}function Kz(e,r,i){return a;function a(d){return dn(d)?po(e,u)(d):i(d)}function u(d){return TS(e,s,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Ke(d)?yt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Ae(d)?r(d):i(d)}}const Qz={name:"hardBreakEscape",tokenize:Zz};function Zz(e,r,i){return a;function a(s){return e.enter("hardBreakEscape"),e.consume(s),u}function u(s){return Ae(s)?(e.exit("hardBreakEscape"),r(s)):i(s)}}const Wz={name:"headingAtx",resolve:Jz,tokenize:e_};function Jz(e,r){let i=e.length-2,a=3,u,s;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(u={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},s={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},hr(e,a,i-a+1,[["enter",u,r],["enter",s,r],["exit",s,r],["exit",u,r]])),e}function e_(e,r,i){let a=0;return u;function u(g){return e.enter("atxHeading"),s(g)}function s(g){return e.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&a++<6?(e.consume(g),c):g===null||dn(g)?(e.exit("atxHeadingSequence"),d(g)):i(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),m(g)):g===null||Ae(g)?(e.exit("atxHeading"),r(g)):Ke(g)?yt(e,d,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function m(g){return g===35?(e.consume(g),m):(e.exit("atxHeadingSequence"),d(g))}function h(g){return g===null||g===35||dn(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),h)}}const t_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],uv=["pre","script","style","textarea"],n_={concrete:!0,name:"htmlFlow",resolveTo:l_,tokenize:a_},r_={partial:!0,tokenize:u_},i_={partial:!0,tokenize:o_};function l_(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function a_(e,r,i){const a=this;let u,s,c,d,m;return h;function h(A){return g(A)}function g(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),y}function y(A){return A===33?(e.consume(A),v):A===47?(e.consume(A),s=!0,T):A===63?(e.consume(A),u=3,a.interrupt?r:x):sr(A)?(e.consume(A),c=String.fromCharCode(A),D):i(A)}function v(A){return A===45?(e.consume(A),u=2,b):A===91?(e.consume(A),u=5,d=0,w):sr(A)?(e.consume(A),u=4,a.interrupt?r:x):i(A)}function b(A){return A===45?(e.consume(A),a.interrupt?r:x):i(A)}function w(A){const ce="CDATA[";return A===ce.charCodeAt(d++)?(e.consume(A),d===ce.length?a.interrupt?r:q:w):i(A)}function T(A){return sr(A)?(e.consume(A),c=String.fromCharCode(A),D):i(A)}function D(A){if(A===null||A===47||A===62||dn(A)){const ce=A===47,pe=c.toLowerCase();return!ce&&!s&&uv.includes(pe)?(u=1,a.interrupt?r(A):q(A)):t_.includes(c.toLowerCase())?(u=6,ce?(e.consume(A),k):a.interrupt?r(A):q(A)):(u=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(A):s?L(A):R(A))}return A===45||Rn(A)?(e.consume(A),c+=String.fromCharCode(A),D):i(A)}function k(A){return A===62?(e.consume(A),a.interrupt?r:q):i(A)}function L(A){return Ke(A)?(e.consume(A),L):C(A)}function R(A){return A===47?(e.consume(A),C):A===58||A===95||sr(A)?(e.consume(A),O):Ke(A)?(e.consume(A),R):C(A)}function O(A){return A===45||A===46||A===58||A===95||Rn(A)?(e.consume(A),O):M(A)}function M(A){return A===61?(e.consume(A),z):Ke(A)?(e.consume(A),M):R(A)}function z(A){return A===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(e.consume(A),m=A,H):Ke(A)?(e.consume(A),z):$(A)}function H(A){return A===m?(e.consume(A),m=null,F):A===null||Ae(A)?i(A):(e.consume(A),H)}function $(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||dn(A)?M(A):(e.consume(A),$)}function F(A){return A===47||A===62||Ke(A)?R(A):i(A)}function C(A){return A===62?(e.consume(A),P):i(A)}function P(A){return A===null||Ae(A)?q(A):Ke(A)?(e.consume(A),P):i(A)}function q(A){return A===45&&u===2?(e.consume(A),B):A===60&&u===1?(e.consume(A),J):A===62&&u===4?(e.consume(A),Z):A===63&&u===3?(e.consume(A),x):A===93&&u===5?(e.consume(A),ie):Ae(A)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(r_,oe,Q)(A)):A===null||Ae(A)?(e.exit("htmlFlowData"),Q(A)):(e.consume(A),q)}function Q(A){return e.check(i_,ee,oe)(A)}function ee(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),G}function G(A){return A===null||Ae(A)?Q(A):(e.enter("htmlFlowData"),q(A))}function B(A){return A===45?(e.consume(A),x):q(A)}function J(A){return A===47?(e.consume(A),c="",ue):q(A)}function ue(A){if(A===62){const ce=c.toLowerCase();return uv.includes(ce)?(e.consume(A),Z):q(A)}return sr(A)&&c.length<8?(e.consume(A),c+=String.fromCharCode(A),ue):q(A)}function ie(A){return A===93?(e.consume(A),x):q(A)}function x(A){return A===62?(e.consume(A),Z):A===45&&u===2?(e.consume(A),x):q(A)}function Z(A){return A===null||Ae(A)?(e.exit("htmlFlowData"),oe(A)):(e.consume(A),Z)}function oe(A){return e.exit("htmlFlow"),r(A)}}function o_(e,r,i){const a=this;return u;function u(c){return Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):i(c)}function s(c){return a.parser.lazy[a.now().line]?i(c):r(c)}}function u_(e,r,i){return a;function a(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Qs,r,i)}}const s_={name:"htmlText",tokenize:c_};function c_(e,r,i){const a=this;let u,s,c;return d;function d(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),m}function m(x){return x===33?(e.consume(x),h):x===47?(e.consume(x),M):x===63?(e.consume(x),R):sr(x)?(e.consume(x),$):i(x)}function h(x){return x===45?(e.consume(x),g):x===91?(e.consume(x),s=0,w):sr(x)?(e.consume(x),L):i(x)}function g(x){return x===45?(e.consume(x),b):i(x)}function y(x){return x===null?i(x):x===45?(e.consume(x),v):Ae(x)?(c=y,J(x)):(e.consume(x),y)}function v(x){return x===45?(e.consume(x),b):y(x)}function b(x){return x===62?B(x):x===45?v(x):y(x)}function w(x){const Z="CDATA[";return x===Z.charCodeAt(s++)?(e.consume(x),s===Z.length?T:w):i(x)}function T(x){return x===null?i(x):x===93?(e.consume(x),D):Ae(x)?(c=T,J(x)):(e.consume(x),T)}function D(x){return x===93?(e.consume(x),k):T(x)}function k(x){return x===62?B(x):x===93?(e.consume(x),k):T(x)}function L(x){return x===null||x===62?B(x):Ae(x)?(c=L,J(x)):(e.consume(x),L)}function R(x){return x===null?i(x):x===63?(e.consume(x),O):Ae(x)?(c=R,J(x)):(e.consume(x),R)}function O(x){return x===62?B(x):R(x)}function M(x){return sr(x)?(e.consume(x),z):i(x)}function z(x){return x===45||Rn(x)?(e.consume(x),z):H(x)}function H(x){return Ae(x)?(c=H,J(x)):Ke(x)?(e.consume(x),H):B(x)}function $(x){return x===45||Rn(x)?(e.consume(x),$):x===47||x===62||dn(x)?F(x):i(x)}function F(x){return x===47?(e.consume(x),B):x===58||x===95||sr(x)?(e.consume(x),C):Ae(x)?(c=F,J(x)):Ke(x)?(e.consume(x),F):B(x)}function C(x){return x===45||x===46||x===58||x===95||Rn(x)?(e.consume(x),C):P(x)}function P(x){return x===61?(e.consume(x),q):Ae(x)?(c=P,J(x)):Ke(x)?(e.consume(x),P):F(x)}function q(x){return x===null||x===60||x===61||x===62||x===96?i(x):x===34||x===39?(e.consume(x),u=x,Q):Ae(x)?(c=q,J(x)):Ke(x)?(e.consume(x),q):(e.consume(x),ee)}function Q(x){return x===u?(e.consume(x),u=void 0,G):x===null?i(x):Ae(x)?(c=Q,J(x)):(e.consume(x),Q)}function ee(x){return x===null||x===34||x===39||x===60||x===61||x===96?i(x):x===47||x===62||dn(x)?F(x):(e.consume(x),ee)}function G(x){return x===47||x===62||dn(x)?F(x):i(x)}function B(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),r):i(x)}function J(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),ue}function ue(x){return Ke(x)?yt(e,ie,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):ie(x)}function ie(x){return e.enter("htmlTextData"),c(x)}}const Ch={name:"labelEnd",resolveAll:h_,resolveTo:m_,tokenize:g_},f_={tokenize:y_},d_={tokenize:b_},p_={tokenize:v_};function h_(e){let r=-1;const i=[];for(;++r=3&&(h===null||Ae(h))?(e.exit("thematicBreak"),r(h)):i(h)}function m(h){return h===u?(e.consume(h),a++,m):(e.exit("thematicBreakSequence"),Ke(h)?yt(e,d,"whitespace")(h):d(h))}}const fn={continuation:{tokenize:M_},exit:z_,name:"list",tokenize:k_},A_={partial:!0,tokenize:__},R_={partial:!0,tokenize:O_};function k_(e,r,i){const a=this,u=a.events[a.events.length-1];let s=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,c=0;return d;function d(b){const w=a.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||b===a.containerState.marker:wp(b)){if(a.containerState.type||(a.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(cs,i,h)(b):h(b);if(!a.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(b)}return i(b)}function m(b){return wp(b)&&++c<10?(e.consume(b),m):(!a.interrupt||c<2)&&(a.containerState.marker?b===a.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):i(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||b,e.check(Qs,a.interrupt?i:g,e.attempt(A_,v,y))}function g(b){return a.containerState.initialBlankLine=!0,s++,v(b)}function y(b){return Ke(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),v):i(b)}function v(b){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(b)}}function M_(e,r,i){const a=this;return a.containerState._closeFlow=void 0,e.check(Qs,u,s);function u(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,yt(e,r,"listItemIndent",a.containerState.size+1)(d)}function s(d){return a.containerState.furtherBlankLines||!Ke(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(R_,r,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,yt(e,e.attempt(fn,r,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function O_(e,r,i){const a=this;return yt(e,u,"listItemIndent",a.containerState.size+1);function u(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?r(s):i(s)}}function z_(e){e.exit(this.containerState.type)}function __(e,r,i){const a=this;return yt(e,u,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(s){const c=a.events[a.events.length-1];return!Ke(s)&&c&&c[1].type==="listItemPrefixWhitespace"?r(s):i(s)}}const sv={name:"setextUnderline",resolveTo:D_,tokenize:N_};function D_(e,r){let i=e.length,a,u,s;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(u=i)}else e[i][1].type==="content"&&e.splice(i,1),!s&&e[i][1].type==="definition"&&(s=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",s?(e.splice(u,0,["enter",c,r]),e.splice(s+1,0,["exit",e[a][1],r]),e[a][1].end={...e[s][1].end}):e[a][1]=c,e.push(["exit",c,r]),e}function N_(e,r,i){const a=this;let u;return s;function s(h){let g=a.events.length,y;for(;g--;)if(a.events[g][1].type!=="lineEnding"&&a.events[g][1].type!=="linePrefix"&&a.events[g][1].type!=="content"){y=a.events[g][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||y)?(e.enter("setextHeadingLine"),u=h,c(h)):i(h)}function c(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===u?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),Ke(h)?yt(e,m,"lineSuffix")(h):m(h))}function m(h){return h===null||Ae(h)?(e.exit("setextHeadingLine"),r(h)):i(h)}}const B_={tokenize:L_};function L_(e){const r=this,i=e.attempt(Qs,a,e.attempt(this.parser.constructs.flowInitial,u,yt(e,e.attempt(this.parser.constructs.flow,u,e.attempt($z,u)),"linePrefix")));return i;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function u(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r.currentConstruct=void 0,i}}const U_={resolveAll:AS()},P_=wS("string"),j_=wS("text");function wS(e){return{resolveAll:AS(e==="text"?H_:void 0),tokenize:r};function r(i){const a=this,u=this.parser.constructs[e],s=i.attempt(u,c,d);return c;function c(g){return h(g)?s(g):d(g)}function d(g){if(g===null){i.consume(g);return}return i.enter("data"),i.consume(g),m}function m(g){return h(g)?(i.exit("data"),s(g)):(i.consume(g),m)}function h(g){if(g===null)return!0;const y=u[g];let v=-1;if(y)for(;++v-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}s>0&&c.push(e[u].slice(0,s))}return c}function J_(e,r){let i=-1;const a=[];let u;for(;++i0){const Le=de.tokenStack[de.tokenStack.length-1];(Le[1]||fv).call(de,void 0,Le[0])}for(re.position={start:si(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:si(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(r,m);const h={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(r,h),e.applyData(r,h)}function g3(e,r){const i={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function y3(e,r){if(e.options.allowDangerousHtml){const i={type:"raw",value:r.value};return e.patch(r,i),e.applyData(r,i)}}function MS(e,r){const i=r.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+a}];const u=e.all(r),s=u[0];s&&s.type==="text"?s.value="["+s.value:u.unshift({type:"text",value:"["});const c=u[u.length-1];return c&&c.type==="text"?c.value+=a:u.push({type:"text",value:a}),u}function b3(e,r){const i=String(r.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return MS(e,r);const u={src:Kl(a.url||""),alt:r.alt};a.title!==null&&a.title!==void 0&&(u.title=a.title);const s={type:"element",tagName:"img",properties:u,children:[]};return e.patch(r,s),e.applyData(r,s)}function v3(e,r){const i={src:Kl(r.url)};r.alt!==null&&r.alt!==void 0&&(i.alt=r.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(r,a),e.applyData(r,a)}function S3(e,r){const i={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(r,a),e.applyData(r,a)}function x3(e,r){const i=String(r.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return MS(e,r);const u={href:Kl(a.url||"")};a.title!==null&&a.title!==void 0&&(u.title=a.title);const s={type:"element",tagName:"a",properties:u,children:e.all(r)};return e.patch(r,s),e.applyData(r,s)}function C3(e,r){const i={href:Kl(r.url)};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function E3(e,r,i){const a=e.all(r),u=i?T3(i):OS(r),s={},c=[];if(typeof r.checked=="boolean"){const g=a[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},a.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d1}function w3(e,r){const i={},a=e.all(r);let u=-1;for(typeof r.start=="number"&&r.start!==1&&(i.start=r.start);++u0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=gh(r.children[1]),m=cS(r.children[r.children.length-1]);d&&m&&(c.position={start:d,end:m}),u.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(u,!0)};return e.patch(r,s),e.applyData(r,s)}function O3(e,r,i){const a=i?i.children:void 0,s=(a?a.indexOf(r):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,d=c?c.length:r.children.length;let m=-1;const h=[];for(;++m0,!0),a[0]),u=a.index+a[0].length,a=i.exec(r);return s.push(hv(r.slice(u),u>0,!1)),s.join("")}function hv(e,r,i){let a=0,u=e.length;if(r){let s=e.codePointAt(a);for(;s===dv||s===pv;)a++,s=e.codePointAt(a)}if(i){let s=e.codePointAt(u-1);for(;s===dv||s===pv;)u--,s=e.codePointAt(u-1)}return u>a?e.slice(a,u):""}function D3(e,r){const i={type:"text",value:_3(String(r.value))};return e.patch(r,i),e.applyData(r,i)}function N3(e,r){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,i),e.applyData(r,i)}const B3={blockquote:c3,break:f3,code:d3,delete:p3,emphasis:h3,footnoteReference:m3,heading:g3,html:y3,imageReference:b3,image:v3,inlineCode:S3,linkReference:x3,link:C3,listItem:E3,list:w3,paragraph:A3,root:R3,strong:k3,table:M3,tableCell:z3,tableRow:O3,text:D3,thematicBreak:N3,toml:ns,yaml:ns,definition:ns,footnoteDefinition:ns};function ns(){}const zS=-1,Zs=0,ho=1,Ts=2,Eh=3,Th=4,wh=5,Ah=6,_S=7,DS=8,mv=typeof self=="object"?self:globalThis,L3=(e,r)=>{const i=(u,s)=>(e.set(s,u),u),a=u=>{if(e.has(u))return e.get(u);const[s,c]=r[u];switch(s){case Zs:case zS:return i(c,u);case ho:{const d=i([],u);for(const m of c)d.push(a(m));return d}case Ts:{const d=i({},u);for(const[m,h]of c)d[a(m)]=a(h);return d}case Eh:return i(new Date(c),u);case Th:{const{source:d,flags:m}=c;return i(new RegExp(d,m),u)}case wh:{const d=i(new Map,u);for(const[m,h]of c)d.set(a(m),a(h));return d}case Ah:{const d=i(new Set,u);for(const m of c)d.add(a(m));return d}case _S:{const{name:d,message:m}=c;return i(new mv[d](m),u)}case DS:return i(BigInt(c),u);case"BigInt":return i(Object(BigInt(c)),u);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return i(new DataView(d),c)}}return i(new mv[s](c),u)};return a},gv=e=>L3(new Map,e)(0),Bl="",{toString:U3}={},{keys:P3}=Object,no=e=>{const r=typeof e;if(r!=="object"||!e)return[Zs,r];const i=U3.call(e).slice(8,-1);switch(i){case"Array":return[ho,Bl];case"Object":return[Ts,Bl];case"Date":return[Eh,Bl];case"RegExp":return[Th,Bl];case"Map":return[wh,Bl];case"Set":return[Ah,Bl];case"DataView":return[ho,i]}return i.includes("Array")?[ho,i]:i.includes("Error")?[_S,i]:[Ts,i]},rs=([e,r])=>e===Zs&&(r==="function"||r==="symbol"),j3=(e,r,i,a)=>{const u=(c,d)=>{const m=a.push(c)-1;return i.set(d,m),m},s=c=>{if(i.has(c))return i.get(c);let[d,m]=no(c);switch(d){case Zs:{let g=c;switch(m){case"bigint":d=DS,g=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);g=null;break;case"undefined":return u([zS],c)}return u([d,g],c)}case ho:{if(m){let v=c;return m==="DataView"?v=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(c)),u([m,[...v]],c)}const g=[],y=u([d,g],c);for(const v of c)g.push(s(v));return y}case Ts:{if(m)switch(m){case"BigInt":return u([m,c.toString()],c);case"Boolean":case"Number":case"String":return u([m,c.valueOf()],c)}if(r&&"toJSON"in c)return s(c.toJSON());const g=[],y=u([d,g],c);for(const v of P3(c))(e||!rs(no(c[v])))&&g.push([s(v),s(c[v])]);return y}case Eh:return u([d,c.toISOString()],c);case Th:{const{source:g,flags:y}=c;return u([d,{source:g,flags:y}],c)}case wh:{const g=[],y=u([d,g],c);for(const[v,b]of c)(e||!(rs(no(v))||rs(no(b))))&&g.push([s(v),s(b)]);return y}case Ah:{const g=[],y=u([d,g],c);for(const v of c)(e||!rs(no(v)))&&g.push(s(v));return y}}const{message:h}=c;return u([d,{name:m,message:h}],c)};return s},yv=(e,{json:r,lossy:i}={})=>{const a=[];return j3(!(r||i),!!r,new Map,a)(e),a},ws=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?gv(yv(e,r)):structuredClone(e):(e,r)=>gv(yv(e,r));function H3(e,r){const i=[{type:"text",value:"↩"}];return r>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),i}function $3(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function I3(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||H3,a=e.options.footnoteBackLabel||$3,u=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m0&&w.push({type:"text",value:" "});let L=typeof i=="string"?i:i(m,b);typeof L=="string"&&(L={type:"text",value:L}),w.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(m,b),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const D=g[g.length-1];if(D&&D.type==="element"&&D.tagName==="p"){const L=D.children[D.children.length-1];L&&L.type==="text"?L.value+=" ":D.children.push({type:"text",value:" "}),D.children.push(...w)}else g.push(...w);const k={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:e.wrap(g,!0)};e.patch(h,k),d.push(k)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ws(c),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
-`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
-`}]}}const NS=function(e){if(e==null)return G3;if(typeof e=="function")return Ws(e);if(typeof e=="object")return Array.isArray(e)?q3(e):V3(e);if(typeof e=="string")return F3(e);throw new Error("Expected function, string, or object as test")};function q3(e){const r=[];let i=-1;for(;++i":""))+")"})}return v;function v(){let b=BS,w,T,D;if((!r||s(m,h,g[g.length-1]||void 0))&&(b=Z3(i(m,g)),b[0]===bv))return b;if("children"in m&&m.children){const k=m;if(k.children&&b[0]!==K3)for(T=(a?k.children.length:-1)+c,D=g.concat(k);T>-1&&T0&&i.push({type:"text",value:`
-`}),i}function vv(e){let r=0,i=e.charCodeAt(r);for(;i===9||i===32;)r++,i=e.charCodeAt(r);return e.slice(r)}function Sv(e,r){const i=J3(e,r),a=i.one(e,void 0),u=I3(i),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return u&&s.children.push({type:"text",value:`
-`},u),s}function i5(e,r){return e&&"run"in e?async function(i,a){const u=Sv(i,{file:a,...r});await e.run(u,a)}:function(i,a){return Sv(i,{file:a,...e||r})}}function xv(e){if(e)throw e}var Pd,Cv;function l5(){if(Cv)return Pd;Cv=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},s=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!y)return!1;var v;for(v in h);return typeof v>"u"||e.call(h,v)},c=function(h,g){i&&g.name==="__proto__"?i(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},d=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(a)return a(h,g).value}else return;return h[g]};return Pd=function m(){var h,g,y,v,b,w,T=arguments[0],D=1,k=arguments.length,L=!1;for(typeof T=="boolean"&&(L=T,T=arguments[1]||{},D=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});Dc.length;let m;d&&c.push(u);try{m=e.apply(this,c)}catch(h){const g=h;if(d&&i)throw g;return u(g)}d||(m&&m.then&&typeof m.then=="function"?m.then(s,u):m instanceof Error?u(m):s(m))}function u(c,...d){i||(i=!0,r(c,...d))}function s(c){u(null,c)}}const rr={basename:s5,dirname:c5,extname:f5,join:d5,sep:"/"};function s5(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Do(e);let i=0,a=-1,u=e.length,s;if(r===void 0||r.length===0||r.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(s){i=u+1;break}}else a<0&&(s=!0,a=u+1);return a<0?"":e.slice(i,a)}if(r===e)return"";let c=-1,d=r.length-1;for(;u--;)if(e.codePointAt(u)===47){if(s){i=u+1;break}}else c<0&&(s=!0,c=u+1),d>-1&&(e.codePointAt(u)===r.codePointAt(d--)?d<0&&(a=u):(d=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function c5(e){if(Do(e),e.length===0)return".";let r=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){r=i;break}}else a||(a=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function f5(e){Do(e);let r=e.length,i=-1,a=0,u=-1,s=0,c;for(;r--;){const d=e.codePointAt(r);if(d===47){if(c){a=r+1;break}continue}i<0&&(c=!0,i=r+1),d===46?u<0?u=r:s!==1&&(s=1):u>-1&&(s=-1)}return u<0||i<0||s===0||s===1&&u===i-1&&u===a+1?"":e.slice(u,i)}function d5(...e){let r=-1,i;for(;++r0&&e.codePointAt(e.length-1)===47&&(i+="/"),r?"/"+i:i}function h5(e,r){let i="",a=0,u=-1,s=0,c=-1,d,m;for(;++c<=e.length;){if(c2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",a=0):(i=i.slice(0,m),a=i.length-1-i.lastIndexOf("/")),u=c,s=0;continue}}else if(i.length>0){i="",a=0,u=c,s=0;continue}}r&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(u+1,c):i=e.slice(u+1,c),a=c-u-1;u=c,s=0}else d===46&&s>-1?s++:s=-1}return i}function Do(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const m5={cwd:g5};function g5(){return"/"}function Mp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function y5(e){if(typeof e=="string")e=new URL(e);else if(!Mp(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return b5(e)}function b5(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const r=e.pathname;let i=-1;for(;++i0){let[b,...w]=g;const T=a[v][1];kp(T)&&kp(b)&&(b=jd(!0,T,b)),a[v]=[h,b,...w]}}}}const C5=new Rh().freeze();function qd(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Vd(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Fd(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tv(e){if(!kp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function wv(e,r,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function is(e){return E5(e)?e:new US(e)}function E5(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function T5(e){return typeof e=="string"||w5(e)}function w5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const A5="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Av=[],Rv={allowDangerousHtml:!0},R5=/^(https?|ircs?|mailto|xmpp)$/i,k5=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function M5(e){const r=O5(e),i=z5(e);return _5(r.runSync(r.parse(i),i),e)}function O5(e){const r=e.rehypePlugins||Av,i=e.remarkPlugins||Av,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Rv}:Rv;return C5().use(s3).use(i).use(i5,a).use(r)}function z5(e){const r=e.children||"",i=new US;return typeof r=="string"&&(i.value=r),i}function _5(e,r){const i=r.allowedElements,a=r.allowElement,u=r.components,s=r.disallowedElements,c=r.skipHtml,d=r.unwrapDisallowed,m=r.urlTransform||D5;for(const g of k5)Object.hasOwn(r,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+A5+g.id,void 0);return LS(e,h),IO(e,{Fragment:K.Fragment,components:u,ignoreInvalidStyle:!0,jsx:K.jsx,jsxs:K.jsxs,passKeys:!0,passNode:!0});function h(g,y,v){if(g.type==="raw"&&v&&typeof y=="number")return c?v.children.splice(y,1):v.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let b;for(b in Bd)if(Object.hasOwn(Bd,b)&&Object.hasOwn(g.properties,b)){const w=g.properties[b],T=Bd[b];(T===null||T.includes(g.tagName))&&(g.properties[b]=m(String(w||""),b,g))}}if(g.type==="element"){let b=i?!i.includes(g.tagName):s?s.includes(g.tagName):!1;if(!b&&a&&typeof y=="number"&&(b=!a(g,y,v)),b&&v&&typeof y=="number")return d&&g.children?v.children.splice(y,1,...g.children):v.children.splice(y,1),y}}}function D5(e){const r=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),u=e.indexOf("/");return r===-1||u!==-1&&r>u||i!==-1&&r>i||a!==-1&&r>a||R5.test(e.slice(0,r))?e:""}async function N5(){if(!("gpu"in navigator))return"WebGPU is NOT supported on this browser.";const e=await navigator.gpu.requestAdapter();if(!e)return"WebGPU Adapter not found.";const r=await e.requestDevice();if(!r)return"WebGPU Device not available.";if(!e.features.has("shader-f16"))return'WebGPU "shader-f16" feature is NOT supported on this device.';const i=`
- @compute @workgroup_size(1)
- fn main() {
- // simple no-op compute shader
- }
- `;try{const u=await r.createShaderModule({code:i}).getCompilationInfo();return u.messages.some(s=>s.type==="error")?"ShaderModule compilation errors:"+JSON.stringify(u.messages):(console.log("ShaderModule compiled successfully. WebGPU is working."),!0)}catch(a){return"ShaderModule creation failed:"+JSON.stringify(a)}}const kv="Llama-3.2-1B-Instruct-q4f16_1-MLC",Mv=664;function B5(){const{downloadStatus:e,messageHistory:r,criticalError:i}=dT(y=>y.llm),a=fT(),[u,s]=_.useState(""),[c,d]=_.useState(!1),[m,h]=_.useState(!1);_.useEffect(()=>{N5().then(y=>{y!==!0&&a(Ul("WebGPU error: "+y))}),"caches"in window||a(Ul("Cache API is not supported in your browser")),navigator.storage&&navigator.storage.estimate?navigator.storage.estimate().then(y=>{if(y){const v=(y.quota-y.usage)/1024/1024;!c&&v>10&&vh(!0)))},[]);function g(y){y.preventDefault(),hT(u),s("")}return K.jsxs($A,{theme:L5,children:[K.jsx(Rk,{}),K.jsx(FR,{position:"static",children:K.jsx(oO,{sx:{maxWidth:"1200px !important",margin:"0 auto"},children:K.jsx(Zu,{variant:"h6",component:"div",sx:{flexGrow:1},children:"BrowserLLM"})})}),K.jsxs(Ck,{sx:{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center",paddingBottom:"100px",maxWidth:"1200px !important"},children:[K.jsx("h1",{children:"Browser LLM demo working on JavaScript and WebGPU"}),K.jsxs(Ju,{sx:{flexGrow:1,overflowY:"auto",py:2},children:[!c&&!m&&!i&&K.jsx(Ju,{sx:{textAlign:"center",mb:2},children:K.jsxs(xk,{variant:"contained",color:"primary",onClick:()=>N0(kv).then(()=>h(!0)),children:["Download Model (",Mv,"MB)"]})}),K.jsxs(Zu,{children:["Loading model: ",e]}),i&&K.jsx(Zu,{color:"error",sx:{mb:2},children:i}),K.jsx(Ju,{sx:{display:"flex",flexDirection:"column",gap:2},children:r.map((y,v)=>K.jsxs(xs,{sx:{p:1.5,maxWidth:"80%",alignSelf:y.role==="user"?"flex-end":"flex-start",bgcolor:y.role==="user"?"primary.main":"background.paper"},children:[K.jsxs(Zu,{variant:"body2",sx:{color:"text.secondary",mb:.5},children:[y.role,":"]}),K.jsx(M5,{children:y.content})]},v))})]}),!i&&K.jsx(Ju,{sx:{position:r.length>0?"fixed":"static",bottom:r.length>0?0:"auto",left:0,right:0,bgcolor:"background.default",p:2},children:K.jsxs(xs,{component:"form",onSubmit:g,sx:{p:"2px 4px",display:m?"flex":"none",alignItems:"center",mx:"auto",width:"100%",maxWidth:"1200px"},children:[K.jsx(dO,{fullWidth:!0,variant:"standard",value:u,onChange:y=>s(y.target.value),placeholder:"Type your message...",sx:{ml:1,flex:1},InputProps:{disableUnderline:!0}}),K.jsx(LR,{type:"submit",sx:{p:"10px"},"aria-label":"send",children:K.jsx(pO,{})})]})})]}),K.jsx("a",{className:"github-fork-ribbon",target:"_blank",href:"https://github.com/andreinwald/browser-llm","data-ribbon":"Fork me on GitHub",title:"Fork me on GitHub",children:"Fork me on GitHub"})]})}const L5=Fs({palette:{mode:"dark",background:{default:"#333",paper:"#444"},primary:{main:"#90caf9"},secondary:{main:"#f48fb1"}}});var Gd={exports:{}},ro={},Yd={exports:{}},Xd={};/**
- * @license React
- * scheduler.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Ov;function U5(){return Ov||(Ov=1,function(e){function r(B,J){var ue=B.length;B.push(J);e:for(;0>>1,x=B[ie];if(0>>1;ieu(A,ue))ceu(pe,A)?(B[ie]=pe,B[ce]=ue,ie=ce):(B[ie]=A,B[oe]=ue,ie=oe);else if(ceu(pe,ue))B[ie]=pe,B[ce]=ue,ie=ce;else break e}}return J}function u(B,J){var ue=B.sortIndex-J.sortIndex;return ue!==0?ue:B.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var m=[],h=[],g=1,y=null,v=3,b=!1,w=!1,T=!1,D=!1,k=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function O(B){for(var J=i(h);J!==null;){if(J.callback===null)a(h);else if(J.startTime<=B)a(h),J.sortIndex=J.expirationTime,r(m,J);else break;J=i(h)}}function M(B){if(T=!1,O(B),!w)if(i(m)!==null)w=!0,z||(z=!0,q());else{var J=i(h);J!==null&&G(M,J.startTime-B)}}var z=!1,H=-1,$=5,F=-1;function C(){return D?!0:!(e.unstable_now()-F<$)}function P(){if(D=!1,z){var B=e.unstable_now();F=B;var J=!0;try{e:{w=!1,T&&(T=!1,L(H),H=-1),b=!0;var ue=v;try{t:{for(O(B),y=i(m);y!==null&&!(y.expirationTime>B&&C());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,v=y.priorityLevel;var x=ie(y.expirationTime<=B);if(B=e.unstable_now(),typeof x=="function"){y.callback=x,O(B),J=!0;break t}y===i(m)&&a(m),O(B)}else a(m);y=i(m)}if(y!==null)J=!0;else{var Z=i(h);Z!==null&&G(M,Z.startTime-B),J=!1}}break e}finally{y=null,v=ue,b=!1}J=void 0}}finally{J?q():z=!1}}}var q;if(typeof R=="function")q=function(){R(P)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,ee=Q.port2;Q.port1.onmessage=P,q=function(){ee.postMessage(null)}}else q=function(){k(P,0)};function G(B,J){H=k(function(){B(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125ie?(B.sortIndex=ue,r(h,B),i(m)===null&&B===i(h)&&(T?(L(H),H=-1):T=!0,G(M,ue-ie))):(B.sortIndex=x,r(m,B),w||b||(w=!0,z||(z=!0,q()))),B},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(B){var J=v;return function(){var ue=v;v=J;try{return B.apply(this,arguments)}finally{v=ue}}}}(Xd)),Xd}var zv;function P5(){return zv||(zv=1,Yd.exports=U5()),Yd.exports}/**
- * @license React
- * react-dom-client.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var _v;function j5(){if(_v)return ro;_v=1;var e=P5(),r=zs(),i=U1();function a(t){var n="https://react.dev/errors/"+t;if(1x||(t.current=ie[x],ie[x]=null,x--)}function A(t,n){x++,ie[x]=t.current,t.current=n}var ce=Z(null),pe=Z(null),fe=Z(null),Re=Z(null);function Ee(t,n){switch(A(fe,n),A(pe,t),A(ce,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Vy(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Vy(n),t=Fy(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}oe(ce),A(ce,t)}function ze(){oe(ce),oe(pe),oe(fe)}function Se(t){t.memoizedState!==null&&A(Re,t);var n=ce.current,l=Fy(n,t.type);n!==l&&(A(pe,t),A(ce,l))}function Me(t){pe.current===t&&(oe(ce),oe(pe)),Re.current===t&&(oe(Re),$a._currentValue=ue)}var je=Object.prototype.hasOwnProperty,bt=e.unstable_scheduleCallback,Oe=e.unstable_cancelCallback,qe=e.unstable_shouldYield,zt=e.unstable_requestPaint,Ve=e.unstable_now,pt=e.unstable_getCurrentPriorityLevel,tt=e.unstable_ImmediatePriority,ht=e.unstable_UserBlockingPriority,Qe=e.unstable_NormalPriority,ye=e.unstable_LowPriority,rn=e.unstable_IdlePriority,vt=e.log,gn=e.unstable_setDisableYieldValue,W=null,re=null;function de(t){if(typeof vt=="function"&&gn(t),re&&typeof re.setStrictMode=="function")try{re.setStrictMode(W,t)}catch{}}var he=Math.clz32?Math.clz32:Kt,De=Math.log,Le=Math.LN2;function Kt(t){return t>>>=0,t===0?32:31-(De(t)/Le|0)|0}var Lt=256,yn=4194304;function ge(t){var n=t&42;if(n!==0)return n;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ke(t,n,l){var o=t.pendingLanes;if(o===0)return 0;var f=0,p=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var E=o&134217727;return E!==0?(o=E&~p,o!==0?f=ge(o):(S&=E,S!==0?f=ge(S):l||(l=E&~t,l!==0&&(f=ge(l))))):(E=o&~p,E!==0?f=ge(E):S!==0?f=ge(S):l||(l=o&~t,l!==0&&(f=ge(l)))),f===0?0:n!==0&&n!==f&&(n&p)===0&&(p=f&-f,l=n&-n,p>=l||p===32&&(l&4194048)!==0)?n:f}function Ze(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function jt(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ql(){var t=Lt;return Lt<<=1,(Lt&4194048)===0&&(Lt=256),t}function kh(){var t=yn;return yn<<=1,(yn&62914560)===0&&(yn=4194304),t}function Js(t){for(var n=[],l=0;31>l;l++)n.push(t);return n}function Zl(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function PS(t,n,l,o,f,p){var S=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var E=t.entanglements,N=t.expirationTimes,V=t.hiddenUpdates;for(l=S&~l;0)":-1f||N[o]!==V[f]){var ne=`
-`+N[o].replace(" at new "," at ");return t.displayName&&ne.includes("")&&(ne=ne.replace("",t.displayName)),ne}while(1<=o&&0<=f);break}}}finally{lc=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Xi(l):""}function VS(t){switch(t.tag){case 26:case 27:case 5:return Xi(t.type);case 16:return Xi("Lazy");case 13:return Xi("Suspense");case 19:return Xi("SuspenseList");case 0:case 15:return ac(t.type,!1);case 11:return ac(t.type.render,!1);case 1:return ac(t.type,!0);case 31:return Xi("Activity");default:return""}}function Ph(t){try{var n="";do n+=VS(t),t=t.return;while(t);return n}catch(l){return`
-Error generating stack: `+l.message+`
-`+l.stack}}function zn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function jh(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function FS(t){var n=jh(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),o=""+t[n];if(!t.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,p=l.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return f.call(this)},set:function(S){o=""+S,p.call(this,S)}}),Object.defineProperty(t,n,{enumerable:l.enumerable}),{getValue:function(){return o},setValue:function(S){o=""+S},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Lo(t){t._valueTracker||(t._valueTracker=FS(t))}function Hh(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var l=n.getValue(),o="";return t&&(o=jh(t)?t.checked?"true":"false":t.value),t=o,t!==l?(n.setValue(t),!0):!1}function Uo(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var GS=/[\n"\\]/g;function _n(t){return t.replace(GS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function oc(t,n,l,o,f,p,S,E){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),n!=null?S==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+zn(n)):t.value!==""+zn(n)&&(t.value=""+zn(n)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),n!=null?uc(t,S,zn(n)):l!=null?uc(t,S,zn(l)):o!=null&&t.removeAttribute("value"),f==null&&p!=null&&(t.defaultChecked=!!p),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?t.name=""+zn(E):t.removeAttribute("name")}function $h(t,n,l,o,f,p,S,E){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),n!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||n!=null))return;l=l!=null?""+zn(l):"",n=n!=null?""+zn(n):l,E||n===t.value||(t.value=n),t.defaultValue=n}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=E?t.checked:!!o,t.defaultChecked=!!o,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S)}function uc(t,n,l){n==="number"&&Uo(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Ki(t,n,l,o){if(t=t.options,n){n={};for(var f=0;f"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pc=!1;if(yr)try{var ta={};Object.defineProperty(ta,"passive",{get:function(){pc=!0}}),window.addEventListener("test",ta,ta),window.removeEventListener("test",ta,ta)}catch{pc=!1}var Hr=null,hc=null,jo=null;function Xh(){if(jo)return jo;var t,n=hc,l=n.length,o,f="value"in Hr?Hr.value:Hr.textContent,p=f.length;for(t=0;t=ia),em=" ",tm=!1;function nm(t,n){switch(t){case"keyup":return Sx.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ji=!1;function Cx(t,n){switch(t){case"compositionend":return rm(n);case"keypress":return n.which!==32?null:(tm=!0,em);case"textInput":return t=n.data,t===em&&tm?null:t;default:return null}}function Ex(t,n){if(Ji)return t==="compositionend"||!vc&&nm(t,n)?(t=Xh(),jo=hc=Hr=null,Ji=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:l,offset:n-t};t=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=fm(l)}}function pm(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?pm(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function hm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Uo(t.document);n instanceof t.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)t=n.contentWindow;else break;n=Uo(t.document)}return n}function Cc(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var zx=yr&&"documentMode"in document&&11>=document.documentMode,el=null,Ec=null,ua=null,Tc=!1;function mm(t,n,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Tc||el==null||el!==Uo(o)||(o=el,"selectionStart"in o&&Cc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ua&&oa(ua,o)||(ua=o,o=Mu(Ec,"onSelect"),0>=S,f-=S,vr=1<<32-he(n)+f|l<p?p:8;var S=B.T,E={};B.T=E,cf(t,!1,n,l);try{var N=f(),V=B.S;if(V!==null&&V(E,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var ne=Hx(N,o);Ea(t,n,ne,En(t))}else Ea(t,n,o,En(t))}catch(ae){Ea(t,n,{then:function(){},status:"rejected",reason:ae},En())}finally{J.p=p,B.T=S}}function Fx(){}function uf(t,n,l,o){if(t.tag!==5)throw Error(a(476));var f=gg(t).queue;mg(t,f,n,ue,l===null?Fx:function(){return yg(t),l(o)})}function gg(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:ue},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:l},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function yg(t){var n=gg(t).next.queue;Ea(t,n,{},En())}function sf(){return Zt($a)}function bg(){return Dt().memoizedState}function vg(){return Dt().memoizedState}function Gx(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var l=En();t=qr(l);var o=Vr(n,t,l);o!==null&&(Tn(o,n,l),ya(o,n,l)),n={cache:Pc()},t.payload=n;return}n=n.return}}function Yx(t,n,l){var o=En();l={lane:o,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},su(t)?xg(n,l):(l=kc(t,n,l,o),l!==null&&(Tn(l,t,o),Cg(l,n,o)))}function Sg(t,n,l){var o=En();Ea(t,n,l,o)}function Ea(t,n,l,o){var f={lane:o,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(su(t))xg(n,f);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var S=n.lastRenderedState,E=p(S,l);if(f.hasEagerState=!0,f.eagerState=E,bn(E,S))return Go(t,n,f,0),mt===null&&Fo(),!1}catch{}finally{}if(l=kc(t,n,f,o),l!==null)return Tn(l,t,o),Cg(l,n,o),!0}return!1}function cf(t,n,l,o){if(o={lane:2,revertLane:If(),action:o,hasEagerState:!1,eagerState:null,next:null},su(t)){if(n)throw Error(a(479))}else n=kc(t,l,o,2),n!==null&&Tn(n,t,2)}function su(t){var n=t.alternate;return t===Ue||n!==null&&n===Ue}function xg(t,n){cl=ru=!0;var l=t.pending;l===null?n.next=n:(n.next=l.next,l.next=n),t.pending=n}function Cg(t,n,l){if((l&4194048)!==0){var o=n.lanes;o&=t.pendingLanes,l|=o,n.lanes=l,Oh(t,l)}}var cu={readContext:Zt,use:lu,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt},Eg={readContext:Zt,use:lu,useCallback:function(t,n){return un().memoizedState=[t,n===void 0?null:n],t},useContext:Zt,useEffect:ag,useImperativeHandle:function(t,n,l){l=l!=null?l.concat([t]):null,uu(4194308,4,cg.bind(null,n,t),l)},useLayoutEffect:function(t,n){return uu(4194308,4,t,n)},useInsertionEffect:function(t,n){uu(4,2,t,n)},useMemo:function(t,n){var l=un();n=n===void 0?null:n;var o=t();if(Ri){de(!0);try{t()}finally{de(!1)}}return l.memoizedState=[o,n],o},useReducer:function(t,n,l){var o=un();if(l!==void 0){var f=l(n);if(Ri){de(!0);try{l(n)}finally{de(!1)}}}else f=n;return o.memoizedState=o.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},o.queue=t,t=t.dispatch=Yx.bind(null,Ue,t),[o.memoizedState,t]},useRef:function(t){var n=un();return t={current:t},n.memoizedState=t},useState:function(t){t=rf(t);var n=t.queue,l=Sg.bind(null,Ue,n);return n.dispatch=l,[t.memoizedState,l]},useDebugValue:af,useDeferredValue:function(t,n){var l=un();return of(l,t,n)},useTransition:function(){var t=rf(!1);return t=mg.bind(null,Ue,t.queue,!0,!1),un().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,l){var o=Ue,f=un();if(Ge){if(l===void 0)throw Error(a(407));l=l()}else{if(l=n(),mt===null)throw Error(a(349));(Ie&124)!==0||Vm(o,n,l)}f.memoizedState=l;var p={value:l,getSnapshot:n};return f.queue=p,ag(Gm.bind(null,o,p,t),[t]),o.flags|=2048,dl(9,ou(),Fm.bind(null,o,p,l,n),null),l},useId:function(){var t=un(),n=mt.identifierPrefix;if(Ge){var l=Sr,o=vr;l=(o&~(1<<32-he(o)-1)).toString(32)+l,n="«"+n+"R"+l,l=iu++,0Te?(qt=be,be=null):qt=be.sibling;var Fe=Y(j,be,I[Te],le);if(Fe===null){be===null&&(be=qt);break}t&&be&&Fe.alternate===null&&n(j,be),U=p(Fe,U,Te),Pe===null?me=Fe:Pe.sibling=Fe,Pe=Fe,be=qt}if(Te===I.length)return l(j,be),Ge&&xi(j,Te),me;if(be===null){for(;TeTe?(qt=be,be=null):qt=be.sibling;var oi=Y(j,be,Fe.value,le);if(oi===null){be===null&&(be=qt);break}t&&be&&oi.alternate===null&&n(j,be),U=p(oi,U,Te),Pe===null?me=oi:Pe.sibling=oi,Pe=oi,be=qt}if(Fe.done)return l(j,be),Ge&&xi(j,Te),me;if(be===null){for(;!Fe.done;Te++,Fe=I.next())Fe=ae(j,Fe.value,le),Fe!==null&&(U=p(Fe,U,Te),Pe===null?me=Fe:Pe.sibling=Fe,Pe=Fe);return Ge&&xi(j,Te),me}for(be=o(be);!Fe.done;Te++,Fe=I.next())Fe=X(be,j,Te,Fe.value,le),Fe!==null&&(t&&Fe.alternate!==null&&be.delete(Fe.key===null?Te:Fe.key),U=p(Fe,U,Te),Pe===null?me=Fe:Pe.sibling=Fe,Pe=Fe);return t&&be.forEach(function(KC){return n(j,KC)}),Ge&&xi(j,Te),me}function it(j,U,I,le){if(typeof I=="object"&&I!==null&&I.type===w&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case v:e:{for(var me=I.key;U!==null;){if(U.key===me){if(me=I.type,me===w){if(U.tag===7){l(j,U.sibling),le=f(U,I.props.children),le.return=j,j=le;break e}}else if(U.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===$&&wg(me)===U.type){l(j,U.sibling),le=f(U,I.props),wa(le,I),le.return=j,j=le;break e}l(j,U);break}else n(j,U);U=U.sibling}I.type===w?(le=vi(I.props.children,j.mode,le,I.key),le.return=j,j=le):(le=Xo(I.type,I.key,I.props,null,j.mode,le),wa(le,I),le.return=j,j=le)}return S(j);case b:e:{for(me=I.key;U!==null;){if(U.key===me)if(U.tag===4&&U.stateNode.containerInfo===I.containerInfo&&U.stateNode.implementation===I.implementation){l(j,U.sibling),le=f(U,I.children||[]),le.return=j,j=le;break e}else{l(j,U);break}else n(j,U);U=U.sibling}le=zc(I,j.mode,le),le.return=j,j=le}return S(j);case $:return me=I._init,I=me(I._payload),it(j,U,I,le)}if(G(I))return we(j,U,I,le);if(q(I)){if(me=q(I),typeof me!="function")throw Error(a(150));return I=me.call(I),Ce(j,U,I,le)}if(typeof I.then=="function")return it(j,U,fu(I),le);if(I.$$typeof===R)return it(j,U,Wo(j,I),le);du(j,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,U!==null&&U.tag===6?(l(j,U.sibling),le=f(U,I),le.return=j,j=le):(l(j,U),le=Oc(I,j.mode,le),le.return=j,j=le),S(j)):l(j,U)}return function(j,U,I,le){try{Ta=0;var me=it(j,U,I,le);return pl=null,me}catch(be){if(be===ma||be===eu)throw be;var Pe=vn(29,be,null,j.mode);return Pe.lanes=le,Pe.return=j,Pe}finally{}}}var hl=Ag(!0),Rg=Ag(!1),Un=Z(null),Zn=null;function Gr(t){var n=t.alternate;A(Pt,Pt.current&1),A(Un,t),Zn===null&&(n===null||sl.current!==null||n.memoizedState!==null)&&(Zn=t)}function kg(t){if(t.tag===22){if(A(Pt,Pt.current),A(Un,t),Zn===null){var n=t.alternate;n!==null&&n.memoizedState!==null&&(Zn=t)}}else Yr()}function Yr(){A(Pt,Pt.current),A(Un,Un.current)}function Tr(t){oe(Un),Zn===t&&(Zn=null),oe(Pt)}var Pt=Z(0);function pu(t){for(var n=t;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||ed(l)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function ff(t,n,l,o){n=t.memoizedState,l=l(o,n),l=l==null?n:g({},n,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var df={enqueueSetState:function(t,n,l){t=t._reactInternals;var o=En(),f=qr(o);f.payload=n,l!=null&&(f.callback=l),n=Vr(t,f,o),n!==null&&(Tn(n,t,o),ya(n,t,o))},enqueueReplaceState:function(t,n,l){t=t._reactInternals;var o=En(),f=qr(o);f.tag=1,f.payload=n,l!=null&&(f.callback=l),n=Vr(t,f,o),n!==null&&(Tn(n,t,o),ya(n,t,o))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var l=En(),o=qr(l);o.tag=2,n!=null&&(o.callback=n),n=Vr(t,o,l),n!==null&&(Tn(n,t,l),ya(n,t,l))}};function Mg(t,n,l,o,f,p,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,p,S):n.prototype&&n.prototype.isPureReactComponent?!oa(l,o)||!oa(f,p):!0}function Og(t,n,l,o){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,o),n.state!==t&&df.enqueueReplaceState(n,n.state,null)}function ki(t,n){var l=n;if("ref"in n){l={};for(var o in n)o!=="ref"&&(l[o]=n[o])}if(t=t.defaultProps){l===n&&(l=g({},l));for(var f in t)l[f]===void 0&&(l[f]=t[f])}return l}var hu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function zg(t){hu(t)}function _g(t){console.error(t)}function Dg(t){hu(t)}function mu(t,n){try{var l=t.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function Ng(t,n,l){try{var o=t.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function pf(t,n,l){return l=qr(l),l.tag=3,l.payload={element:null},l.callback=function(){mu(t,n)},l}function Bg(t){return t=qr(t),t.tag=3,t}function Lg(t,n,l,o){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var p=o.value;t.payload=function(){return f(p)},t.callback=function(){Ng(n,l,o)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){Ng(n,l,o),typeof f!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var E=o.stack;this.componentDidCatch(o.value,{componentStack:E!==null?E:""})})}function Kx(t,n,l,o,f){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=l.alternate,n!==null&&da(n,l,f,!0),l=Un.current,l!==null){switch(l.tag){case 13:return Zn===null?Uf():l.alternate===null&&wt===0&&(wt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,o===$c?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([o]):n.add(o),jf(t,o,f)),!1;case 22:return l.flags|=65536,o===$c?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([o]):l.add(o)),jf(t,o,f)),!1}throw Error(a(435,l.tag))}return jf(t,o,f),Uf(),!1}if(Ge)return n=Un.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,o!==Nc&&(t=Error(a(422),{cause:o}),fa(Dn(t,l)))):(o!==Nc&&(n=Error(a(423),{cause:o}),fa(Dn(n,l))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,o=Dn(o,l),f=pf(t.stateNode,o,f),Vc(t,f),wt!==4&&(wt=2)),!1;var p=Error(a(520),{cause:o});if(p=Dn(p,l),_a===null?_a=[p]:_a.push(p),wt!==4&&(wt=2),n===null)return!0;o=Dn(o,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,t=f&-f,l.lanes|=t,t=pf(l.stateNode,o,t),Vc(l,t),!1;case 1:if(n=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Jr===null||!Jr.has(p))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Bg(f),Lg(f,t,l,o),Vc(l,f),!1}l=l.return}while(l!==null);return!1}var Ug=Error(a(461)),$t=!1;function Vt(t,n,l,o){n.child=t===null?Rg(n,null,l,o):hl(n,t.child,l,o)}function Pg(t,n,l,o,f){l=l.render;var p=n.ref;if("ref"in o){var S={};for(var E in o)E!=="ref"&&(S[E]=o[E])}else S=o;return wi(n),o=Kc(t,n,l,S,p,f),E=Qc(),t!==null&&!$t?(Zc(t,n,f),wr(t,n,f)):(Ge&&E&&_c(n),n.flags|=1,Vt(t,n,o,f),n.child)}function jg(t,n,l,o,f){if(t===null){var p=l.type;return typeof p=="function"&&!Mc(p)&&p.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=p,Hg(t,n,p,o,f)):(t=Xo(l.type,null,o,n,n.mode,f),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!xf(t,f)){var S=p.memoizedProps;if(l=l.compare,l=l!==null?l:oa,l(S,o)&&t.ref===n.ref)return wr(t,n,f)}return n.flags|=1,t=br(p,o),t.ref=n.ref,t.return=n,n.child=t}function Hg(t,n,l,o,f){if(t!==null){var p=t.memoizedProps;if(oa(p,o)&&t.ref===n.ref)if($t=!1,n.pendingProps=o=p,xf(t,f))(t.flags&131072)!==0&&($t=!0);else return n.lanes=t.lanes,wr(t,n,f)}return hf(t,n,l,o,f)}function $g(t,n,l){var o=n.pendingProps,f=o.children,p=t!==null?t.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=p!==null?p.baseLanes|l:l,t!==null){for(f=n.child=t.child,p=0;f!==null;)p=p|f.lanes|f.childLanes,f=f.sibling;n.childLanes=p&~o}else n.childLanes=0,n.child=null;return Ig(t,n,o,l)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Jo(n,p!==null?p.cachePool:null),p!==null?Hm(n,p):Gc(),kg(n);else return n.lanes=n.childLanes=536870912,Ig(t,n,p!==null?p.baseLanes|l:l,l)}else p!==null?(Jo(n,p.cachePool),Hm(n,p),Yr(),n.memoizedState=null):(t!==null&&Jo(n,null),Gc(),Yr());return Vt(t,n,f,l),n.child}function Ig(t,n,l,o){var f=Hc();return f=f===null?null:{parent:Ut._currentValue,pool:f},n.memoizedState={baseLanes:l,cachePool:f},t!==null&&Jo(n,null),Gc(),kg(n),t!==null&&da(t,n,o,!0),null}function gu(t,n){var l=n.ref;if(l===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(t===null||t.ref!==l)&&(n.flags|=4194816)}}function hf(t,n,l,o,f){return wi(n),l=Kc(t,n,l,o,void 0,f),o=Qc(),t!==null&&!$t?(Zc(t,n,f),wr(t,n,f)):(Ge&&o&&_c(n),n.flags|=1,Vt(t,n,l,f),n.child)}function qg(t,n,l,o,f,p){return wi(n),n.updateQueue=null,l=Im(n,o,l,f),$m(t),o=Qc(),t!==null&&!$t?(Zc(t,n,p),wr(t,n,p)):(Ge&&o&&_c(n),n.flags|=1,Vt(t,n,l,p),n.child)}function Vg(t,n,l,o,f){if(wi(n),n.stateNode===null){var p=il,S=l.contextType;typeof S=="object"&&S!==null&&(p=Zt(S)),p=new l(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=df,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},Ic(n),S=l.contextType,p.context=typeof S=="object"&&S!==null?Zt(S):il,p.state=n.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(ff(n,l,S,o),p.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&df.enqueueReplaceState(p,p.state,null),va(n,o,p,f),ba(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(t===null){p=n.stateNode;var E=n.memoizedProps,N=ki(l,E);p.props=N;var V=p.context,ne=l.contextType;S=il,typeof ne=="object"&&ne!==null&&(S=Zt(ne));var ae=l.getDerivedStateFromProps;ne=typeof ae=="function"||typeof p.getSnapshotBeforeUpdate=="function",E=n.pendingProps!==E,ne||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(E||V!==S)&&Og(n,p,o,S),Ir=!1;var Y=n.memoizedState;p.state=Y,va(n,o,p,f),ba(),V=n.memoizedState,E||Y!==V||Ir?(typeof ae=="function"&&(ff(n,l,ae,o),V=n.memoizedState),(N=Ir||Mg(n,l,N,o,Y,V,S))?(ne||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=V),p.props=o,p.state=V,p.context=S,o=N):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,qc(t,n),S=n.memoizedProps,ne=ki(l,S),p.props=ne,ae=n.pendingProps,Y=p.context,V=l.contextType,N=il,typeof V=="object"&&V!==null&&(N=Zt(V)),E=l.getDerivedStateFromProps,(V=typeof E=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==ae||Y!==N)&&Og(n,p,o,N),Ir=!1,Y=n.memoizedState,p.state=Y,va(n,o,p,f),ba();var X=n.memoizedState;S!==ae||Y!==X||Ir||t!==null&&t.dependencies!==null&&Zo(t.dependencies)?(typeof E=="function"&&(ff(n,l,E,o),X=n.memoizedState),(ne=Ir||Mg(n,l,ne,o,Y,X,N)||t!==null&&t.dependencies!==null&&Zo(t.dependencies))?(V||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,X,N),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,X,N)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=X),p.props=o,p.state=X,p.context=N,o=ne):(typeof p.componentDidUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(n.flags|=1024),o=!1)}return p=o,gu(t,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,t!==null&&o?(n.child=hl(n,t.child,null,f),n.child=hl(n,null,l,f)):Vt(t,n,l,f),n.memoizedState=p.state,t=n.child):t=wr(t,n,f),t}function Fg(t,n,l,o){return ca(),n.flags|=256,Vt(t,n,l,o),n.child}var mf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gf(t){return{baseLanes:t,cachePool:_m()}}function yf(t,n,l){return t=t!==null?t.childLanes&~l:0,n&&(t|=Pn),t}function Gg(t,n,l){var o=n.pendingProps,f=!1,p=(n.flags&128)!==0,S;if((S=p)||(S=t!==null&&t.memoizedState===null?!1:(Pt.current&2)!==0),S&&(f=!0,n.flags&=-129),S=(n.flags&32)!==0,n.flags&=-33,t===null){if(Ge){if(f?Gr(n):Yr(),Ge){var E=Tt,N;if(N=E){e:{for(N=E,E=Qn;N.nodeType!==8;){if(!E){E=null;break e}if(N=Gn(N.nextSibling),N===null){E=null;break e}}E=N}E!==null?(n.memoizedState={dehydrated:E,treeContext:Si!==null?{id:vr,overflow:Sr}:null,retryLane:536870912,hydrationErrors:null},N=vn(18,null,null,0),N.stateNode=E,N.return=n,n.child=N,ln=n,Tt=null,N=!0):N=!1}N||Ei(n)}if(E=n.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return ed(E)?n.lanes=32:n.lanes=536870912,null;Tr(n)}return E=o.children,o=o.fallback,f?(Yr(),f=n.mode,E=yu({mode:"hidden",children:E},f),o=vi(o,f,l,null),E.return=n,o.return=n,E.sibling=o,n.child=E,f=n.child,f.memoizedState=gf(l),f.childLanes=yf(t,S,l),n.memoizedState=mf,o):(Gr(n),bf(n,E))}if(N=t.memoizedState,N!==null&&(E=N.dehydrated,E!==null)){if(p)n.flags&256?(Gr(n),n.flags&=-257,n=vf(t,n,l)):n.memoizedState!==null?(Yr(),n.child=t.child,n.flags|=128,n=null):(Yr(),f=o.fallback,E=n.mode,o=yu({mode:"visible",children:o.children},E),f=vi(f,E,l,null),f.flags|=2,o.return=n,f.return=n,o.sibling=f,n.child=o,hl(n,t.child,null,l),o=n.child,o.memoizedState=gf(l),o.childLanes=yf(t,S,l),n.memoizedState=mf,n=f);else if(Gr(n),ed(E)){if(S=E.nextSibling&&E.nextSibling.dataset,S)var V=S.dgst;S=V,o=Error(a(419)),o.stack="",o.digest=S,fa({value:o,source:null,stack:null}),n=vf(t,n,l)}else if($t||da(t,n,l,!1),S=(l&t.childLanes)!==0,$t||S){if(S=mt,S!==null&&(o=l&-l,o=(o&42)!==0?1:ec(o),o=(o&(S.suspendedLanes|l))!==0?0:o,o!==0&&o!==N.retryLane))throw N.retryLane=o,rl(t,o),Tn(S,t,o),Ug;E.data==="$?"||Uf(),n=vf(t,n,l)}else E.data==="$?"?(n.flags|=192,n.child=t.child,n=null):(t=N.treeContext,Tt=Gn(E.nextSibling),ln=n,Ge=!0,Ci=null,Qn=!1,t!==null&&(Bn[Ln++]=vr,Bn[Ln++]=Sr,Bn[Ln++]=Si,vr=t.id,Sr=t.overflow,Si=n),n=bf(n,o.children),n.flags|=4096);return n}return f?(Yr(),f=o.fallback,E=n.mode,N=t.child,V=N.sibling,o=br(N,{mode:"hidden",children:o.children}),o.subtreeFlags=N.subtreeFlags&65011712,V!==null?f=br(V,f):(f=vi(f,E,l,null),f.flags|=2),f.return=n,o.return=n,o.sibling=f,n.child=o,o=f,f=n.child,E=t.child.memoizedState,E===null?E=gf(l):(N=E.cachePool,N!==null?(V=Ut._currentValue,N=N.parent!==V?{parent:V,pool:V}:N):N=_m(),E={baseLanes:E.baseLanes|l,cachePool:N}),f.memoizedState=E,f.childLanes=yf(t,S,l),n.memoizedState=mf,o):(Gr(n),l=t.child,t=l.sibling,l=br(l,{mode:"visible",children:o.children}),l.return=n,l.sibling=null,t!==null&&(S=n.deletions,S===null?(n.deletions=[t],n.flags|=16):S.push(t)),n.child=l,n.memoizedState=null,l)}function bf(t,n){return n=yu({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function yu(t,n){return t=vn(22,t,null,n),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function vf(t,n,l){return hl(n,t.child,null,l),t=bf(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function Yg(t,n,l){t.lanes|=n;var o=t.alternate;o!==null&&(o.lanes|=n),Lc(t.return,n,l)}function Sf(t,n,l,o,f){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:f}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=o,p.tail=l,p.tailMode=f)}function Xg(t,n,l){var o=n.pendingProps,f=o.revealOrder,p=o.tail;if(Vt(t,n,o.children,l),o=Pt.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Yg(t,l,n);else if(t.tag===19)Yg(t,l,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}switch(A(Pt,o),f){case"forwards":for(l=n.child,f=null;l!==null;)t=l.alternate,t!==null&&pu(t)===null&&(f=l),l=l.sibling;l=f,l===null?(f=n.child,n.child=null):(f=l.sibling,l.sibling=null),Sf(n,!1,f,l,p);break;case"backwards":for(l=null,f=n.child,n.child=null;f!==null;){if(t=f.alternate,t!==null&&pu(t)===null){n.child=f;break}t=f.sibling,f.sibling=l,l=f,f=t}Sf(n,!0,l,null,p);break;case"together":Sf(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function wr(t,n,l){if(t!==null&&(n.dependencies=t.dependencies),Wr|=n.lanes,(l&n.childLanes)===0)if(t!==null){if(da(t,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(a(153));if(n.child!==null){for(t=n.child,l=br(t,t.pendingProps),n.child=l,l.return=n;t.sibling!==null;)t=t.sibling,l=l.sibling=br(t,t.pendingProps),l.return=n;l.sibling=null}return n.child}function xf(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Zo(t)))}function Qx(t,n,l){switch(n.tag){case 3:Ee(n,n.stateNode.containerInfo),$r(n,Ut,t.memoizedState.cache),ca();break;case 27:case 5:Se(n);break;case 4:Ee(n,n.stateNode.containerInfo);break;case 10:$r(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Gr(n),n.flags|=128,null):(l&n.child.childLanes)!==0?Gg(t,n,l):(Gr(n),t=wr(t,n,l),t!==null?t.sibling:null);Gr(n);break;case 19:var f=(t.flags&128)!==0;if(o=(l&n.childLanes)!==0,o||(da(t,n,l,!1),o=(l&n.childLanes)!==0),f){if(o)return Xg(t,n,l);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),A(Pt,Pt.current),o)break;return null;case 22:case 23:return n.lanes=0,$g(t,n,l);case 24:$r(n,Ut,t.memoizedState.cache)}return wr(t,n,l)}function Kg(t,n,l){if(t!==null)if(t.memoizedProps!==n.pendingProps)$t=!0;else{if(!xf(t,l)&&(n.flags&128)===0)return $t=!1,Qx(t,n,l);$t=(t.flags&131072)!==0}else $t=!1,Ge&&(n.flags&1048576)!==0&&wm(n,Qo,n.index);switch(n.lanes=0,n.tag){case 16:e:{t=n.pendingProps;var o=n.elementType,f=o._init;if(o=f(o._payload),n.type=o,typeof o=="function")Mc(o)?(t=ki(o,t),n.tag=1,n=Vg(null,n,o,t,l)):(n.tag=0,n=hf(null,n,o,t,l));else{if(o!=null){if(f=o.$$typeof,f===O){n.tag=11,n=Pg(null,n,o,t,l);break e}else if(f===H){n.tag=14,n=jg(null,n,o,t,l);break e}}throw n=ee(o)||o,Error(a(306,n,""))}}return n;case 0:return hf(t,n,n.type,n.pendingProps,l);case 1:return o=n.type,f=ki(o,n.pendingProps),Vg(t,n,o,f,l);case 3:e:{if(Ee(n,n.stateNode.containerInfo),t===null)throw Error(a(387));o=n.pendingProps;var p=n.memoizedState;f=p.element,qc(t,n),va(n,o,null,l);var S=n.memoizedState;if(o=S.cache,$r(n,Ut,o),o!==p.cache&&Uc(n,[Ut],l,!0),ba(),o=S.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:S.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=Fg(t,n,o,l);break e}else if(o!==f){f=Dn(Error(a(424)),n),fa(f),n=Fg(t,n,o,l);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Tt=Gn(t.firstChild),ln=n,Ge=!0,Ci=null,Qn=!0,l=Rg(n,null,o,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ca(),o===f){n=wr(t,n,l);break e}Vt(t,n,o,l)}n=n.child}return n;case 26:return gu(t,n),t===null?(l=Jy(n.type,null,n.pendingProps,null))?n.memoizedState=l:Ge||(l=n.type,t=n.pendingProps,o=zu(fe.current).createElement(l),o[Qt]=n,o[an]=t,Gt(o,l,t),Ht(o),n.stateNode=o):n.memoizedState=Jy(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Se(n),t===null&&Ge&&(o=n.stateNode=Qy(n.type,n.pendingProps,fe.current),ln=n,Qn=!0,f=Tt,ni(n.type)?(td=f,Tt=Gn(o.firstChild)):Tt=f),Vt(t,n,n.pendingProps.children,l),gu(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Ge&&((f=o=Tt)&&(o=TC(o,n.type,n.pendingProps,Qn),o!==null?(n.stateNode=o,ln=n,Tt=Gn(o.firstChild),Qn=!1,f=!0):f=!1),f||Ei(n)),Se(n),f=n.type,p=n.pendingProps,S=t!==null?t.memoizedProps:null,o=p.children,Zf(f,p)?o=null:S!==null&&Zf(f,S)&&(n.flags|=32),n.memoizedState!==null&&(f=Kc(t,n,Ix,null,null,l),$a._currentValue=f),gu(t,n),Vt(t,n,o,l),n.child;case 6:return t===null&&Ge&&((t=l=Tt)&&(l=wC(l,n.pendingProps,Qn),l!==null?(n.stateNode=l,ln=n,Tt=null,t=!0):t=!1),t||Ei(n)),null;case 13:return Gg(t,n,l);case 4:return Ee(n,n.stateNode.containerInfo),o=n.pendingProps,t===null?n.child=hl(n,null,o,l):Vt(t,n,o,l),n.child;case 11:return Pg(t,n,n.type,n.pendingProps,l);case 7:return Vt(t,n,n.pendingProps,l),n.child;case 8:return Vt(t,n,n.pendingProps.children,l),n.child;case 12:return Vt(t,n,n.pendingProps.children,l),n.child;case 10:return o=n.pendingProps,$r(n,n.type,o.value),Vt(t,n,o.children,l),n.child;case 9:return f=n.type._context,o=n.pendingProps.children,wi(n),f=Zt(f),o=o(f),n.flags|=1,Vt(t,n,o,l),n.child;case 14:return jg(t,n,n.type,n.pendingProps,l);case 15:return Hg(t,n,n.type,n.pendingProps,l);case 19:return Xg(t,n,l);case 31:return o=n.pendingProps,l=n.mode,o={mode:o.mode,children:o.children},t===null?(l=yu(o,l),l.ref=n.ref,n.child=l,l.return=n,n=l):(l=br(t.child,o),l.ref=n.ref,n.child=l,l.return=n,n=l),n;case 22:return $g(t,n,l);case 24:return wi(n),o=Zt(Ut),t===null?(f=Hc(),f===null&&(f=mt,p=Pc(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=l),f=p),n.memoizedState={parent:o,cache:f},Ic(n),$r(n,Ut,f)):((t.lanes&l)!==0&&(qc(t,n),va(n,null,null,l),ba()),f=t.memoizedState,p=n.memoizedState,f.parent!==o?(f={parent:o,cache:o},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),$r(n,Ut,o)):(o=p.cache,$r(n,Ut,o),o!==f.cache&&Uc(n,[Ut],l,!0))),Vt(t,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function Ar(t){t.flags|=4}function Qg(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!i0(n)){if(n=Un.current,n!==null&&((Ie&4194048)===Ie?Zn!==null:(Ie&62914560)!==Ie&&(Ie&536870912)===0||n!==Zn))throw ga=$c,Dm;t.flags|=8192}}function bu(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?kh():536870912,t.lanes|=n,bl|=n)}function Aa(t,n){if(!Ge)switch(t.tailMode){case"hidden":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function Et(t){var n=t.alternate!==null&&t.alternate.child===t.child,l=0,o=0;if(n)for(var f=t.child;f!==null;)l|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)l|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=o,t.childLanes=l,n}function Zx(t,n,l){var o=n.pendingProps;switch(Dc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(n),null;case 1:return Et(n),null;case 3:return l=n.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Cr(Ut),ze(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(sa(n)?Ar(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,km())),Et(n),null;case 26:return l=n.memoizedState,t===null?(Ar(n),l!==null?(Et(n),Qg(n,l)):(Et(n),n.flags&=-16777217)):l?l!==t.memoizedState?(Ar(n),Et(n),Qg(n,l)):(Et(n),n.flags&=-16777217):(t.memoizedProps!==o&&Ar(n),Et(n),n.flags&=-16777217),null;case 27:Me(n),l=fe.current;var f=n.type;if(t!==null&&n.stateNode!=null)t.memoizedProps!==o&&Ar(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return Et(n),null}t=ce.current,sa(n)?Am(n):(t=Qy(f,o,l),n.stateNode=t,Ar(n))}return Et(n),null;case 5:if(Me(n),l=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&Ar(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return Et(n),null}if(t=ce.current,sa(n))Am(n);else{switch(f=zu(fe.current),t){case 1:t=f.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:t=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":t=f.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":t=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":t=f.createElement("div"),t.innerHTML="
-
-
-
-
-