From 164d59ae33987fcd851ea3ce8024fb371e4c59b2 Mon Sep 17 00:00:00 2001 From: Johnny Bouder <61591423+jbouder@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:48:32 -0400 Subject: [PATCH] Add Filtering and Sorting to App Cards (#184) * Add filters and sorting to home. Updates to home layout. * Remove old css from home. * Update server to app transform to include last_activity. * Styling updates to filter buttons. * Fix import. Add and update unit tests. * Fix lint error. * Styling updates. Include new build. * Fix search issue. Update tests. * Refactor apps section to reduce component complexity. * Fix isShared app card prop. Add and update unit tests. * Add new build. * Update test. * Remove timeouts from tests. * Remove tests. * Update filter icon toggles. Fix card anchor tag style. --- jhub_apps/static/css/index.css | 2 +- jhub_apps/static/js/index.js | 52 +-- jhub_apps/templates/style.css | 8 +- ui/jest.config.ts | 1 + .../home => components}/app-card/app-card.css | 4 + .../app-card/app-card.test.tsx | 5 +- .../home => components}/app-card/app-card.tsx | 6 +- ui/src/components/app-form/app-form.test.tsx | 6 +- ui/src/data/api.ts | 42 +++ ui/src/pages/home/apps-grid/apps-grid.tsx | 144 ------- .../app-filters/app-filters.test.tsx | 209 +++++++++++ .../apps-section/app-filters/app-filters.tsx | 351 ++++++++++++++++++ .../apps-section/app-grid/app-grid.test.tsx | 39 ++ .../home/apps-section/app-grid/app-grid.tsx | 30 ++ .../apps-section.test.tsx} | 73 ++-- .../pages/home/apps-section/apps-section.tsx | 183 +++++++++ ui/src/pages/home/home.css | 4 - ui/src/pages/home/home.test.tsx | 11 +- ui/src/pages/home/home.tsx | 48 +-- ui/src/store.ts | 24 ++ ui/src/styles/styled-filter-button.tsx | 11 + ui/src/theme/theme.tsx | 1 + ui/src/types/jupyterhub.ts | 2 + ui/src/utils/constants.ts | 3 + ui/src/utils/jupyterhub.test.ts | 23 +- ui/src/utils/jupyterhub.ts | 71 +++- 26 files changed, 1070 insertions(+), 283 deletions(-) rename ui/src/{pages/home => components}/app-card/app-card.css (98%) rename ui/src/{pages/home => components}/app-card/app-card.test.tsx (99%) rename ui/src/{pages/home => components}/app-card/app-card.tsx (98%) delete mode 100644 ui/src/pages/home/apps-grid/apps-grid.tsx create mode 100644 ui/src/pages/home/apps-section/app-filters/app-filters.test.tsx create mode 100644 ui/src/pages/home/apps-section/app-filters/app-filters.tsx create mode 100644 ui/src/pages/home/apps-section/app-grid/app-grid.test.tsx create mode 100644 ui/src/pages/home/apps-section/app-grid/app-grid.tsx rename ui/src/pages/home/{apps-grid/apps-grid.test.tsx => apps-section/apps-section.test.tsx} (71%) create mode 100644 ui/src/pages/home/apps-section/apps-section.tsx delete mode 100644 ui/src/pages/home/home.css create mode 100644 ui/src/styles/styled-filter-button.tsx diff --git a/jhub_apps/static/css/index.css b/jhub_apps/static/css/index.css index 631c69c2..3f0a439a 100644 --- a/jhub_apps/static/css/index.css +++ b/jhub_apps/static/css/index.css @@ -1 +1 @@ -.form{max-width:600px}.form-section{margin:16px 0;padding:12px 0}.form-heading{font-size:24px;font-weight:700;padding:0 0 16px}.form>.form-section>h2{font-size:16px;font-weight:600;margin:0 0 16px}.form>.button-section{width:100%;margin:24px 0}.form>.button-section>.prev{float:left}.form>.button-section>.next{float:right}.form-paragraph{max-width:600px}.form-paragraph-link{color:var(--link-text-color);text-decoration:underline}.form-breadcrumb{margin:0 0 16px}.form-breadcrumb>button{width:50px}.button-group{display:flex;flex-direction:row;justify-content:flex-end}.button-group-item{margin:.25rem;list-style:none}.context-menu{background-color:#fff;border:1px solid #e6e6e6;border-radius:50%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;color:#1b1b1b;cursor:pointer;display:block;height:24px;position:absolute;right:8px;top:8px;width:24px;z-index:2}.context-menu button{top:-11px;right:21px}.context-menu-list{width:151px}.alert-wrapper{width:100%;padding:0 30px 25px}.thumbnail{display:flex;flex-direction:row;width:500px;height:180px;padding:10px 0;border:none}.thumbnail-body{display:flex;flex-direction:column;width:100%;height:100%;background-color:#90969c}.thumbnail-body.selected{background-color:var(--white)}.thumbnail-body.dragging{border:2px dashed var(--primary)}.thumbnail-img-container{margin:auto}.thumbnail-img{max-height:150px}.thumbnail-icon-container{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;cursor:pointer}.thumbnail-icon-container:focus{outline-color:var(--primary)}.thumbnail-icon{width:64px!important;height:64px!important;color:var(--white)}.thumbnail-actions{display:flex;flex-direction:column;margin:0 10px}.thumbnail-actions button{border:none;padding:4px 8px;margin-top:0!important;margin-bottom:10px;width:200px}.card{height:241px;width:225px;border-radius:.25rem;box-shadow:0 1px 2px #d2d2cfb3}#card-test-app{position:relative}.card-content-header{position:relative;display:flex;justify-content:center;align-items:center;max-height:130px;min-height:130px;overflow:hidden}.card-content-header img{max-width:100%;max-height:100%;object-fit:contain}.card-content-header .img-overlay{position:relative;display:inline-block}.card-content-header .img-overlay:after{content:"";object-fit:contain;position:absolute;top:0;left:0;right:0;bottom:0;background:#ffffff40;pointer-events:none}.card-content-header .chip-container{position:absolute;display:flex;align-items:center;left:8px!important;top:8px!important;z-index:2}.card-content-content{position:relative;z-index:111;height:110px}.card-content-content .chip-container{position:absolute;display:flex;align-items:center;left:1rem!important;top:1rem!important}.menu-chip{margin-right:4px}.card-content-container{background:#fff;position:relative;overflow:hidden;transition:all .5s ease-in-out;top:42px;padding:0}.card-content-content .card-inner-content{position:relative;padding-top:4px}.card-content{transition:transform .5s ease-in-out}.card-title{max-width:190px;overflow:hidden}.card-title,.card-description,.card-author{transition:transform .5s ease-in-out,opacity .5s ease-in-out}.card-description{max-height:0;opacity:0;transition:max-height .5s ease-in-out,opacity .5s ease-in-out;overflow:hidden}.card-content-container:hover{transform:translateY(-36%);background:#fff;height:111px}.card-content-container:hover .card-description{opacity:1;max-height:4rem}.card-content-container:hover .card-author{opacity:0;max-height:0;transition:opacity .5s ease-in-out,max-height .5s ease-in-out}.card-content-content .content{padding:.5rem 1rem 1rem}.card-content-content .card-inner-content .iconic{font-size:1rem!important;position:relative;top:3px;margin-right:5px}.card-content-content .card-content-container .card-title{font-size:1rem!important;font-weight:700!important;display:inline}.search-bar{width:100%;margin-top:0}.server-type-card{margin:8px 0;cursor:pointer}.server-type-card:hover{background:var(--gray-lightest)}.server-type-card:focus{outline:2px solid var(--primary)}.server-type-card p{font-size:14px}:root{--primary-light: #ba18da10;--primary: #ba18da;--primary-dark: #9b00ce;--secondary-light: #20aaa110;--secondary: #18817a;--secondary-dark: #12635e;--white: #ffffff;--black: #000000;--gray-lightest: #f0f0f0;--gray-lighter: #e6e6e6;--gray-light: #adadad;--gray: #757575;--gray-dark: #454545;--gray-darker: #171717;--gray-darkest: #5c5c5c;--success: #00a91c;--success-light: #ecf3ec;--warning: #ffbe2e;--warning-light: #fde68a;--error: #d54309;--error-light: #f4e3db;--info: #00bde3;--info-light: #e7f6f8;--text-color: #1c1d26;--link-text-color: #276be9}main{margin:24px 0}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}h1{font-size:30px;font-weight:700;padding:0 0 8px}h2{font-size:20px}hr{color:var(--gray-lightest)}p{font-size:16px}a{color:var(--link-text-color);text-decoration:none}.container{margin-left:auto;margin-right:auto;padding-left:30px;padding-right:30px}.container:before{content:unset}.grid-heading-left{width:120px;display:flex;justify-content:flex-start}.grid-heading-left>h2,.grid-heading-right>h2{font-weight:700;white-space:nowrap}.grid-heading-right{width:120px;display:flex;justify-content:flex-end}.grid-spacer{position:relative;top:12px}.font-bold{font-weight:700}@media only screen and (min-width: 1537px){.grid-spacer{width:1460px}}@media only screen and (min-width: 1537px) and (max-width: 1920px){.grid-spacer{width:1160px}}@media only screen and (min-width: 1281px) and (max-width: 1536px){.grid-spacer{width:960px}}@media only screen and (min-width: 1025px) and (max-width: 1280px){.grid-spacer{width:660px}}@media only screen and (min-width: 769px) and (max-width: 1024px){.grid-spacer{width:460px}}@media only screen and (min-width: 641px) and (max-width: 768px){h1{padding-bottom:24px}.grid-spacer{width:320px}#create-app{width:120px}}@media only screen and (max-width: 640px){.container{padding-left:15px;padding-right:15px}h1{padding-bottom:24px}.grid-heading-center,.grid-heading-right,.grid-heading-right>h2{display:none}#create-app{width:120px}} +.form{max-width:600px}.form-section{margin:16px 0;padding:12px 0}.form-heading{font-size:24px;font-weight:700;padding:0 0 16px}.form>.form-section>h2{font-size:16px;font-weight:600;margin:0 0 16px}.form>.button-section{width:100%;margin:24px 0}.form>.button-section>.prev{float:left}.form>.button-section>.next{float:right}.form-paragraph{max-width:600px}.form-paragraph-link{color:var(--link-text-color);text-decoration:underline}.form-breadcrumb{margin:0 0 16px}.form-breadcrumb>button{width:50px}.button-group{display:flex;flex-direction:row;justify-content:flex-end}.button-group-item{margin:.25rem;list-style:none}.context-menu{background-color:#fff;border:1px solid #e6e6e6;border-radius:50%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;color:#1b1b1b;cursor:pointer;display:block;height:24px;position:absolute;right:8px;top:8px;width:24px;z-index:2}.context-menu button{top:-11px;right:21px}.context-menu-list{width:151px}.alert-wrapper{width:100%;padding:0 30px 25px}.thumbnail{display:flex;flex-direction:row;width:500px;height:180px;padding:10px 0;border:none}.thumbnail-body{display:flex;flex-direction:column;width:100%;height:100%;background-color:#90969c}.thumbnail-body.selected{background-color:var(--white)}.thumbnail-body.dragging{border:2px dashed var(--primary)}.thumbnail-img-container{margin:auto}.thumbnail-img{max-height:150px}.thumbnail-icon-container{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;cursor:pointer}.thumbnail-icon-container:focus{outline-color:var(--primary)}.thumbnail-icon{width:64px!important;height:64px!important;color:var(--white)}.thumbnail-actions{display:flex;flex-direction:column;margin:0 10px}.thumbnail-actions button{border:none;padding:4px 8px;margin-top:0!important;margin-bottom:10px;width:200px}.card{height:241px;width:225px;border-radius:.25rem;box-shadow:0 1px 2px #d2d2cfb3}.card>a{text-decoration:none}#card-test-app{position:relative}.card-content-header{position:relative;display:flex;justify-content:center;align-items:center;max-height:130px;min-height:130px;overflow:hidden}.card-content-header img{max-width:100%;max-height:100%;object-fit:contain}.card-content-header .img-overlay{position:relative;display:inline-block}.card-content-header .img-overlay:after{content:"";object-fit:contain;position:absolute;top:0;left:0;right:0;bottom:0;background:#ffffff40;pointer-events:none}.card-content-header .chip-container{position:absolute;display:flex;align-items:center;left:8px!important;top:8px!important;z-index:2}.card-content-content{position:relative;z-index:111;height:110px}.card-content-content .chip-container{position:absolute;display:flex;align-items:center;left:1rem!important;top:1rem!important}.menu-chip{margin-right:4px}.card-content-container{background:#fff;position:relative;overflow:hidden;transition:all .5s ease-in-out;top:42px;padding:0}.card-content-content .card-inner-content{position:relative;padding-top:4px}.card-content{transition:transform .5s ease-in-out}.card-title{max-width:190px;overflow:hidden}.card-title,.card-description,.card-author{transition:transform .5s ease-in-out,opacity .5s ease-in-out}.card-description{max-height:0;opacity:0;transition:max-height .5s ease-in-out,opacity .5s ease-in-out;overflow:hidden}.card-content-container:hover{transform:translateY(-36%);background:#fff;height:111px}.card-content-container:hover .card-description{opacity:1;max-height:4rem}.card-content-container:hover .card-author{opacity:0;max-height:0;transition:opacity .5s ease-in-out,max-height .5s ease-in-out}.card-content-content .content{padding:.5rem 1rem 1rem}.card-content-content .card-inner-content .iconic{font-size:1rem!important;position:relative;top:3px;margin-right:5px}.card-content-content .card-content-container .card-title{font-size:1rem!important;font-weight:700!important;display:inline}.server-type-card{margin:8px 0;cursor:pointer}.server-type-card:hover{background:var(--gray-lightest)}.server-type-card:focus{outline:2px solid var(--primary)}.server-type-card p{font-size:14px}:root{--primary-light: #ba18da10;--primary: #ba18da;--primary-dark: #9b00ce;--secondary-light: #20aaa110;--secondary: #18817a;--secondary-dark: #12635e;--white: #ffffff;--black: #000000;--gray-lightest: #f0f0f0;--gray-lighter: #e6e6e6;--gray-light: #adadad;--gray: #757575;--gray-dark: #454545;--gray-darker: #171717;--gray-darkest: #5c5c5c;--success: #00a91c;--success-light: #ecf3ec;--warning: #ffbe2e;--warning-light: #fde68a;--error: #d54309;--error-light: #f4e3db;--info: #00bde3;--info-light: #e7f6f8;--text-color: #1c1d26;--link-text-color: #276be9}main{margin:24px 0}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}h1{font-size:30px;font-weight:700;padding:0 0 8px}h2{font-size:20px}hr{color:var(--gray-lightest)}p{font-size:16px}a{color:var(--link-text-color);text-decoration:none}.container{margin-left:auto;margin-right:auto;padding-left:30px;padding-right:30px}.container:before{content:unset}.grid-heading-left{width:120px;display:flex;justify-content:flex-start}.grid-heading-left>h2,.grid-heading-right>h2{font-weight:700;white-space:nowrap}.grid-heading-right{width:120px;display:flex;justify-content:flex-end}.grid-spacer{position:relative;top:12px}.font-bold{font-weight:700}@media only screen and (min-width: 1537px){.grid-spacer{width:1460px}}@media only screen and (min-width: 1537px) and (max-width: 1920px){.grid-spacer{width:1160px}}@media only screen and (min-width: 1281px) and (max-width: 1536px){.grid-spacer{width:960px}}@media only screen and (min-width: 1025px) and (max-width: 1280px){.grid-spacer{width:660px}}@media only screen and (min-width: 769px) and (max-width: 1024px){.grid-spacer{width:460px}}@media only screen and (min-width: 641px) and (max-width: 768px){h1{padding-bottom:24px}.grid-spacer{width:320px}#create-app{width:120px}}@media only screen and (max-width: 640px){.container{padding-left:15px;padding-right:15px}h1{padding-bottom:24px}.grid-heading-center,.grid-heading-right,.grid-heading-right>h2{display:none}#create-app{width:120px}} diff --git a/jhub_apps/static/js/index.js b/jhub_apps/static/js/index.js index 9bb466eb..7a7f4394 100644 --- a/jhub_apps/static/js/index.js +++ b/jhub_apps/static/js/index.js @@ -1,4 +1,4 @@ -var np=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var $=(e,t,n)=>(np(e,t,"read from private field"),n?n.call(e):t.get(e)),xe=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},pe=(e,t,n,r)=>(np(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var yc=(e,t,n,r)=>({set _(o){pe(e,t,o,n)},get _(){return $(e,t,r)}}),Le=(e,t,n)=>(np(e,t,"access private method"),n);function JE(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Bm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function e_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Bb={exports:{}},gd={},zb={exports:{}},je={};/** +var cp=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var E=(e,t,n)=>(cp(e,t,"read from private field"),n?n.call(e):t.get(e)),ge=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},pe=(e,t,n,r)=>(cp(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var xc=(e,t,n,r)=>({set _(o){pe(e,t,o,n)},get _(){return E(e,t,r)}}),Le=(e,t,n)=>(cp(e,t,"access private method"),n);function p9(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Zv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function h9(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Y8={exports:{}},Hf={},_8={exports:{}},Ne={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var np=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var $=(e,t,n)=>(np(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Xl=Symbol.for("react.element"),t_=Symbol.for("react.portal"),n_=Symbol.for("react.fragment"),r_=Symbol.for("react.strict_mode"),o_=Symbol.for("react.profiler"),i_=Symbol.for("react.provider"),s_=Symbol.for("react.context"),a_=Symbol.for("react.forward_ref"),l_=Symbol.for("react.suspense"),c_=Symbol.for("react.memo"),u_=Symbol.for("react.lazy"),ly=Symbol.iterator;function d_(e){return e===null||typeof e!="object"?null:(e=ly&&e[ly]||e["@@iterator"],typeof e=="function"?e:null)}var Ub={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vb=Object.assign,Wb={};function ea(e,t,n){this.props=e,this.context=t,this.refs=Wb,this.updater=n||Ub}ea.prototype.isReactComponent={};ea.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ea.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hb(){}Hb.prototype=ea.prototype;function zm(e,t,n){this.props=e,this.context=t,this.refs=Wb,this.updater=n||Ub}var Um=zm.prototype=new Hb;Um.constructor=zm;Vb(Um,ea.prototype);Um.isPureReactComponent=!0;var cy=Array.isArray,Kb=Object.prototype.hasOwnProperty,Vm={current:null},qb={key:!0,ref:!0,__self:!0,__source:!0};function Gb(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Kb.call(t,r)&&!qb.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1{if(!t.has(e))throw TypeError("Cannot "+n)};var $=(e,t,n)=>(np(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var v_=x,g_=Symbol.for("react.element"),y_=Symbol.for("react.fragment"),b_=Object.prototype.hasOwnProperty,x_=v_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S_={key:!0,ref:!0,__self:!0,__source:!0};function Qb(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)b_.call(t,r)&&!S_.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:g_,type:e,key:i,ref:s,props:o,_owner:x_.current}}gd.Fragment=y_;gd.jsx=Qb;gd.jsxs=Qb;Bb.exports=gd;var p=Bb.exports;const C_={black:"#000",white:"#fff"},ul=C_,w_={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Oi=w_,R_={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Mi=R_,E_={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Li=E_,__={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Fi=__,k_={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Di=k_,T_={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ha=T_,A_={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"},$_=A_;function Mo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[o]=e[o]);return n}function Xb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var P_=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,N_=Xb(function(e){return P_.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function I_(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ut(ta,--Sn):0,Os--,Rt===10&&(Os=1,bd--),Rt}function $n(){return Rt=Sn2||fl(Rt)>3?"":" "}function K_(e,t){for(;--t&&$n()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Yl(e,eu()+(t<6&&Pr()==32&&$n()==32))}function sh(e){for(;$n();)switch(Rt){case e:return Sn;case 34:case 39:e!==34&&e!==39&&sh(Rt);break;case 40:e===41&&sh(e);break;case 92:$n();break}return Sn}function q_(e,t){for(;$n()&&e+Rt!==57;)if(e+Rt===84&&Pr()===47)break;return"/*"+Yl(t,Sn-1)+"*"+yd(e===47?e:$n())}function G_(e){for(;!fl(Pr());)$n();return Yl(e,Sn)}function Q_(e){return nx(nu("",null,null,null,[""],e=tx(e),0,[0],e))}function nu(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,b=0,m=0,g=1,C=1,v=1,h=0,y="",S=o,R=i,_=r,E=y;C;)switch(m=h,h=$n()){case 40:if(m!=108&&Ut(E,d-1)==58){ih(E+=qe(tu(h),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=tu(h);break;case 9:case 10:case 13:case 32:E+=H_(m);break;case 92:E+=K_(eu()-1,7);continue;case 47:switch(Pr()){case 42:case 47:xc(X_(q_($n(),eu()),t,n),l);break;default:E+="/"}break;case 123*g:a[c++]=Rr(E)*v;case 125*g:case 59:case 0:switch(h){case 0:case 125:C=0;case 59+u:v==-1&&(E=qe(E,/\f/g,"")),b>0&&Rr(E)-d&&xc(b>32?fy(E+";",r,n,d-1):fy(qe(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(xc(_=dy(E,t,n,c,u,o,a,y,S=[],R=[],d),i),h===123)if(u===0)nu(E,t,_,_,S,i,d,a,R);else switch(f===99&&Ut(E,3)===110?100:f){case 100:case 108:case 109:case 115:nu(e,_,_,r&&xc(dy(e,_,_,0,0,o,a,y,o,S=[],d),R),o,R,d,a,r?S:R);break;default:nu(E,_,_,_,[""],R,0,a,R)}}c=u=b=0,g=v=1,y=E="",d=s;break;case 58:d=1+Rr(E),b=m;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&W_()==125)continue}switch(E+=yd(h),h*g){case 38:v=u>0?1:(E+="\f",-1);break;case 44:a[c++]=(Rr(E)-1)*v,v=1;break;case 64:Pr()===45&&(E+=tu($n())),f=Pr(),u=d=Rr(y=E+=G_(eu())),h++;break;case 45:m===45&&Rr(E)==2&&(g=0)}}return i}function dy(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],b=qm(f),m=0,g=0,C=0;m0?f[v]+" "+h:qe(h,/&\f/g,f[v])))&&(l[C++]=y);return xd(e,t,n,o===0?Hm:a,l,c,u)}function X_(e,t,n){return xd(e,t,n,Yb,yd(V_()),dl(e,2,-2),0)}function fy(e,t,n,r){return xd(e,t,n,Km,dl(e,0,r),dl(e,r+1,-1),r)}function ls(e,t){for(var n="",r=qm(e),o=0;o6)switch(Ut(e,t+1)){case 109:if(Ut(e,t+4)!==45)break;case 102:return qe(e,/(.+:)(.+)-([^]+)/,"$1"+Ke+"$2-$3$1"+Ru+(Ut(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ih(e,"stretch")?rx(qe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ut(e,t+1)!==115)break;case 6444:switch(Ut(e,Rr(e)-3-(~ih(e,"!important")&&10))){case 107:return qe(e,":",":"+Ke)+e;case 101:return qe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ke+(Ut(e,14)===45?"inline-":"")+"box$3$1"+Ke+"$2$3$1"+Gt+"$2box$3")+e}break;case 5936:switch(Ut(e,t+11)){case 114:return Ke+e+Gt+qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ke+e+Gt+qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ke+e+Gt+qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ke+e+Gt+e+e}return e}var ik=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Km:t.return=rx(t.value,t.length);break;case Zb:return ls([ma(t,{value:qe(t.value,"@","@"+Ke)})],o);case Hm:if(t.length)return U_(t.props,function(i){switch(z_(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ls([ma(t,{props:[qe(i,/:(read-\w+)/,":"+Ru+"$1")]})],o);case"::placeholder":return ls([ma(t,{props:[qe(i,/:(plac\w+)/,":"+Ke+"input-$1")]}),ma(t,{props:[qe(i,/:(plac\w+)/,":"+Ru+"$1")]}),ma(t,{props:[qe(i,/:(plac\w+)/,Gt+"input-$1")]})],o)}return""})}},sk=[ik],ak=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||sk,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var C=g.getAttribute("data-emotion").split(" "),v=1;v=0)&&(n[o]=e[o]);return n}function a0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var J9=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,W9=a0(function(e){return J9.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Q9(e){if(e.sheet)return e.sheet;for(var t=0;t0?Jt(oa,--Sn):0,Bs--,Ct===10&&(Bs=1,Rf--),Ct}function kn(){return Ct=Sn2||ml(Ct)>3?"":" "}function s5(e,t){for(;--t&&kn()&&!(Ct<48||Ct>102||Ct>57&&Ct<65||Ct>70&&Ct<97););return nc(e,ou()+(t<6&&zr()==32&&kn()==32))}function ph(e){for(;kn();)switch(Ct){case e:return Sn;case 34:case 39:e!==34&&e!==39&&ph(Ct);break;case 40:e===41&&ph(e);break;case 92:kn();break}return Sn}function a5(e,t){for(;kn()&&e+Ct!==57;)if(e+Ct===84&&zr()===47)break;return"/*"+nc(t,Sn-1)+"*"+Cf(e===47?e:kn())}function l5(e){for(;!ml(zr());)kn();return nc(e,Sn)}function c5(e){return p0(su("",null,null,null,[""],e=d0(e),0,[0],e))}function su(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,f=s,p=0,y=0,v=0,m=1,b=1,A=1,h=0,P="",w=o,S=i,C=r,H=P;b;)switch(v=h,h=kn()){case 40:if(v!=108&&Jt(H,f-1)==58){dh(H+=Qe(iu(h),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:H+=iu(h);break;case 9:case 10:case 13:case 32:H+=i5(v);break;case 92:H+=s5(ou()-1,7);continue;case 47:switch(zr()){case 42:case 47:Hc(u5(a5(kn(),ou()),t,n),l);break;default:H+="/"}break;case 123*m:a[c++]=Hr(H)*A;case 125*m:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+u:A==-1&&(H=Qe(H,/\f/g,"")),y>0&&Hr(H)-f&&Hc(y>32?SP(H+";",r,n,f-1):SP(Qe(H," ","")+";",r,n,f-2),l);break;case 59:H+=";";default:if(Hc(C=xP(H,t,n,c,u,o,a,P,w=[],S=[],f),i),h===123)if(u===0)su(H,t,C,C,w,i,f,a,S);else switch(p===99&&Jt(H,3)===110?100:p){case 100:case 108:case 109:case 115:su(e,C,C,r&&Hc(xP(e,C,C,0,0,o,a,P,o,w=[],f),S),o,S,f,a,r?w:S);break;default:su(H,C,C,C,[""],S,0,a,S)}}c=u=y=0,m=A=1,P=H="",f=s;break;case 58:f=1+Hr(H),y=v;default:if(m<1){if(h==123)--m;else if(h==125&&m++==0&&o5()==125)continue}switch(H+=Cf(h),h*m){case 38:A=u>0?1:(H+="\f",-1);break;case 44:a[c++]=(Hr(H)-1)*A,A=1;break;case 64:zr()===45&&(H+=iu(kn())),p=zr(),u=f=Hr(P=H+=l5(ou())),h++;break;case 45:v===45&&Hr(H)==2&&(m=0)}}return i}function xP(e,t,n,r,o,i,s,a,l,c,u){for(var f=o-1,p=o===0?i:[""],y=rA(p),v=0,m=0,b=0;v0?p[A]+" "+h:Qe(h,/&\f/g,p[A])))&&(l[b++]=P);return Df(e,t,n,o===0?tA:a,l,c,u)}function u5(e,t,n){return Df(e,t,n,l0,Cf(r5()),Al(e,2,-2),0)}function SP(e,t,n,r){return Df(e,t,n,nA,Al(e,0,r),Al(e,r+1,-1),r)}function us(e,t){for(var n="",r=rA(e),o=0;o6)switch(Jt(e,t+1)){case 109:if(Jt(e,t+4)!==45)break;case 102:return Qe(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Eu+(Jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dh(e,"stretch")?h0(Qe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jt(e,t+1)!==115)break;case 6444:switch(Jt(e,Hr(e)-3-(~dh(e,"!important")&&10))){case 107:return Qe(e,":",":"+We)+e;case 101:return Qe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(Jt(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+Yt+"$2box$3")+e}break;case 5936:switch(Jt(e,t+11)){case 114:return We+e+Yt+Qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+Yt+Qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+Yt+Qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+Yt+e+e}return e}var y5=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case nA:t.return=h0(t.value,t.length);break;case c0:return us([ma(t,{value:Qe(t.value,"@","@"+We)})],o);case tA:if(t.length)return n5(t.props,function(i){switch(t5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return us([ma(t,{props:[Qe(i,/:(read-\w+)/,":"+Eu+"$1")]})],o);case"::placeholder":return us([ma(t,{props:[Qe(i,/:(plac\w+)/,":"+We+"input-$1")]}),ma(t,{props:[Qe(i,/:(plac\w+)/,":"+Eu+"$1")]}),ma(t,{props:[Qe(i,/:(plac\w+)/,Yt+"input-$1")]})],o)}return""})}},g5=[y5],b5=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||g5,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),A=1;A=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var bk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xk=/[A-Z]|^ms/g,Sk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ux=function(t){return t.charCodeAt(1)===45},hy=function(t){return t!=null&&typeof t!="boolean"},op=Xb(function(e){return ux(e)?e:e.replace(xk,"-$&").toLowerCase()}),my=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Sk,function(r,o,i){return Er={name:o,styles:i,next:Er},o})}return bk[t]!==1&&!ux(t)&&typeof n=="number"&&n!==0?n+"px":n};function pl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Er={name:n.name,styles:n.styles,next:Er},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Er={name:r.name,styles:r.styles,next:Er},r=r.next;var o=n.styles+";";return o}return Ck(e,t,n)}case"function":{if(e!==void 0){var i=Er,s=n(e);return Er=i,pl(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function Ck(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?kk:Tk},by=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Ak=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return lx(n,r,o),Rk(function(){return cx(n,r,o)}),null},$k=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=by(t,n,r),l=a||yy(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,b=1;bt(Nk(o)?n:o):t;return p.jsx(Ek,{styles:r})}function hx(e,t){return ah(e,t)}const Ok=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function fo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mx(e){if(!fo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=mx(e[n])}),t}function mn(e,t,n={clone:!0}){const r=n.clone?w({},e):e;return fo(e)&&fo(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(fo(t[o])&&o in e&&fo(e[o])?r[o]=mn(e[o],t[o],n):n.clone?r[o]=fo(t[o])?mx(t[o]):t[o]:r[o]=t[o])}),r}function te(e){if(typeof e!="string")throw new Error(Mo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Eu(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Nd(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Mk(e,t){return()=>null}function Ka(e,t){var n,r;return x.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function vn(e){return e&&e.ownerDocument||document}function Or(e){return vn(e).defaultView||window}function Lk(e,t){return()=>null}function _u(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Xn=typeof window<"u"?x.useLayoutEffect:x.useEffect;let xy=0;function Fk(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(xy+=1,n(`mui-${xy}`))},[t]),r}const Sy=wu.useId;function Zl(e){if(Sy!==void 0){const t=Sy();return e??t}return Fk(e)}function Dk(e,t,n,r,o){return null}function hl({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[i,s]=x.useState(t),a=o?e:i,l=x.useCallback(c=>{o||s(c)},[]);return[a,l]}function Zo(e){const t=x.useRef(e);return Xn(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function St(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{_u(n,t)})},e)}const Cy={};function jk(e,t){const n=x.useRef(Cy);return n.current===Cy&&(n.current=e(t)),n}const Bk=[];function zk(e){x.useEffect(e,Bk)}class Id{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Id}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function vx(){const e=jk(Id.create).current;return zk(e.disposeEffect),e}let Od=!0,lh=!1;const Uk=new Id,Vk={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Wk(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Vk[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Hk(e){e.metaKey||e.altKey||e.ctrlKey||(Od=!0)}function ip(){Od=!1}function Kk(){this.visibilityState==="hidden"&&lh&&(Od=!0)}function qk(e){e.addEventListener("keydown",Hk,!0),e.addEventListener("mousedown",ip,!0),e.addEventListener("pointerdown",ip,!0),e.addEventListener("touchstart",ip,!0),e.addEventListener("visibilitychange",Kk,!0)}function Gk(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Od||Wk(t)}function gx(){const e=x.useCallback(o=>{o!=null&&qk(o.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(lh=!0,Uk.start(100,()=>{lh=!1}),t.current=!1,!0):!1}function r(o){return Gk(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function yx(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Jm(e,t){const n=w({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=w({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=w({},i),Object.keys(o).forEach(s=>{n[r][s]=Jm(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function $e(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const wy=e=>e,Qk=()=>{let e=wy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=wy}}},Xk=Qk(),ev=Xk,Yk={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 ke(e,t,n="Mui"){const r=Yk[t];return r?`${n}-${r}`:`${ev.generate(e)}-${t}`}function Te(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ke(e,o,n)}),r}function Zk(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Jk=["values","unit","step"],e2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>w({},n,{[r.key]:r.val}),{})};function t2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=le(e,Jk),i=e2(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,b){const m=s.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:b)-r/100}${n})`}function u(f){return s.indexOf(f)+1`@media (min-width:${tv[e]}px)`};function Cn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Ry;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Ry;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||tv).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function bx(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function xx(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function o2(e,...t){const n=bx(e),r=[n,...t].reduce((o,i)=>mn(o,i),{});return xx(Object.keys(n),r)}function i2(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function fi({values:e,breakpoints:t,base:n}){const r=n||i2(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Md(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ku(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Md(e,n)||r,t&&(o=t(o,r,e)),o}function Ct(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Md(l,r)||{};return Cn(s,a,d=>{let f=ku(c,o,d);return d===f&&typeof d=="string"&&(f=ku(c,o,`${t}${d==="default"?"":te(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function s2(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const a2={m:"margin",p:"padding"},l2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ey={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c2=s2(e=>{if(e.length>2)if(Ey[e])e=Ey[e];else return[e];const[t,n]=e.split(""),r=a2[t],o=l2[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),nv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nv,...rv];function Jl(e,t,n,r){var o;const i=(o=Md(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function ov(e){return Jl(e,"spacing",8)}function gi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function u2(e,t){return n=>e.reduce((r,o)=>(r[o]=gi(t,n),r),{})}function d2(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=c2(n),i=u2(o,r),s=e[n];return Cn(e,s,i)}function Sx(e,t){const n=ov(e.theme);return Object.keys(e).map(r=>d2(e,t,r,n)).reduce(qa,{})}function vt(e){return Sx(e,nv)}vt.propTypes={};vt.filterProps=nv;function gt(e){return Sx(e,rv)}gt.propTypes={};gt.filterProps=rv;function f2(e=8){if(e.mui)return e;const t=ov({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Ld(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?qa(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Vn(e){return typeof e!="number"?e:`${e}px solid`}function Jn(e,t){return Ct({prop:e,themeKey:"borders",transform:t})}const p2=Jn("border",Vn),h2=Jn("borderTop",Vn),m2=Jn("borderRight",Vn),v2=Jn("borderBottom",Vn),g2=Jn("borderLeft",Vn),y2=Jn("borderColor"),b2=Jn("borderTopColor"),x2=Jn("borderRightColor"),S2=Jn("borderBottomColor"),C2=Jn("borderLeftColor"),w2=Jn("outline",Vn),R2=Jn("outlineColor"),Fd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Jl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:gi(t,r)});return Cn(e,e.borderRadius,n)}return null};Fd.propTypes={};Fd.filterProps=["borderRadius"];Ld(p2,h2,m2,v2,g2,y2,b2,x2,S2,C2,Fd,w2,R2);const Dd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Jl(e.theme,"spacing",8),n=r=>({gap:gi(t,r)});return Cn(e,e.gap,n)}return null};Dd.propTypes={};Dd.filterProps=["gap"];const jd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Jl(e.theme,"spacing",8),n=r=>({columnGap:gi(t,r)});return Cn(e,e.columnGap,n)}return null};jd.propTypes={};jd.filterProps=["columnGap"];const Bd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Jl(e.theme,"spacing",8),n=r=>({rowGap:gi(t,r)});return Cn(e,e.rowGap,n)}return null};Bd.propTypes={};Bd.filterProps=["rowGap"];const E2=Ct({prop:"gridColumn"}),_2=Ct({prop:"gridRow"}),k2=Ct({prop:"gridAutoFlow"}),T2=Ct({prop:"gridAutoColumns"}),A2=Ct({prop:"gridAutoRows"}),$2=Ct({prop:"gridTemplateColumns"}),P2=Ct({prop:"gridTemplateRows"}),N2=Ct({prop:"gridTemplateAreas"}),I2=Ct({prop:"gridArea"});Ld(Dd,jd,Bd,E2,_2,k2,T2,A2,$2,P2,N2,I2);function cs(e,t){return t==="grey"?t:e}const O2=Ct({prop:"color",themeKey:"palette",transform:cs}),M2=Ct({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cs}),L2=Ct({prop:"backgroundColor",themeKey:"palette",transform:cs});Ld(O2,M2,L2);function Tn(e){return e<=1&&e!==0?`${e*100}%`:e}const F2=Ct({prop:"width",transform:Tn}),iv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||tv[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Tn(n)}};return Cn(e,e.maxWidth,t)}return null};iv.filterProps=["maxWidth"];const D2=Ct({prop:"minWidth",transform:Tn}),j2=Ct({prop:"height",transform:Tn}),B2=Ct({prop:"maxHeight",transform:Tn}),z2=Ct({prop:"minHeight",transform:Tn});Ct({prop:"size",cssProperty:"width",transform:Tn});Ct({prop:"size",cssProperty:"height",transform:Tn});const U2=Ct({prop:"boxSizing"});Ld(F2,iv,D2,j2,B2,z2,U2);const V2={border:{themeKey:"borders",transform:Vn},borderTop:{themeKey:"borders",transform:Vn},borderRight:{themeKey:"borders",transform:Vn},borderBottom:{themeKey:"borders",transform:Vn},borderLeft:{themeKey:"borders",transform:Vn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fd},color:{themeKey:"palette",transform:cs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cs},backgroundColor:{themeKey:"palette",transform:cs},p:{style:gt},pt:{style:gt},pr:{style:gt},pb:{style:gt},pl:{style:gt},px:{style:gt},py:{style:gt},padding:{style:gt},paddingTop:{style:gt},paddingRight:{style:gt},paddingBottom:{style:gt},paddingLeft:{style:gt},paddingX:{style:gt},paddingY:{style:gt},paddingInline:{style:gt},paddingInlineStart:{style:gt},paddingInlineEnd:{style:gt},paddingBlock:{style:gt},paddingBlockStart:{style:gt},paddingBlockEnd:{style:gt},m:{style:vt},mt:{style:vt},mr:{style:vt},mb:{style:vt},ml:{style:vt},mx:{style:vt},my:{style:vt},margin:{style:vt},marginTop:{style:vt},marginRight:{style:vt},marginBottom:{style:vt},marginLeft:{style:vt},marginX:{style:vt},marginY:{style:vt},marginInline:{style:vt},marginInlineStart:{style:vt},marginInlineEnd:{style:vt},marginBlock:{style:vt},marginBlockStart:{style:vt},marginBlockEnd:{style:vt},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:Dd},rowGap:{style:Bd},columnGap:{style:jd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tn},maxWidth:{style:iv},minWidth:{transform:Tn},height:{transform:Tn},maxHeight:{transform:Tn},minHeight:{transform:Tn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},zd=V2;function W2(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function H2(e,t){return typeof e=="function"?e(t):e}function K2(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Md(o,c)||{};return d?d(s):Cn(s,r,m=>{let g=ku(f,u,m);return m===g&&typeof m=="string"&&(g=ku(f,u,`${n}${m==="default"?"":te(m)}`,m)),l===!1?g:{[l]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:zd;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=bx(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(b=>{const m=H2(c[b],i);if(m!=null)if(typeof m=="object")if(s[b])f=qa(f,e(b,m,i,s));else{const g=Cn({theme:i},m,C=>({[b]:C}));W2(g,m)?f[b]=t({sx:m,theme:i}):f=qa(f,g)}else f=qa(f,e(b,m,i,s))}),xx(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const ec=K2();ec.filterProps=["sx"];function q2(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const G2=["breakpoints","palette","spacing","shape"];function Ud(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=le(e,G2),a=t2(n),l=f2(o);let c=mn({breakpoints:a,direction:"ltr",components:{},palette:w({mode:"light"},r),spacing:l,shape:w({},r2,i)},s);return c.applyStyles=q2,c=t.reduce((u,d)=>mn(u,d),c),c.unstable_sxConfig=w({},zd,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return ec({sx:d,theme:this})},c}function Q2(e){return Object.keys(e).length===0}function sv(e=null){const t=x.useContext(Pd);return!t||Q2(t)?e:t}const X2=Ud();function Vd(e=X2){return sv(e)}function Y2({styles:e,themeId:t,defaultTheme:n={}}){const r=Vd(n),o=typeof e=="function"?e(t&&r[t]||r):e;return p.jsx(Ik,{styles:o})}const Z2=["sx"],J2=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:zd;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Wd(e){const{sx:t}=e,n=le(e,Z2),{systemProps:r,otherProps:o}=J2(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return fo(a)?w({},r,a):r}:i=w({},r,t),w({},o,{sx:i})}function Cx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(ec);return x.forwardRef(function(l,c){const u=Vd(n),d=Wd(l),{className:f,component:b="div"}=d,m=le(d,eT);return p.jsx(i,w({as:b,ref:c,className:ue(f,o?o(r):r),theme:t&&u[t]||u},m))})}const nT=["ownerState"],rT=["variants"],oT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iT(e){return Object.keys(e).length===0}function sT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ga(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const aT=Ud(),lT=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Sc({defaultTheme:e,theme:t,themeId:n}){return iT(t)?e:t[n]||t}function cT(e){return e?(t,n)=>n[e]:null}function ru(e,t){let{ownerState:n}=t,r=le(t,nT);const o=typeof e=="function"?e(w({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>ru(i,w({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=le(o,rT);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(w({ownerState:n},r)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(w({ownerState:n},r)):l.style))}),a}return o}function wx(e={}){const{themeId:t,defaultTheme:n=aT,rootShouldForwardProp:r=Ga,slotShouldForwardProp:o=Ga}=e,i=s=>ec(w({},s,{theme:Sc(w({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Ok(s,R=>R.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=cT(lT(c))}=a,b=le(a,oT),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,g=d||!1;let C,v=Ga;c==="Root"||c==="root"?v=r:c?v=o:sT(s)&&(v=void 0);const h=hx(s,w({shouldForwardProp:v,label:C},b)),y=R=>typeof R=="function"&&R.__emotion_real!==R||fo(R)?_=>ru(R,w({},_,{theme:Sc({theme:_.theme,defaultTheme:n,themeId:t})})):R,S=(R,..._)=>{let E=y(R);const k=_?_.map(y):[];l&&f&&k.push(V=>{const z=Sc(w({},V,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[l]||!z.components[l].styleOverrides)return null;const j=z.components[l].styleOverrides,U={};return Object.entries(j).forEach(([H,G])=>{U[H]=ru(G,w({},V,{theme:z}))}),f(V,U)}),l&&!m&&k.push(V=>{var z;const j=Sc(w({},V,{defaultTheme:n,themeId:t})),U=j==null||(z=j.components)==null||(z=z[l])==null?void 0:z.variants;return ru({variants:U},w({},V,{theme:j}))}),g||k.push(i);const F=k.length-_.length;if(Array.isArray(R)&&F>0){const V=new Array(F).fill("");E=[...R,...V],E.raw=[...R.raw,...V]}const P=h(E,...k);return s.muiName&&(P.muiName=s.muiName),P};return h.withConfig&&(S.withConfig=h.withConfig),S}}const uT=wx();function Rx(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Jm(t.components[n].defaultProps,r)}function Ex({props:e,name:t,defaultTheme:n,themeId:r}){let o=Vd(n);return r&&(o=o[r]||o),Rx({theme:o,name:t,props:e})}function av(e,t=0,n=1){return Zk(e,t,n)}function dT(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yi(e){if(e.type)return e;if(e.charAt(0)==="#")return yi(dT(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Mo(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Mo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Hd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function fT(e){e=yi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Hd({type:a,values:l})}function _y(e){e=yi(e);let t=e.type==="hsl"||e.type==="hsla"?yi(fT(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pT(e,t){const n=_y(e),r=_y(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ze(e,t){return e=yi(e),t=av(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hd(e)}function Tu(e,t){if(e=yi(e),t=av(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Hd(e)}function Au(e,t){if(e=yi(e),t=av(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Hd(e)}const hT=x.createContext(null),_x=hT;function kx(){return x.useContext(_x)}const mT=typeof Symbol=="function"&&Symbol.for,vT=mT?Symbol.for("mui.nested"):"__THEME_NESTED__";function gT(e,t){return typeof t=="function"?t(e):w({},e,t)}function yT(e){const{children:t,theme:n}=e,r=kx(),o=x.useMemo(()=>{const i=r===null?n:gT(r,n);return i!=null&&(i[vT]=r!==null),i},[n,r]);return p.jsx(_x.Provider,{value:o,children:t})}const ky={};function Ty(e,t,n,r=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?w({},t,{[e]:i}):i;return r?()=>s:s}return e?w({},t,{[e]:n}):w({},t,n)},[e,t,n,r])}function bT(e){const{children:t,theme:n,themeId:r}=e,o=sv(ky),i=kx()||ky,s=Ty(r,o,n),a=Ty(r,i,n,!0);return p.jsx(yT,{theme:a,children:p.jsx(Pd.Provider,{value:s,children:t})})}const xT=["component","direction","spacing","divider","children","className","useFlexGap"],ST=Ud(),CT=uT("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wT(e){return Ex({props:e,name:"MuiStack",defaultTheme:ST})}function RT(e,t){const n=x.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],_T=({ownerState:e,theme:t})=>{let n=w({display:"flex",flexDirection:"column"},Cn({theme:t},fi({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=ov(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=fi({values:e.direction,base:o}),s=fi({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),n=mn(n,Cn({theme:t},s,(l,c)=>e.useFlexGap?{gap:gi(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ET(c?i[c]:e.direction)}`]:gi(r,l)}}))}return n=o2(t.breakpoints,n),n};function kT(e={}){const{createStyledComponent:t=CT,useThemeProps:n=wT,componentName:r="MuiStack"}=e,o=()=>$e({root:["root"]},l=>ke(r,l),{}),i=t(_T);return x.forwardRef(function(l,c){const u=n(l),d=Wd(u),{component:f="div",direction:b="column",spacing:m=0,divider:g,children:C,className:v,useFlexGap:h=!1}=d,y=le(d,xT),S={direction:b,spacing:m,useFlexGap:h},R=o();return p.jsx(i,w({as:f,ownerState:S,ref:c,className:ue(R.root,v)},y,{children:g?RT(C,g):C}))})}function TT(e,t){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const AT=["mode","contrastThreshold","tonalOffset"],Ay={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:ul.white,default:ul.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}},sp={text:{primary:ul.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:ul.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function $y(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Au(e.main,o):t==="dark"&&(e.dark=Tu(e.main,i)))}function $T(e="light"){return e==="dark"?{main:Li[200],light:Li[50],dark:Li[400]}:{main:Li[700],light:Li[400],dark:Li[800]}}function PT(e="light"){return e==="dark"?{main:Mi[200],light:Mi[50],dark:Mi[400]}:{main:Mi[500],light:Mi[300],dark:Mi[700]}}function NT(e="light"){return e==="dark"?{main:Oi[500],light:Oi[300],dark:Oi[700]}:{main:Oi[700],light:Oi[400],dark:Oi[800]}}function IT(e="light"){return e==="dark"?{main:Fi[400],light:Fi[300],dark:Fi[700]}:{main:Fi[700],light:Fi[500],dark:Fi[900]}}function OT(e="light"){return e==="dark"?{main:Di[400],light:Di[300],dark:Di[700]}:{main:Di[800],light:Di[500],dark:Di[900]}}function MT(e="light"){return e==="dark"?{main:ha[400],light:ha[300],dark:ha[700]}:{main:"#ed6c02",light:ha[500],dark:ha[900]}}function LT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=le(e,AT),i=e.primary||$T(t),s=e.secondary||PT(t),a=e.error||NT(t),l=e.info||IT(t),c=e.success||OT(t),u=e.warning||MT(t);function d(g){return pT(g,sp.text.primary)>=n?sp.text.primary:Ay.text.primary}const f=({color:g,name:C,mainShade:v=500,lightShade:h=300,darkShade:y=700})=>{if(g=w({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Mo(11,C?` (${C})`:"",v));if(typeof g.main!="string")throw new Error(Mo(12,C?` (${C})`:"",JSON.stringify(g.main)));return $y(g,"light",h,r),$y(g,"dark",y,r),g.contrastText||(g.contrastText=d(g.main)),g},b={dark:sp,light:Ay};return mn(w({common:w({},ul),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:$_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},b[t]),o)}const FT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function DT(e){return Math.round(e*1e5)/1e5}const Py={textTransform:"uppercase"},Ny='"Roboto", "Helvetica", "Arial", sans-serif';function jT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ny,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=le(n,FT),b=o/14,m=d||(v=>`${v/c*b}rem`),g=(v,h,y,S,R)=>w({fontFamily:r,fontWeight:v,fontSize:m(h),lineHeight:y},r===Ny?{letterSpacing:`${DT(S/h)}em`}:{},R,u),C={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,Py),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Py),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mn(w({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},C),f,{clone:!1})}const BT=.2,zT=.14,UT=.12;function ct(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${BT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${zT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${UT})`].join(",")}const VT=["none",ct(0,2,1,-1,0,1,1,0,0,1,3,0),ct(0,3,1,-2,0,2,2,0,0,1,5,0),ct(0,3,3,-2,0,3,4,0,0,1,8,0),ct(0,2,4,-1,0,4,5,0,0,1,10,0),ct(0,3,5,-1,0,5,8,0,0,1,14,0),ct(0,3,5,-1,0,6,10,0,0,1,18,0),ct(0,4,5,-2,0,7,10,1,0,2,16,1),ct(0,5,5,-3,0,8,10,1,0,3,14,2),ct(0,5,6,-3,0,9,12,1,0,3,16,2),ct(0,6,6,-3,0,10,14,1,0,4,18,3),ct(0,6,7,-4,0,11,15,1,0,4,20,3),ct(0,7,8,-4,0,12,17,2,0,5,22,4),ct(0,7,8,-4,0,13,19,2,0,5,24,4),ct(0,7,9,-4,0,14,21,2,0,5,26,4),ct(0,8,9,-5,0,15,22,2,0,6,28,5),ct(0,8,10,-5,0,16,24,2,0,6,30,5),ct(0,8,11,-5,0,17,26,2,0,6,32,5),ct(0,9,11,-5,0,18,28,2,0,7,34,6),ct(0,9,12,-6,0,19,29,2,0,7,36,6),ct(0,10,13,-6,0,20,31,3,0,8,38,7),ct(0,10,13,-6,0,21,33,3,0,8,40,7),ct(0,10,14,-6,0,22,35,3,0,8,42,7),ct(0,11,14,-7,0,23,36,3,0,9,44,8),ct(0,11,15,-7,0,24,38,3,0,9,46,8)],WT=["duration","easing","delay"],HT={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)"},KT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Iy(e){return`${Math.round(e)}ms`}function qT(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function GT(e){const t=w({},HT,e.easing),n=w({},KT,e.duration);return w({getAutoHeightDuration:qT,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return le(i,WT),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:Iy(s)} ${a} ${typeof l=="string"?l:Iy(l)}`).join(",")}},e,{easing:t,duration:n})}const QT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},XT=QT,YT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Kd(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=le(e,YT);if(e.vars)throw new Error(Mo(18));const a=LT(r),l=Ud(e);let c=mn(l,{mixins:TT(l.breakpoints,n),palette:a,shadows:VT.slice(),typography:jT(a,i),transitions:GT(o),zIndex:w({},XT)});return c=mn(c,s),c=t.reduce((u,d)=>mn(u,d),c),c.unstable_sxConfig=w({},zd,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return ec({sx:d,theme:this})},c}const ZT=Kd(),qd=ZT;function jo(){const e=Vd(qd);return e[vi]||e}function Pe({props:e,name:t}){return Ex({props:e,name:t,defaultTheme:qd,themeId:vi})}const Ht=e=>Ga(e)&&e!=="classes",JT=Ga,re=wx({themeId:vi,defaultTheme:qd,rootShouldForwardProp:Ht}),eA=["theme"];function tA(e){let{theme:t}=e,n=le(e,eA);const r=t[vi];return p.jsx(bT,w({},n,{themeId:r?vi:void 0,theme:r||t}))}const Oy=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function nA(e){return ke("MuiSvgIcon",e)}Te("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rA=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oA=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${te(t)}`,`fontSize${te(n)}`]};return $e(o,nA,r)},iA=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${te(n.color)}`],t[`fontSize${te(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,c,u,d,f,b,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),ch=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,b=le(r,rA),m=x.isValidElement(o)&&o.type==="svg",g=w({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m}),C={};u||(C.viewBox=f);const v=oA(g);return p.jsxs(iA,w({as:a,className:ue(v.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},C,b,m&&o.props,{ownerState:g,children:[m?o.props.children:o,d?p.jsx("title",{children:d}):null]}))});ch.muiName="SvgIcon";function Mr(e,t){function n(r,o){return p.jsx(ch,w({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ch.muiName,x.memo(x.forwardRef(n))}const sA={configure:e=>{ev.configure(e)}},aA=Object.freeze(Object.defineProperty({__proto__:null,capitalize:te,createChainedFunction:Eu,createSvgIcon:Mr,debounce:Nd,deprecatedPropType:Mk,isMuiElement:Ka,ownerDocument:vn,ownerWindow:Or,requirePropFactory:Lk,setRef:_u,unstable_ClassNameGenerator:sA,unstable_useEnhancedEffect:Xn,unstable_useId:Zl,unsupportedProp:Dk,useControlled:hl,useEventCallback:Zo,useForkRef:St,useIsFocusVisible:gx},Symbol.toStringTag,{value:"Module"}));var Ze={};/** + */var Vt=typeof Symbol=="function"&&Symbol.for,oA=Vt?Symbol.for("react.element"):60103,iA=Vt?Symbol.for("react.portal"):60106,Tf=Vt?Symbol.for("react.fragment"):60107,Ef=Vt?Symbol.for("react.strict_mode"):60108,kf=Vt?Symbol.for("react.profiler"):60114,jf=Vt?Symbol.for("react.provider"):60109,zf=Vt?Symbol.for("react.context"):60110,sA=Vt?Symbol.for("react.async_mode"):60111,Of=Vt?Symbol.for("react.concurrent_mode"):60111,If=Vt?Symbol.for("react.forward_ref"):60112,Lf=Vt?Symbol.for("react.suspense"):60113,w5=Vt?Symbol.for("react.suspense_list"):60120,Bf=Vt?Symbol.for("react.memo"):60115,Mf=Vt?Symbol.for("react.lazy"):60116,x5=Vt?Symbol.for("react.block"):60121,S5=Vt?Symbol.for("react.fundamental"):60117,H5=Vt?Symbol.for("react.responder"):60118,C5=Vt?Symbol.for("react.scope"):60119;function On(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case oA:switch(e=e.type,e){case sA:case Of:case Tf:case kf:case Ef:case Lf:return e;default:switch(e=e&&e.$$typeof,e){case zf:case If:case Mf:case Bf:case jf:return e;default:return t}}case iA:return t}}}function A0(e){return On(e)===Of}Ye.AsyncMode=sA;Ye.ConcurrentMode=Of;Ye.ContextConsumer=zf;Ye.ContextProvider=jf;Ye.Element=oA;Ye.ForwardRef=If;Ye.Fragment=Tf;Ye.Lazy=Mf;Ye.Memo=Bf;Ye.Portal=iA;Ye.Profiler=kf;Ye.StrictMode=Ef;Ye.Suspense=Lf;Ye.isAsyncMode=function(e){return A0(e)||On(e)===sA};Ye.isConcurrentMode=A0;Ye.isContextConsumer=function(e){return On(e)===zf};Ye.isContextProvider=function(e){return On(e)===jf};Ye.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===oA};Ye.isForwardRef=function(e){return On(e)===If};Ye.isFragment=function(e){return On(e)===Tf};Ye.isLazy=function(e){return On(e)===Mf};Ye.isMemo=function(e){return On(e)===Bf};Ye.isPortal=function(e){return On(e)===iA};Ye.isProfiler=function(e){return On(e)===kf};Ye.isStrictMode=function(e){return On(e)===Ef};Ye.isSuspense=function(e){return On(e)===Lf};Ye.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Tf||e===Of||e===kf||e===Ef||e===Lf||e===w5||typeof e=="object"&&e!==null&&(e.$$typeof===Mf||e.$$typeof===Bf||e.$$typeof===jf||e.$$typeof===zf||e.$$typeof===If||e.$$typeof===S5||e.$$typeof===H5||e.$$typeof===C5||e.$$typeof===x5)};Ye.typeOf=On;v0.exports=Ye;var R5=v0.exports,m0=R5,D5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},T5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},P0={};P0[m0.ForwardRef]=D5;P0[m0.Memo]=T5;var E5=!0;function k5(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var y0=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||E5===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},g0=function(t,n,r){y0(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function j5(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var z5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},O5=/[A-Z]|^ms/g,I5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b0=function(t){return t.charCodeAt(1)===45},CP=function(t){return t!=null&&typeof t!="boolean"},fp=a0(function(e){return b0(e)?e:e.replace(O5,"-$&").toLowerCase()}),RP=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(I5,function(r,o,i){return Cr={name:o,styles:i,next:Cr},o})}return z5[t]!==1&&!b0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Pl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cr={name:n.name,styles:n.styles,next:Cr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Cr={name:r.name,styles:r.styles,next:Cr},r=r.next;var o=n.styles+";";return o}return L5(e,t,n)}case"function":{if(e!==void 0){var i=Cr,s=n(e);return Cr=i,Pl(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function L5(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?U5:V5},kP=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},F5=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return y0(n,r,o),M5(function(){return g0(n,r,o)}),null},q5=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=kP(t,n,r),l=a||EP(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,y=1;yt(W5(o)?n:o):t;return d.jsx(N5,{styles:r})}function H0(e,t){return hh(e,t)}const K5=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function po(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function C0(e){if(!po(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=C0(e[n])}),t}function Pn(e,t,n={clone:!0}){const r=n.clone?x({},e):e;return po(e)&&po(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(po(t[o])&&o in e&&po(e[o])?r[o]=Pn(e[o],t[o],n):n.clone?r[o]=po(t[o])?C0(t[o]):t[o]:r[o]=t[o])}),r}function $(e){if(typeof e!="string")throw new Error(Bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ku(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Xf(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function G5(e,t){return()=>null}function Ka(e,t){var n,r;return g.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function yn(e){return e&&e.ownerDocument||document}function Lr(e){return yn(e).defaultView||window}function Z5(e,t){return()=>null}function ju(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Yn=typeof window<"u"?g.useLayoutEffect:g.useEffect;let jP=0;function Y5(e){const[t,n]=g.useState(e),r=e||t;return g.useEffect(()=>{t==null&&(jP+=1,n(`mui-${jP}`))},[t]),r}const zP=Tu.useId;function rc(e){if(zP!==void 0){const t=zP();return e??t}return Y5(e)}function _5(e,t,n,r,o){return null}function yl({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=g.useRef(e!==void 0),[i,s]=g.useState(t),a=o?e:i,l=g.useCallback(c=>{o||s(c)},[]);return[a,l]}function ei(e){const t=g.useRef(e);return Yn(()=>{t.current=e}),g.useRef((...n)=>(0,t.current)(...n)).current}function xt(...e){return g.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ju(n,t)})},e)}const OP={};function $5(e,t){const n=g.useRef(OP);return n.current===OP&&(n.current=e(t)),n}const e3=[];function t3(e){g.useEffect(e,e3)}class Uf{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Uf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function R0(){const e=$5(Uf.create).current;return t3(e.disposeEffect),e}let Vf=!0,vh=!1;const n3=new Uf,r3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function o3(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&r3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function i3(e){e.metaKey||e.altKey||e.ctrlKey||(Vf=!0)}function dp(){Vf=!1}function s3(){this.visibilityState==="hidden"&&vh&&(Vf=!0)}function a3(e){e.addEventListener("keydown",i3,!0),e.addEventListener("mousedown",dp,!0),e.addEventListener("pointerdown",dp,!0),e.addEventListener("touchstart",dp,!0),e.addEventListener("visibilitychange",s3,!0)}function l3(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Vf||o3(t)}function D0(){const e=g.useCallback(o=>{o!=null&&a3(o.ownerDocument)},[]),t=g.useRef(!1);function n(){return t.current?(vh=!0,n3.start(100,()=>{vh=!1}),t.current=!1,!0):!1}function r(o){return l3(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function T0(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function cA(e,t){const n=x({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=x({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=x({},i),Object.keys(o).forEach(s=>{n[r][s]=cA(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Te(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const IP=e=>e,c3=()=>{let e=IP;return{configure(t){e=t},generate(t){return e(t)},reset(){e=IP}}},u3=c3(),uA=u3,f3={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 He(e,t,n="Mui"){const r=f3[t];return r?`${n}-${r}`:`${uA.generate(e)}-${t}`}function Ce(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=He(e,o,n)}),r}function d3(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const p3=["values","unit","step"],h3=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>x({},n,{[r.key]:r.val}),{})};function v3(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=le(e,p3),i=h3(t),s=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,y){const v=s.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:y)-r/100}${n})`}function u(p){return s.indexOf(p)+1`@media (min-width:${fA[e]}px)`};function Hn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||LP;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||LP;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||fA).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function E0(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function k0(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function P3(e,...t){const n=E0(e),r=[n,...t].reduce((o,i)=>Pn(o,i),{});return k0(Object.keys(n),r)}function y3(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function hi({values:e,breakpoints:t,base:n}){const r=n||y3(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Ff(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function zu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ff(e,n)||r,t&&(o=t(o,r,e)),o}function St(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Ff(l,r)||{};return Hn(s,a,f=>{let p=zu(c,o,f);return f===p&&typeof f=="string"&&(p=zu(c,o,`${t}${f==="default"?"":$(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function g3(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const b3={m:"margin",p:"padding"},w3={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},BP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},x3=g3(e=>{if(e.length>2)if(BP[e])e=BP[e];else return[e];const[t,n]=e.split(""),r=b3[t],o=w3[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),dA=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pA=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...dA,...pA];function oc(e,t,n,r){var o;const i=(o=Ff(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function hA(e){return oc(e,"spacing",8)}function yi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function S3(e,t){return n=>e.reduce((r,o)=>(r[o]=yi(t,n),r),{})}function H3(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=x3(n),i=S3(o,r),s=e[n];return Hn(e,s,i)}function j0(e,t){const n=hA(e.theme);return Object.keys(e).map(r=>H3(e,t,r,n)).reduce(Ga,{})}function Pt(e){return j0(e,dA)}Pt.propTypes={};Pt.filterProps=dA;function yt(e){return j0(e,pA)}yt.propTypes={};yt.filterProps=pA;function C3(e=8){if(e.mui)return e;const t=hA({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function qf(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ga(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function qn(e){return typeof e!="number"?e:`${e}px solid`}function er(e,t){return St({prop:e,themeKey:"borders",transform:t})}const R3=er("border",qn),D3=er("borderTop",qn),T3=er("borderRight",qn),E3=er("borderBottom",qn),k3=er("borderLeft",qn),j3=er("borderColor"),z3=er("borderTopColor"),O3=er("borderRightColor"),I3=er("borderBottomColor"),L3=er("borderLeftColor"),B3=er("outline",qn),M3=er("outlineColor"),Jf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=oc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:yi(t,r)});return Hn(e,e.borderRadius,n)}return null};Jf.propTypes={};Jf.filterProps=["borderRadius"];qf(R3,D3,T3,E3,k3,j3,z3,O3,I3,L3,Jf,B3,M3);const Wf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=oc(e.theme,"spacing",8),n=r=>({gap:yi(t,r)});return Hn(e,e.gap,n)}return null};Wf.propTypes={};Wf.filterProps=["gap"];const Qf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=oc(e.theme,"spacing",8),n=r=>({columnGap:yi(t,r)});return Hn(e,e.columnGap,n)}return null};Qf.propTypes={};Qf.filterProps=["columnGap"];const Kf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=oc(e.theme,"spacing",8),n=r=>({rowGap:yi(t,r)});return Hn(e,e.rowGap,n)}return null};Kf.propTypes={};Kf.filterProps=["rowGap"];const N3=St({prop:"gridColumn"}),X3=St({prop:"gridRow"}),U3=St({prop:"gridAutoFlow"}),V3=St({prop:"gridAutoColumns"}),F3=St({prop:"gridAutoRows"}),q3=St({prop:"gridTemplateColumns"}),J3=St({prop:"gridTemplateRows"}),W3=St({prop:"gridTemplateAreas"}),Q3=St({prop:"gridArea"});qf(Wf,Qf,Kf,N3,X3,U3,V3,F3,q3,J3,W3,Q3);function fs(e,t){return t==="grey"?t:e}const K3=St({prop:"color",themeKey:"palette",transform:fs}),G3=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fs}),Z3=St({prop:"backgroundColor",themeKey:"palette",transform:fs});qf(K3,G3,Z3);function Tn(e){return e<=1&&e!==0?`${e*100}%`:e}const Y3=St({prop:"width",transform:Tn}),vA=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||fA[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Tn(n)}};return Hn(e,e.maxWidth,t)}return null};vA.filterProps=["maxWidth"];const _3=St({prop:"minWidth",transform:Tn}),$3=St({prop:"height",transform:Tn}),e4=St({prop:"maxHeight",transform:Tn}),t4=St({prop:"minHeight",transform:Tn});St({prop:"size",cssProperty:"width",transform:Tn});St({prop:"size",cssProperty:"height",transform:Tn});const n4=St({prop:"boxSizing"});qf(Y3,vA,_3,$3,e4,t4,n4);const r4={border:{themeKey:"borders",transform:qn},borderTop:{themeKey:"borders",transform:qn},borderRight:{themeKey:"borders",transform:qn},borderBottom:{themeKey:"borders",transform:qn},borderLeft:{themeKey:"borders",transform:qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Jf},color:{themeKey:"palette",transform:fs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fs},backgroundColor:{themeKey:"palette",transform:fs},p:{style:yt},pt:{style:yt},pr:{style:yt},pb:{style:yt},pl:{style:yt},px:{style:yt},py:{style:yt},padding:{style:yt},paddingTop:{style:yt},paddingRight:{style:yt},paddingBottom:{style:yt},paddingLeft:{style:yt},paddingX:{style:yt},paddingY:{style:yt},paddingInline:{style:yt},paddingInlineStart:{style:yt},paddingInlineEnd:{style:yt},paddingBlock:{style:yt},paddingBlockStart:{style:yt},paddingBlockEnd:{style:yt},m:{style:Pt},mt:{style:Pt},mr:{style:Pt},mb:{style:Pt},ml:{style:Pt},mx:{style:Pt},my:{style:Pt},margin:{style:Pt},marginTop:{style:Pt},marginRight:{style:Pt},marginBottom:{style:Pt},marginLeft:{style:Pt},marginX:{style:Pt},marginY:{style:Pt},marginInline:{style:Pt},marginInlineStart:{style:Pt},marginInlineEnd:{style:Pt},marginBlock:{style:Pt},marginBlockStart:{style:Pt},marginBlockEnd:{style:Pt},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:Wf},rowGap:{style:Kf},columnGap:{style:Qf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tn},maxWidth:{style:vA},minWidth:{transform:Tn},height:{transform:Tn},maxHeight:{transform:Tn},minHeight:{transform:Tn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Gf=r4;function o4(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function i4(e,t){return typeof e=="function"?e(t):e}function s4(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=Ff(o,c)||{};return f?f(s):Hn(s,r,v=>{let m=zu(p,u,v);return v===m&&typeof v=="string"&&(m=zu(p,u,`${n}${v==="default"?"":$(v)}`,v)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Gf;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=E0(i.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(y=>{const v=i4(c[y],i);if(v!=null)if(typeof v=="object")if(s[y])p=Ga(p,e(y,v,i,s));else{const m=Hn({theme:i},v,b=>({[y]:b}));o4(m,v)?p[y]=t({sx:v,theme:i}):p=Ga(p,m)}else p=Ga(p,e(y,v,i,s))}),k0(f,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const ic=s4();ic.filterProps=["sx"];function a4(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const l4=["breakpoints","palette","spacing","shape"];function Zf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=le(e,l4),a=v3(n),l=C3(o);let c=Pn({breakpoints:a,direction:"ltr",components:{},palette:x({mode:"light"},r),spacing:l,shape:x({},m3,i)},s);return c.applyStyles=a4,c=t.reduce((u,f)=>Pn(u,f),c),c.unstable_sxConfig=x({},Gf,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return ic({sx:f,theme:this})},c}function c4(e){return Object.keys(e).length===0}function AA(e=null){const t=g.useContext(Nf);return!t||c4(t)?e:t}const u4=Zf();function Yf(e=u4){return AA(e)}function f4({styles:e,themeId:t,defaultTheme:n={}}){const r=Yf(n),o=typeof e=="function"?e(t&&r[t]||r):e;return d.jsx(Q5,{styles:o})}const d4=["sx"],p4=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Gf;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function _f(e){const{sx:t}=e,n=le(e,d4),{systemProps:r,otherProps:o}=p4(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return po(a)?x({},r,a):r}:i=x({},r,t),x({},o,{sx:i})}function z0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(ic);return g.forwardRef(function(l,c){const u=Yf(n),f=_f(l),{className:p,component:y="div"}=f,v=le(f,h4);return d.jsx(i,x({as:y,ref:c,className:ce(p,o?o(r):r),theme:t&&u[t]||u},v))})}const A4=["ownerState"],m4=["variants"],P4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function y4(e){return Object.keys(e).length===0}function g4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Za(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const b4=Zf(),w4=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Cc({defaultTheme:e,theme:t,themeId:n}){return y4(t)?e:t[n]||t}function x4(e){return e?(t,n)=>n[e]:null}function au(e,t){let{ownerState:n}=t,r=le(t,A4);const o=typeof e=="function"?e(x({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>au(i,x({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=le(o,m4);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(x({ownerState:n},r)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(x({ownerState:n},r)):l.style))}),a}return o}function O0(e={}){const{themeId:t,defaultTheme:n=b4,rootShouldForwardProp:r=Za,slotShouldForwardProp:o=Za}=e,i=s=>ic(x({},s,{theme:Cc(x({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{K5(s,S=>S.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=x4(w4(c))}=a,y=le(a,P4),v=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=f||!1;let b,A=Za;c==="Root"||c==="root"?A=r:c?A=o:g4(s)&&(A=void 0);const h=H0(s,x({shouldForwardProp:A,label:b},y)),P=S=>typeof S=="function"&&S.__emotion_real!==S||po(S)?C=>au(S,x({},C,{theme:Cc({theme:C.theme,defaultTheme:n,themeId:t})})):S,w=(S,...C)=>{let H=P(S);const R=C?C.map(P):[];l&&p&&R.push(M=>{const U=Cc(x({},M,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const X=U.components[l].styleOverrides,F={};return Object.entries(X).forEach(([J,K])=>{F[J]=au(K,x({},M,{theme:U}))}),p(M,F)}),l&&!v&&R.push(M=>{var U;const X=Cc(x({},M,{defaultTheme:n,themeId:t})),F=X==null||(U=X.components)==null||(U=U[l])==null?void 0:U.variants;return au({variants:F},x({},M,{theme:X}))}),m||R.push(i);const L=R.length-C.length;if(Array.isArray(S)&&L>0){const M=new Array(L).fill("");H=[...S,...M],H.raw=[...S.raw,...M]}const k=h(H,...R);return s.muiName&&(k.muiName=s.muiName),k};return h.withConfig&&(w.withConfig=h.withConfig),w}}const S4=O0();function I0(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:cA(t.components[n].defaultProps,r)}function L0({props:e,name:t,defaultTheme:n,themeId:r}){let o=Yf(n);return r&&(o=o[r]||o),I0({theme:o,name:t,props:e})}function mA(e,t=0,n=1){return d3(e,t,n)}function H4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function gi(e){if(e.type)return e;if(e.charAt(0)==="#")return gi(H4(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Bo(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Bo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function $f(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function C4(e){e=gi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),$f({type:a,values:l})}function MP(e){e=gi(e);let t=e.type==="hsl"||e.type==="hsla"?gi(C4(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function R4(e,t){const n=MP(e),r=MP(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ue(e,t){return e=gi(e),t=mA(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$f(e)}function Ou(e,t){if(e=gi(e),t=mA(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return $f(e)}function Iu(e,t){if(e=gi(e),t=mA(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return $f(e)}const D4=g.createContext(null),B0=D4;function M0(){return g.useContext(B0)}const T4=typeof Symbol=="function"&&Symbol.for,E4=T4?Symbol.for("mui.nested"):"__THEME_NESTED__";function k4(e,t){return typeof t=="function"?t(e):x({},e,t)}function j4(e){const{children:t,theme:n}=e,r=M0(),o=g.useMemo(()=>{const i=r===null?n:k4(r,n);return i!=null&&(i[E4]=r!==null),i},[n,r]);return d.jsx(B0.Provider,{value:o,children:t})}const NP={};function XP(e,t,n,r=!1){return g.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?x({},t,{[e]:i}):i;return r?()=>s:s}return e?x({},t,{[e]:n}):x({},t,n)},[e,t,n,r])}function z4(e){const{children:t,theme:n,themeId:r}=e,o=AA(NP),i=M0()||NP,s=XP(r,o,n),a=XP(r,i,n,!0);return d.jsx(j4,{theme:a,children:d.jsx(Nf.Provider,{value:s,children:t})})}const O4=["component","direction","spacing","divider","children","className","useFlexGap"],I4=Zf(),L4=S4("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function B4(e){return L0({props:e,name:"MuiStack",defaultTheme:I4})}function M4(e,t){const n=g.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],X4=({ownerState:e,theme:t})=>{let n=x({display:"flex",flexDirection:"column"},Hn({theme:t},hi({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=hA(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=hi({values:e.direction,base:o}),s=hi({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const p=c>0?i[u[c-1]]:"column";i[l]=p}}),n=Pn(n,Hn({theme:t},s,(l,c)=>e.useFlexGap?{gap:yi(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${N4(c?i[c]:e.direction)}`]:yi(r,l)}}))}return n=P3(t.breakpoints,n),n};function U4(e={}){const{createStyledComponent:t=L4,useThemeProps:n=B4,componentName:r="MuiStack"}=e,o=()=>Te({root:["root"]},l=>He(r,l),{}),i=t(X4);return g.forwardRef(function(l,c){const u=n(l),f=_f(u),{component:p="div",direction:y="column",spacing:v=0,divider:m,children:b,className:A,useFlexGap:h=!1}=f,P=le(f,O4),w={direction:y,spacing:v,useFlexGap:h},S=o();return d.jsx(i,x({as:p,ownerState:w,ref:c,className:ce(S.root,A)},P,{children:m?M4(b,m):b}))})}function V4(e,t){return x({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const F4=["mode","contrastThreshold","tonalOffset"],UP={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:vl.white,default:vl.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}},pp={text:{primary:vl.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:vl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function VP(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Iu(e.main,o):t==="dark"&&(e.dark=Ou(e.main,i)))}function q4(e="light"){return e==="dark"?{main:Mi[200],light:Mi[50],dark:Mi[400]}:{main:Mi[700],light:Mi[400],dark:Mi[800]}}function J4(e="light"){return e==="dark"?{main:Bi[200],light:Bi[50],dark:Bi[400]}:{main:Bi[500],light:Bi[300],dark:Bi[700]}}function W4(e="light"){return e==="dark"?{main:Li[500],light:Li[300],dark:Li[700]}:{main:Li[700],light:Li[400],dark:Li[800]}}function Q4(e="light"){return e==="dark"?{main:Ni[400],light:Ni[300],dark:Ni[700]}:{main:Ni[700],light:Ni[500],dark:Ni[900]}}function K4(e="light"){return e==="dark"?{main:Xi[400],light:Xi[300],dark:Xi[700]}:{main:Xi[800],light:Xi[500],dark:Xi[900]}}function G4(e="light"){return e==="dark"?{main:Aa[400],light:Aa[300],dark:Aa[700]}:{main:"#ed6c02",light:Aa[500],dark:Aa[900]}}function Z4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=le(e,F4),i=e.primary||q4(t),s=e.secondary||J4(t),a=e.error||W4(t),l=e.info||Q4(t),c=e.success||K4(t),u=e.warning||G4(t);function f(m){return R4(m,pp.text.primary)>=n?pp.text.primary:UP.text.primary}const p=({color:m,name:b,mainShade:A=500,lightShade:h=300,darkShade:P=700})=>{if(m=x({},m),!m.main&&m[A]&&(m.main=m[A]),!m.hasOwnProperty("main"))throw new Error(Bo(11,b?` (${b})`:"",A));if(typeof m.main!="string")throw new Error(Bo(12,b?` (${b})`:"",JSON.stringify(m.main)));return VP(m,"light",h,r),VP(m,"dark",P,r),m.contrastText||(m.contrastText=f(m.main)),m},y={dark:pp,light:UP};return Pn(x({common:x({},vl),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:q9,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},y[t]),o)}const Y4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _4(e){return Math.round(e*1e5)/1e5}const FP={textTransform:"uppercase"},qP='"Roboto", "Helvetica", "Arial", sans-serif';function $4(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=qP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=le(n,Y4),y=o/14,v=f||(A=>`${A/c*y}rem`),m=(A,h,P,w,S)=>x({fontFamily:r,fontWeight:A,fontSize:v(h),lineHeight:P},r===qP?{letterSpacing:`${_4(w/h)}em`}:{},S,u),b={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,FP),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,FP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pn(x({htmlFontSize:c,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},b),p,{clone:!1})}const eS=.2,tS=.14,nS=.12;function ut(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${eS})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tS})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${nS})`].join(",")}const rS=["none",ut(0,2,1,-1,0,1,1,0,0,1,3,0),ut(0,3,1,-2,0,2,2,0,0,1,5,0),ut(0,3,3,-2,0,3,4,0,0,1,8,0),ut(0,2,4,-1,0,4,5,0,0,1,10,0),ut(0,3,5,-1,0,5,8,0,0,1,14,0),ut(0,3,5,-1,0,6,10,0,0,1,18,0),ut(0,4,5,-2,0,7,10,1,0,2,16,1),ut(0,5,5,-3,0,8,10,1,0,3,14,2),ut(0,5,6,-3,0,9,12,1,0,3,16,2),ut(0,6,6,-3,0,10,14,1,0,4,18,3),ut(0,6,7,-4,0,11,15,1,0,4,20,3),ut(0,7,8,-4,0,12,17,2,0,5,22,4),ut(0,7,8,-4,0,13,19,2,0,5,24,4),ut(0,7,9,-4,0,14,21,2,0,5,26,4),ut(0,8,9,-5,0,15,22,2,0,6,28,5),ut(0,8,10,-5,0,16,24,2,0,6,30,5),ut(0,8,11,-5,0,17,26,2,0,6,32,5),ut(0,9,11,-5,0,18,28,2,0,7,34,6),ut(0,9,12,-6,0,19,29,2,0,7,36,6),ut(0,10,13,-6,0,20,31,3,0,8,38,7),ut(0,10,13,-6,0,21,33,3,0,8,40,7),ut(0,10,14,-6,0,22,35,3,0,8,42,7),ut(0,11,14,-7,0,23,36,3,0,9,44,8),ut(0,11,15,-7,0,24,38,3,0,9,46,8)],oS=["duration","easing","delay"],iS={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)"},sS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function JP(e){return`${Math.round(e)}ms`}function aS(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function lS(e){const t=x({},iS,e.easing),n=x({},sS,e.duration);return x({getAutoHeightDuration:aS,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return le(i,oS),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:JP(s)} ${a} ${typeof l=="string"?l:JP(l)}`).join(",")}},e,{easing:t,duration:n})}const cS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uS=cS,fS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ed(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=le(e,fS);if(e.vars)throw new Error(Bo(18));const a=Z4(r),l=Zf(e);let c=Pn(l,{mixins:V4(l.breakpoints,n),palette:a,shadows:rS.slice(),typography:$4(a,i),transitions:lS(o),zIndex:x({},uS)});return c=Pn(c,s),c=t.reduce((u,f)=>Pn(u,f),c),c.unstable_sxConfig=x({},Gf,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return ic({sx:f,theme:this})},c}const dS=ed(),td=dS;function Uo(){const e=Yf(td);return e[Pi]||e}function Ee({props:e,name:t}){return L0({props:e,name:t,defaultTheme:td,themeId:Pi})}const Ft=e=>Za(e)&&e!=="classes",pS=Za,re=O0({themeId:Pi,defaultTheme:td,rootShouldForwardProp:Ft}),hS=["theme"];function vS(e){let{theme:t}=e,n=le(e,hS);const r=t[Pi];return d.jsx(z4,x({},n,{themeId:r?Pi:void 0,theme:r||t}))}const WP=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function AS(e){return He("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],PS=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${$(t)}`,`fontSize${$(n)}`]};return Te(o,AS,r)},yS=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,c,u,f,p,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Ah=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,y=le(r,mS),v=g.isValidElement(o)&&o.type==="svg",m=x({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:v}),b={};u||(b.viewBox=p);const A=PS(m);return d.jsxs(yS,x({as:a,className:ce(A.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},b,y,v&&o.props,{ownerState:m,children:[v?o.props.children:o,f?d.jsx("title",{children:f}):null]}))});Ah.muiName="SvgIcon";function In(e,t){function n(r,o){return d.jsx(Ah,x({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Ah.muiName,g.memo(g.forwardRef(n))}const gS={configure:e=>{uA.configure(e)}},bS=Object.freeze(Object.defineProperty({__proto__:null,capitalize:$,createChainedFunction:ku,createSvgIcon:In,debounce:Xf,deprecatedPropType:G5,isMuiElement:Ka,ownerDocument:yn,ownerWindow:Lr,requirePropFactory:Z5,setRef:ju,unstable_ClassNameGenerator:gS,unstable_useEnhancedEffect:Yn,unstable_useId:rc,unsupportedProp:_5,useControlled:yl,useEventCallback:ei,useForkRef:xt,useIsFocusVisible:D0},Symbol.toStringTag,{value:"Module"}));var $e={};/** * @license React * react-is.production.min.js * @@ -29,7 +29,7 @@ var np=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var $=(e,t,n)=>(np(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var lv=Symbol.for("react.element"),cv=Symbol.for("react.portal"),Gd=Symbol.for("react.fragment"),Qd=Symbol.for("react.strict_mode"),Xd=Symbol.for("react.profiler"),Yd=Symbol.for("react.provider"),Zd=Symbol.for("react.context"),lA=Symbol.for("react.server_context"),Jd=Symbol.for("react.forward_ref"),ef=Symbol.for("react.suspense"),tf=Symbol.for("react.suspense_list"),nf=Symbol.for("react.memo"),rf=Symbol.for("react.lazy"),cA=Symbol.for("react.offscreen"),Tx;Tx=Symbol.for("react.module.reference");function er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lv:switch(e=e.type,e){case Gd:case Xd:case Qd:case ef:case tf:return e;default:switch(e=e&&e.$$typeof,e){case lA:case Zd:case Jd:case rf:case nf:case Yd:return e;default:return t}}case cv:return t}}}Ze.ContextConsumer=Zd;Ze.ContextProvider=Yd;Ze.Element=lv;Ze.ForwardRef=Jd;Ze.Fragment=Gd;Ze.Lazy=rf;Ze.Memo=nf;Ze.Portal=cv;Ze.Profiler=Xd;Ze.StrictMode=Qd;Ze.Suspense=ef;Ze.SuspenseList=tf;Ze.isAsyncMode=function(){return!1};Ze.isConcurrentMode=function(){return!1};Ze.isContextConsumer=function(e){return er(e)===Zd};Ze.isContextProvider=function(e){return er(e)===Yd};Ze.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lv};Ze.isForwardRef=function(e){return er(e)===Jd};Ze.isFragment=function(e){return er(e)===Gd};Ze.isLazy=function(e){return er(e)===rf};Ze.isMemo=function(e){return er(e)===nf};Ze.isPortal=function(e){return er(e)===cv};Ze.isProfiler=function(e){return er(e)===Xd};Ze.isStrictMode=function(e){return er(e)===Qd};Ze.isSuspense=function(e){return er(e)===ef};Ze.isSuspenseList=function(e){return er(e)===tf};Ze.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gd||e===Xd||e===Qd||e===ef||e===tf||e===cA||typeof e=="object"&&e!==null&&(e.$$typeof===rf||e.$$typeof===nf||e.$$typeof===Yd||e.$$typeof===Zd||e.$$typeof===Jd||e.$$typeof===Tx||e.getModuleId!==void 0)};Ze.typeOf=er;function uh(e,t){return uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},uh(e,t)}function Ax(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,uh(e,t)}var $x={exports:{}},Mn={},Px={exports:{}},Nx={};/** + */var PA=Symbol.for("react.element"),yA=Symbol.for("react.portal"),nd=Symbol.for("react.fragment"),rd=Symbol.for("react.strict_mode"),od=Symbol.for("react.profiler"),id=Symbol.for("react.provider"),sd=Symbol.for("react.context"),wS=Symbol.for("react.server_context"),ad=Symbol.for("react.forward_ref"),ld=Symbol.for("react.suspense"),cd=Symbol.for("react.suspense_list"),ud=Symbol.for("react.memo"),fd=Symbol.for("react.lazy"),xS=Symbol.for("react.offscreen"),N0;N0=Symbol.for("react.module.reference");function tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case PA:switch(e=e.type,e){case nd:case od:case rd:case ld:case cd:return e;default:switch(e=e&&e.$$typeof,e){case wS:case sd:case ad:case fd:case ud:case id:return e;default:return t}}case yA:return t}}}$e.ContextConsumer=sd;$e.ContextProvider=id;$e.Element=PA;$e.ForwardRef=ad;$e.Fragment=nd;$e.Lazy=fd;$e.Memo=ud;$e.Portal=yA;$e.Profiler=od;$e.StrictMode=rd;$e.Suspense=ld;$e.SuspenseList=cd;$e.isAsyncMode=function(){return!1};$e.isConcurrentMode=function(){return!1};$e.isContextConsumer=function(e){return tr(e)===sd};$e.isContextProvider=function(e){return tr(e)===id};$e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===PA};$e.isForwardRef=function(e){return tr(e)===ad};$e.isFragment=function(e){return tr(e)===nd};$e.isLazy=function(e){return tr(e)===fd};$e.isMemo=function(e){return tr(e)===ud};$e.isPortal=function(e){return tr(e)===yA};$e.isProfiler=function(e){return tr(e)===od};$e.isStrictMode=function(e){return tr(e)===rd};$e.isSuspense=function(e){return tr(e)===ld};$e.isSuspenseList=function(e){return tr(e)===cd};$e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nd||e===od||e===rd||e===ld||e===cd||e===xS||typeof e=="object"&&e!==null&&(e.$$typeof===fd||e.$$typeof===ud||e.$$typeof===id||e.$$typeof===sd||e.$$typeof===ad||e.$$typeof===N0||e.getModuleId!==void 0)};$e.typeOf=tr;function mh(e,t){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},mh(e,t)}function X0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mh(e,t)}var U0={exports:{}},Ln={},V0={exports:{}},F0={};/** * @license React * scheduler.production.min.js * @@ -37,7 +37,7 @@ var np=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var $=(e,t,n)=>(np(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(I,M){var L=I.length;I.push(M);e:for(;0>>1,A=I[Q];if(0>>1;Qo(ae,L))Zo(ye,ae)?(I[Q]=ye,I[Z]=L,Q=Z):(I[Q]=ae,I[W]=L,Q=W);else if(Zo(ye,L))I[Q]=ye,I[Z]=L,Q=Z;else break e}}return M}function o(I,M){var L=I.sortIndex-M.sortIndex;return L!==0?L:I.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,b=!1,m=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(I){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=I)r(c),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(c)}}function S(I){if(g=!1,y(I),!m)if(n(l)!==null)m=!0,G(R);else{var M=n(c);M!==null&&X(S,M.startTime-I)}}function R(I,M){m=!1,g&&(g=!1,v(k),k=-1),b=!0;var L=f;try{for(y(M),d=n(l);d!==null&&(!(d.expirationTime>M)||I&&!V());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,f=d.priorityLevel;var A=Q(d.expirationTime<=M);M=e.unstable_now(),typeof A=="function"?d.callback=A:d===n(l)&&r(l),y(M)}else r(l);d=n(l)}if(d!==null)var K=!0;else{var W=n(c);W!==null&&X(S,W.startTime-M),K=!1}return K}finally{d=null,f=L,b=!1}}var _=!1,E=null,k=-1,F=5,P=-1;function V(){return!(e.unstable_now()-PI||125Q?(I.sortIndex=L,t(c,I),n(l)===null&&I===n(c)&&(g?(v(k),k=-1):g=!0,X(S,L-Q))):(I.sortIndex=A,t(l,I),m||b||(m=!0,G(R))),I},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(I){var M=f;return function(){var L=f;f=M;try{return I.apply(this,arguments)}finally{f=L}}}})(Nx);Px.exports=Nx;var uA=Px.exports;/** + */(function(e){function t(z,I){var B=z.length;z.push(I);e:for(;0>>1,T=z[G];if(0>>1;Go(ae,B))_o(Pe,ae)?(z[G]=Pe,z[_]=B,G=_):(z[G]=ae,z[q]=B,G=q);else if(_o(Pe,B))z[G]=Pe,z[_]=B,G=_;else break e}}return I}function o(z,I){var B=z.sortIndex-I.sortIndex;return B!==0?B:z.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,f=null,p=3,y=!1,v=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(z){for(var I=n(c);I!==null;){if(I.callback===null)r(c);else if(I.startTime<=z)r(c),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(c)}}function w(z){if(m=!1,P(z),!v)if(n(l)!==null)v=!0,K(S);else{var I=n(c);I!==null&&Z(w,I.startTime-z)}}function S(z,I){v=!1,m&&(m=!1,A(R),R=-1),y=!0;var B=p;try{for(P(I),f=n(l);f!==null&&(!(f.expirationTime>I)||z&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,p=f.priorityLevel;var T=G(f.expirationTime<=I);I=e.unstable_now(),typeof T=="function"?f.callback=T:f===n(l)&&r(l),P(I)}else r(l);f=n(l)}if(f!==null)var W=!0;else{var q=n(c);q!==null&&Z(w,q.startTime-I),W=!1}return W}finally{f=null,p=B,y=!1}}var C=!1,H=null,R=-1,L=5,k=-1;function M(){return!(e.unstable_now()-kz||125G?(z.sortIndex=B,t(c,z),n(l)===null&&z===n(c)&&(m?(A(R),R=-1):m=!0,Z(w,B-G))):(z.sortIndex=T,t(l,z),v||y||(v=!0,K(S))),z},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(z){var I=p;return function(){var B=p;p=I;try{return z.apply(this,arguments)}finally{p=B}}}})(F0);V0.exports=F0;var SS=V0.exports;/** * @license React * react-dom.production.min.js * @@ -45,14 +45,14 @@ var np=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var $=(e,t,n)=>(np(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ix=x,In=uA;function ne(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dh=Object.prototype.hasOwnProperty,dA=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,My={},Ly={};function fA(e){return dh.call(Ly,e)?!0:dh.call(My,e)?!1:dA.test(e)?Ly[e]=!0:(My[e]=!0,!1)}function pA(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function hA(e,t,n,r){if(t===null||typeof t>"u"||pA(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ln(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Wt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Wt[e]=new ln(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Wt[t]=new ln(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Wt[e]=new ln(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Wt[e]=new ln(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Wt[e]=new ln(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Wt[e]=new ln(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Wt[e]=new ln(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Wt[e]=new ln(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Wt[e]=new ln(e,5,!1,e.toLowerCase(),null,!1,!1)});var uv=/[\-:]([a-z])/g;function dv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uv,dv);Wt[t]=new ln(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(uv,dv);Wt[t]=new ln(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(uv,dv);Wt[t]=new ln(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Wt[e]=new ln(e,1,!1,e.toLowerCase(),null,!1,!1)});Wt.xlinkHref=new ln("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Wt[e]=new ln(e,1,!1,e.toLowerCase(),null,!0,!0)});function fv(e,t,n,r){var o=Wt.hasOwnProperty(t)?Wt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ph=Object.prototype.hasOwnProperty,HS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,QP={},KP={};function CS(e){return Ph.call(KP,e)?!0:Ph.call(QP,e)?!1:HS.test(e)?KP[e]=!0:(QP[e]=!0,!1)}function RS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function DS(e,t,n,r){if(t===null||typeof t>"u"||RS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kt[e]=new fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Kt[t]=new fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kt[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kt[e]=new fn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Kt[e]=new fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kt[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kt[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kt[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kt[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var gA=/[\-:]([a-z])/g;function bA(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gA,bA);Kt[t]=new fn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gA,bA);Kt[t]=new fn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gA,bA);Kt[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kt[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Kt.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kt[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function wA(e,t,n,r){var o=Kt.hasOwnProperty(t)?Kt[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{lp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fa(e):""}function mA(e){switch(e.tag){case 5:return Fa(e.type);case 16:return Fa("Lazy");case 13:return Fa("Suspense");case 19:return Fa("SuspenseList");case 0:case 2:case 15:return e=cp(e.type,!1),e;case 11:return e=cp(e.type.render,!1),e;case 1:return e=cp(e.type,!0),e;default:return""}}function mh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xi:return"Fragment";case Qi:return"Portal";case fh:return"Profiler";case pv:return"StrictMode";case ph:return"Suspense";case hh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lx:return(e.displayName||"Context")+".Consumer";case Mx:return(e._context.displayName||"Context")+".Provider";case hv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mv:return t=e.displayName||null,t!==null?t:mh(e.type)||"Memo";case lo:t=e._payload,e=e._init;try{return mh(e(t))}catch{}}return null}function vA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mh(t);case 8:return t===pv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gA(e){var t=Dx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wc(e){e._valueTracker||(e._valueTracker=gA(e))}function jx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $u(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vh(e,t){var n=t.checked;return ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Dy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Lo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Bx(e,t){t=t.checked,t!=null&&fv(e,"checked",t,!1)}function gh(e,t){Bx(e,t);var n=Lo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yh(e,t.type,n):t.hasOwnProperty("defaultValue")&&yh(e,t.type,Lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yh(e,t,n){(t!=="number"||$u(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Da=Array.isArray;function us(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Rc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yA=["Webkit","ms","Moz","O"];Object.keys(Qa).forEach(function(e){yA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qa[t]=Qa[e]})});function Wx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qa.hasOwnProperty(e)&&Qa[e]?(""+t).trim():t+"px"}function Hx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bA=ht({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Sh(e,t){if(t){if(bA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ne(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ne(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ne(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ne(62))}}function Ch(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wh=null;function vv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rh=null,ds=null,fs=null;function Uy(e){if(e=rc(e)){if(typeof Rh!="function")throw Error(ne(280));var t=e.stateNode;t&&(t=cf(t),Rh(e.stateNode,e.type,t))}}function Kx(e){ds?fs?fs.push(e):fs=[e]:ds=e}function qx(){if(ds){var e=ds,t=fs;if(fs=ds=null,Uy(e),t)for(e=0;e>>=0,e===0?32:31-($A(e)/PA|0)|0}var Ec=64,_c=4194304;function ja(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ou(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=ja(a):(i&=s,i!==0&&(r=ja(i)))}else s=n&~o,s!==0?r=ja(s):i!==0&&(r=ja(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dr(t),e[t]=n}function MA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ya),Yy=" ",Zy=!1;function pS(e,t){switch(e){case"keyup":return c$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yi=!1;function d$(e,t){switch(e){case"compositionend":return hS(t);case"keypress":return t.which!==32?null:(Zy=!0,Yy);case"textInput":return e=t.data,e===Yy&&Zy?null:e;default:return null}}function f$(e,t){if(Yi)return e==="compositionend"||!Rv&&pS(e,t)?(e=dS(),iu=Sv=wo=null,Yi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=n0(n)}}function yS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bS(){for(var e=window,t=$u();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$u(e.document)}return t}function Ev(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function S$(e){var t=bS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yS(n.ownerDocument.documentElement,n)){if(r!==null&&Ev(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=r0(n,i);var s=r0(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Zi=null,$h=null,Ja=null,Ph=!1;function o0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ph||Zi==null||Zi!==$u(r)||(r=Zi,"selectionStart"in r&&Ev(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ja&&Cl(Ja,r)||(Ja=r,r=Fu($h,"onSelect"),0ts||(e.current=Fh[ts],Fh[ts]=null,ts--)}function rt(e,t){ts++,Fh[ts]=e.current,e.current=t}var Fo={},Yt=zo(Fo),gn=zo(!1),bi=Fo;function Ls(e,t){var n=e.type.contextTypes;if(!n)return Fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yn(e){return e=e.childContextTypes,e!=null}function ju(){at(gn),at(Yt)}function d0(e,t,n){if(Yt.current!==Fo)throw Error(ne(168));rt(Yt,t),rt(gn,n)}function TS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ne(108,vA(e)||"Unknown",o));return ht({},n,r)}function Bu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fo,bi=Yt.current,rt(Yt,e),rt(gn,gn.current),!0}function f0(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=TS(e,t,bi),r.__reactInternalMemoizedMergedChildContext=e,at(gn),at(Yt),rt(Yt,e)):at(gn),rt(gn,n)}var Vr=null,uf=!1,wp=!1;function AS(e){Vr===null?Vr=[e]:Vr.push(e)}function I$(e){uf=!0,AS(e)}function Uo(){if(!wp&&Vr!==null){wp=!0;var e=0,t=Xe;try{var n=Vr;for(Xe=1;e>=s,o-=s,Hr=1<<32-dr(t)+o|n<k?(F=E,E=null):F=E.sibling;var P=f(v,E,y[k],S);if(P===null){E===null&&(E=F);break}e&&E&&P.alternate===null&&t(v,E),h=i(P,h,k),_===null?R=P:_.sibling=P,_=P,E=F}if(k===y.length)return n(v,E),ut&&qo(v,k),R;if(E===null){for(;kk?(F=E,E=null):F=E.sibling;var V=f(v,E,P.value,S);if(V===null){E===null&&(E=F);break}e&&E&&V.alternate===null&&t(v,E),h=i(V,h,k),_===null?R=V:_.sibling=V,_=V,E=F}if(P.done)return n(v,E),ut&&qo(v,k),R;if(E===null){for(;!P.done;k++,P=y.next())P=d(v,P.value,S),P!==null&&(h=i(P,h,k),_===null?R=P:_.sibling=P,_=P);return ut&&qo(v,k),R}for(E=r(v,E);!P.done;k++,P=y.next())P=b(E,v,k,P.value,S),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?k:P.key),h=i(P,h,k),_===null?R=P:_.sibling=P,_=P);return e&&E.forEach(function(z){return t(v,z)}),ut&&qo(v,k),R}function C(v,h,y,S){if(typeof y=="object"&&y!==null&&y.type===Xi&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Cc:e:{for(var R=y.key,_=h;_!==null;){if(_.key===R){if(R=y.type,R===Xi){if(_.tag===7){n(v,_.sibling),h=o(_,y.props.children),h.return=v,v=h;break e}}else if(_.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===lo&&b0(R)===_.type){n(v,_.sibling),h=o(_,y.props),h.ref=Sa(v,_,y),h.return=v,v=h;break e}n(v,_);break}else t(v,_);_=_.sibling}y.type===Xi?(h=hi(y.props.children,v.mode,S,y.key),h.return=v,v=h):(S=pu(y.type,y.key,y.props,null,v.mode,S),S.ref=Sa(v,h,y),S.return=v,v=S)}return s(v);case Qi:e:{for(_=y.key;h!==null;){if(h.key===_)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(v,h.sibling),h=o(h,y.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=Pp(y,v.mode,S),h.return=v,v=h}return s(v);case lo:return _=y._init,C(v,h,_(y._payload),S)}if(Da(y))return m(v,h,y,S);if(va(y))return g(v,h,y,S);Ic(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(v,h.sibling),h=o(h,y),h.return=v,v=h):(n(v,h),h=$p(y,v.mode,S),h.return=v,v=h),s(v)):n(v,h)}return C}var Ds=FS(!0),DS=FS(!1),oc={},Ir=zo(oc),_l=zo(oc),kl=zo(oc);function ti(e){if(e===oc)throw Error(ne(174));return e}function Ov(e,t){switch(rt(kl,t),rt(_l,e),rt(Ir,oc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xh(t,e)}at(Ir),rt(Ir,t)}function js(){at(Ir),at(_l),at(kl)}function jS(e){ti(kl.current);var t=ti(Ir.current),n=xh(t,e.type);t!==n&&(rt(_l,e),rt(Ir,n))}function Mv(e){_l.current===e&&(at(Ir),at(_l))}var ft=zo(0);function Ku(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rp=[];function Lv(){for(var e=0;en?n:4,e(!0);var r=Ep.transition;Ep.transition={};try{e(!1),t()}finally{Xe=n,Ep.transition=r}}function tC(){return Zn().memoizedState}function F$(e,t,n){var r=Io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nC(e))rC(t,n);else if(n=IS(e,t,n,r),n!==null){var o=sn();fr(n,e,r,o),oC(n,t,r)}}function D$(e,t,n){var r=Io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nC(e))rC(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,hr(a,s)){var l=t.interleaved;l===null?(o.next=o,Nv(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=IS(e,t,o,r),n!==null&&(o=sn(),fr(n,e,r,o),oC(n,t,r))}}function nC(e){var t=e.alternate;return e===pt||t!==null&&t===pt}function rC(e,t){el=qu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yv(e,n)}}var Gu={readContext:Yn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},j$={readContext:Yn,useCallback:function(e,t){return br().memoizedState=[e,t===void 0?null:t],e},useContext:Yn,useEffect:S0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cu(4194308,4,XS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cu(4194308,4,e,t)},useInsertionEffect:function(e,t){return cu(4,2,e,t)},useMemo:function(e,t){var n=br();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=br();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=F$.bind(null,pt,e),[r.memoizedState,e]},useRef:function(e){var t=br();return e={current:e},t.memoizedState=e},useState:x0,useDebugValue:zv,useDeferredValue:function(e){return br().memoizedState=e},useTransition:function(){var e=x0(!1),t=e[0];return e=L$.bind(null,e[1]),br().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pt,o=br();if(ut){if(n===void 0)throw Error(ne(407));n=n()}else{if(n=t(),jt===null)throw Error(ne(349));Si&30||US(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,S0(WS.bind(null,r,i,e),[e]),r.flags|=2048,$l(9,VS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=br(),t=jt.identifierPrefix;if(ut){var n=Kr,r=Hr;n=(r&~(1<<32-dr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tl++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{vp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Na(e):""}function TS(e){switch(e.tag){case 5:return Na(e.type);case 16:return Na("Lazy");case 13:return Na("Suspense");case 19:return Na("SuspenseList");case 0:case 2:case 15:return e=Ap(e.type,!1),e;case 11:return e=Ap(e.type.render,!1),e;case 1:return e=Ap(e.type,!0),e;default:return""}}function wh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _i:return"Fragment";case Yi:return"Portal";case yh:return"Profiler";case xA:return"StrictMode";case gh:return"Suspense";case bh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Q0:return(e.displayName||"Context")+".Consumer";case W0:return(e._context.displayName||"Context")+".Provider";case SA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case HA:return t=e.displayName||null,t!==null?t:wh(e.type)||"Memo";case co:t=e._payload,e=e._init;try{return wh(e(t))}catch{}}return null}function ES(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wh(t);case 8:return t===xA?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function G0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kS(e){var t=G0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dc(e){e._valueTracker||(e._valueTracker=kS(e))}function Z0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Lu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xh(e,t){var n=t.checked;return At({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ZP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Y0(e,t){t=t.checked,t!=null&&wA(e,"checked",t,!1)}function Sh(e,t){Y0(e,t);var n=Mo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hh(e,t.type,Mo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function YP(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Hh(e,t,n){(t!=="number"||Lu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xa=Array.isArray;function ds(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Tc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ya={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},jS=["Webkit","ms","Moz","O"];Object.keys(Ya).forEach(function(e){jS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ya[t]=Ya[e]})});function tb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ya.hasOwnProperty(e)&&Ya[e]?(""+t).trim():t+"px"}function nb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=tb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var zS=At({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dh(e,t){if(t){if(zS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ne(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ne(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ne(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ne(62))}}function Th(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Eh=null;function CA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kh=null,ps=null,hs=null;function ey(e){if(e=lc(e)){if(typeof kh!="function")throw Error(ne(280));var t=e.stateNode;t&&(t=Ad(t),kh(e.stateNode,e.type,t))}}function rb(e){ps?hs?hs.push(e):hs=[e]:ps=e}function ob(){if(ps){var e=ps,t=hs;if(hs=ps=null,ey(e),t)for(e=0;e>>=0,e===0?32:31-(qS(e)/JS|0)|0}var Ec=64,kc=4194304;function Ua(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Ua(a):(i&=s,i!==0&&(r=Ua(i)))}else s=n&~o,s!==0?r=Ua(s):i!==0&&(r=Ua(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function sc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dr(t),e[t]=n}function GS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=$a),cy=" ",uy=!1;function Sb(e,t){switch(e){case"keyup":return xH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $i=!1;function HH(e,t){switch(e){case"compositionend":return Hb(t);case"keypress":return t.which!==32?null:(uy=!0,cy);case"textInput":return e=t.data,e===cy&&uy?null:e;default:return null}}function CH(e,t){if($i)return e==="compositionend"||!OA&&Sb(e,t)?(e=wb(),cu=kA=So=null,$i=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hy(n)}}function Tb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Eb(){for(var e=window,t=Lu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lu(e.document)}return t}function IA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function IH(e){var t=Eb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tb(n.ownerDocument.documentElement,n)){if(r!==null&&IA(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=vy(n,i);var s=vy(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,es=null,Bh=null,tl=null,Mh=!1;function Ay(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mh||es==null||es!==Lu(r)||(r=es,"selectionStart"in r&&IA(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tl&&Rl(tl,r)||(tl=r,r=Fu(Bh,"onSelect"),0rs||(e.current=qh[rs],qh[rs]=null,rs--)}function ot(e,t){rs++,qh[rs]=e.current,e.current=t}var No={},$t=Fo(No),gn=Fo(!1),bi=No;function Ns(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function bn(e){return e=e.childContextTypes,e!=null}function Ju(){lt(gn),lt($t)}function xy(e,t,n){if($t.current!==No)throw Error(ne(168));ot($t,t),ot(gn,n)}function Nb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ne(108,ES(e)||"Unknown",o));return At({},n,r)}function Wu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,bi=$t.current,ot($t,e),ot(gn,gn.current),!0}function Sy(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=Nb(e,t,bi),r.__reactInternalMemoizedMergedChildContext=e,lt(gn),lt($t),ot($t,e)):lt(gn),ot(gn,n)}var Jr=null,md=!1,Ep=!1;function Xb(e){Jr===null?Jr=[e]:Jr.push(e)}function QH(e){md=!0,Xb(e)}function qo(){if(!Ep&&Jr!==null){Ep=!0;var e=0,t=Ze;try{var n=Jr;for(Ze=1;e>=s,o-=s,Qr=1<<32-dr(t)+o|n<R?(L=H,H=null):L=H.sibling;var k=p(A,H,P[R],w);if(k===null){H===null&&(H=L);break}e&&H&&k.alternate===null&&t(A,H),h=i(k,h,R),C===null?S=k:C.sibling=k,C=k,H=L}if(R===P.length)return n(A,H),ft&&Go(A,R),S;if(H===null){for(;RR?(L=H,H=null):L=H.sibling;var M=p(A,H,k.value,w);if(M===null){H===null&&(H=L);break}e&&H&&M.alternate===null&&t(A,H),h=i(M,h,R),C===null?S=M:C.sibling=M,C=M,H=L}if(k.done)return n(A,H),ft&&Go(A,R),S;if(H===null){for(;!k.done;R++,k=P.next())k=f(A,k.value,w),k!==null&&(h=i(k,h,R),C===null?S=k:C.sibling=k,C=k);return ft&&Go(A,R),S}for(H=r(A,H);!k.done;R++,k=P.next())k=y(H,A,R,k.value,w),k!==null&&(e&&k.alternate!==null&&H.delete(k.key===null?R:k.key),h=i(k,h,R),C===null?S=k:C.sibling=k,C=k);return e&&H.forEach(function(U){return t(A,U)}),ft&&Go(A,R),S}function b(A,h,P,w){if(typeof P=="object"&&P!==null&&P.type===_i&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Rc:e:{for(var S=P.key,C=h;C!==null;){if(C.key===S){if(S=P.type,S===_i){if(C.tag===7){n(A,C.sibling),h=o(C,P.props.children),h.return=A,A=h;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===co&&ky(S)===C.type){n(A,C.sibling),h=o(C,P.props),h.ref=xa(A,C,P),h.return=A,A=h;break e}n(A,C);break}else t(A,C);C=C.sibling}P.type===_i?(h=Ai(P.props.children,A.mode,w,P.key),h.return=A,A=h):(w=mu(P.type,P.key,P.props,null,A.mode,w),w.ref=xa(A,h,P),w.return=A,A=w)}return s(A);case Yi:e:{for(C=P.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===P.containerInfo&&h.stateNode.implementation===P.implementation){n(A,h.sibling),h=o(h,P.children||[]),h.return=A,A=h;break e}else{n(A,h);break}else t(A,h);h=h.sibling}h=Mp(P,A.mode,w),h.return=A,A=h}return s(A);case co:return C=P._init,b(A,h,C(P._payload),w)}if(Xa(P))return v(A,h,P,w);if(Pa(P))return m(A,h,P,w);Mc(A,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,h!==null&&h.tag===6?(n(A,h.sibling),h=o(h,P),h.return=A,A=h):(n(A,h),h=Bp(P,A.mode,w),h.return=A,A=h),s(A)):n(A,h)}return b}var Us=Kb(!0),Gb=Kb(!1),cc={},Ir=Fo(cc),kl=Fo(cc),jl=Fo(cc);function ri(e){if(e===cc)throw Error(ne(174));return e}function qA(e,t){switch(ot(jl,t),ot(kl,e),ot(Ir,cc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rh(t,e)}lt(Ir),ot(Ir,t)}function Vs(){lt(Ir),lt(kl),lt(jl)}function Zb(e){ri(jl.current);var t=ri(Ir.current),n=Rh(t,e.type);t!==n&&(ot(kl,e),ot(Ir,n))}function JA(e){kl.current===e&&(lt(Ir),lt(kl))}var ht=Fo(0);function _u(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kp=[];function WA(){for(var e=0;en?n:4,e(!0);var r=jp.transition;jp.transition={};try{e(!1),t()}finally{Ze=n,jp.transition=r}}function dw(){return $n().memoizedState}function YH(e,t,n){var r=Oo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pw(e))hw(t,n);else if(n=qb(e,t,n,r),n!==null){var o=cn();pr(n,e,r,o),vw(n,t,r)}}function _H(e,t,n){var r=Oo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pw(e))hw(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,vr(a,s)){var l=t.interleaved;l===null?(o.next=o,VA(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=qb(e,t,o,r),n!==null&&(o=cn(),pr(n,e,r,o),vw(n,t,r))}}function pw(e){var t=e.alternate;return e===vt||t!==null&&t===vt}function hw(e,t){nl=$u=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,DA(e,n)}}var ef={readContext:_n,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useInsertionEffect:Gt,useLayoutEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useMutableSource:Gt,useSyncExternalStore:Gt,useId:Gt,unstable_isNewReconciler:!1},$H={readContext:_n,useCallback:function(e,t){return gr().memoizedState=[e,t===void 0?null:t],e},useContext:_n,useEffect:zy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pu(4194308,4,aw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pu(4194308,4,e,t)},useInsertionEffect:function(e,t){return pu(4,2,e,t)},useMemo:function(e,t){var n=gr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=YH.bind(null,vt,e),[r.memoizedState,e]},useRef:function(e){var t=gr();return e={current:e},t.memoizedState=e},useState:jy,useDebugValue:YA,useDeferredValue:function(e){return gr().memoizedState=e},useTransition:function(){var e=jy(!1),t=e[0];return e=ZH.bind(null,e[1]),gr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=vt,o=gr();if(ft){if(n===void 0)throw Error(ne(407));n=n()}else{if(n=t(),Ut===null)throw Error(ne(349));xi&30||$b(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zy(tw.bind(null,r,i,e),[e]),r.flags|=2048,Il(9,ew.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=gr(),t=Ut.identifierPrefix;if(ft){var n=Kr,r=Qr;n=(r&~(1<<32-dr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[kr]=t,e[El]=r,pC(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ch(n,r),n){case"dialog":it("cancel",e),it("close",e),o=r;break;case"iframe":case"object":case"embed":it("load",e),o=r;break;case"video":case"audio":for(o=0;ozs&&(t.flags|=128,r=!0,Ca(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ku(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ca(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ut)return qt(t),null}else 2*xt()-i.renderingStartTime>zs&&n!==1073741824&&(t.flags|=128,r=!0,Ca(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xt(),t.sibling=null,n=ft.current,rt(ft,r?n&1|2:n&1),t):(qt(t),null);case 22:case 23:return qv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kn&1073741824&&(qt(t),t.subtreeFlags&6&&(t.flags|=8192)):qt(t),null;case 24:return null;case 25:return null}throw Error(ne(156,t.tag))}function q$(e,t){switch(kv(t),t.tag){case 1:return yn(t.type)&&ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return js(),at(gn),at(Yt),Lv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mv(t),null;case 13:if(at(ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ne(340));Fs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return at(ft),null;case 4:return js(),null;case 10:return Pv(t.type._context),null;case 22:case 23:return qv(),null;case 24:return null;default:return null}}var Mc=!1,Qt=!1,G$=typeof WeakSet=="function"?WeakSet:Set,he=null;function is(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){yt(e,t,r)}else n.current=null}function Qh(e,t,n){try{n()}catch(r){yt(e,t,r)}}var $0=!1;function Q$(e,t){if(Nh=Mu,e=bS(),Ev(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var b;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(b=d.firstChild)!==null;)f=d,d=b;for(;;){if(d===e)break t;if(f===n&&++c===o&&(a=s),f===i&&++u===r&&(l=s),(b=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=b}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ih={focusedElem:e,selectionRange:n},Mu=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,C=m.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ir(t.type,g),C);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(S){yt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return m=$0,$0=!1,m}function tl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Qh(t,n,i)}o=o.next}while(o!==r)}}function pf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vC(e){var t=e.alternate;t!==null&&(e.alternate=null,vC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kr],delete t[El],delete t[Lh],delete t[P$],delete t[N$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gC(e){return e.tag===5||e.tag===3||e.tag===4}function P0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Du));else if(r!==4&&(e=e.child,e!==null))for(Yh(e,t,n),e=e.sibling;e!==null;)Yh(e,t,n),e=e.sibling}function Zh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zh(e,t,n),e=e.sibling;e!==null;)Zh(e,t,n),e=e.sibling}var zt=null,ar=!1;function oo(e,t,n){for(n=n.child;n!==null;)yC(e,t,n),n=n.sibling}function yC(e,t,n){if(Nr&&typeof Nr.onCommitFiberUnmount=="function")try{Nr.onCommitFiberUnmount(of,n)}catch{}switch(n.tag){case 5:Qt||is(n,t);case 6:var r=zt,o=ar;zt=null,oo(e,t,n),zt=r,ar=o,zt!==null&&(ar?(e=zt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):zt.removeChild(n.stateNode));break;case 18:zt!==null&&(ar?(e=zt,n=n.stateNode,e.nodeType===8?Cp(e.parentNode,n):e.nodeType===1&&Cp(e,n),xl(e)):Cp(zt,n.stateNode));break;case 4:r=zt,o=ar,zt=n.stateNode.containerInfo,ar=!0,oo(e,t,n),zt=r,ar=o;break;case 0:case 11:case 14:case 15:if(!Qt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Qh(n,t,s),o=o.next}while(o!==r)}oo(e,t,n);break;case 1:if(!Qt&&(is(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){yt(n,t,a)}oo(e,t,n);break;case 21:oo(e,t,n);break;case 22:n.mode&1?(Qt=(r=Qt)||n.memoizedState!==null,oo(e,t,n),Qt=r):oo(e,t,n);break;default:oo(e,t,n)}}function N0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new G$),t.forEach(function(r){var o=oP.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function rr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Y$(r/1960))-r,10e?16:e,Ro===null)var r=!1;else{if(e=Ro,Ro=null,Yu=0,We&6)throw Error(ne(331));var o=We;for(We|=4,he=e.current;he!==null;){var i=he,s=i.child;if(he.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lxt()-Hv?pi(e,0):Wv|=n),bn(e,t)}function _C(e,t){t===0&&(e.mode&1?(t=_c,_c<<=1,!(_c&130023424)&&(_c=4194304)):t=1);var n=sn();e=Zr(e,t),e!==null&&(tc(e,t,n),bn(e,n))}function rP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_C(e,n)}function oP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ne(314))}r!==null&&r.delete(t),_C(e,n)}var kC;kC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gn.current)hn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return hn=!1,H$(e,t,n);hn=!!(e.flags&131072)}else hn=!1,ut&&t.flags&1048576&&$S(t,Uu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uu(e,t),e=t.pendingProps;var o=Ls(t,Yt.current);hs(t,n),o=Dv(null,t,r,e,o,n);var i=jv();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yn(r)?(i=!0,Bu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Iv(t),o.updater=df,t.stateNode=o,o._reactInternals=t,Uh(t,r,e,n),t=Hh(null,t,r,!0,i,n)):(t.tag=0,ut&&i&&_v(t),nn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=sP(r),e=ir(r,e),o){case 0:t=Wh(null,t,r,e,n);break e;case 1:t=k0(null,t,r,e,n);break e;case 11:t=E0(null,t,r,e,n);break e;case 14:t=_0(null,t,r,ir(r.type,e),n);break e}throw Error(ne(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),Wh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),k0(e,t,r,o,n);case 3:e:{if(uC(t),e===null)throw Error(ne(387));r=t.pendingProps,i=t.memoizedState,o=i.element,OS(e,t),Hu(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Bs(Error(ne(423)),t),t=T0(e,t,r,n,o);break e}else if(r!==o){o=Bs(Error(ne(424)),t),t=T0(e,t,r,n,o);break e}else for(An=$o(t.stateNode.containerInfo.firstChild),Pn=t,ut=!0,lr=null,n=DS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fs(),r===o){t=Jr(e,t,n);break e}nn(e,t,r,n)}t=t.child}return t;case 5:return jS(t),e===null&&jh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Oh(r,o)?s=null:i!==null&&Oh(r,i)&&(t.flags|=32),cC(e,t),nn(e,t,s,n),t.child;case 6:return e===null&&jh(t),null;case 13:return dC(e,t,n);case 4:return Ov(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ds(t,null,r,n):nn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),E0(e,t,r,o,n);case 7:return nn(e,t,t.pendingProps,n),t.child;case 8:return nn(e,t,t.pendingProps.children,n),t.child;case 12:return nn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,rt(Vu,r._currentValue),r._currentValue=s,i!==null)if(hr(i.value,s)){if(i.children===o.children&&!gn.current){t=Jr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Gr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Bh(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(ne(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Bh(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}nn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,hs(t,n),o=Yn(o),r=r(o),t.flags|=1,nn(e,t,r,n),t.child;case 14:return r=t.type,o=ir(r,t.pendingProps),o=ir(r.type,o),_0(e,t,r,o,n);case 15:return aC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ir(r,o),uu(e,t),t.tag=1,yn(r)?(e=!0,Bu(t)):e=!1,hs(t,n),LS(t,r,o),Uh(t,r,o,n),Hh(null,t,r,!0,e,n);case 19:return fC(e,t,n);case 22:return lC(e,t,n)}throw Error(ne(156,t.tag))};function TC(e,t){return eS(e,t)}function iP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qn(e,t,n,r){return new iP(e,t,n,r)}function Qv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sP(e){if(typeof e=="function")return Qv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hv)return 11;if(e===mv)return 14}return 2}function Oo(e,t){var n=e.alternate;return n===null?(n=qn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pu(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Qv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xi:return hi(n.children,o,i,t);case pv:s=8,o|=8;break;case fh:return e=qn(12,n,t,o|2),e.elementType=fh,e.lanes=i,e;case ph:return e=qn(13,n,t,o),e.elementType=ph,e.lanes=i,e;case hh:return e=qn(19,n,t,o),e.elementType=hh,e.lanes=i,e;case Fx:return mf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mx:s=10;break e;case Lx:s=9;break e;case hv:s=11;break e;case mv:s=14;break e;case lo:s=16,r=null;break e}throw Error(ne(130,e==null?e:typeof e,""))}return t=qn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function hi(e,t,n,r){return e=qn(7,e,r,t),e.lanes=n,e}function mf(e,t,n,r){return e=qn(22,e,r,t),e.elementType=Fx,e.lanes=n,e.stateNode={isHidden:!1},e}function $p(e,t,n){return e=qn(6,e,null,t),e.lanes=n,e}function Pp(e,t,n){return t=qn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aP(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dp(0),this.expirationTimes=dp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xv(e,t,n,r,o,i,s,a,l){return e=new aP(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=qn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Iv(i),e}function lP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NC)}catch(e){console.error(e)}}NC(),$x.exports=Mn;var xf=$x.exports;const za=Bm(xf),B0={disabled:!1},ed=ge.createContext(null);var pP=function(t){return t.scrollTop},Ua="unmounted",Qo="exited",Xo="entering",Wi="entered",rm="exiting",to=function(e){Ax(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Qo,i.appearStatus=Xo):l=Wi:r.unmountOnExit||r.mountOnEnter?l=Ua:l=Qo,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Ua?{status:Qo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Xo&&s!==Wi&&(i=Xo):(s===Xo||s===Wi)&&(i=rm)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Xo){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:za.findDOMNode(this);s&&pP(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qo&&this.setState({status:Ua})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[za.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||B0.disabled){this.safeSetState({status:Wi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Xo},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Wi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:za.findDOMNode(this);if(!i||B0.disabled){this.safeSetState({status:Qo},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:rm},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Qo},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:za.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ua)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=le(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ge.createElement(ed.Provider,{value:null},typeof s=="function"?s(o,a):ge.cloneElement(ge.Children.only(s),a))},t}(ge.Component);to.contextType=ed;to.propTypes={};function Bi(){}to.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bi,onEntering:Bi,onEntered:Bi,onExit:Bi,onExiting:Bi,onExited:Bi};to.UNMOUNTED=Ua;to.EXITED=Qo;to.ENTERING=Xo;to.ENTERED=Wi;to.EXITING=rm;const eg=to;function hP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tg(e,t){var n=function(i){return t&&x.isValidElement(i)?t(i):i},r=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function mP(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function Us(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function SP(e){return ke("MuiPaper",e)}Te("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const CP=["className","component","elevation","square","variant"],wP=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return $e(i,SP,o)},RP=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return w({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&w({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ze("#fff",Oy(t.elevation))}, ${ze("#fff",Oy(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),EP=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=le(r,CP),u=w({},r,{component:i,elevation:s,square:a,variant:l}),d=wP(u);return p.jsx(RP,w({as:i,ownerState:u,className:ue(d.root,o),ref:n},c))}),Ai=EP;function Vs(e){return typeof e=="string"}function _P(e,t,n){return e===void 0||Vs(e)?t:w({},t,{ownerState:w({},t.ownerState,n)})}function IC(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function kP(e,t,n){return typeof e=="function"?e(t,n):e}function z0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function TP(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=ue(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m=w({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=w({},n,o,r);return b.length>0&&(g.className=b),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const s=IC(w({},o,r)),a=z0(r),l=z0(o),c=t(s),u=ue(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=w({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=w({},c,n,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const AP=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ws(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=le(e,AP),a=i?{}:kP(r,o),{props:l,internalRef:c}=TP(w({},s,{externalSlotProps:a})),u=St(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return _P(n,w({},l,{ref:u}),o)}function $P(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,d]=x.useState(!1),f=ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},m=ue(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&d(!0),x.useEffect(()=>{if(!a&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,a,c]),p.jsx("span",{className:f,style:b,children:p.jsx("span",{className:m})})}const Un=Te("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),PP=["center","classes","className"];let Sf=e=>e,U0,V0,W0,H0;const om=550,NP=80,IP=Zm(U0||(U0=Sf` +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ip(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Zh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nC=typeof WeakMap=="function"?WeakMap:Map;function Aw(e,t,n){n=Gr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){nf||(nf=!0,sv=r),Zh(e,t)},n}function mw(e,t,n){n=Gr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Zh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Zh(e,t),typeof r!="function"&&(zo===null?zo=new Set([this]):zo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Oy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=AC.bind(null,e,t,n),t.then(e,e))}function Iy(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ly(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Gr(-1,1),t.tag=2,jo(n,t,1))),n.lanes|=1),e)}var rC=to.ReactCurrentOwner,mn=!1;function an(e,t,n,r){t.child=e===null?Gb(t,null,n,r):Us(t,e.child,n,r)}function By(e,t,n,r,o){n=n.render;var i=t.ref;return As(t,o),r=KA(e,t,n,r,i,o),n=GA(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,eo(e,t,o)):(ft&&n&&LA(t),t.flags|=1,an(e,t,r,o),t.child)}function My(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!im(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Pw(e,t,i,r,o)):(e=mu(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Rl,n(s,r)&&e.ref===t.ref)return eo(e,t,o)}return t.flags|=1,e=Io(i,r),e.ref=t.ref,e.return=t,t.child=e}function Pw(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Rl(i,r)&&e.ref===t.ref)if(mn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(mn=!0);else return t.lanes=e.lanes,eo(e,t,o)}return Yh(e,t,n,r,o)}function yw(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(ls,Dn),Dn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ot(ls,Dn),Dn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ot(ls,Dn),Dn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ot(ls,Dn),Dn|=r;return an(e,t,o,n),t.child}function gw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yh(e,t,n,r,o){var i=bn(n)?bi:$t.current;return i=Ns(t,i),As(t,o),n=KA(e,t,n,r,i,o),r=GA(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,eo(e,t,o)):(ft&&r&&LA(t),t.flags|=1,an(e,t,n,o),t.child)}function Ny(e,t,n,r,o){if(bn(n)){var i=!0;Wu(t)}else i=!1;if(As(t,o),t.stateNode===null)hu(e,t),Qb(t,n,r),Gh(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=_n(c):(c=bn(n)?bi:$t.current,c=Ns(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Ey(t,s,r,c),uo=!1;var p=t.memoizedState;s.state=p,Yu(t,r,s,o),l=t.memoizedState,a!==r||p!==l||gn.current||uo?(typeof u=="function"&&(Kh(t,n,u,r),l=t.memoizedState),(a=uo||Ty(t,n,a,r,p,l,c))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Jb(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:sr(t.type,a),s.props=c,f=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=_n(l):(l=bn(n)?bi:$t.current,l=Ns(t,l));var y=n.getDerivedStateFromProps;(u=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||p!==l)&&Ey(t,s,r,l),uo=!1,p=t.memoizedState,s.state=p,Yu(t,r,s,o);var v=t.memoizedState;a!==f||p!==v||gn.current||uo?(typeof y=="function"&&(Kh(t,n,y,r),v=t.memoizedState),(c=uo||Ty(t,n,c,r,p,v,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return _h(e,t,n,r,i,o)}function _h(e,t,n,r,o,i){gw(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Sy(t,n,!1),eo(e,t,i);r=t.stateNode,rC.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Us(t,e.child,null,i),t.child=Us(t,null,a,i)):an(e,t,a,i),t.memoizedState=r.state,o&&Sy(t,n,!0),t.child}function bw(e){var t=e.stateNode;t.pendingContext?xy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xy(e,t.context,!1),qA(e,t.containerInfo)}function Xy(e,t,n,r,o){return Xs(),MA(o),t.flags|=256,an(e,t,n,r),t.child}var $h={dehydrated:null,treeContext:null,retryLane:0};function ev(e){return{baseLanes:e,cachePool:null,transitions:null}}function ww(e,t,n){var r=t.pendingProps,o=ht.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ot(ht,o&1),e===null)return Wh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=wd(s,r,0,null),e=Ai(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ev(n),t.memoizedState=$h,e):_A(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return oC(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Io(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Io(a,i):(i=Ai(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?ev(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=$h,r}return i=e.child,e=i.sibling,r=Io(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function _A(e,t){return t=wd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Nc(e,t,n,r){return r!==null&&MA(r),Us(t,e.child,null,n),e=_A(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oC(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Ip(Error(ne(422))),Nc(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=wd({mode:"visible",children:r.children},o,0,null),i=Ai(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Us(t,e.child,null,s),t.child.memoizedState=ev(s),t.memoizedState=$h,i);if(!(t.mode&1))return Nc(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(ne(419)),r=Ip(i,r,void 0),Nc(e,t,s,r)}if(a=(s&e.childLanes)!==0,mn||a){if(r=Ut,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,$r(e,o),pr(r,e,o,-1))}return om(),r=Ip(Error(ne(421))),Nc(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=mC.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,En=ko(o.nextSibling),jn=t,ft=!0,cr=null,e!==null&&(Jn[Wn++]=Qr,Jn[Wn++]=Kr,Jn[Wn++]=wi,Qr=e.id,Kr=e.overflow,wi=t),t=_A(t,r.children),t.flags|=4096,t)}function Uy(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qh(e.return,t,n)}function Lp(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function xw(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(an(e,t,r.children,n),r=ht.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uy(e,n,t);else if(e.tag===19)Uy(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(ht,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&_u(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Lp(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&_u(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Lp(t,!0,n,null,i);break;case"together":Lp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function eo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Si|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ne(153));if(t.child!==null){for(e=t.child,n=Io(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Io(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function iC(e,t,n){switch(t.tag){case 3:bw(t),Xs();break;case 5:Zb(t);break;case 1:bn(t.type)&&Wu(t);break;case 4:qA(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ot(Gu,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ot(ht,ht.current&1),t.flags|=128,null):n&t.child.childLanes?ww(e,t,n):(ot(ht,ht.current&1),e=eo(e,t,n),e!==null?e.sibling:null);ot(ht,ht.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xw(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ot(ht,ht.current),r)break;return null;case 22:case 23:return t.lanes=0,yw(e,t,n)}return eo(e,t,n)}var Sw,tv,Hw,Cw;Sw=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};tv=function(){};Hw=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(Ir.current);var i=null;switch(n){case"input":o=xh(e,o),r=xh(e,r),i=[];break;case"select":o=At({},o,{value:void 0}),r=At({},r,{value:void 0}),i=[];break;case"textarea":o=Ch(e,o),r=Ch(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qu)}Dh(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(gl.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(gl.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&st("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Cw=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sa(e,t){if(!ft)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Zt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function sC(e,t,n){var r=t.pendingProps;switch(BA(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(t),null;case 1:return bn(t.type)&&Ju(),Zt(t),null;case 3:return r=t.stateNode,Vs(),lt(gn),lt($t),WA(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Bc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,cr!==null&&(cv(cr),cr=null))),tv(e,t),Zt(t),null;case 5:JA(t);var o=ri(jl.current);if(n=t.type,e!==null&&t.stateNode!=null)Hw(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ne(166));return Zt(t),null}if(e=ri(Ir.current),Bc(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Dr]=t,r[El]=i,e=(t.mode&1)!==0,n){case"dialog":st("cancel",r),st("close",r);break;case"iframe":case"object":case"embed":st("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Dr]=t,e[El]=r,Sw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Th(n,r),n){case"dialog":st("cancel",e),st("close",e),o=r;break;case"iframe":case"object":case"embed":st("load",e),o=r;break;case"video":case"audio":for(o=0;oqs&&(t.flags|=128,r=!0,Sa(i,!1),t.lanes=4194304)}else{if(!r)if(e=_u(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ft)return Zt(t),null}else 2*wt()-i.renderingStartTime>qs&&n!==1073741824&&(t.flags|=128,r=!0,Sa(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=wt(),t.sibling=null,n=ht.current,ot(ht,r?n&1|2:n&1),t):(Zt(t),null);case 22:case 23:return rm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Dn&1073741824&&(Zt(t),t.subtreeFlags&6&&(t.flags|=8192)):Zt(t),null;case 24:return null;case 25:return null}throw Error(ne(156,t.tag))}function aC(e,t){switch(BA(t),t.tag){case 1:return bn(t.type)&&Ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vs(),lt(gn),lt($t),WA(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return JA(t),null;case 13:if(lt(ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ne(340));Xs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return lt(ht),null;case 4:return Vs(),null;case 10:return UA(t.type._context),null;case 22:case 23:return rm(),null;case 24:return null;default:return null}}var Xc=!1,_t=!1,lC=typeof WeakSet=="function"?WeakSet:Set,he=null;function as(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function nv(e,t,n){try{n()}catch(r){gt(e,t,r)}}var Vy=!1;function cC(e,t){if(Nh=Uu,e=Eb(),IA(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++c===o&&(a=s),p===i&&++u===r&&(l=s),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xh={focusedElem:e,selectionRange:n},Uu=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,b=v.memoizedState,A=t.stateNode,h=A.getSnapshotBeforeUpdate(t.elementType===t.type?m:sr(t.type,m),b);A.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(w){gt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return v=Vy,Vy=!1,v}function rl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&nv(t,n,i)}o=o.next}while(o!==r)}}function gd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rv(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rw(e){var t=e.alternate;t!==null&&(e.alternate=null,Rw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dr],delete t[El],delete t[Fh],delete t[JH],delete t[WH])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Dw(e){return e.tag===5||e.tag===3||e.tag===4}function Fy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ov(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qu));else if(r!==4&&(e=e.child,e!==null))for(ov(e,t,n),e=e.sibling;e!==null;)ov(e,t,n),e=e.sibling}function iv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(iv(e,t,n),e=e.sibling;e!==null;)iv(e,t,n),e=e.sibling}var qt=null,lr=!1;function io(e,t,n){for(n=n.child;n!==null;)Tw(e,t,n),n=n.sibling}function Tw(e,t,n){if(Or&&typeof Or.onCommitFiberUnmount=="function")try{Or.onCommitFiberUnmount(dd,n)}catch{}switch(n.tag){case 5:_t||as(n,t);case 6:var r=qt,o=lr;qt=null,io(e,t,n),qt=r,lr=o,qt!==null&&(lr?(e=qt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qt.removeChild(n.stateNode));break;case 18:qt!==null&&(lr?(e=qt,n=n.stateNode,e.nodeType===8?Tp(e.parentNode,n):e.nodeType===1&&Tp(e,n),Hl(e)):Tp(qt,n.stateNode));break;case 4:r=qt,o=lr,qt=n.stateNode.containerInfo,lr=!0,io(e,t,n),qt=r,lr=o;break;case 0:case 11:case 14:case 15:if(!_t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&nv(n,t,s),o=o.next}while(o!==r)}io(e,t,n);break;case 1:if(!_t&&(as(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){gt(n,t,a)}io(e,t,n);break;case 21:io(e,t,n);break;case 22:n.mode&1?(_t=(r=_t)||n.memoizedState!==null,io(e,t,n),_t=r):io(e,t,n);break;default:io(e,t,n)}}function qy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lC),t.forEach(function(r){var o=PC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function or(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fC(r/1960))-r,10e?16:e,Ho===null)var r=!1;else{if(e=Ho,Ho=null,rf=0,qe&6)throw Error(ne(331));var o=qe;for(qe|=4,he=e.current;he!==null;){var i=he,s=i.child;if(he.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lwt()-tm?vi(e,0):em|=n),wn(e,t)}function Bw(e,t){t===0&&(e.mode&1?(t=kc,kc<<=1,!(kc&130023424)&&(kc=4194304)):t=1);var n=cn();e=$r(e,t),e!==null&&(sc(e,t,n),wn(e,n))}function mC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bw(e,n)}function PC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ne(314))}r!==null&&r.delete(t),Bw(e,n)}var Mw;Mw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gn.current)mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mn=!1,iC(e,t,n);mn=!!(e.flags&131072)}else mn=!1,ft&&t.flags&1048576&&Ub(t,Ku,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hu(e,t),e=t.pendingProps;var o=Ns(t,$t.current);As(t,n),o=KA(null,t,r,e,o,n);var i=GA();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bn(r)?(i=!0,Wu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,FA(t),o.updater=Pd,t.stateNode=o,o._reactInternals=t,Gh(t,r,e,n),t=_h(null,t,r,!0,i,n)):(t.tag=0,ft&&i&&LA(t),an(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=gC(r),e=sr(r,e),o){case 0:t=Yh(null,t,r,e,n);break e;case 1:t=Ny(null,t,r,e,n);break e;case 11:t=By(null,t,r,e,n);break e;case 14:t=My(null,t,r,sr(r.type,e),n);break e}throw Error(ne(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:sr(r,o),Yh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:sr(r,o),Ny(e,t,r,o,n);case 3:e:{if(bw(t),e===null)throw Error(ne(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Jb(e,t),Yu(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Fs(Error(ne(423)),t),t=Xy(e,t,r,n,o);break e}else if(r!==o){o=Fs(Error(ne(424)),t),t=Xy(e,t,r,n,o);break e}else for(En=ko(t.stateNode.containerInfo.firstChild),jn=t,ft=!0,cr=null,n=Gb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xs(),r===o){t=eo(e,t,n);break e}an(e,t,r,n)}t=t.child}return t;case 5:return Zb(t),e===null&&Wh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Uh(r,o)?s=null:i!==null&&Uh(r,i)&&(t.flags|=32),gw(e,t),an(e,t,s,n),t.child;case 6:return e===null&&Wh(t),null;case 13:return ww(e,t,n);case 4:return qA(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Us(t,null,r,n):an(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:sr(r,o),By(e,t,r,o,n);case 7:return an(e,t,t.pendingProps,n),t.child;case 8:return an(e,t,t.pendingProps.children,n),t.child;case 12:return an(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ot(Gu,r._currentValue),r._currentValue=s,i!==null)if(vr(i.value,s)){if(i.children===o.children&&!gn.current){t=eo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Gr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Qh(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(ne(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Qh(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}an(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,As(t,n),o=_n(o),r=r(o),t.flags|=1,an(e,t,r,n),t.child;case 14:return r=t.type,o=sr(r,t.pendingProps),o=sr(r.type,o),My(e,t,r,o,n);case 15:return Pw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:sr(r,o),hu(e,t),t.tag=1,bn(r)?(e=!0,Wu(t)):e=!1,As(t,n),Qb(t,r,o),Gh(t,r,o,n),_h(null,t,r,!0,e,n);case 19:return xw(e,t,n);case 22:return yw(e,t,n)}throw Error(ne(156,t.tag))};function Nw(e,t){return fb(e,t)}function yC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kn(e,t,n,r){return new yC(e,t,n,r)}function im(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gC(e){if(typeof e=="function")return im(e)?1:0;if(e!=null){if(e=e.$$typeof,e===SA)return 11;if(e===HA)return 14}return 2}function Io(e,t){var n=e.alternate;return n===null?(n=Kn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function mu(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")im(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case _i:return Ai(n.children,o,i,t);case xA:s=8,o|=8;break;case yh:return e=Kn(12,n,t,o|2),e.elementType=yh,e.lanes=i,e;case gh:return e=Kn(13,n,t,o),e.elementType=gh,e.lanes=i,e;case bh:return e=Kn(19,n,t,o),e.elementType=bh,e.lanes=i,e;case K0:return wd(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W0:s=10;break e;case Q0:s=9;break e;case SA:s=11;break e;case HA:s=14;break e;case co:s=16,r=null;break e}throw Error(ne(130,e==null?e:typeof e,""))}return t=Kn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ai(e,t,n,r){return e=Kn(7,e,r,t),e.lanes=n,e}function wd(e,t,n,r){return e=Kn(22,e,r,t),e.elementType=K0,e.lanes=n,e.stateNode={isHidden:!1},e}function Bp(e,t,n){return e=Kn(6,e,null,t),e.lanes=n,e}function Mp(e,t,n){return t=Kn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bC(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pp(0),this.expirationTimes=Pp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function sm(e,t,n,r,o,i,s,a,l){return e=new bC(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Kn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},FA(i),e}function wC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fw)}catch(e){console.error(e)}}Fw(),U0.exports=Ln;var Rd=U0.exports;const Fa=Zv(Rd),_y={disabled:!1},af=ve.createContext(null);var RC=function(t){return t.scrollTop},qa="unmounted",Yo="exited",_o="entering",Wi="entered",uv="exiting",no=function(e){X0(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Yo,i.appearStatus=_o):l=Wi:r.unmountOnExit||r.mountOnEnter?l=qa:l=Yo,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===qa?{status:Yo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==_o&&s!==Wi&&(i=_o):(s===_o||s===Wi)&&(i=uv)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===_o){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Fa.findDOMNode(this);s&&RC(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yo&&this.setState({status:qa})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Fa.findDOMNode(this),a],c=l[0],u=l[1],f=this.getTimeouts(),p=a?f.appear:f.enter;if(!o&&!s||_y.disabled){this.safeSetState({status:Wi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:_o},function(){i.props.onEntering(c,u),i.onTransitionEnd(p,function(){i.safeSetState({status:Wi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Fa.findDOMNode(this);if(!i||_y.disabled){this.safeSetState({status:Yo},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:uv},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Yo},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Fa.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===qa)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=le(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(af.Provider,{value:null},typeof s=="function"?s(o,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);no.contextType=af;no.propTypes={};function Vi(){}no.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vi,onEntering:Vi,onEntered:Vi,onExit:Vi,onExiting:Vi,onExited:Vi};no.UNMOUNTED=qa;no.EXITED=Yo;no.ENTERING=_o;no.ENTERED=Wi;no.EXITING=uv;const um=no;function DC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fm(e,t){var n=function(i){return t&&g.isValidElement(i)?t(i):i},r=Object.create(null);return e&&g.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function TC(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function Js(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function IC(e){return He("MuiPaper",e)}Ce("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 LC=["className","component","elevation","square","variant"],BC=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Te(i,IC,o)},MC=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return x({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&x({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ue("#fff",WP(t.elevation))}, ${Ue("#fff",WP(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),NC=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=le(r,LC),u=x({},r,{component:i,elevation:s,square:a,variant:l}),f=BC(u);return d.jsx(MC,x({as:i,ownerState:u,className:ce(f.root,o),ref:n},c))}),ki=NC;function Ws(e){return typeof e=="string"}function XC(e,t,n){return e===void 0||Ws(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}function qw(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function UC(e,t,n){return typeof e=="function"?e(t,n):e}function $y(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function VC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=ce(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=x({},n,o,r);return y.length>0&&(m.className=y),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const s=qw(x({},o,r)),a=$y(r),l=$y(o),c=t(s),u=ce(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=x({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=x({},c,n,l,a);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const FC=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Qs(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=le(e,FC),a=i?{}:UC(r,o),{props:l,internalRef:c}=VC(x({},s,{externalSlotProps:a})),u=xt(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return XC(n,x({},l,{ref:u}),o)}function qC(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,f]=g.useState(!1),p=ce(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},v=ce(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&f(!0),g.useEffect(()=>{if(!a&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,a,c]),d.jsx("span",{className:p,style:y,children:d.jsx("span",{className:v})})}const Fn=Ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),JC=["center","classes","className"];let Dd=e=>e,eg,tg,ng,rg;const fv=550,WC=80,QC=lA(eg||(eg=Dd` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),OP=Zm(V0||(V0=Sf` +`)),KC=lA(tg||(tg=Dd` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),MP=Zm(W0||(W0=Sf` +`)),GC=lA(ng||(ng=Dd` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),LP=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),FP=re($P,{name:"MuiTouchRipple",slot:"Ripple"})(H0||(H0=Sf` +`)),ZC=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),YC=re(qC,{name:"MuiTouchRipple",slot:"Ripple"})(rg||(rg=Dd` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Un.rippleVisible,IP,om,({theme:e})=>e.transitions.easing.easeInOut,Un.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Un.child,Un.childLeaving,OP,om,({theme:e})=>e.transitions.easing.easeInOut,Un.childPulsate,MP,({theme:e})=>e.transitions.easing.easeInOut),DP=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=le(r,PP),[l,c]=x.useState([]),u=x.useRef(0),d=x.useRef(null);x.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=x.useRef(!1),b=vx(),m=x.useRef(null),g=x.useRef(null),C=x.useCallback(S=>{const{pulsate:R,rippleX:_,rippleY:E,rippleSize:k,cb:F}=S;c(P=>[...P,p.jsx(FP,{classes:{ripple:ue(i.ripple,Un.ripple),rippleVisible:ue(i.rippleVisible,Un.rippleVisible),ripplePulsate:ue(i.ripplePulsate,Un.ripplePulsate),child:ue(i.child,Un.child),childLeaving:ue(i.childLeaving,Un.childLeaving),childPulsate:ue(i.childPulsate,Un.childPulsate)},timeout:om,pulsate:R,rippleX:_,rippleY:E,rippleSize:k},u.current)]),u.current+=1,d.current=F},[i]),v=x.useCallback((S={},R={},_=()=>{})=>{const{pulsate:E=!1,center:k=o||R.pulsate,fakeElement:F=!1}=R;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const P=F?null:g.current,V=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,j,U;if(k||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)z=Math.round(V.width/2),j=Math.round(V.height/2);else{const{clientX:H,clientY:G}=S.touches&&S.touches.length>0?S.touches[0]:S;z=Math.round(H-V.left),j=Math.round(G-V.top)}if(k)U=Math.sqrt((2*V.width**2+V.height**2)/3),U%2===0&&(U+=1);else{const H=Math.max(Math.abs((P?P.clientWidth:0)-z),z)*2+2,G=Math.max(Math.abs((P?P.clientHeight:0)-j),j)*2+2;U=Math.sqrt(H**2+G**2)}S!=null&&S.touches?m.current===null&&(m.current=()=>{C({pulsate:E,rippleX:z,rippleY:j,rippleSize:U,cb:_})},b.start(NP,()=>{m.current&&(m.current(),m.current=null)})):C({pulsate:E,rippleX:z,rippleY:j,rippleSize:U,cb:_})},[o,C,b]),h=x.useCallback(()=>{v({},{pulsate:!0})},[v]),y=x.useCallback((S,R)=>{if(b.clear(),(S==null?void 0:S.type)==="touchend"&&m.current){m.current(),m.current=null,b.start(0,()=>{y(S,R)});return}m.current=null,c(_=>_.length>0?_.slice(1):_),d.current=R},[b]);return x.useImperativeHandle(n,()=>({pulsate:h,start:v,stop:y}),[h,v,y]),p.jsx(LP,w({className:ue(Un.root,i.root,s),ref:g},a,{children:p.jsx(xP,{component:null,exit:!0,children:l})}))}),jP=DP;function BP(e){return ke("MuiButtonBase",e)}const zP=Te("MuiButtonBase",["root","disabled","focusVisible"]),UP=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],VP=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=$e({root:["root",t&&"disabled",n&&"focusVisible"]},BP,o);return n&&r&&(s.root+=` ${r}`),s},WP=re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zP.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),HP=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:b="a",onBlur:m,onClick:g,onContextMenu:C,onDragLeave:v,onFocus:h,onFocusVisible:y,onKeyDown:S,onKeyUp:R,onMouseDown:_,onMouseLeave:E,onMouseUp:k,onTouchEnd:F,onTouchMove:P,onTouchStart:V,tabIndex:z=0,TouchRippleProps:j,touchRippleRef:U,type:H}=r,G=le(r,UP),X=x.useRef(null),I=x.useRef(null),M=St(I,U),{isFocusVisibleRef:L,onFocus:Q,onBlur:A,ref:K}=gx(),[W,ae]=x.useState(!1);c&&W&&ae(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{ae(!0),X.current.focus()}}),[]);const[Z,ye]=x.useState(!1);x.useEffect(()=>{ye(!0)},[]);const be=Z&&!u&&!c;x.useEffect(()=>{W&&f&&!u&&Z&&I.current.pulsate()},[u,f,W,Z]);function ie(Re,Zt,tr=d){return Zo(mr=>(Zt&&Zt(mr),!tr&&I.current&&I.current[Re](mr),!0))}const Ne=ie("start",_),Se=ie("stop",C),Ce=ie("stop",v),ve=ie("stop",k),Oe=ie("stop",Re=>{W&&Re.preventDefault(),E&&E(Re)}),Ve=ie("start",V),mt=ie("stop",F),Je=ie("stop",P),T=ie("stop",Re=>{A(Re),L.current===!1&&ae(!1),m&&m(Re)},!1),D=Zo(Re=>{X.current||(X.current=Re.currentTarget),Q(Re),L.current===!0&&(ae(!0),y&&y(Re)),h&&h(Re)}),B=()=>{const Re=X.current;return l&&l!=="button"&&!(Re.tagName==="A"&&Re.href)},ee=x.useRef(!1),oe=Zo(Re=>{f&&!ee.current&&W&&I.current&&Re.key===" "&&(ee.current=!0,I.current.stop(Re,()=>{I.current.start(Re)})),Re.target===Re.currentTarget&&B()&&Re.key===" "&&Re.preventDefault(),S&&S(Re),Re.target===Re.currentTarget&&B()&&Re.key==="Enter"&&!c&&(Re.preventDefault(),g&&g(Re))}),Y=Zo(Re=>{f&&Re.key===" "&&I.current&&W&&!Re.defaultPrevented&&(ee.current=!1,I.current.stop(Re,()=>{I.current.pulsate(Re)})),R&&R(Re),g&&Re.target===Re.currentTarget&&B()&&Re.key===" "&&!Re.defaultPrevented&&g(Re)});let se=l;se==="button"&&(G.href||G.to)&&(se=b);const Ie={};se==="button"?(Ie.type=H===void 0?"button":H,Ie.disabled=c):(!G.href&&!G.to&&(Ie.role="button"),c&&(Ie["aria-disabled"]=c));const Ge=St(n,K,X),ot=w({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:z,focusVisible:W}),Be=VP(ot);return p.jsxs(WP,w({as:se,className:ue(Be.root,a),ownerState:ot,onBlur:T,onClick:g,onContextMenu:Se,onFocus:D,onKeyDown:oe,onKeyUp:Y,onMouseDown:Ne,onMouseLeave:Oe,onMouseUp:ve,onDragLeave:Ce,onTouchEnd:mt,onTouchMove:Je,onTouchStart:Ve,ref:Ge,tabIndex:c?-1:z,type:H},Ie,G,{children:[s,be?p.jsx(jP,w({ref:M,center:i},j)):null]}))}),Do=HP;function KP(e){return ke("MuiAlert",e)}const qP=Te("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),K0=qP;function GP(e){return ke("MuiIconButton",e)}const QP=Te("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),XP=["edge","children","className","color","disabled","disableFocusRipple","size"],YP=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${te(r)}`,o&&`edge${te(o)}`,`size${te(i)}`]};return $e(s,GP,t)},ZP=re(Do,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${te(n.color)}`],n.edge&&t[`edge${te(n.edge)}`],t[`size${te(n.size)}`]]}})(({theme:e,ownerState:t})=>w({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return w({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&w({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":w({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${QP.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),JP=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=le(r,XP),f=w({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:u}),b=YP(f);return p.jsx(ZP,w({className:ue(b.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:f},d,{children:i}))}),OC=JP,eN=Mr(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),tN=Mr(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),nN=Mr(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),rN=Mr(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),oN=Mr(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),iN=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],sN=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${te(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return $e(i,KP,o)},aN=re(Ai,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${te(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Tu:Au,r=e.palette.mode==="light"?Au:Tu,o=t.color||t.severity;return w({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${K0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${K0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&w({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),lN=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),cN=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),q0=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),G0={success:p.jsx(eN,{fontSize:"inherit"}),warning:p.jsx(tN,{fontSize:"inherit"}),error:p.jsx(nN,{fontSize:"inherit"}),info:p.jsx(rN,{fontSize:"inherit"})},uN=x.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Pe({props:t,name:"MuiAlert"}),{action:u,children:d,className:f,closeText:b="Close",color:m,components:g={},componentsProps:C={},icon:v,iconMapping:h=G0,onClose:y,role:S="alert",severity:R="success",slotProps:_={},slots:E={},variant:k="standard"}=c,F=le(c,iN),P=w({},c,{color:m,severity:R,variant:k}),V=sN(P),z=(r=(o=E.closeButton)!=null?o:g.CloseButton)!=null?r:OC,j=(i=(s=E.closeIcon)!=null?s:g.CloseIcon)!=null?i:oN,U=(a=_.closeButton)!=null?a:C.closeButton,H=(l=_.closeIcon)!=null?l:C.closeIcon;return p.jsxs(aN,w({role:S,elevation:0,ownerState:P,className:ue(V.root,f),ref:n},F,{children:[v!==!1?p.jsx(lN,{ownerState:P,className:V.icon,children:v||h[R]||G0[R]}):null,p.jsx(cN,{ownerState:P,className:V.message,children:d}),u!=null?p.jsx(q0,{ownerState:P,className:V.action,children:u}):null,u==null&&y?p.jsx(q0,{ownerState:P,className:V.action,children:p.jsx(z,w({size:"small","aria-label":b,title:b,color:"inherit",onClick:y},U,{children:p.jsx(j,w({fontSize:"small"},H))}))}):null]}))}),dN=uN;function fN(e){return ke("MuiTypography",e)}Te("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const pN=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],hN=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${te(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return $e(a,fN,s)},mN=re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${te(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>w({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Q0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gN=e=>vN[e]||e,yN=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTypography"}),o=gN(r.color),i=Wd(w({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:f="body1",variantMapping:b=Q0}=i,m=le(i,pN),g=w({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:f,variantMapping:b}),C=l||(d?"p":b[f]||Q0[f])||"span",v=hN(g);return p.jsx(mN,w({as:C,ref:n,ownerState:g,className:ue(v.root,a)},m))}),Tr=yN;function bN(e){return ke("MuiAppBar",e)}Te("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const xN=["className","color","enableColorOnDark","position"],SN=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${te(t)}`,`position${te(n)}`]};return $e(o,bN,r)},Dc=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,CN=re(Ai,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${te(n.position)}`],t[`color${te(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return w({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&w({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&w({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&w({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Dc(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Dc(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Dc(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Dc(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),wN=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=le(r,xN),c=w({},r,{color:i,position:a,enableColorOnDark:s}),u=SN(c);return p.jsx(CN,w({square:!0,component:"header",ownerState:c,elevation:4,className:ue(u.root,o,a==="fixed"&&"mui-fixed"),ref:n},l))}),RN=wN,EN=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _N(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function kN(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function TN(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kN(e))}function AN(e){const t=[],n=[];return Array.from(e.querySelectorAll(EN)).forEach((r,o)=>{const i=_N(r);i===-1||!TN(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function $N(){return!0}function PN(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=AN,isEnabled:s=$N,open:a}=e,l=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),f=x.useRef(null),b=x.useRef(!1),m=x.useRef(null),g=St(t.ref,m),C=x.useRef(null);x.useEffect(()=>{!a||!m.current||(b.current=!n)},[n,a]),x.useEffect(()=>{if(!a||!m.current)return;const y=vn(m.current);return m.current.contains(y.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),b.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),x.useEffect(()=>{if(!a||!m.current)return;const y=vn(m.current),S=E=>{C.current=E,!(r||!s()||E.key!=="Tab")&&y.activeElement===m.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},R=()=>{const E=m.current;if(E===null)return;if(!y.hasFocus()||!s()||l.current){l.current=!1;return}if(E.contains(y.activeElement)||r&&y.activeElement!==c.current&&y.activeElement!==u.current)return;if(y.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!b.current)return;let k=[];if((y.activeElement===c.current||y.activeElement===u.current)&&(k=i(m.current)),k.length>0){var F,P;const V=!!((F=C.current)!=null&&F.shiftKey&&((P=C.current)==null?void 0:P.key)==="Tab"),z=k[0],j=k[k.length-1];typeof z!="string"&&typeof j!="string"&&(V?j.focus():z.focus())}else E.focus()};y.addEventListener("focusin",R),y.addEventListener("keydown",S,!0);const _=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(_),y.removeEventListener("focusin",R),y.removeEventListener("keydown",S,!0)}},[n,r,o,s,a,i]);const v=y=>{d.current===null&&(d.current=y.relatedTarget),b.current=!0,f.current=y.target;const S=t.props.onFocus;S&&S(y)},h=y=>{d.current===null&&(d.current=y.relatedTarget),b.current=!0};return p.jsxs(x.Fragment,{children:[p.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:g,onFocus:v}),p.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:u,"data-testid":"sentinelEnd"})]})}function NN(e){return typeof e=="function"?e():e}const IN=x.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=x.useState(null),l=St(x.isValidElement(r)?r.ref:null,n);if(Xn(()=>{i||a(NN(o)||document.body)},[o,i]),Xn(()=>{if(s&&!i)return _u(n,s),()=>{_u(n,null)}},[n,s,i]),i){if(x.isValidElement(r)){const c={ref:l};return x.cloneElement(r,c)}return p.jsx(x.Fragment,{children:r})}return p.jsx(x.Fragment,{children:s&&xf.createPortal(r,s)})});function ON(e){const t=vn(e);return t.body===e?Or(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ol(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function X0(e){return parseInt(Or(e).getComputedStyle(e).paddingRight,10)||0}function MN(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Y0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!MN(s);a&&l&&ol(s,o)})}function Np(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function LN(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ON(r)){const s=yx(vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${X0(r)+s}px`;const a=vn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${X0(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=vn(r).body;else{const s=r.parentElement,a=Or(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function FN(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class DN{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ol(t.modalRef,!1);const o=FN(n);Y0(n,t.mount,t.modalRef,o,!0);const i=Np(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Np(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=LN(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Np(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&ol(t.modalRef,n),Y0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&ol(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function jN(e){return typeof e=="function"?e():e}function BN(e){return e?e.props.hasOwnProperty("in"):!1}const zN=new DN;function UN(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=zN,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,f=x.useRef({}),b=x.useRef(null),m=x.useRef(null),g=St(m,d),[C,v]=x.useState(!u),h=BN(l);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const S=()=>vn(b.current),R=()=>(f.current.modalRef=m.current,f.current.mount=b.current,f.current),_=()=>{o.mount(R(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=Zo(()=>{const G=jN(t)||S().body;o.add(R(),G),m.current&&_()}),k=x.useCallback(()=>o.isTopModal(R()),[o]),F=Zo(G=>{b.current=G,G&&(u&&k()?_():m.current&&ol(m.current,y))}),P=x.useCallback(()=>{o.remove(R(),y)},[y,o]);x.useEffect(()=>()=>{P()},[P]),x.useEffect(()=>{u?E():(!h||!i)&&P()},[u,P,h,i,E]);const V=G=>X=>{var I;(I=G.onKeyDown)==null||I.call(G,X),!(X.key!=="Escape"||X.which===229||!k())&&(n||(X.stopPropagation(),c&&c(X,"escapeKeyDown")))},z=G=>X=>{var I;(I=G.onClick)==null||I.call(G,X),X.target===X.currentTarget&&c&&c(X,"backdropClick")};return{getRootProps:(G={})=>{const X=IC(e);delete X.onTransitionEnter,delete X.onTransitionExited;const I=w({},X,G);return w({role:"presentation"},I,{onKeyDown:V(I),ref:g})},getBackdropProps:(G={})=>{const X=G;return w({"aria-hidden":!0},X,{onClick:z(X),open:u})},getTransitionProps:()=>{const G=()=>{v(!1),s&&s()},X=()=>{v(!0),a&&a(),i&&P()};return{onEnter:Eu(G,l==null?void 0:l.props.onEnter),onExited:Eu(X,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:F,isTopModal:k,exited:C,hasTransition:h}}const VN=["onChange","maxRows","minRows","style","value"];function jc(e){return parseInt(e,10)||0}const WN={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Z0(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const HN=x.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=le(t,VN),{current:c}=x.useRef(a!=null),u=x.useRef(null),d=St(n,u),f=x.useRef(null),b=x.useRef(0),[m,g]=x.useState({outerHeightStyle:0}),C=x.useCallback(()=>{const S=u.current,_=Or(S).getComputedStyle(S);if(_.width==="0px")return{outerHeightStyle:0};const E=f.current;E.style.width=_.width,E.value=S.value||t.placeholder||"x",E.value.slice(-1)===` -`&&(E.value+=" ");const k=_.boxSizing,F=jc(_.paddingBottom)+jc(_.paddingTop),P=jc(_.borderBottomWidth)+jc(_.borderTopWidth),V=E.scrollHeight;E.value="x";const z=E.scrollHeight;let j=V;i&&(j=Math.max(Number(i)*z,j)),o&&(j=Math.min(Number(o)*z,j)),j=Math.max(j,z);const U=j+(k==="border-box"?F+P:0),H=Math.abs(j-V)<=1;return{outerHeightStyle:U,overflow:H}},[o,i,t.placeholder]),v=(S,R)=>{const{outerHeightStyle:_,overflow:E}=R;return b.current<20&&(_>0&&Math.abs((S.outerHeightStyle||0)-_)>1||S.overflow!==E)?(b.current+=1,{overflow:E,outerHeightStyle:_}):S},h=x.useCallback(()=>{const S=C();Z0(S)||g(R=>v(R,S))},[C]);Xn(()=>{const S=()=>{const V=C();Z0(V)||xf.flushSync(()=>{g(z=>v(z,V))})},R=()=>{b.current=0,S()};let _;const E=Nd(R),k=u.current,F=Or(k);F.addEventListener("resize",E);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(R),P.observe(k)),()=>{E.clear(),cancelAnimationFrame(_),F.removeEventListener("resize",E),P&&P.disconnect()}},[C]),Xn(()=>{h()}),x.useEffect(()=>{b.current=0},[a]);const y=S=>{b.current=0,c||h(),r&&r(S)};return p.jsxs(x.Fragment,{children:[p.jsx("textarea",w({value:a,onChange:y,ref:d,rows:i,style:w({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},s)},l)),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:w({},WN.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),KN=Mr(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function qN(e){return ke("MuiChip",e)}const GN=Te("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),He=GN,QN=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],XN=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${te(r)}`,`color${te(o)}`,a&&"clickable",a&&`clickableColor${te(o)}`,s&&"deletable",s&&`deletableColor${te(o)}`,`${l}${te(o)}`],label:["label",`label${te(r)}`],avatar:["avatar",`avatar${te(r)}`,`avatarColor${te(o)}`],icon:["icon",`icon${te(r)}`,`iconColor${te(i)}`],deleteIcon:["deleteIcon",`deleteIcon${te(r)}`,`deleteIconColor${te(o)}`,`deleteIcon${te(l)}Color${te(o)}`]};return $e(c,qN,t)},YN=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${He.avatar}`]:t.avatar},{[`& .${He.avatar}`]:t[`avatar${te(a)}`]},{[`& .${He.avatar}`]:t[`avatarColor${te(r)}`]},{[`& .${He.icon}`]:t.icon},{[`& .${He.icon}`]:t[`icon${te(a)}`]},{[`& .${He.icon}`]:t[`iconColor${te(o)}`]},{[`& .${He.deleteIcon}`]:t.deleteIcon},{[`& .${He.deleteIcon}`]:t[`deleteIcon${te(a)}`]},{[`& .${He.deleteIcon}`]:t[`deleteIconColor${te(r)}`]},{[`& .${He.deleteIcon}`]:t[`deleteIcon${te(l)}Color${te(r)}`]},t.root,t[`size${te(a)}`],t[`color${te(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${te(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${te(r)}`],t[l],t[`${l}${te(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return w({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${He.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${He.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${He.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${He.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${He.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${He.icon}`]:w({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&w({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${He.deleteIcon}`]:w({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ze(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ze(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:ze(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${He.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${He.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>w({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${He.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${He.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>w({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${He.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${He.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${He.avatar}`]:{marginLeft:4},[`& .${He.avatarSmall}`]:{marginLeft:2},[`& .${He.icon}`]:{marginLeft:4},[`& .${He.iconSmall}`]:{marginLeft:2},[`& .${He.deleteIcon}`]:{marginRight:5},[`& .${He.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ze(e.palette[t.color].main,.7)}`,[`&.${He.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${He.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ze(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${He.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ze(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),ZN=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${te(r)}`]]}})(({ownerState:e})=>w({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function J0(e){return e.key==="Backspace"||e.key==="Delete"}const JN=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:b,onDelete:m,onKeyDown:g,onKeyUp:C,size:v="medium",variant:h="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,R=le(r,QN),_=x.useRef(null),E=St(_,n),k=M=>{M.stopPropagation(),m&&m(M)},F=M=>{M.currentTarget===M.target&&J0(M)&&M.preventDefault(),g&&g(M)},P=M=>{M.currentTarget===M.target&&(m&&J0(M)?m(M):M.key==="Escape"&&_.current&&_.current.blur()),C&&C(M)},V=s!==!1&&b?!0:s,z=V||m?Do:l||"div",j=w({},r,{component:z,disabled:u,size:v,color:a,iconColor:x.isValidElement(d)&&d.props.color||a,onDelete:!!m,clickable:V,variant:h}),U=XN(j),H=z===Do?w({component:l||"div",focusVisibleClassName:U.focusVisible},m&&{disableRipple:!0}):{};let G=null;m&&(G=c&&x.isValidElement(c)?x.cloneElement(c,{className:ue(c.props.className,U.deleteIcon),onClick:k}):p.jsx(KN,{className:ue(U.deleteIcon),onClick:k}));let X=null;o&&x.isValidElement(o)&&(X=x.cloneElement(o,{className:ue(U.avatar,o.props.className)}));let I=null;return d&&x.isValidElement(d)&&(I=x.cloneElement(d,{className:ue(U.icon,d.props.className)})),p.jsxs(YN,w({as:z,className:ue(U.root,i),disabled:V&&u?!0:void 0,onClick:b,onKeyDown:F,onKeyUp:P,ref:E,tabIndex:S&&u?-1:y,ownerState:j},H,R,{children:[X||I,p.jsx(ZN,{className:ue(U.label),ownerState:j,children:f}),G]}))}),Ip=JN;function Vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const eI=x.createContext(void 0),og=eI;function no(){return x.useContext(og)}function MC(e){return p.jsx(Y2,w({},e,{defaultTheme:qd,themeId:vi}))}function e1(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function td(e,t=!1){return e&&(e1(e.value)&&e.value!==""||t&&e1(e.defaultValue)&&e.defaultValue!=="")}function tI(e){return e.startAdornment}function nI(e){return ke("MuiInputBase",e)}const rI=Te("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Hs=rI,oI=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Cf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${te(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},wf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},iI=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:b,type:m}=e,g={root:["root",`color${te(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${te(f)}`,u&&"multiline",b&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return $e(g,nI,t)},Rf=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Cf})(({theme:e,ownerState:t})=>w({},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",[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&w({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ef=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:wf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=w({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return w({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Hs.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Hs.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),sI=p.jsx(MC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),aI=x.forwardRef(function(t,n){var r;const o=Pe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:b,endAdornment:m,fullWidth:g=!1,id:C,inputComponent:v="input",inputProps:h={},inputRef:y,maxRows:S,minRows:R,multiline:_=!1,name:E,onBlur:k,onChange:F,onClick:P,onFocus:V,onKeyDown:z,onKeyUp:j,placeholder:U,readOnly:H,renderSuffix:G,rows:X,slotProps:I={},slots:M={},startAdornment:L,type:Q="text",value:A}=o,K=le(o,oI),W=h.value!=null?h.value:A,{current:ae}=x.useRef(W!=null),Z=x.useRef(),ye=x.useCallback(Be=>{},[]),be=St(Z,y,h.ref,ye),[ie,Ne]=x.useState(!1),Se=no(),Ce=Vo({props:o,muiFormControl:Se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ce.focused=Se?Se.focused:ie,x.useEffect(()=>{!Se&&f&&ie&&(Ne(!1),k&&k())},[Se,f,ie,k]);const ve=Se&&Se.onFilled,Oe=Se&&Se.onEmpty,Ve=x.useCallback(Be=>{td(Be)?ve&&ve():Oe&&Oe()},[ve,Oe]);Xn(()=>{ae&&Ve({value:W})},[W,Ve,ae]);const mt=Be=>{if(Ce.disabled){Be.stopPropagation();return}V&&V(Be),h.onFocus&&h.onFocus(Be),Se&&Se.onFocus?Se.onFocus(Be):Ne(!0)},Je=Be=>{k&&k(Be),h.onBlur&&h.onBlur(Be),Se&&Se.onBlur?Se.onBlur(Be):Ne(!1)},T=(Be,...Re)=>{if(!ae){const Zt=Be.target||Z.current;if(Zt==null)throw new Error(Mo(1));Ve({value:Zt.value})}h.onChange&&h.onChange(Be,...Re),F&&F(Be,...Re)};x.useEffect(()=>{Ve(Z.current)},[]);const D=Be=>{Z.current&&Be.currentTarget===Be.target&&Z.current.focus(),P&&P(Be)};let B=v,ee=h;_&&B==="input"&&(X?ee=w({type:void 0,minRows:X,maxRows:X},ee):ee=w({type:void 0,maxRows:S,minRows:R},ee),B=HN);const oe=Be=>{Ve(Be.animationName==="mui-auto-fill-cancel"?Z.current:{value:"x"})};x.useEffect(()=>{Se&&Se.setAdornedStart(!!L)},[Se,L]);const Y=w({},o,{color:Ce.color||"primary",disabled:Ce.disabled,endAdornment:m,error:Ce.error,focused:Ce.focused,formControl:Se,fullWidth:g,hiddenLabel:Ce.hiddenLabel,multiline:_,size:Ce.size,startAdornment:L,type:Q}),se=iI(Y),Ie=M.root||c.Root||Rf,Ge=I.root||u.root||{},ot=M.input||c.Input||Ef;return ee=w({},ee,(r=I.input)!=null?r:u.input),p.jsxs(x.Fragment,{children:[!b&&sI,p.jsxs(Ie,w({},Ge,!Vs(Ie)&&{ownerState:w({},Y,Ge.ownerState)},{ref:n,onClick:D},K,{className:ue(se.root,Ge.className,l,H&&"MuiInputBase-readOnly"),children:[L,p.jsx(og.Provider,{value:null,children:p.jsx(ot,w({ownerState:Y,"aria-invalid":Ce.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:d,disabled:Ce.disabled,id:C,onAnimationStart:oe,name:E,placeholder:U,readOnly:H,required:Ce.required,rows:X,value:W,onKeyDown:z,onKeyUp:j,type:Q},ee,!Vs(ot)&&{as:B,ownerState:w({},Y,ee.ownerState)},{ref:be,className:ue(se.input,ee.className,H&&"MuiInputBase-readOnly"),onBlur:Je,onChange:T,onFocus:mt}))}),m,G?G(w({},Ce,{startAdornment:L})):null]}))]})}),ig=aI;function lI(e){return ke("MuiInput",e)}const cI=w({},Hs,Te("MuiInput",["root","underline","input"])),Ra=cI;function uI(e){return ke("MuiOutlinedInput",e)}const dI=w({},Hs,Te("MuiOutlinedInput",["root","notchedOutline","input"])),io=dI;function fI(e){return ke("MuiFilledInput",e)}const pI=w({},Hs,Te("MuiFilledInput",["root","underline","input"])),Ko=pI,hI=Mr(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),mI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],vI={entering:{opacity:1},entered:{opacity:1}},gI=x.forwardRef(function(t,n){const r=jo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:b,onExited:m,onExiting:g,style:C,timeout:v=o,TransitionComponent:h=eg}=t,y=le(t,mI),S=x.useRef(null),R=St(S,a.ref,n),_=U=>H=>{if(U){const G=S.current;H===void 0?U(G):U(G,H)}},E=_(f),k=_((U,H)=>{rg(U);const G=Us({style:C,timeout:v,easing:l},{mode:"enter"});U.style.webkitTransition=r.transitions.create("opacity",G),U.style.transition=r.transitions.create("opacity",G),u&&u(U,H)}),F=_(d),P=_(g),V=_(U=>{const H=Us({style:C,timeout:v,easing:l},{mode:"exit"});U.style.webkitTransition=r.transitions.create("opacity",H),U.style.transition=r.transitions.create("opacity",H),b&&b(U)}),z=_(m),j=U=>{i&&i(S.current,U)};return p.jsx(h,w({appear:s,in:c,nodeRef:S,onEnter:k,onEntered:F,onEntering:E,onExit:V,onExited:z,onExiting:P,addEndListener:j,timeout:v},y,{children:(U,H)=>x.cloneElement(a,w({style:w({opacity:0,visibility:U==="exited"&&!c?"hidden":void 0},vI[U],C,a.props.style),ref:R},H))}))}),LC=gI;function yI(e){return ke("MuiBackdrop",e)}Te("MuiBackdrop",["root","invisible"]);const bI=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],xI=e=>{const{classes:t,invisible:n}=e;return $e({root:["root",n&&"invisible"]},yI,t)},SI=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>w({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),CI=x.forwardRef(function(t,n){var r,o,i;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:d={},invisible:f=!1,open:b,slotProps:m={},slots:g={},TransitionComponent:C=LC,transitionDuration:v}=s,h=le(s,bI),y=w({},s,{component:c,invisible:f}),S=xI(y),R=(r=m.root)!=null?r:d.root;return p.jsx(C,w({in:b,timeout:v},h,{children:p.jsx(SI,w({"aria-hidden":!0},R,{as:(o=(i=g.root)!=null?i:u.Root)!=null?o:c,className:ue(S.root,l,R==null?void 0:R.className),ownerState:w({},y,R==null?void 0:R.ownerState),classes:S,ref:n,children:a}))}))}),FC=CI,wI=Te("MuiBox",["root"]),RI=wI,EI=Kd(),_I=tT({themeId:vi,defaultTheme:EI,defaultClassName:RI.root,generateClassName:ev.generate}),on=_I;function kI(e){return ke("MuiButton",e)}const TI=Te("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Bc=TI,AI=x.createContext({}),$I=AI,PI=x.createContext(void 0),NI=PI,II=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],OI=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${te(t)}`,`size${te(o)}`,`${i}Size${te(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${te(o)}`],endIcon:["endIcon",`iconSize${te(o)}`]},l=$e(a,kI,s);return w({},s,l)},DC=e=>w({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),MI=re(Do,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${te(n.color)}`],t[`size${te(n.size)}`],t[`${n.variant}Size${te(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return w({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":w({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":w({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Bc.focusVisible}`]:w({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Bc.disabled}`]:w({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ze(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Bc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Bc.disabled}`]:{boxShadow:"none"}}),LI=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${te(n.size)}`]]}})(({ownerState:e})=>w({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},DC(e))),FI=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${te(n.size)}`]]}})(({ownerState:e})=>w({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},DC(e))),DI=x.forwardRef(function(t,n){const r=x.useContext($I),o=x.useContext(NI),i=Jm(r,t),s=Pe({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:b=!1,endIcon:m,focusVisibleClassName:g,fullWidth:C=!1,size:v="medium",startIcon:h,type:y,variant:S="text"}=s,R=le(s,II),_=w({},s,{color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:b,fullWidth:C,size:v,type:y,variant:S}),E=OI(_),k=h&&p.jsx(LI,{className:E.startIcon,ownerState:_,children:h}),F=m&&p.jsx(FI,{className:E.endIcon,ownerState:_,children:m}),P=o||"";return p.jsxs(MI,w({ownerState:_,className:ue(r.className,E.root,u,P),component:c,disabled:d,focusRipple:!b,focusVisibleClassName:ue(E.focusVisible,g),ref:n,type:y},R,{classes:E,children:[k,a,F]}))}),Et=DI;function jI(e){return ke("MuiCard",e)}Te("MuiCard",["root"]);const BI=["className","raised"],zI=e=>{const{classes:t}=e;return $e({root:["root"]},jI,t)},UI=re(Ai,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),VI=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=le(r,BI),a=w({},r,{raised:i}),l=zI(a);return p.jsx(UI,w({className:ue(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),jC=VI;function WI(e){return ke("MuiCardContent",e)}Te("MuiCardContent",["root"]);const HI=["className","component"],KI=e=>{const{classes:t}=e;return $e({root:["root"]},WI,t)},qI=re("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),GI=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=le(r,HI),a=w({},r,{component:i}),l=KI(a);return p.jsx(qI,w({as:i,className:ue(l.root,o),ownerState:a,ref:n},s))}),BC=GI;function QI(e){return ke("MuiCardMedia",e)}Te("MuiCardMedia",["root","media","img"]);const XI=["children","className","component","image","src","style"],YI=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return $e({root:["root",n&&"media",r&&"img"]},QI,t)},ZI=re("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})(({ownerState:e})=>w({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),JI=["video","audio","picture","iframe","img"],eO=["picture","img"],tO=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:s="div",image:a,src:l,style:c}=r,u=le(r,XI),d=JI.indexOf(s)!==-1,f=!d&&a?w({backgroundImage:`url("${a}")`},c):c,b=w({},r,{component:s,isMediaComponent:d,isImageComponent:eO.indexOf(s)!==-1}),m=YI(b);return p.jsx(ZI,w({className:ue(m.root,i),as:s,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:b,src:d?a||l:void 0},u,{children:o}))}),nO=tO;function rO(e){return ke("PrivateSwitchBase",e)}Te("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const oO=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],iO=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${te(o)}`],input:["input"]};return $e(i,rO,t)},sO=re(Do)(({ownerState:e})=>w({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),aO=re("input",{shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lO=x.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:b,inputRef:m,name:g,onBlur:C,onChange:v,onFocus:h,readOnly:y,required:S=!1,tabIndex:R,type:_,value:E}=t,k=le(t,oO),[F,P]=hl({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),V=no(),z=M=>{h&&h(M),V&&V.onFocus&&V.onFocus(M)},j=M=>{C&&C(M),V&&V.onBlur&&V.onBlur(M)},U=M=>{if(M.nativeEvent.defaultPrevented)return;const L=M.target.checked;P(L),v&&v(M,L)};let H=l;V&&typeof H>"u"&&(H=V.disabled);const G=_==="checkbox"||_==="radio",X=w({},t,{checked:F,disabled:H,disableFocusRipple:c,edge:u}),I=iO(X);return p.jsxs(sO,w({component:"span",className:ue(I.root,s),centerRipple:!0,focusRipple:!c,disabled:H,tabIndex:null,role:void 0,onFocus:z,onBlur:j,ownerState:X,ref:n},k,{children:[p.jsx(aO,w({autoFocus:r,checked:o,defaultChecked:a,className:I.input,disabled:H,id:G?f:void 0,name:g,onChange:U,readOnly:y,ref:m,required:S,ownerState:X,tabIndex:R,type:_},_==="checkbox"&&E===void 0?{}:{value:E},b)),F?i:d]}))}),zC=lO,cO=(e,t)=>w({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),uO=e=>w({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}}),dO=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=w({html:cO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:w({margin:0},uO(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function fO(e){const t=Pe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return p.jsxs(x.Fragment,{children:[p.jsx(MC,{styles:o=>dO(o,r)}),n]})}function pO(e){return ke("MuiModal",e)}Te("MuiModal",["root","hidden","backdrop"]);const hO=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],mO=e=>{const{open:t,exited:n,classes:r}=e;return $e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},pO,r)},vO=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>w({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),gO=re(FC,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yO=x.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Pe({name:"MuiModal",props:t}),{BackdropComponent:u=gO,BackdropProps:d,className:f,closeAfterTransition:b=!1,children:m,container:g,component:C,components:v={},componentsProps:h={},disableAutoFocus:y=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:R=!1,disablePortal:_=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:F=!1,keepMounted:P=!1,onBackdropClick:V,open:z,slotProps:j,slots:U}=c,H=le(c,hO),G=w({},c,{closeAfterTransition:b,disableAutoFocus:y,disableEnforceFocus:S,disableEscapeKeyDown:R,disablePortal:_,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:F,keepMounted:P}),{getRootProps:X,getBackdropProps:I,getTransitionProps:M,portalRef:L,isTopModal:Q,exited:A,hasTransition:K}=UN(w({},G,{rootRef:n})),W=w({},G,{exited:A}),ae=mO(W),Z={};if(m.props.tabIndex===void 0&&(Z.tabIndex="-1"),K){const{onEnter:ve,onExited:Oe}=M();Z.onEnter=ve,Z.onExited=Oe}const ye=(r=(o=U==null?void 0:U.root)!=null?o:v.Root)!=null?r:vO,be=(i=(s=U==null?void 0:U.backdrop)!=null?s:v.Backdrop)!=null?i:u,ie=(a=j==null?void 0:j.root)!=null?a:h.root,Ne=(l=j==null?void 0:j.backdrop)!=null?l:h.backdrop,Se=Ws({elementType:ye,externalSlotProps:ie,externalForwardedProps:H,getSlotProps:X,additionalProps:{ref:n,as:C},ownerState:W,className:ue(f,ie==null?void 0:ie.className,ae==null?void 0:ae.root,!W.open&&W.exited&&(ae==null?void 0:ae.hidden))}),Ce=Ws({elementType:be,externalSlotProps:Ne,additionalProps:d,getSlotProps:ve=>I(w({},ve,{onClick:Oe=>{V&&V(Oe),ve!=null&&ve.onClick&&ve.onClick(Oe)}})),className:ue(Ne==null?void 0:Ne.className,d==null?void 0:d.className,ae==null?void 0:ae.backdrop),ownerState:W});return!P&&!z&&(!K||A)?null:p.jsx(IN,{ref:L,container:g,disablePortal:_,children:p.jsxs(ye,w({},Se,{children:[!F&&u?p.jsx(be,w({},Ce)):null,p.jsx(PN,{disableEnforceFocus:S,disableAutoFocus:y,disableRestoreFocus:E,isEnabled:Q,open:z,children:x.cloneElement(m,Z)})]}))})}),sg=yO;function bO(e){return ke("MuiDialog",e)}const xO=Te("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Op=xO,SO=x.createContext({}),UC=SO,CO=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],wO=re(FC,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),RO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${te(n)}`],paper:["paper",`paperScroll${te(n)}`,`paperWidth${te(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return $e(s,bO,t)},EO=re(sg,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),_O=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${te(n.scroll)}`]]}})(({ownerState:e})=>w({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),kO=re(Ai,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${te(n.scroll)}`],t[`paperWidth${te(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>w({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Op.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Op.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Op.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),TO=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDialog"}),o=jo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:b=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:C,onClose:v,open:h,PaperComponent:y=Ai,PaperProps:S={},scroll:R="paper",TransitionComponent:_=LC,transitionDuration:E=i,TransitionProps:k}=r,F=le(r,CO),P=w({},r,{disableEscapeKeyDown:f,fullScreen:b,fullWidth:m,maxWidth:g,scroll:R}),V=RO(P),z=x.useRef(),j=X=>{z.current=X.target===X.currentTarget},U=X=>{z.current&&(z.current=null,C&&C(X),v&&v(X,"backdropClick"))},H=Zl(a),G=x.useMemo(()=>({titleId:H}),[H]);return p.jsx(EO,w({className:ue(V.root,d),closeAfterTransition:!0,components:{Backdrop:wO},componentsProps:{backdrop:w({transitionDuration:E,as:l},c)},disableEscapeKeyDown:f,onClose:v,open:h,ref:n,onClick:U,ownerState:P},F,{children:p.jsx(_,w({appear:!0,in:h,timeout:E,role:"presentation"},k,{children:p.jsx(_O,{className:ue(V.container),onMouseDown:j,ownerState:P,children:p.jsx(kO,w({as:y,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":H},S,{className:ue(V.paper,S.className),ownerState:P,children:p.jsx(UC.Provider,{value:G,children:u})}))})}))}))}),hu=TO;function AO(e){return ke("MuiDialogContent",e)}Te("MuiDialogContent",["root","dividers"]);function $O(e){return ke("MuiDialogTitle",e)}const PO=Te("MuiDialogTitle",["root"]),NO=PO,IO=["className","dividers"],OO=e=>{const{classes:t,dividers:n}=e;return $e({root:["root",n&&"dividers"]},AO,t)},MO=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>w({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${NO.root} + &`]:{paddingTop:0}})),LO=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=le(r,IO),a=w({},r,{dividers:i}),l=OO(a);return p.jsx(MO,w({className:ue(l.root,o),ownerState:a,ref:n},s))}),Mp=LO,FO=["className","id"],DO=e=>{const{classes:t}=e;return $e({root:["root"]},$O,t)},jO=re(Tr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),BO=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=le(r,FO),a=r,l=DO(a),{titleId:c=i}=x.useContext(UC);return p.jsx(jO,w({component:"h2",className:ue(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c},s))}),Lp=BO;function zO(e){return ke("MuiDivider",e)}const UO=Te("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),t1=UO,VO=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],WO=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return $e({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},zO,r)},HO=re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>w({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ze(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>w({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>w({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>w({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>w({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),KO=re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>w({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),VC=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:f="center",variant:b="fullWidth"}=r,m=le(r,VO),g=w({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:u,role:d,textAlign:f,variant:b}),C=WO(g);return p.jsx(HO,w({as:a,className:ue(C.root,s),role:d,ref:n,ownerState:g},m,{children:i?p.jsx(KO,{className:C.wrapper,ownerState:g,children:i}):null}))});VC.muiSkipListHighlight=!0;const n1=VC,qO=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function GO(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Or(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=i.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function QO(e){return typeof e=="function"?e():e}function zc(e,t,n){const r=QO(n),o=GO(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const XO=x.forwardRef(function(t,n){const r=jo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:b,onEntered:m,onEntering:g,onExit:C,onExited:v,onExiting:h,style:y,timeout:S=i,TransitionComponent:R=eg}=t,_=le(t,qO),E=x.useRef(null),k=St(l.ref,E,n),F=I=>M=>{I&&(M===void 0?I(E.current):I(E.current,M))},P=F((I,M)=>{zc(u,I,c),rg(I),b&&b(I,M)}),V=F((I,M)=>{const L=Us({timeout:S,style:y,easing:d},{mode:"enter"});I.style.webkitTransition=r.transitions.create("-webkit-transform",w({},L)),I.style.transition=r.transitions.create("transform",w({},L)),I.style.webkitTransform="none",I.style.transform="none",g&&g(I,M)}),z=F(m),j=F(h),U=F(I=>{const M=Us({timeout:S,style:y,easing:d},{mode:"exit"});I.style.webkitTransition=r.transitions.create("-webkit-transform",M),I.style.transition=r.transitions.create("transform",M),zc(u,I,c),C&&C(I)}),H=F(I=>{I.style.webkitTransition="",I.style.transition="",v&&v(I)}),G=I=>{s&&s(E.current,I)},X=x.useCallback(()=>{E.current&&zc(u,E.current,c)},[u,c]);return x.useEffect(()=>{if(f||u==="down"||u==="right")return;const I=Nd(()=>{E.current&&zc(u,E.current,c)}),M=Or(E.current);return M.addEventListener("resize",I),()=>{I.clear(),M.removeEventListener("resize",I)}},[u,f,c]),x.useEffect(()=>{f||X()},[f,X]),p.jsx(R,w({nodeRef:E,onEnter:P,onEntered:z,onEntering:V,onExit:U,onExited:H,onExiting:j,addEndListener:G,appear:a,in:f,timeout:S},_,{children:(I,M)=>x.cloneElement(l,w({ref:k,style:w({visibility:I==="exited"&&!f?"hidden":void 0},y,l.props.style)},M))}))}),YO=XO;function ZO(e){return ke("MuiDrawer",e)}Te("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const JO=["BackdropProps"],eM=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],WC=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},tM=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${te(n)}`,r!=="temporary"&&`paperAnchorDocked${te(n)}`]};return $e(o,ZO,t)},nM=re(sg,{name:"MuiDrawer",slot:"Root",overridesResolver:WC})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),r1=re("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:WC})({flex:"0 0 auto"}),rM=re(Ai,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${te(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${te(n.anchor)}`]]}})(({theme:e,ownerState:t})=>w({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),HC={left:"right",right:"left",top:"down",bottom:"up"};function oM(e){return["left","right"].indexOf(e)!==-1}function iM(e,t){return e.direction==="rtl"&&oM(t)?HC[t]:t}const sM=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDrawer"}),o=jo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:l,className:c,elevation:u=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:f}={},onClose:b,open:m=!1,PaperProps:g={},SlideProps:C,TransitionComponent:v=YO,transitionDuration:h=i,variant:y="temporary"}=r,S=le(r.ModalProps,JO),R=le(r,eM),_=x.useRef(!1);x.useEffect(()=>{_.current=!0},[]);const E=iM(o,s),F=w({},r,{anchor:s,elevation:u,open:m,variant:y},R),P=tM(F),V=p.jsx(rM,w({elevation:y==="temporary"?u:0,square:!0},g,{className:ue(P.paper,g.className),ownerState:F,children:l}));if(y==="permanent")return p.jsx(r1,w({className:ue(P.root,P.docked,c),ownerState:F,ref:n},R,{children:V}));const z=p.jsx(v,w({in:m,direction:HC[E],timeout:h,appear:_.current},C,{children:V}));return y==="persistent"?p.jsx(r1,w({className:ue(P.root,P.docked,c),ownerState:F,ref:n},R,{children:z})):p.jsx(nM,w({BackdropProps:w({},a,f,{transitionDuration:h}),className:ue(P.root,P.modal,c),open:m,ownerState:F,onClose:b,hideBackdrop:d,ref:n},R,S,{children:z}))}),aM=sM,lM=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],cM=e=>{const{classes:t,disableUnderline:n}=e,o=$e({root:["root",!n&&"underline"],input:["input"]},fI,t);return w({},t,o)},uM=re(Rf,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Cf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return w({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ko.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ko.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ko.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ko.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ko.disabled}, .${Ko.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ko.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&w({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),dM=re(Ef,{name:"MuiFilledInput",slot:"Input",overridesResolver:wf})(({theme:e,ownerState:t})=>w({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),KC=x.forwardRef(function(t,n){var r,o,i,s;const a=Pe({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:b,slots:m={},type:g="text"}=a,C=le(a,lM),v=w({},a,{fullWidth:u,inputComponent:d,multiline:f,type:g}),h=cM(a),y={root:{ownerState:v},input:{ownerState:v}},S=b??c?mn(y,b??c):y,R=(r=(o=m.root)!=null?o:l.Root)!=null?r:uM,_=(i=(s=m.input)!=null?s:l.Input)!=null?i:dM;return p.jsx(ig,w({slots:{root:R,input:_},componentsProps:S,fullWidth:u,inputComponent:d,multiline:f,ref:n,type:g},C,{classes:h}))});KC.muiName="Input";const qC=KC;function fM(e){return ke("MuiFormControl",e)}Te("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const pM=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],hM=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${te(n)}`,r&&"fullWidth"]};return $e(o,fM,t)},mM=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>w({},t.root,t[`margin${te(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>w({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),vM=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:b="none",required:m=!1,size:g="medium",variant:C="outlined"}=r,v=le(r,pM),h=w({},r,{color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:b,required:m,size:g,variant:C}),y=hM(h),[S,R]=x.useState(()=>{let j=!1;return o&&x.Children.forEach(o,U=>{if(!Ka(U,["Input","Select"]))return;const H=Ka(U,["Select"])?U.props.input:U;H&&tI(H.props)&&(j=!0)}),j}),[_,E]=x.useState(()=>{let j=!1;return o&&x.Children.forEach(o,U=>{Ka(U,["Input","Select"])&&(td(U.props,!0)||td(U.props.inputProps,!0))&&(j=!0)}),j}),[k,F]=x.useState(!1);l&&k&&F(!1);const P=u!==void 0&&!l?u:k;let V;const z=x.useMemo(()=>({adornedStart:S,setAdornedStart:R,color:s,disabled:l,error:c,filled:_,focused:P,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{F(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{F(!0)},registerEffect:V,required:m,variant:C}),[S,s,l,c,_,P,d,f,V,m,g,C]);return p.jsx(og.Provider,{value:z,children:p.jsx(mM,w({as:a,ownerState:h,className:ue(y.root,i),ref:n},v,{children:o}))})}),yr=vM,gM=kT({createStyledComponent:re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Pe({props:e,name:"MuiStack"})}),ic=gM;function yM(e){return ke("MuiFormControlLabel",e)}const bM=Te("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Va=bM,xM=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],SM=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${te(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return $e(s,yM,t)},CM=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.label}`]:t.label},t.root,t[`labelPlacement${te(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>w({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Va.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Va.label}`]:{[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),wM=re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),RM=x.forwardRef(function(t,n){var r,o;const i=Pe({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:f="end",required:b,slotProps:m={}}=i,g=le(i,xM),C=no(),v=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,h=b??l.props.required,y={disabled:v,required:h};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof l.props[F]>"u"&&typeof i[F]<"u"&&(y[F]=i[F])});const S=Vo({props:i,muiFormControl:C,states:["error"]}),R=w({},i,{disabled:v,labelPlacement:f,required:h,error:S.error}),_=SM(R),E=(o=m.typography)!=null?o:a.typography;let k=d;return k!=null&&k.type!==Tr&&!u&&(k=p.jsx(Tr,w({component:"span"},E,{className:ue(_.label,E==null?void 0:E.className),children:k}))),p.jsxs(CM,w({className:ue(_.root,s),ownerState:R,ref:n},g,{children:[x.cloneElement(l,y),h?p.jsxs(ic,{display:"block",children:[k,p.jsxs(wM,{ownerState:R,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):k]}))}),GC=RM;function EM(e){return ke("MuiFormGroup",e)}Te("MuiFormGroup",["root","row","error"]);const _M=["className","row"],kM=e=>{const{classes:t,row:n,error:r}=e;return $e({root:["root",n&&"row",r&&"error"]},EM,t)},TM=re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>w({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),AM=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=le(r,_M),a=no(),l=Vo({props:r,muiFormControl:a,states:["error"]}),c=w({},r,{row:i,error:l.error}),u=kM(c);return p.jsx(TM,w({className:ue(u.root,o),ownerState:c,ref:n},s))}),$M=AM;function PM(e){return ke("MuiFormHelperText",e)}const NM=Te("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),o1=NM;var i1;const IM=["children","className","component","disabled","error","filled","focused","margin","required","variant"],OM=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${te(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return $e(c,PM,t)},MM=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${te(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>w({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${o1.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${o1.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),LM=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=le(r,IM),l=no(),c=Vo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=w({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=OM(u);return p.jsx(MM,w({as:s,ownerState:u,className:ue(d.root,i),ref:n},a,{children:o===" "?i1||(i1=p.jsx("span",{className:"notranslate",children:"​"})):o}))}),FM=LM;function DM(e){return ke("MuiFormLabel",e)}const jM=Te("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),il=jM,BM=["children","className","color","component","disabled","error","filled","focused","required"],zM=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${te(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return $e(l,DM,t)},UM=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>w({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>w({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${il.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${il.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${il.error}`]:{color:(e.vars||e).palette.error.main}})),VM=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${il.error}`]:{color:(e.vars||e).palette.error.main}})),WM=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=le(r,BM),l=no(),c=Vo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=w({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=zM(u);return p.jsxs(UM,w({as:s,ownerState:u,className:ue(d.root,i),ref:n},a,{children:[o,c.required&&p.jsxs(VM,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),HM=WM,KM=x.createContext(),s1=KM;function qM(e){return ke("MuiGrid",e)}const GM=[0,1,2,3,4,5,6,7,8,9,10],QM=["column-reverse","column","row-reverse","row"],XM=["nowrap","wrap-reverse","wrap"],Ea=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Nl=Te("MuiGrid",["root","container","item","zeroMinWidth",...GM.map(e=>`spacing-xs-${e}`),...QM.map(e=>`direction-xs-${e}`),...XM.map(e=>`wrap-xs-${e}`),...Ea.map(e=>`grid-xs-${e}`),...Ea.map(e=>`grid-sm-${e}`),...Ea.map(e=>`grid-md-${e}`),...Ea.map(e=>`grid-lg-${e}`),...Ea.map(e=>`grid-xl-${e}`)]),YM=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function vs(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function ZM({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=fi({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${vs(u)})`;c={flexBasis:d,maxWidth:d}}}i=w({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function JM({theme:e,ownerState:t}){const n=fi({values:t.direction,breakpoints:e.breakpoints.values});return Cn({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Nl.item}`]={maxWidth:"none"}),o})}function QC({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function eL({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=fi({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=QC({breakpoints:e.breakpoints.values,values:i})),o=Cn({theme:e},i,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{marginTop:`-${vs(u)}`,[`& > .${Nl.item}`]:{paddingTop:vs(u)}}:(c=s)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Nl.item}`]:{paddingTop:0}}})}return o}function tL({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=fi({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=QC({breakpoints:e.breakpoints.values,values:i})),o=Cn({theme:e},i,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{width:`calc(100% + ${vs(u)})`,marginLeft:`-${vs(u)}`,[`& > .${Nl.item}`]:{paddingLeft:vs(u)}}:(c=s)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Nl.item}`]:{paddingLeft:0}}})}return o}function nL(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const rL=re("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=nL(s,c,t));const d=[];return c.forEach(f=>{const b=n[f];b&&d.push(t[`grid-${f}-${String(b)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>w({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),JM,eL,tL,ZM);function oL(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const iL=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=oL(i,l));const u=[];l.forEach(f=>{const b=e[f];b&&u.push(`grid-${f}-${String(b)}`)});const d={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...u]};return $e(d,qM,t)},sL=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiGrid"}),{breakpoints:o}=jo(),i=Wd(r),{className:s,columns:a,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:f=!1,rowSpacing:b,spacing:m=0,wrap:g="wrap",zeroMinWidth:C=!1}=i,v=le(i,YM),h=b||m,y=l||m,S=x.useContext(s1),R=u?a||12:S,_={},E=w({},v);o.keys.forEach(P=>{v[P]!=null&&(_[P]=v[P],delete E[P])});const k=w({},i,{columns:R,container:u,direction:d,item:f,rowSpacing:h,columnSpacing:y,wrap:g,zeroMinWidth:C,spacing:m},_,{breakpoints:o.keys}),F=iL(k);return p.jsx(s1.Provider,{value:R,children:p.jsx(rL,w({ownerState:k,className:ue(F.root,s),as:c,ref:n},E))})}),Uc=sL,aL=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function im(e){return`scale(${e}, ${e**2})`}const lL={entering:{opacity:1,transform:im(1)},entered:{opacity:1,transform:"none"}},Fp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),XC=x.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:b,style:m,timeout:g="auto",TransitionComponent:C=eg}=t,v=le(t,aL),h=vx(),y=x.useRef(),S=jo(),R=x.useRef(null),_=St(R,i.ref,n),E=H=>G=>{if(H){const X=R.current;G===void 0?H(X):H(X,G)}},k=E(u),F=E((H,G)=>{rg(H);const{duration:X,delay:I,easing:M}=Us({style:m,timeout:g,easing:s},{mode:"enter"});let L;g==="auto"?(L=S.transitions.getAutoHeightDuration(H.clientHeight),y.current=L):L=X,H.style.transition=[S.transitions.create("opacity",{duration:L,delay:I}),S.transitions.create("transform",{duration:Fp?L:L*.666,delay:I,easing:M})].join(","),l&&l(H,G)}),P=E(c),V=E(b),z=E(H=>{const{duration:G,delay:X,easing:I}=Us({style:m,timeout:g,easing:s},{mode:"exit"});let M;g==="auto"?(M=S.transitions.getAutoHeightDuration(H.clientHeight),y.current=M):M=G,H.style.transition=[S.transitions.create("opacity",{duration:M,delay:X}),S.transitions.create("transform",{duration:Fp?M:M*.666,delay:Fp?X:X||M*.333,easing:I})].join(","),H.style.opacity=0,H.style.transform=im(.75),d&&d(H)}),j=E(f),U=H=>{g==="auto"&&h.start(y.current||0,H),r&&r(R.current,H)};return p.jsx(C,w({appear:o,in:a,nodeRef:R,onEnter:F,onEntered:P,onEntering:k,onExit:z,onExited:j,onExiting:V,addEndListener:U,timeout:g==="auto"?null:g},v,{children:(H,G)=>x.cloneElement(i,w({style:w({opacity:0,transform:im(.75),visibility:H==="exited"&&!a?"hidden":void 0},lL[H],m,i.props.style),ref:_},G))}))});XC.muiSupportAuto=!0;const cL=XC;function uL(e,t,n,r,o){const[i,s]=x.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Xn(()=>{let a=!0;if(!n)return;const l=n(e),c=()=>{a&&s(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[e,n]),i}const YC=x.useSyncExternalStore;function dL(e,t,n,r,o){const i=x.useCallback(()=>t,[t]),s=x.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[a,l]=x.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addListener(d),()=>{u.removeListener(d)})]},[i,n,e]);return YC(l,a,s)}function fL(e,t={}){const n=sv(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=Rx({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(YC!==void 0?dL:uL)(l,o,i,s,a)}const pL=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],hL=e=>{const{classes:t,disableUnderline:n}=e,o=$e({root:["root",!n&&"underline"],input:["input"]},lI,t);return w({},t,o)},mL=re(Rf,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Cf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),w({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ra.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ra.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ra.disabled}, .${Ra.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ra.disabled}:before`]:{borderBottomStyle:"dotted"}})}),vL=re(Ef,{name:"MuiInput",slot:"Input",overridesResolver:wf})({}),ZC=x.forwardRef(function(t,n){var r,o,i,s;const a=Pe({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:b=!1,slotProps:m,slots:g={},type:C="text"}=a,v=le(a,pL),h=hL(a),S={root:{ownerState:{disableUnderline:l}}},R=m??u?mn(m??u,S):S,_=(r=(o=g.root)!=null?o:c.Root)!=null?r:mL,E=(i=(s=g.input)!=null?s:c.Input)!=null?i:vL;return p.jsx(ig,w({slots:{root:_,input:E},slotProps:R,fullWidth:d,inputComponent:f,multiline:b,ref:n,type:C},v,{classes:h}))});ZC.muiName="Input";const JC=ZC;function gL(e){return ke("MuiInputLabel",e)}Te("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const yL=["disableAnimation","margin","shrink","variant","className"],bL=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${te(r)}`,s],asterisk:[a&&"asterisk"]},c=$e(l,gL,t);return w({},t,c)},xL=re(HM,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${il.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>w({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&w({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&w({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&w({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),SL=x.forwardRef(function(t,n){const r=Pe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=le(r,yL),l=no();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=Vo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=w({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),f=bL(d);return p.jsx(xL,w({"data-shrink":c,ownerState:d,ref:n,className:ue(f.root,s)},a,{classes:f}))}),sm=SL,CL=x.createContext({}),pr=CL;function wL(e){return ke("MuiList",e)}Te("MuiList",["root","padding","dense","subheader"]);const RL=["children","className","component","dense","disablePadding","subheader"],EL=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return $e({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},wL,t)},_L=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>w({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),kL=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=le(r,RL),d=x.useMemo(()=>({dense:a}),[a]),f=w({},r,{component:s,dense:a,disablePadding:l}),b=EL(f);return p.jsx(pr.Provider,{value:d,children:p.jsxs(_L,w({as:s,className:ue(b.root,i),ref:n,ownerState:f},u,{children:[c,o]}))})}),am=kL;function TL(e){return ke("MuiListItem",e)}const AL=Te("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Hi=AL;function $L(e){return ke("MuiListItemButton",e)}const PL=Te("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ki=PL,NL=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],IL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},OL=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,c=$e({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},$L,n);return w({},n,c)},ML=re(Do,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:IL})(({theme:e,ownerState:t})=>w({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ki.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ki.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ki.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ki.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ki.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),LL=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:f=!1,className:b}=r,m=le(r,NL),g=x.useContext(pr),C=x.useMemo(()=>({dense:l||g.dense||!1,alignItems:o,disableGutters:c}),[o,g.dense,l,c]),v=x.useRef(null);Xn(()=>{i&&v.current&&v.current.focus()},[i]);const h=w({},r,{alignItems:o,dense:C.dense,disableGutters:c,divider:u,selected:f}),y=OL(h),S=St(v,n);return p.jsx(pr.Provider,{value:C,children:p.jsx(ML,w({ref:S,href:m.href||m.to,component:(m.href||m.to)&&s==="div"?"button":s,focusVisibleClassName:ue(y.focusVisible,d),ownerState:h,className:ue(y.root,b)},m,{classes:y,children:a}))})}),ew=LL;function FL(e){return ke("MuiListItemSecondaryAction",e)}Te("MuiListItemSecondaryAction",["root","disableGutters"]);const DL=["className"],jL=e=>{const{disableGutters:t,classes:n}=e;return $e({root:["root",t&&"disableGutters"]},FL,n)},BL=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>w({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),tw=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=le(r,DL),s=x.useContext(pr),a=w({},r,{disableGutters:s.disableGutters}),l=jL(a);return p.jsx(BL,w({className:ue(l.root,o),ownerState:a,ref:n},i))});tw.muiName="ListItemSecondaryAction";const zL=tw,UL=["className"],VL=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],WL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},HL=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:u}=e;return $e({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},TL,r)},KL=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:WL})(({theme:e,ownerState:t})=>w({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&w({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ki.root}`]:{paddingRight:48}},{[`&.${Hi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),qL=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),GL=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:b}={},dense:m=!1,disabled:g=!1,disableGutters:C=!1,disablePadding:v=!1,divider:h=!1,focusVisibleClassName:y,secondaryAction:S,selected:R=!1,slotProps:_={},slots:E={}}=r,k=le(r.ContainerProps,UL),F=le(r,VL),P=x.useContext(pr),V=x.useMemo(()=>({dense:m||P.dense||!1,alignItems:o,disableGutters:C}),[o,P.dense,m,C]),z=x.useRef(null);Xn(()=>{i&&z.current&&z.current.focus()},[i]);const j=x.Children.toArray(a),U=j.length&&Ka(j[j.length-1],["ListItemSecondaryAction"]),H=w({},r,{alignItems:o,autoFocus:i,button:s,dense:V.dense,disabled:g,disableGutters:C,disablePadding:v,divider:h,hasSecondaryAction:U,selected:R}),G=HL(H),X=St(z,n),I=E.root||u.Root||KL,M=_.root||d.root||{},L=w({className:ue(G.root,M.className,l),disabled:g},F);let Q=c||"li";return s&&(L.component=c||"div",L.focusVisibleClassName=ue(Hi.focusVisible,y),Q=Do),U?(Q=!L.component&&!c?"div":Q,f==="li"&&(Q==="li"?Q="div":L.component==="li"&&(L.component="div")),p.jsx(pr.Provider,{value:V,children:p.jsxs(qL,w({as:f,className:ue(G.container,b),ref:X,ownerState:H},k,{children:[p.jsx(I,w({},M,!Vs(I)&&{as:Q,ownerState:w({},H,M.ownerState)},L,{children:j})),j.pop()]}))})):p.jsx(pr.Provider,{value:V,children:p.jsxs(I,w({},M,{as:Q,ref:X},!Vs(I)&&{ownerState:w({},H,M.ownerState)},L,{children:[j,S&&p.jsx(zL,{children:S})]}))})}),_a=GL;function QL(e){return ke("MuiListItemIcon",e)}const XL=Te("MuiListItemIcon",["root","alignItemsFlexStart"]),a1=XL,YL=["className"],ZL=e=>{const{alignItems:t,classes:n}=e;return $e({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},QL,n)},JL=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>w({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),eF=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=le(r,YL),s=x.useContext(pr),a=w({},r,{alignItems:s.alignItems}),l=ZL(a);return p.jsx(JL,w({className:ue(l.root,o),ownerState:a,ref:n},i))}),l1=eF;function tF(e){return ke("MuiListItemText",e)}const nF=Te("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),nd=nF,rF=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],oF=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return $e({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},tF,t)},iF=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nd.primary}`]:t.primary},{[`& .${nd.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>w({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),sF=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,f=le(r,rF),{dense:b}=x.useContext(pr);let m=l??o,g=u;const C=w({},r,{disableTypography:s,inset:a,primary:!!m,secondary:!!g,dense:b}),v=oF(C);return m!=null&&m.type!==Tr&&!s&&(m=p.jsx(Tr,w({variant:b?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:m}))),g!=null&&g.type!==Tr&&!s&&(g=p.jsx(Tr,w({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:g}))),p.jsxs(iF,w({className:ue(v.root,i),ownerState:C,ref:n},f,{children:[m,g]}))}),mu=sF,aF=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Dp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function c1(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function nw(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ka(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!nw(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const lF=x.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,f=le(t,aF),b=x.useRef(null),m=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xn(()=>{o&&b.current.focus()},[o]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,S)=>{const R=!b.current.style.width;if(y.clientHeight{const S=b.current,R=y.key,_=vn(S).activeElement;if(R==="ArrowDown")y.preventDefault(),ka(S,_,c,l,Dp);else if(R==="ArrowUp")y.preventDefault(),ka(S,_,c,l,c1);else if(R==="Home")y.preventDefault(),ka(S,null,c,l,Dp);else if(R==="End")y.preventDefault(),ka(S,null,c,l,c1);else if(R.length===1){const E=m.current,k=R.toLowerCase(),F=performance.now();E.keys.length>0&&(F-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=F,E.keys.push(k);const P=_&&!E.repeating&&nw(_,E);E.previousKeyMatched&&(P||ka(S,_,!1,l,Dp,E))?y.preventDefault():E.previousKeyMatched=!1}u&&u(y)},C=St(b,n);let v=-1;x.Children.forEach(s,(y,S)=>{if(!x.isValidElement(y)){v===S&&(v+=1,v>=s.length&&(v=-1));return}y.props.disabled||(d==="selectedMenu"&&y.props.selected||v===-1)&&(v=S),v===S&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))});const h=x.Children.map(s,(y,S)=>{if(S===v){const R={};return i&&(R.autoFocus=!0),y.props.tabIndex===void 0&&d==="selectedMenu"&&(R.tabIndex=0),x.cloneElement(y,R)}return y});return p.jsx(am,w({role:"menu",ref:C,className:a,onKeyDown:g,tabIndex:o?0:-1},f,{children:h}))}),cF=lF;function uF(e){return ke("MuiPopover",e)}Te("MuiPopover",["root","paper"]);const dF=["onEntering"],fF=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],pF=["slotProps"];function u1(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function d1(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function f1(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function jp(e){return typeof e=="function"?e():e}const hF=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"]},uF,t)},mF=re(sg,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rw=re(Ai,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),vF=x.forwardRef(function(t,n){var r,o,i;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:b,container:m,elevation:g=8,marginThreshold:C=16,open:v,PaperProps:h={},slots:y,slotProps:S,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:_=cL,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:F=!1}=s,P=le(s.TransitionProps,dF),V=le(s,fF),z=(r=S==null?void 0:S.paper)!=null?r:h,j=x.useRef(),U=St(j,z.ref),H=w({},s,{anchorOrigin:c,anchorReference:d,elevation:g,marginThreshold:C,externalPaperSlotProps:z,transformOrigin:R,TransitionComponent:_,transitionDuration:E,TransitionProps:P}),G=hF(H),X=x.useCallback(()=>{if(d==="anchorPosition")return u;const ve=jp(l),Ve=(ve&&ve.nodeType===1?ve:vn(j.current).body).getBoundingClientRect();return{top:Ve.top+u1(Ve,c.vertical),left:Ve.left+d1(Ve,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),I=x.useCallback(ve=>({vertical:u1(ve,R.vertical),horizontal:d1(ve,R.horizontal)}),[R.horizontal,R.vertical]),M=x.useCallback(ve=>{const Oe={width:ve.offsetWidth,height:ve.offsetHeight},Ve=I(Oe);if(d==="none")return{top:null,left:null,transformOrigin:f1(Ve)};const mt=X();let Je=mt.top-Ve.vertical,T=mt.left-Ve.horizontal;const D=Je+Oe.height,B=T+Oe.width,ee=Or(jp(l)),oe=ee.innerHeight-C,Y=ee.innerWidth-C;if(C!==null&&Jeoe){const se=D-oe;Je-=se,Ve.vertical+=se}if(C!==null&&TY){const se=B-Y;T-=se,Ve.horizontal+=se}return{top:`${Math.round(Je)}px`,left:`${Math.round(T)}px`,transformOrigin:f1(Ve)}},[l,d,X,I,C]),[L,Q]=x.useState(v),A=x.useCallback(()=>{const ve=j.current;if(!ve)return;const Oe=M(ve);Oe.top!==null&&(ve.style.top=Oe.top),Oe.left!==null&&(ve.style.left=Oe.left),ve.style.transformOrigin=Oe.transformOrigin,Q(!0)},[M]);x.useEffect(()=>(F&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[l,F,A]);const K=(ve,Oe)=>{k&&k(ve,Oe),A()},W=()=>{Q(!1)};x.useEffect(()=>{v&&A()}),x.useImperativeHandle(a,()=>v?{updatePosition:()=>{A()}}:null,[v,A]),x.useEffect(()=>{if(!v)return;const ve=Nd(()=>{A()}),Oe=Or(l);return Oe.addEventListener("resize",ve),()=>{ve.clear(),Oe.removeEventListener("resize",ve)}},[l,v,A]);let ae=E;E==="auto"&&!_.muiSupportAuto&&(ae=void 0);const Z=m||(l?vn(jp(l)).body:void 0),ye=(o=y==null?void 0:y.root)!=null?o:mF,be=(i=y==null?void 0:y.paper)!=null?i:rw,ie=Ws({elementType:be,externalSlotProps:w({},z,{style:L?z.style:w({},z.style,{opacity:0})}),additionalProps:{elevation:g,ref:U},ownerState:H,className:ue(G.paper,z==null?void 0:z.className)}),Ne=Ws({elementType:ye,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:V,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Z,open:v},ownerState:H,className:ue(G.root,b)}),{slotProps:Se}=Ne,Ce=le(Ne,pF);return p.jsx(ye,w({},Ce,!Vs(ye)&&{slotProps:Se,disableScrollLock:F},{children:p.jsx(_,w({appear:!0,in:v,onEntering:K,onExited:W,timeout:ae},P,{children:p.jsx(be,w({},ie,{children:f}))}))}))}),gF=vF;function yF(e){return ke("MuiMenu",e)}Te("MuiMenu",["root","paper","list"]);const bF=["onEntering"],xF=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],SF={vertical:"top",horizontal:"right"},CF={vertical:"top",horizontal:"left"},wF=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"],list:["list"]},yF,t)},RF=re(gF,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),EF=re(rw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_F=re(cF,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),kF=x.forwardRef(function(t,n){var r,o;const i=Pe({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:b={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:C}={},variant:v="selectedMenu",slots:h={},slotProps:y={}}=i,S=le(i.TransitionProps,bF),R=le(i,xF),_=jo(),E=_.direction==="rtl",k=w({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:C,PaperProps:b,transitionDuration:g,TransitionProps:S,variant:v}),F=wF(k),P=s&&!c&&f,V=x.useRef(null),z=(M,L)=>{V.current&&V.current.adjustStyleForScrollbar(M,_),C&&C(M,L)},j=M=>{M.key==="Tab"&&(M.preventDefault(),d&&d(M,"tabKeyDown"))};let U=-1;x.Children.map(a,(M,L)=>{x.isValidElement(M)&&(M.props.disabled||(v==="selectedMenu"&&M.props.selected||U===-1)&&(U=L))});const H=(r=h.paper)!=null?r:EF,G=(o=y.paper)!=null?o:b,X=Ws({elementType:h.root,externalSlotProps:y.root,ownerState:k,className:[F.root,l]}),I=Ws({elementType:H,externalSlotProps:G,ownerState:k,className:F.paper});return p.jsx(RF,w({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?SF:CF,slots:{paper:H,root:h.root},slotProps:{root:X,paper:I},open:f,ref:n,transitionDuration:g,TransitionProps:w({onEntering:z},S),ownerState:k},R,{classes:m,children:p.jsx(_F,w({onKeyDown:j,actions:V,autoFocus:s&&(U===-1||c),autoFocusItem:P,variant:v},u,{className:ue(F.list,u.className),children:a}))}))}),ag=kF;function TF(e){return ke("MuiMenuItem",e)}const AF=Te("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ta=AF,$F=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PF=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},NF=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=$e({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},TF,s);return w({},s,l)},IF=re(Do,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PF})(({theme:e,ownerState:t})=>w({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ta.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ta.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ta.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ta.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ta.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${t1.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${t1.inset}`]:{marginLeft:52},[`& .${nd.root}`]:{marginTop:0,marginBottom:0},[`& .${nd.inset}`]:{paddingLeft:36},[`& .${a1.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&w({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${a1.root} svg`]:{fontSize:"1.25rem"}}))),OF=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f}=r,b=le(r,$F),m=x.useContext(pr),g=x.useMemo(()=>({dense:s||m.dense||!1,disableGutters:l}),[m.dense,s,l]),C=x.useRef(null);Xn(()=>{o&&C.current&&C.current.focus()},[o]);const v=w({},r,{dense:g.dense,divider:a,disableGutters:l}),h=NF(r),y=St(C,n);let S;return r.disabled||(S=d!==void 0?d:-1),p.jsx(pr.Provider,{value:g,children:p.jsx(IF,w({ref:y,role:u,tabIndex:S,component:i,focusVisibleClassName:ue(h.focusVisible,c),className:ue(h.root,f)},b,{ownerState:v,classes:h}))})}),gs=OF;function MF(e){return ke("MuiNativeSelect",e)}const LF=Te("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),lg=LF,FF=["className","disabled","error","IconComponent","inputRef","variant"],DF=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${te(n)}`,i&&"iconOpen",r&&"disabled"]};return $e(a,MF,t)},ow=({ownerState:e,theme:t})=>w({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":w({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${lg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),jF=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${lg.multiple}`]:t.multiple}]}})(ow),iw=({ownerState:e,theme:t})=>w({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${lg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),BF=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})(iw),zF=x.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=le(t,FF),u=w({},t,{disabled:o,variant:l,error:i}),d=DF(u);return p.jsxs(x.Fragment,{children:[p.jsx(jF,w({ownerState:u,className:ue(d.select,r),disabled:o,ref:a||n},c)),t.multiple?null:p.jsx(BF,{as:s,ownerState:u,className:d.icon})]})}),UF=zF;var p1;const VF=["children","classes","className","label","notched"],WF=re("fieldset",{shouldForwardProp:Ht})({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%"}),HF=re("legend",{shouldForwardProp:Ht})(({ownerState:e,theme:t})=>w({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&w({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function KF(e){const{className:t,label:n,notched:r}=e,o=le(e,VF),i=n!=null&&n!=="",s=w({},e,{notched:r,withLabel:i});return p.jsx(WF,w({"aria-hidden":!0,className:t,ownerState:s},o,{children:p.jsx(HF,{ownerState:s,children:i?p.jsx("span",{children:n}):p1||(p1=p.jsx("span",{className:"notranslate",children:"​"}))})}))}const qF=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],GF=e=>{const{classes:t}=e,r=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},uI,t);return w({},t,r)},QF=re(Rf,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Cf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return w({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${io.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${io.focused} .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${io.error} .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${io.disabled} .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&w({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),XF=re(KF,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),YF=re(Ef,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:wf})(({theme:e,ownerState:t})=>w({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),sw=x.forwardRef(function(t,n){var r,o,i,s,a;const l=Pe({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:f,multiline:b=!1,notched:m,slots:g={},type:C="text"}=l,v=le(l,qF),h=GF(l),y=no(),S=Vo({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=w({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:y,fullWidth:u,hiddenLabel:S.hiddenLabel,multiline:b,size:S.size,type:C}),_=(r=(o=g.root)!=null?o:c.Root)!=null?r:QF,E=(i=(s=g.input)!=null?s:c.Input)!=null?i:YF;return p.jsx(ig,w({slots:{root:_,input:E},renderSuffix:k=>p.jsx(XF,{ownerState:R,className:h.notchedOutline,label:f!=null&&f!==""&&S.required?a||(a=p.jsxs(x.Fragment,{children:[f," ","*"]})):f,notched:typeof m<"u"?m:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:d,multiline:b,ref:n,type:C},v,{classes:w({},h,{notchedOutline:null})}))});sw.muiName="Input";const aw=sw,ZF=Mr(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),JF=Mr(p.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),eD=re("span",{shouldForwardProp:Ht})({position:"relative",display:"flex"}),tD=re(ZF)({transform:"scale(1)"}),nD=re(JF)(({theme:e,ownerState:t})=>w({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function lw(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=w({},e,{checked:t});return p.jsxs(eD,{className:n.root,ownerState:o,children:[p.jsx(tD,{fontSize:r,className:n.background,ownerState:o}),p.jsx(nD,{fontSize:r,className:n.dot,ownerState:o})]})}const rD=x.createContext(void 0),cw=rD;function oD(){return x.useContext(cw)}function iD(e){return ke("MuiRadio",e)}const h1=Te("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),sD=["checked","checkedIcon","color","icon","name","onChange","size","className"],aD=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${te(n)}`,r!=="medium"&&`size${te(r)}`]};return w({},t,$e(o,iD,t))},lD=re(zC,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${te(n.size)}`],t[`color${te(n.color)}`]]}})(({theme:e,ownerState:t})=>w({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${h1.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${h1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function cD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const m1=p.jsx(lw,{checked:!0}),v1=p.jsx(lw,{}),uD=x.forwardRef(function(t,n){var r,o;const i=Pe({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=m1,color:l="primary",icon:c=v1,name:u,onChange:d,size:f="medium",className:b}=i,m=le(i,sD),g=w({},i,{color:l,size:f}),C=aD(g),v=oD();let h=s;const y=Eu(d,v&&v.onChange);let S=u;return v&&(typeof h>"u"&&(h=cD(v.value,i.value)),typeof S>"u"&&(S=v.name)),p.jsx(lD,w({type:"radio",icon:x.cloneElement(c,{fontSize:(r=v1.props.fontSize)!=null?r:f}),checkedIcon:x.cloneElement(a,{fontSize:(o=m1.props.fontSize)!=null?o:f}),ownerState:g,classes:C,name:S,checked:h,onChange:y,ref:n,className:ue(C.root,b)},m))}),dD=uD,fD=["actions","children","defaultValue","name","onChange","value"],pD=x.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:i,name:s,onChange:a,value:l}=t,c=le(t,fD),u=x.useRef(null),[d,f]=hl({controlled:l,default:i,name:"RadioGroup"});x.useImperativeHandle(r,()=>({focus:()=>{let C=u.current.querySelector("input:not(:disabled):checked");C||(C=u.current.querySelector("input:not(:disabled)")),C&&C.focus()}}),[]);const b=St(n,u),m=Zl(s),g=x.useMemo(()=>({name:m,onChange(C){f(C.target.value),a&&a(C,C.target.value)},value:d}),[m,a,f,d]);return p.jsx(cw.Provider,{value:g,children:p.jsx($M,w({role:"radiogroup",ref:b},c,{children:o}))})}),hD=pD;function mD(e){return ke("MuiSelect",e)}const Aa=Te("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var g1;const vD=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],gD=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Aa.select}`]:t.select},{[`&.${Aa.select}`]:t[n.variant]},{[`&.${Aa.error}`]:t.error},{[`&.${Aa.multiple}`]:t.multiple}]}})(ow,{[`&.${Aa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yD=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})(iw),bD=re("input",{shouldForwardProp:e=>JT(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function y1(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xD(e){return e==null||typeof e=="string"&&!e.trim()}const SD=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${te(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return $e(a,mD,t)},CD=x.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:b,error:m=!1,IconComponent:g,inputRef:C,labelId:v,MenuProps:h={},multiple:y,name:S,onBlur:R,onChange:_,onClose:E,onFocus:k,onOpen:F,open:P,readOnly:V,renderValue:z,SelectDisplayProps:j={},tabIndex:U,value:H,variant:G="standard"}=t,X=le(t,vD),[I,M]=hl({controlled:H,default:d,name:"Select"}),[L,Q]=hl({controlled:P,default:u,name:"Select"}),A=x.useRef(null),K=x.useRef(null),[W,ae]=x.useState(null),{current:Z}=x.useRef(P!=null),[ye,be]=x.useState(),ie=St(n,C),Ne=x.useCallback(we=>{K.current=we,we&&ae(we)},[]),Se=W==null?void 0:W.parentNode;x.useImperativeHandle(ie,()=>({focus:()=>{K.current.focus()},node:A.current,value:I}),[I]),x.useEffect(()=>{u&&L&&W&&!Z&&(be(a?null:Se.clientWidth),K.current.focus())},[W,a]),x.useEffect(()=>{s&&K.current.focus()},[s]),x.useEffect(()=>{if(!v)return;const we=vn(K.current).getElementById(v);if(we){const Qe=()=>{getSelection().isCollapsed&&K.current.focus()};return we.addEventListener("click",Qe),()=>{we.removeEventListener("click",Qe)}}},[v]);const Ce=(we,Qe)=>{we?F&&F(Qe):E&&E(Qe),Z||(be(a?null:Se.clientWidth),Q(we))},ve=we=>{we.button===0&&(we.preventDefault(),K.current.focus(),Ce(!0,we))},Oe=we=>{Ce(!1,we)},Ve=x.Children.toArray(l),mt=we=>{const Qe=Ve.find(O=>O.props.value===we.target.value);Qe!==void 0&&(M(Qe.props.value),_&&_(we,Qe))},Je=we=>Qe=>{let O;if(Qe.currentTarget.hasAttribute("tabindex")){if(y){O=Array.isArray(I)?I.slice():[];const N=I.indexOf(we.props.value);N===-1?O.push(we.props.value):O.splice(N,1)}else O=we.props.value;if(we.props.onClick&&we.props.onClick(Qe),I!==O&&(M(O),_)){const N=Qe.nativeEvent||Qe,J=new N.constructor(N.type,N);Object.defineProperty(J,"target",{writable:!0,value:{value:O,name:S}}),_(J,we)}y||Ce(!1,Qe)}},T=we=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(we.key)!==-1&&(we.preventDefault(),Ce(!0,we))},D=W!==null&&L,B=we=>{!D&&R&&(Object.defineProperty(we,"target",{writable:!0,value:{value:I,name:S}}),R(we))};delete X["aria-invalid"];let ee,oe;const Y=[];let se=!1;(td({value:I})||b)&&(z?ee=z(I):se=!0);const Ie=Ve.map(we=>{if(!x.isValidElement(we))return null;let Qe;if(y){if(!Array.isArray(I))throw new Error(Mo(2));Qe=I.some(O=>y1(O,we.props.value)),Qe&&se&&Y.push(we.props.children)}else Qe=y1(I,we.props.value),Qe&&se&&(oe=we.props.children);return x.cloneElement(we,{"aria-selected":Qe?"true":"false",onClick:Je(we),onKeyUp:O=>{O.key===" "&&O.preventDefault(),we.props.onKeyUp&&we.props.onKeyUp(O)},role:"option",selected:Qe,value:void 0,"data-value":we.props.value})});se&&(y?Y.length===0?ee=null:ee=Y.reduce((we,Qe,O)=>(we.push(Qe),O{const{classes:t}=e;return t},cg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ht(e)&&e!=="variant",slot:"Root"},kD=re(JC,cg)(""),TD=re(aw,cg)(""),AD=re(qC,cg)(""),uw=x.forwardRef(function(t,n){const r=Pe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=hI,id:d,input:f,inputProps:b,label:m,labelId:g,MenuProps:C,multiple:v=!1,native:h=!1,onClose:y,onOpen:S,open:R,renderValue:_,SelectDisplayProps:E,variant:k="outlined"}=r,F=le(r,RD),P=h?UF:wD,V=no(),z=Vo({props:r,muiFormControl:V,states:["variant","error"]}),j=z.variant||k,U=w({},r,{variant:j,classes:s}),H=_D(U),G=le(H,ED),X=f||{standard:p.jsx(kD,{ownerState:U}),outlined:p.jsx(TD,{label:m,ownerState:U}),filled:p.jsx(AD,{ownerState:U})}[j],I=St(n,X.ref);return p.jsx(x.Fragment,{children:x.cloneElement(X,w({inputComponent:P,inputProps:w({children:i,error:z.error,IconComponent:u,variant:j,type:void 0,multiple:v},h?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:C,onClose:y,onOpen:S,open:R,renderValue:_,SelectDisplayProps:w({id:d},E)},b,{classes:b?mn(G,b.classes):G},f?f.props.inputProps:{})},(v&&h||c)&&j==="outlined"?{notched:!0}:{},{ref:I,className:ue(X.props.className,a,H.root)},!f&&{variant:j},F))})});uw.muiName="Select";const lm=uw;function $D(e){return ke("MuiSwitch",e)}const PD=Te("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Jt=PD,ND=["className","color","edge","size","sx"],ID=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${te(n)}`,`size${te(r)}`],switchBase:["switchBase",`color${te(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$e(a,$D,t);return w({},t,l)},OD=re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${te(n.edge)}`],t[`size${te(n.size)}`]]}})(({ownerState:e})=>w({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Jt.thumb}`]:{width:16,height:16},[`& .${Jt.switchBase}`]:{padding:4,[`&.${Jt.checked}`]:{transform:"translateX(16px)"}}})),MD=re(zC,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Jt.input}`]:t.input},n.color!=="default"&&t[`color${te(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Jt.checked}`]:{transform:"translateX(20px)"},[`&.${Jt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Jt.checked} + .${Jt.track}`]:{opacity:.5},[`&.${Jt.disabled} + .${Jt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Jt.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>w({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Jt.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Au(e.palette[t.color].main,.62):Tu(e.palette[t.color].main,.55)}`}},[`&.${Jt.checked} + .${Jt.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),LD=re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),FD=re("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),DD=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=le(r,ND),u=w({},r,{color:i,edge:s,size:a}),d=ID(u),f=p.jsx(FD,{className:d.thumb,ownerState:u});return p.jsxs(OD,{className:ue(d.root,o),sx:l,ownerState:u,children:[p.jsx(MD,w({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u},c,{classes:w({},d,{root:d.switchBase})})),p.jsx(LD,{className:d.track,ownerState:u})]})}),jD=DD;function BD(e){return ke("MuiToolbar",e)}Te("MuiToolbar",["root","gutters","regular","dense"]);const zD=["className","component","disableGutters","variant"],UD=e=>{const{classes:t,disableGutters:n,variant:r}=e;return $e({root:["root",!n&&"gutters",r]},BD,t)},VD=re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>w({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),WD=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,l=le(r,zD),c=w({},r,{component:i,disableGutters:s,variant:a}),u=UD(c);return p.jsx(VD,w({as:i,className:ue(u.root,o),ref:n,ownerState:c},l))}),HD=WD;function KD(e){return ke("MuiTextField",e)}Te("MuiTextField",["root"]);const qD=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],GD={standard:JC,filled:qC,outlined:aw},QD=e=>{const{classes:t}=e;return $e({root:["root"]},KD,t)},XD=re(yr,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YD=x.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:b=!1,helperText:m,id:g,InputLabelProps:C,inputProps:v,InputProps:h,inputRef:y,label:S,maxRows:R,minRows:_,multiline:E=!1,name:k,onBlur:F,onChange:P,onFocus:V,placeholder:z,required:j=!1,rows:U,select:H=!1,SelectProps:G,type:X,value:I,variant:M="outlined"}=r,L=le(r,qD),Q=w({},r,{autoFocus:i,color:l,disabled:u,error:d,fullWidth:b,multiline:E,required:j,select:H,variant:M}),A=QD(Q),K={};M==="outlined"&&(C&&typeof C.shrink<"u"&&(K.notched=C.shrink),K.label=S),H&&((!G||!G.native)&&(K.id=void 0),K["aria-describedby"]=void 0);const W=Zl(g),ae=m&&W?`${W}-helper-text`:void 0,Z=S&&W?`${W}-label`:void 0,ye=GD[M],be=p.jsx(ye,w({"aria-describedby":ae,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:b,multiline:E,name:k,rows:U,maxRows:R,minRows:_,type:X,value:I,id:W,inputRef:y,onBlur:F,onChange:P,onFocus:V,placeholder:z,inputProps:v},K,h));return p.jsxs(XD,w({className:ue(A.root,a),disabled:u,error:d,fullWidth:b,ref:n,required:j,color:l,variant:M,ownerState:Q},L,{children:[S!=null&&S!==""&&p.jsx(sm,w({htmlFor:W,id:Z},C,{children:S})),H?p.jsx(lm,w({"aria-describedby":ae,id:W,labelId:Z,value:I,input:be},G,{children:s})):be,m&&p.jsx(FM,w({id:ae},f,{children:m}))]}))}),qi=YD,Kn="/hub",ug="/services/japps",ZD="This field is required.",Vc={required:ZD},JD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABdCAYAAAAyj+FzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH4wEeAgwag/GoiAAAEHJJREFUeNrtnHl8VFWyx791u0OT0AkEt3FckK1BefieIG7jknFBGU0TlFbccACNflxGeUISfeOzR99oEhxxGRdQAoI68yEqyW2BEZfBBffEBRETFgUdZIZBIOmQdLr71vsjHW2h0+lOQliS+qf7c++pOvf8Tp06VXXrXOimdpF05cHn5uam9O7d90rD0DOAo1X5WgRfUVHRy4B2AxiH7rjjjqHhsGUCg3e9p8oboVCjZ+bMmT90AxiD7rzzzsNDoXAl8Is40LydltYzy+v1WvFkGV0RwGAwfFd88AD0jPr6+gmtyeqSAIrgSbDp+G4Ad6Fp06YdChycSFtVjukGcBdyOp3bE91hgR/2SwAVZHvB8MwdU4f13V4wPPNf3mHOjpLt9XobgYoEF/u7rbWwx+POzc3NmD179o49BdT2aUP622yMEvQEkGGKHgMc5Yc+Ng1AjyY0U+uhNt9lAZtR2YDwtcJnhmhloKf14UHetTVJ2sCZqjzXSjO/iD6dtBuTm5ub1hgKFQtcAziBTSpSPG/OnEeSUP3YmuXBVtd/8NlqSA7KaGBQB8xDCOE9LH3FUvvC3jNWr0mEKS8vbxZIbosy0cuLi4tfSApAr9drbNi48VXg7BjL6t55JSX/2yZNK3ANMCxuFOEK4PA9HFp9qKJznT3r5ot30854TfPz869V1btAjmoepggfquptxcXF7ycdiUyePNmtUN5C20a1rH7z5s3bnOhg6gqGjrRU7wDNAWydbEq3IvKkFbA/2Hvmqh9ai0pUtZdlWd8XFxdvanMsPGnSpBmITIvTeGxJSYmZiMbZlD8Cl+0D0c42RQrTG+selZnf1Xe08J/vwoYRiO8Xafz73iy7P3/IrXblc2DCPhIqZgpa5O+R9oW/wHXuHgVQVBfH0b5tqampK1q6X5s3+Fh//aaPFH1Iodc+6B0NUGVZbZ5rlk49MnWPAFhSUvKewKMx2oWBGx5//HF/zP0+f8hViHwI/Ne+HsUh5Pp7pFXU5g8a1kGb1u40efLkiQq/BY4UWBUWeeCZOXNW7L5kMWrrXQ8ITN0Pg5IaES5xFla/1uEAJuTT3TLI4U8zFkDCgfm+SI2iXOssrl7QqQCqd1iP2p3BRSL8poMGEga+B/xAHVCj0CDgBxWQPiipCD2BTKAP0LejIkcVuTajsKqkUwDU3JEp/szahUBOG/prAD4G/RhkrYiss0TWpzts34h3VWNSvsltx/Tp0bPnQAsdoKoDEYaKcgowpA3PZQlyjbOo6tk9DmBt3uAnELkhQfE7QZcJvG0Z1nvpDkdFskAl/Xx3DDpELdtphvIrFT0bGJkgaxCRC9ILq97YYwDW5rluRmLu0j/TMhFeQymtV1l0SHFV7d40cvW3H9svbLdyVNWDcForY/7BsmynJBpPJwXgjjzXSYbwDpDSQpOVqjqzIa1H6aHeVf59ccfYUTBwkFi2G0S4Dshoodlnzp3WyfLo2kCHAbh52vG9etkaKgFXjOTdChWrKL1o7cvSzmxNZ9GWvCHpqcJkS3SqKP1iJE4ezCiqvr3DAGzB7r1vqNzSq7jq4/3Vh1Fvlt1fv+l64J5ddnUFzUovWvNWuwFsyqhYH0RlU7YKcm+v1KpHxYvFAUDbC4Zn2mj0onpT1DhXObelnyCzK4KJJxN2V2VRtR5vFirI3MZUa4CzqOrhAwU8gD6FK7elF1bdaohxMlAVuTysLrP2lnZpYE2Ba5woLwENghQ4i6oe5gCnLXlD0nuiTyFcBmxtUOkfz5Mw4mmfKHcD6wRO6QrgARxSXFWbXlw9AdVbgQyH6E1tWsI7810XAD0Nm+0MZ1H1Z3QxSi9e8wiqEwRuVu+wHkkDGIbzbHbO6XXf6u/popRevOYlVH/nbwiNTTrerbvz2MPppqZoJn/A0d0odNO+SQdcfaDH4+kRCARGORyOj0pLSxv3dH/2Awm8MWPGOAKBwDYgNRQKHQxs3dN9HlDVWfX19QKkdmaf9hizmGEYhi0tLa1uTy0Bt9v9S8MwDge2lpWVfbO3AHe73emWZf0iHA5vX7p06ZZEzZ7b7Xapqvh8vq8khtDVwFBVHe/z+V6Muj4PcAOFpmkW78qXnZ39gYicJCKTy8vL50bxzQI8InKVqn4vIo+p6qlRrJ8Dt5im+VYUz19oejG/1DTN38Toq7+IVKiqhsPhEUuWLNngdrs3A4dF5wiIpNdU9Qyfz7cqSv6JIlKoqllRyYPPVXW6z+dbtktfF4mID5ivql7gryJyEvCYaZo3J7OEe9H0QiepJaKqKUCmqp4DrFDVwSIyT1VnAmuA44FX3W73eVFssyO/oy+66KIjdrM7hnEZkCkiK5csWbIh0o9PRMqimr0JvAa8Fg6H/VHgXQC8o6onicg9InIBMA04QkSWZGdnj/mZuokEIvLtIrIkAt5aVf22szaRZjMwFXg7GAyOb14uHo+nIBAILAAuBeZ4PJ5BpaWljaZp/t3tdn8JHGcYxhXAjF0m5bLI3x813efzXZeTk9NHVXMAbDbblEWLFm3dRZsOBhZEnmlUeXl5c+bllZycnDLLslaKyJ89Ho+rtLQ0HLkXiAB5IVBrGMbJZWVlH3bmJtKcGvcDl0fbmtLS0sZgMHgzTa8yj2psbLwwim9O5Pe30cLGjRvnoqkCwu9wOF5Masc0jGtpqo8uNk2zKvpeWVnZOlV9DhgQCAROidLA5ix7b+C6aPA6SwObZ/JN0zR3Kx1bunTpFrfbvRi4VFVPBxZFNOiZcDj8R+C4nJyckWVlZRUA4XC4Wfv+Ulpa6k/SnFzQPKljx46NVWjkUFVUdSiwIsLT/O6krqam5rW96Qd+E2dga0QEVf3x7MaiRYu2ut3uF4ErVfUafqprvizC05YX4c0VscWqLb++EZFYeYDvly9fHmo3gKra4cveMAyHqiIiDbsMZJaqXmlZ1pVjxoyZbrfb+wPDgCqfz/d+G7pqrhq7F/guzvPEKkIPtTcSaYgM6qAWZi2jtexQa5ohIhuiL5aXl7/tdru/FJHjUlJSzgVGRCbx6bZMlIjsUNU+wLumaf6tsyOR5rzgyTH8sqOJHNqzLCvUAv+5ubm5KTFi176qem7Evr0aY9CzIqDlAGOBRhGJWQyUkpJiRPGlxlg9yyN/p3R6KKeqf4/8PXHs2LHjmq9ffPHFh4vI880OqYi09LLpiM2bNz/p8Xh6RAGfFggEnqHpNMCKl19++b3d1k0otACoFxFPRANfNE3zn7E62LJlSw1QDxAMBs+I0eRBIAiMd7vdd3m93t3GP3r06KSKQ+0xZjw1loEdOXLkK5WVlR8Bo1T1hezs7I9FJBAKhUYAW4AXgPGq2rOFviqBqwOBwK+zs7OXiYgAFwJHAJvC4fDEWEyLFy/e5na7F9J07AJVfbylwSxfvjwU2XiuEpGn3W73BMBmmuZFAKZpfu52u28CngDuqaysvHLs2LGvq2pQVQ8RkZNUtSISBbVNA1U1MwLkz+55vV4rFAq5VdUXuX8ScCqwNBQKnSoiK4Ftcfp6Fzgf8IvI9UBuJJpYAIxavHjx+ji2683I3499Pt878QYUDAb/O/KMqZHQMyta603TfEpVRwPvAy5VvRG4VUSuAGwisnoXkTuB9cC3reYDvV6vUVlZGYpcPys6Po2mrKysnhkZGUc6HI7Nrfli2dnZD4rIVODPpmneEgmnDjMMIzUlJWVTAgkLcbvdy4EzgUtM03wpEc0YPXp0r9TU1L6HHXbY5tmzZ8d8OT5u3LiDgsHgkYZhNDgcji2lpaU/JGsDf7aEP/300xMi4NUBn8RZKg3A2rYa3pZsWAsZk6kR8CpGjBhRZppmQnzLli2ri4yjRYqEeu3KGf4IYE5OzkDLsh6LLJmS8vLyvVqW5vV6jYqKiunA/UDQMIzrWzs9vjfIHpnl9yzLGklT6drnjY2Nv9+bD5WdnX1wZWXlchEZBljApOZQbl8jIypj8p6I3FxTU3Py0qVLazqqAxH5LhKGfZsoj8/n20pTtdRXwK9N03yObkqOcnJyjmF/feml3mE9/PlDz++exqYjurUFQ85OKhIR76pGVM+pzXdN6NLgeTFqB7hKDDT56qywGk8Bc2sLBl/SNcHLstfWu+YaMKRXYfVHSQPYVKkuL6FS6s9zFaqn08/77jWqnTbwUH/9pqUCE8PovXE3yXg3d0w/drBhhL9scnd0uVg9LnfOWLX5gAYvf/CZIH+l6WR9hbOoelS84vm42ZjeM1av4cfcm2SpEayozRsy/kAEbvO043v58133g7wRAU+xrNtbO3nQqpuwvWB4pk0DVcAhURZiuWD7nbPoq5UHAng1+YOyEePR6CMPKizIKKye2Kqfm0gH/jzX1SrM3zVVh8jjNis8I6147Xf7JXDTXWeIwf9FYu1o+rfYgv/hvO/rf3YIgAC1ea7nES6PlUECyixD/9T7/jUf7BeuSf2gCwWjADgtdiPxpBdXvZCIvIQB3HbbMX1SHD0+UeJ+T+p1UZ5plJDZt2j9jn0JuO3TBw00xLjUEK5T6B8H4ifSi9bcmHComsxD+KcNOV5t+g7xXxABBER4FaU0JA5fn8KV2/YGaDumHztYJDw+8rW2ExJgecuZmnJeMidKk441a/KGuEX0JRL/DkwY+AJ4R9B3bYTfSS1av3FPhFw7Bw463lI5HeQ04HTgyCRErNMQp2T8qfrfSSVL2vKw/jzXNSqU0PbSkH8Ba1VYJxbrBNZbNllvC4XrgzZjuz2csjMYrGvIfOib7erNsu9o2Jru0Lr0oKak2gxxKqGDFBmgagwUdAAwUGBQ278WIhtDImdlFn71TdKcbd/6XdcJPMn+X6T5D0vCWb0L17Upw96udFHkKNhzdHJVaAfSl3ZCY9pjUtqlPRmF1YvU4vzIktzf6PWwOE5vrz1u9/LLmFH9NuHwcJqKGfeLRAsijzhTf3lBR3gHHZbxbTq8/I8CkN8Djn0UvPWi5DqLq1/vKIEdnjKvucM1VFSeRPWsfQi4oCIPp6fW3t3KNwX3PoA/ujoFrnNVeQD4z726XOEFS8J3tnWX3WsANju3/oGDc7BkKsKvOhG4BoHn1GZ7KP2+1V/syY4SBnDWrFlpKSkpp6lqPyBsGMaqDRs2fOL1ekOJ8NdNHzTCMuRqkAm0+hXxNqvbxwbyrBrh59PvX7ulM2aqVQAXLlyY6vf7/we4hd2/tbJBVe+dMmXKnGS0snaA61SB84Dmosme7YhoVoC8GhZ9pU9h9frOthFxAXz66af7GobxCnBiK3Lmb9y4cVJbSi/Um2Wvq998LISHWyr9RPQokINVSReJlJ6I7sSSOoVNgm5UZb1d9NN9IQ/ZIoCqKnPnzl0W0ZLWgVD9w5QpU7x0MWoRwLlz53pUdWESsgJ2u901ceLEjV0JQCOORl2VpCxHKBS6sqtpYIsAisioNsgb1Q1gk8uSoqpJf3RCVQ/tBhC4/vrrg0DSJW4isrUbwJ/ozTbIW94N4E/a9GSSshqBZ7sBbA4xNmz4WzIapar3T548eUs3gBHyer1WMBj0AJ8mYPvmffvtt/fQBanVWDiSRLgbuJGmI1nR9J2I3D1p0qQSuiglnI2ZP39+r2AweCbQDwiKyGqn0/nBpZdeGqYL0/8DYoC55FAuaE8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDEtMzBUMDI6MTI6MjYrMDA6MDDUuE4iAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTAxLTMwVDAyOjEyOjI2KzAwOjAwpeX2ngAAAABJRU5ErkJggg==",ej=[];var oa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ks=typeof window>"u"||"Deno"in globalThis;function Bn(){}function tj(e,t){return typeof e=="function"?e(t):e}function cm(e){return typeof e=="number"&&e>=0&&e!==1/0}function dw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function b1(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==dg(s,t.options))return!1}else if(!Il(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function x1(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Ri(t.options.mutationKey)!==Ri(i))return!1}else if(!Il(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function dg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ri)(e)}function Ri(e){return JSON.stringify(e,(t,n)=>um(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Il(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Il(e[n],t[n])):!1}function fw(e,t){if(e===t)return e;const n=S1(e)&&S1(t);if(n||um(e)&&um(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function dm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?fw(e,t):t}function rj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function oj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fg=Symbol(),oi,mo,bs,$b,ij=($b=class extends oa{constructor(){super();xe(this,oi,void 0);xe(this,mo,void 0);xe(this,bs,void 0);pe(this,bs,t=>{if(!Ks&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){$(this,mo)||this.setEventListener($(this,bs))}onUnsubscribe(){var t;this.hasListeners()||((t=$(this,mo))==null||t.call(this),pe(this,mo,void 0))}setEventListener(t){var n;pe(this,bs,t),(n=$(this,mo))==null||n.call(this),pe(this,mo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){$(this,oi)!==t&&(pe(this,oi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof $(this,oi)=="boolean"?$(this,oi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},oi=new WeakMap,mo=new WeakMap,bs=new WeakMap,$b),pg=new ij,xs,vo,Ss,Pb,sj=(Pb=class extends oa{constructor(){super();xe(this,xs,!0);xe(this,vo,void 0);xe(this,Ss,void 0);pe(this,Ss,t=>{if(!Ks&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){$(this,vo)||this.setEventListener($(this,Ss))}onUnsubscribe(){var t;this.hasListeners()||((t=$(this,vo))==null||t.call(this),pe(this,vo,void 0))}setEventListener(t){var n;pe(this,Ss,t),(n=$(this,vo))==null||n.call(this),pe(this,vo,t(this.setOnline.bind(this)))}setOnline(t){$(this,xs)!==t&&(pe(this,xs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return $(this,xs)}},xs=new WeakMap,vo=new WeakMap,Ss=new WeakMap,Pb),od=new sj;function aj(e){return Math.min(1e3*2**e,3e4)}function hg(e){return(e??"online")==="online"?od.isOnline():!0}var pw=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Bp(e){return e instanceof pw}function hw(e){let t=!1,n=0,r=!1,o,i,s;const a=new Promise((C,v)=>{i=C,s=v}),l=C=>{var v;r||(b(new pw(C)),(v=e.abort)==null||v.call(e))},c=()=>{t=!0},u=()=>{t=!1},d=()=>!pg.isFocused()||e.networkMode!=="always"&&!od.isOnline(),f=C=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,C),o==null||o(),i(C))},b=C=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,C),o==null||o(),s(C))},m=()=>new Promise(C=>{var v;o=h=>{const y=r||!d();return y&&C(h),y},(v=e.onPause)==null||v.call(e)}).then(()=>{var C;o=void 0,r||(C=e.onContinue)==null||C.call(e)}),g=()=>{if(r)return;let C;try{C=e.fn()}catch(v){C=Promise.reject(v)}Promise.resolve(C).then(f).catch(v=>{var _;if(r)return;const h=e.retry??(Ks?0:3),y=e.retryDelay??aj,S=typeof y=="function"?y(n,v):y,R=h===!0||typeof h=="number"&&n{if(d())return m()}).then(()=>{t?b(v):g()})})};return hg(e.networkMode)?g():m().then(g),{promise:a,cancel:l,continue:()=>(o==null?void 0:o())?a:Promise.resolve(),cancelRetry:c,continueRetry:u}}function lj(){let e=[],t=0,n=f=>{f()},r=f=>{f()},o=f=>setTimeout(f,0);const i=f=>{o=f},s=f=>{let b;t++;try{b=f()}finally{t--,t||c()}return b},a=f=>{t?e.push(f):o(()=>{n(f)})},l=f=>(...b)=>{a(()=>{f(...b)})},c=()=>{const f=e;e=[],f.length&&o(()=>{r(()=>{f.forEach(b=>{n(b)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:i}}var $t=lj(),ii,Nb,mw=(Nb=class{constructor(){xe(this,ii,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cm(this.gcTime)&&pe(this,ii,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ks?1/0:5*60*1e3))}clearGcTimeout(){$(this,ii)&&(clearTimeout($(this,ii)),pe(this,ii,void 0))}},ii=new WeakMap,Nb),Cs,ws,Dn,en,Ft,Fl,si,sr,zr,Ib,cj=(Ib=class extends mw{constructor(t){super();xe(this,sr);xe(this,Cs,void 0);xe(this,ws,void 0);xe(this,Dn,void 0);xe(this,en,void 0);xe(this,Ft,void 0);xe(this,Fl,void 0);xe(this,si,void 0);pe(this,si,!1),pe(this,Fl,t.defaultOptions),this.setOptions(t.options),pe(this,Ft,[]),pe(this,Dn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,pe(this,Cs,t.state||uj(this.options)),this.state=$(this,Cs),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...$(this,Fl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!$(this,Ft).length&&this.state.fetchStatus==="idle"&&$(this,Dn).remove(this)}setData(t,n){const r=dm(this.state.data,t,this.options);return Le(this,sr,zr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,sr,zr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=$(this,en))==null?void 0:r.promise;return(o=$(this,en))==null||o.cancel(t),n?n.then(Bn).catch(Bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState($(this,Cs))}isActive(){return $(this,Ft).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?$(this,Ft).some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!dw(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=$(this,Ft).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=$(this,en))==null||n.continue()}onOnline(){var n;const t=$(this,Ft).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=$(this,en))==null||n.continue()}addObserver(t){$(this,Ft).includes(t)||($(this,Ft).push(t),this.clearGcTimeout(),$(this,Dn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){$(this,Ft).includes(t)&&(pe(this,Ft,$(this,Ft).filter(n=>n!==t)),$(this,Ft).length||($(this,en)&&($(this,si)?$(this,en).cancel({revert:!0}):$(this,en).cancelRetry()),this.scheduleGc()),$(this,Dn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return $(this,Ft).length}invalidate(){this.state.isInvalidated||Le(this,sr,zr).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if($(this,en))return $(this,en).continueRetry(),$(this,en).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=$(this,Ft).find(b=>b.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o={queryKey:this.queryKey,meta:this.meta},i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(pe(this,si,!0),r.signal)})};i(o);const s=()=>!this.options.queryFn||this.options.queryFn===fg?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(pe(this,si,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(a),(c=this.options.behavior)==null||c.onFetch(a,this),pe(this,ws,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Le(this,sr,zr).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var b,m,g,C;Bp(f)&&f.silent||Le(this,sr,zr).call(this,{type:"error",error:f}),Bp(f)||((m=(b=$(this,Dn).config).onError)==null||m.call(b,f,this),(C=(g=$(this,Dn).config).onSettled)==null||C.call(g,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return pe(this,en,hw({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var b,m,g,C;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(m=(b=$(this,Dn).config).onSuccess)==null||m.call(b,f,this),(C=(g=$(this,Dn).config).onSettled)==null||C.call(g,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(f,b)=>{Le(this,sr,zr).call(this,{type:"failed",failureCount:f,error:b})},onPause:()=>{Le(this,sr,zr).call(this,{type:"pause"})},onContinue:()=>{Le(this,sr,zr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),$(this,en).promise}},Cs=new WeakMap,ws=new WeakMap,Dn=new WeakMap,en=new WeakMap,Ft=new WeakMap,Fl=new WeakMap,si=new WeakMap,sr=new WeakSet,zr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...vw(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Bp(o)&&o.revert&&$(this,ws)?{...$(this,ws),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),$t.batch(()=>{$(this,Ft).forEach(r=>{r.onQueryUpdate()}),$(this,Dn).notify({query:this,type:"updated",action:t})})},Ib);function vw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function uj(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var xr,Ob,dj=(Ob=class extends oa{constructor(t={}){super();xe(this,xr,void 0);this.config=t,pe(this,xr,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??dg(o,n);let s=this.get(i);return s||(s=new cj({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){$(this,xr).has(t.queryHash)||($(this,xr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=$(this,xr).get(t.queryHash);n&&(t.destroy(),n===t&&$(this,xr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){$t.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return $(this,xr).get(t)}getAll(){return[...$(this,xr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>b1(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>b1(t,r)):n}notify(t){$t.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){$t.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){$t.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xr=new WeakMap,Ob),Sr,Dl,_n,Rs,Cr,ao,Mb,fj=(Mb=class extends mw{constructor(t){super();xe(this,Cr);xe(this,Sr,void 0);xe(this,Dl,void 0);xe(this,_n,void 0);xe(this,Rs,void 0);this.mutationId=t.mutationId,pe(this,Dl,t.defaultOptions),pe(this,_n,t.mutationCache),pe(this,Sr,[]),this.state=t.state||gw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...$(this,Dl),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){$(this,Sr).includes(t)||($(this,Sr).push(t),this.clearGcTimeout(),$(this,_n).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pe(this,Sr,$(this,Sr).filter(n=>n!==t)),this.scheduleGc(),$(this,_n).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){$(this,Sr).length||(this.state.status==="pending"?this.scheduleGc():$(this,_n).remove(this))}continue(){var t;return((t=$(this,Rs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,a,l,c,u,d,f,b,m,g,C,v,h,y,S,R,_,E;const n=()=>(pe(this,Rs,hw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,F)=>{Le(this,Cr,ao).call(this,{type:"failed",failureCount:k,error:F})},onPause:()=>{Le(this,Cr,ao).call(this,{type:"pause"})},onContinue:()=>{Le(this,Cr,ao).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),$(this,Rs).promise),r=this.state.status==="pending";try{if(!r){Le(this,Cr,ao).call(this,{type:"pending",variables:t}),await((i=(o=$(this,_n).config).onMutate)==null?void 0:i.call(o,t,this));const F=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));F!==this.state.context&&Le(this,Cr,ao).call(this,{type:"pending",context:F,variables:t})}const k=await n();return await((c=(l=$(this,_n).config).onSuccess)==null?void 0:c.call(l,k,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,k,t,this.state.context)),await((b=(f=$(this,_n).config).onSettled)==null?void 0:b.call(f,k,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,k,null,t,this.state.context)),Le(this,Cr,ao).call(this,{type:"success",data:k}),k}catch(k){try{throw await((v=(C=$(this,_n).config).onError)==null?void 0:v.call(C,k,t,this.state.context,this)),await((y=(h=this.options).onError)==null?void 0:y.call(h,k,t,this.state.context)),await((R=(S=$(this,_n).config).onSettled)==null?void 0:R.call(S,void 0,k,this.state.variables,this.state.context,this)),await((E=(_=this.options).onSettled)==null?void 0:E.call(_,void 0,k,t,this.state.context)),k}finally{Le(this,Cr,ao).call(this,{type:"error",error:k})}}}},Sr=new WeakMap,Dl=new WeakMap,_n=new WeakMap,Rs=new WeakMap,Cr=new WeakSet,ao=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!hg(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),$t.batch(()=>{$(this,Sr).forEach(r=>{r.onMutationUpdate(t)}),$(this,_n).notify({mutation:this,type:"updated",action:t})})},Mb);function gw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jn,jl,ai,Lb,pj=(Lb=class extends oa{constructor(t={}){super();xe(this,jn,void 0);xe(this,jl,void 0);xe(this,ai,void 0);this.config=t,pe(this,jn,[]),pe(this,jl,0)}build(t,n,r){const o=new fj({mutationCache:this,mutationId:++yc(this,jl)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){$(this,jn).push(t),this.notify({type:"added",mutation:t})}remove(t){pe(this,jn,$(this,jn).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){$t.batch(()=>{$(this,jn).forEach(t=>{this.remove(t)})})}getAll(){return $(this,jn)}find(t){const n={exact:!0,...t};return $(this,jn).find(r=>x1(n,r))}findAll(t={}){return $(this,jn).filter(n=>x1(t,n))}notify(t){$t.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return pe(this,ai,($(this,ai)??Promise.resolve()).then(()=>{const t=$(this,jn).filter(n=>n.state.isPaused);return $t.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Bn)),Promise.resolve()))}).then(()=>{pe(this,ai,void 0)})),$(this,ai)}},jn=new WeakMap,jl=new WeakMap,ai=new WeakMap,Lb);function hj(e){return{onFetch:(t,n)=>{const r=async()=>{var m,g,C,v,h;const o=t.options,i=(C=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:C.direction,s=((v=t.state.data)==null?void 0:v.pages)||[],a=((h=t.state.data)==null?void 0:h.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const u=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},d=t.options.queryFn&&t.options.queryFn!==fg?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),f=async(y,S,R)=>{if(c)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const _={queryKey:t.queryKey,pageParam:S,direction:R?"backward":"forward",meta:t.options.meta};u(_);const E=await d(_),{maxPages:k}=t.options,F=R?oj:rj;return{pages:F(y.pages,E,k),pageParams:F(y.pageParams,S,k)}};let b;if(i&&s.length){const y=i==="backward",S=y?mj:w1,R={pages:s,pageParams:a},_=S(o,R);b=await f(R,_,y)}else{b=await f(l,a[0]??o.initialPageParam);const y=e??s.length;for(let S=1;S{var o,i;return(i=(o=t.options).persister)==null?void 0:i.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function w1(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function mj(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var wt,go,yo,Es,_s,bo,ks,Ts,Fb,vj=(Fb=class{constructor(e={}){xe(this,wt,void 0);xe(this,go,void 0);xe(this,yo,void 0);xe(this,Es,void 0);xe(this,_s,void 0);xe(this,bo,void 0);xe(this,ks,void 0);xe(this,Ts,void 0);pe(this,wt,e.queryCache||new dj),pe(this,go,e.mutationCache||new pj),pe(this,yo,e.defaultOptions||{}),pe(this,Es,new Map),pe(this,_s,new Map),pe(this,bo,0)}mount(){yc(this,bo)._++,$(this,bo)===1&&(pe(this,ks,pg.subscribe(async e=>{e&&(await this.resumePausedMutations(),$(this,wt).onFocus())})),pe(this,Ts,od.subscribe(async e=>{e&&(await this.resumePausedMutations(),$(this,wt).onOnline())})))}unmount(){var e,t;yc(this,bo)._--,$(this,bo)===0&&((e=$(this,ks))==null||e.call(this),pe(this,ks,void 0),(t=$(this,Ts))==null||t.call(this),pe(this,Ts,void 0))}isFetching(e){return $(this,wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return $(this,go).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=$(this,wt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=$(this,wt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=$(this,wt).get(r.queryHash),i=o==null?void 0:o.state.data,s=tj(t,i);if(s!==void 0)return $(this,wt).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return $t.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=$(this,wt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=$(this,wt);$t.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=$(this,wt),r={type:"active",...e};return $t.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=$t.batch(()=>$(this,wt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Bn).catch(Bn)}invalidateQueries(e={},t={}){return $t.batch(()=>{if($(this,wt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=$t.batch(()=>$(this,wt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Bn)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Bn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=$(this,wt).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Bn).catch(Bn)}fetchInfiniteQuery(e){return e.behavior=hj(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Bn).catch(Bn)}resumePausedMutations(){return od.isOnline()?$(this,go).resumePausedMutations():Promise.resolve()}getQueryCache(){return $(this,wt)}getMutationCache(){return $(this,go)}getDefaultOptions(){return $(this,yo)}setDefaultOptions(e){pe(this,yo,e)}setQueryDefaults(e,t){$(this,Es).set(Ri(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...$(this,Es).values()];let n={};return t.forEach(r=>{Il(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){$(this,_s).set(Ri(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...$(this,_s).values()];let n={};return t.forEach(r=>{Il(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...$(this,yo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=dg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===fg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...$(this,yo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){$(this,wt).clear(),$(this,go).clear()}},wt=new WeakMap,go=new WeakMap,yo=new WeakMap,Es=new WeakMap,_s=new WeakMap,bo=new WeakMap,ks=new WeakMap,Ts=new WeakMap,Fb),dn,nt,Bl,tn,li,As,wr,zl,$s,Ps,ci,ui,xo,Ns,di,Wa,Ul,fm,Vl,pm,Wl,hm,Hl,mm,Kl,vm,ql,gm,Gl,ym,vd,yw,Db,gj=(Db=class extends oa{constructor(t,n){super();xe(this,di);xe(this,Ul);xe(this,Vl);xe(this,Wl);xe(this,Hl);xe(this,Kl);xe(this,ql);xe(this,Gl);xe(this,vd);xe(this,dn,void 0);xe(this,nt,void 0);xe(this,Bl,void 0);xe(this,tn,void 0);xe(this,li,void 0);xe(this,As,void 0);xe(this,wr,void 0);xe(this,zl,void 0);xe(this,$s,void 0);xe(this,Ps,void 0);xe(this,ci,void 0);xe(this,ui,void 0);xe(this,xo,void 0);xe(this,Ns,new Set);this.options=n,pe(this,dn,t),pe(this,wr,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&($(this,nt).addObserver(this),R1($(this,nt),this.options)?Le(this,di,Wa).call(this):this.updateResult(),Le(this,Hl,mm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bm($(this,nt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bm($(this,nt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Le(this,Kl,vm).call(this),Le(this,ql,gm).call(this),$(this,nt).removeObserver(this)}setOptions(t,n){const r=this.options,o=$(this,nt);if(this.options=$(this,dn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");Le(this,Gl,ym).call(this),$(this,nt).setOptions(this.options),r._defaulted&&!rd(this.options,r)&&$(this,dn).getQueryCache().notify({type:"observerOptionsUpdated",query:$(this,nt),observer:this});const i=this.hasListeners();i&&E1($(this,nt),o,this.options,r)&&Le(this,di,Wa).call(this),this.updateResult(n),i&&($(this,nt)!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Le(this,Ul,fm).call(this);const s=Le(this,Vl,pm).call(this);i&&($(this,nt)!==o||this.options.enabled!==r.enabled||s!==$(this,xo))&&Le(this,Wl,hm).call(this,s)}getOptimisticResult(t){const n=$(this,dn).getQueryCache().build($(this,dn),t),r=this.createResult(n,t);return bj(this,r)&&(pe(this,tn,r),pe(this,As,this.options),pe(this,li,$(this,nt).state)),r}getCurrentResult(){return $(this,tn)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){$(this,Ns).add(t)}getCurrentQuery(){return $(this,nt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=$(this,dn).defaultQueryOptions(t),r=$(this,dn).getQueryCache().build($(this,dn),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Le(this,di,Wa).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),$(this,tn)))}createResult(t,n){var E;const r=$(this,nt),o=this.options,i=$(this,tn),s=$(this,li),a=$(this,As),c=t!==r?t.state:$(this,Bl),{state:u}=t;let d={...u},f=!1,b;if(n._optimisticResults){const k=this.hasListeners(),F=!k&&R1(t,n),P=k&&E1(t,r,n,o);(F||P)&&(d={...d,...vw(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:C}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(s==null?void 0:s.data)&&n.select===$(this,zl))b=$(this,$s);else try{pe(this,zl,n.select),b=n.select(d.data),b=dm(i==null?void 0:i.data,b,n),pe(this,$s,b),pe(this,wr,null)}catch(k){pe(this,wr,k)}else b=d.data;if(n.placeholderData!==void 0&&b===void 0&&C==="pending"){let k;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))k=i.data;else if(k=typeof n.placeholderData=="function"?n.placeholderData((E=$(this,Ps))==null?void 0:E.state.data,$(this,Ps)):n.placeholderData,n.select&&k!==void 0)try{k=n.select(k),pe(this,wr,null)}catch(F){pe(this,wr,F)}k!==void 0&&(C="success",b=dm(i==null?void 0:i.data,k,n),f=!0)}$(this,wr)&&(m=$(this,wr),b=$(this,$s),g=Date.now(),C="error");const v=d.fetchStatus==="fetching",h=C==="pending",y=C==="error",S=h&&v,R=b!==void 0;return{status:C,fetchStatus:d.fetchStatus,isPending:h,isSuccess:C==="success",isError:y,isInitialLoading:S,isLoading:S,data:b,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!h,isLoadingError:y&&!R,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:y&&R,isStale:mg(t,n),refetch:this.refetch}}updateResult(t){const n=$(this,tn),r=this.createResult($(this,nt),this.options);if(pe(this,li,$(this,nt).state),pe(this,As,this.options),$(this,li).data!==void 0&&pe(this,Ps,$(this,nt)),rd(r,n))return;pe(this,tn,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!$(this,Ns).size)return!0;const l=new Set(a??$(this,Ns));return this.options.throwOnError&&l.add("error"),Object.keys($(this,tn)).some(c=>{const u=c;return $(this,tn)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),Le(this,vd,yw).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Le(this,Hl,mm).call(this)}},dn=new WeakMap,nt=new WeakMap,Bl=new WeakMap,tn=new WeakMap,li=new WeakMap,As=new WeakMap,wr=new WeakMap,zl=new WeakMap,$s=new WeakMap,Ps=new WeakMap,ci=new WeakMap,ui=new WeakMap,xo=new WeakMap,Ns=new WeakMap,di=new WeakSet,Wa=function(t){Le(this,Gl,ym).call(this);let n=$(this,nt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Bn)),n},Ul=new WeakSet,fm=function(){if(Le(this,Kl,vm).call(this),Ks||$(this,tn).isStale||!cm(this.options.staleTime))return;const n=dw($(this,tn).dataUpdatedAt,this.options.staleTime)+1;pe(this,ci,setTimeout(()=>{$(this,tn).isStale||this.updateResult()},n))},Vl=new WeakSet,pm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval($(this,nt)):this.options.refetchInterval)??!1},Wl=new WeakSet,hm=function(t){Le(this,ql,gm).call(this),pe(this,xo,t),!(Ks||this.options.enabled===!1||!cm($(this,xo))||$(this,xo)===0)&&pe(this,ui,setInterval(()=>{(this.options.refetchIntervalInBackground||pg.isFocused())&&Le(this,di,Wa).call(this)},$(this,xo)))},Hl=new WeakSet,mm=function(){Le(this,Ul,fm).call(this),Le(this,Wl,hm).call(this,Le(this,Vl,pm).call(this))},Kl=new WeakSet,vm=function(){$(this,ci)&&(clearTimeout($(this,ci)),pe(this,ci,void 0))},ql=new WeakSet,gm=function(){$(this,ui)&&(clearInterval($(this,ui)),pe(this,ui,void 0))},Gl=new WeakSet,ym=function(){const t=$(this,dn).getQueryCache().build($(this,dn),this.options);if(t===$(this,nt))return;const n=$(this,nt);pe(this,nt,t),pe(this,Bl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},vd=new WeakSet,yw=function(t){$t.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n($(this,tn))}),$(this,dn).getQueryCache().notify({query:$(this,nt),type:"observerResultsUpdated"})})},Db);function yj(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function R1(e,t){return yj(e,t)||e.state.data!==void 0&&bm(e,t,t.refetchOnMount)}function bm(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&mg(e,t)}return!1}function E1(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&mg(e,n)}function mg(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function bj(e,t){return!rd(e.getCurrentResult(),t)}var So,Co,fn,Wr,Is,vu,Ql,xm,jb,xj=(jb=class extends oa{constructor(n,r){super();xe(this,Is);xe(this,Ql);xe(this,So,void 0);xe(this,Co,void 0);xe(this,fn,void 0);xe(this,Wr,void 0);pe(this,So,n),this.setOptions(r),this.bindMethods(),Le(this,Is,vu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=$(this,So).defaultMutationOptions(n),rd(this.options,r)||$(this,So).getMutationCache().notify({type:"observerOptionsUpdated",mutation:$(this,fn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ri(r.mutationKey)!==Ri(this.options.mutationKey)?this.reset():((o=$(this,fn))==null?void 0:o.state.status)==="pending"&&$(this,fn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=$(this,fn))==null||n.removeObserver(this)}onMutationUpdate(n){Le(this,Is,vu).call(this),Le(this,Ql,xm).call(this,n)}getCurrentResult(){return $(this,Co)}reset(){var n;(n=$(this,fn))==null||n.removeObserver(this),pe(this,fn,void 0),Le(this,Is,vu).call(this),Le(this,Ql,xm).call(this)}mutate(n,r){var o;return pe(this,Wr,r),(o=$(this,fn))==null||o.removeObserver(this),pe(this,fn,$(this,So).getMutationCache().build($(this,So),this.options)),$(this,fn).addObserver(this),$(this,fn).execute(n)}},So=new WeakMap,Co=new WeakMap,fn=new WeakMap,Wr=new WeakMap,Is=new WeakSet,vu=function(){var r;const n=((r=$(this,fn))==null?void 0:r.state)??gw();pe(this,Co,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Ql=new WeakSet,xm=function(n){$t.batch(()=>{var r,o,i,s,a,l,c,u;if($(this,Wr)&&this.hasListeners()){const d=$(this,Co).variables,f=$(this,Co).context;(n==null?void 0:n.type)==="success"?((o=(r=$(this,Wr)).onSuccess)==null||o.call(r,n.data,d,f),(s=(i=$(this,Wr)).onSettled)==null||s.call(i,n.data,null,d,f)):(n==null?void 0:n.type)==="error"&&((l=(a=$(this,Wr)).onError)==null||l.call(a,n.error,d,f),(u=(c=$(this,Wr)).onSettled)==null||u.call(c,void 0,n.error,d,f))}this.listeners.forEach(d=>{d($(this,Co))})})},jb),bw=x.createContext(void 0),_f=e=>{const t=x.useContext(bw);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Sj=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(bw.Provider,{value:e,children:t})),xw=x.createContext(!1),Cj=()=>x.useContext(xw);xw.Provider;function wj(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Rj=x.createContext(wj()),Ej=()=>x.useContext(Rj);function Sw(e,t){return typeof e=="function"?e(...t):!!e}function _j(){}var kj=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Tj=e=>{x.useEffect(()=>{e.clearReset()},[e])},Aj=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Sw(n,[e.error,r]),$j=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Pj=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Nj=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ij(e,t,n){const r=_f(n),o=Cj(),i=Ej(),s=r.defaultQueryOptions(e);s._optimisticResults=o?"isRestoring":"optimistic",$j(s),kj(s,i),Tj(i);const[a]=x.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(x.useSyncExternalStore(x.useCallback(c=>{const u=o?()=>{}:a.subscribe($t.batchCalls(c));return a.updateResult(),u},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),x.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Pj(s,l))throw Nj(s,a,i);if(Aj({result:l,errorResetBoundary:i,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:a.trackResult(l)}function qr(e,t){return Ij(e,gj,t)}function qs(e,t){const n=_f(t),[r]=x.useState(()=>new xj(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const o=x.useSyncExternalStore(x.useCallback(s=>r.subscribe($t.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=x.useCallback((s,a)=>{r.mutate(s,a).catch(_j)},[r]);if(o.error&&Sw(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}var Sm={},_1=xf;Sm.createRoot=_1.createRoot,Sm.hydrateRoot=_1.hydrateRoot;/** +`),Fn.rippleVisible,QC,fv,({theme:e})=>e.transitions.easing.easeInOut,Fn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Fn.child,Fn.childLeaving,KC,fv,({theme:e})=>e.transitions.easing.easeInOut,Fn.childPulsate,GC,({theme:e})=>e.transitions.easing.easeInOut),_C=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=le(r,JC),[l,c]=g.useState([]),u=g.useRef(0),f=g.useRef(null);g.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=g.useRef(!1),y=R0(),v=g.useRef(null),m=g.useRef(null),b=g.useCallback(w=>{const{pulsate:S,rippleX:C,rippleY:H,rippleSize:R,cb:L}=w;c(k=>[...k,d.jsx(YC,{classes:{ripple:ce(i.ripple,Fn.ripple),rippleVisible:ce(i.rippleVisible,Fn.rippleVisible),ripplePulsate:ce(i.ripplePulsate,Fn.ripplePulsate),child:ce(i.child,Fn.child),childLeaving:ce(i.childLeaving,Fn.childLeaving),childPulsate:ce(i.childPulsate,Fn.childPulsate)},timeout:fv,pulsate:S,rippleX:C,rippleY:H,rippleSize:R},u.current)]),u.current+=1,f.current=L},[i]),A=g.useCallback((w={},S={},C=()=>{})=>{const{pulsate:H=!1,center:R=o||S.pulsate,fakeElement:L=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&p.current){p.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(p.current=!0);const k=L?null:m.current,M=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,X,F;if(R||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)U=Math.round(M.width/2),X=Math.round(M.height/2);else{const{clientX:J,clientY:K}=w.touches&&w.touches.length>0?w.touches[0]:w;U=Math.round(J-M.left),X=Math.round(K-M.top)}if(R)F=Math.sqrt((2*M.width**2+M.height**2)/3),F%2===0&&(F+=1);else{const J=Math.max(Math.abs((k?k.clientWidth:0)-U),U)*2+2,K=Math.max(Math.abs((k?k.clientHeight:0)-X),X)*2+2;F=Math.sqrt(J**2+K**2)}w!=null&&w.touches?v.current===null&&(v.current=()=>{b({pulsate:H,rippleX:U,rippleY:X,rippleSize:F,cb:C})},y.start(WC,()=>{v.current&&(v.current(),v.current=null)})):b({pulsate:H,rippleX:U,rippleY:X,rippleSize:F,cb:C})},[o,b,y]),h=g.useCallback(()=>{A({},{pulsate:!0})},[A]),P=g.useCallback((w,S)=>{if(y.clear(),(w==null?void 0:w.type)==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{P(w,S)});return}v.current=null,c(C=>C.length>0?C.slice(1):C),f.current=S},[y]);return g.useImperativeHandle(n,()=>({pulsate:h,start:A,stop:P}),[h,A,P]),d.jsx(ZC,x({className:ce(Fn.root,i.root,s),ref:m},a,{children:d.jsx(OC,{component:null,exit:!0,children:l})}))}),$C=_C;function eR(e){return He("MuiButtonBase",e)}const tR=Ce("MuiButtonBase",["root","disabled","focusVisible"]),nR=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],rR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Te({root:["root",t&&"disabled",n&&"focusVisible"]},eR,o);return n&&r&&(s.root+=` ${r}`),s},oR=re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iR=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:v,onClick:m,onContextMenu:b,onDragLeave:A,onFocus:h,onFocusVisible:P,onKeyDown:w,onKeyUp:S,onMouseDown:C,onMouseLeave:H,onMouseUp:R,onTouchEnd:L,onTouchMove:k,onTouchStart:M,tabIndex:U=0,TouchRippleProps:X,touchRippleRef:F,type:J}=r,K=le(r,nR),Z=g.useRef(null),z=g.useRef(null),I=xt(z,F),{isFocusVisibleRef:B,onFocus:G,onBlur:T,ref:W}=D0(),[q,ae]=g.useState(!1);c&&q&&ae(!1),g.useImperativeHandle(o,()=>({focusVisible:()=>{ae(!0),Z.current.focus()}}),[]);const[_,Pe]=g.useState(!1);g.useEffect(()=>{Pe(!0)},[]);const ye=_&&!u&&!c;g.useEffect(()=>{q&&p&&!u&&_&&z.current.pulsate()},[u,p,q,_]);function ie(Se,nn,nr=f){return ei(Ar=>(nn&&nn(Ar),!nr&&z.current&&z.current[Se](Ar),!0))}const je=ie("start",C),be=ie("stop",b),we=ie("stop",A),me=ie("stop",R),Oe=ie("stop",Se=>{q&&Se.preventDefault(),H&&H(Se)}),Fe=ie("start",M),mt=ie("stop",L),et=ie("stop",k),D=ie("stop",Se=>{T(Se),B.current===!1&&ae(!1),v&&v(Se)},!1),N=ei(Se=>{Z.current||(Z.current=Se.currentTarget),G(Se),B.current===!0&&(ae(!0),P&&P(Se)),h&&h(Se)}),V=()=>{const Se=Z.current;return l&&l!=="button"&&!(Se.tagName==="A"&&Se.href)},te=g.useRef(!1),oe=ei(Se=>{p&&!te.current&&q&&z.current&&Se.key===" "&&(te.current=!0,z.current.stop(Se,()=>{z.current.start(Se)})),Se.target===Se.currentTarget&&V()&&Se.key===" "&&Se.preventDefault(),w&&w(Se),Se.target===Se.currentTarget&&V()&&Se.key==="Enter"&&!c&&(Se.preventDefault(),m&&m(Se))}),Y=ei(Se=>{p&&Se.key===" "&&z.current&&q&&!Se.defaultPrevented&&(te.current=!1,z.current.stop(Se,()=>{z.current.pulsate(Se)})),S&&S(Se),m&&Se.target===Se.currentTarget&&V()&&Se.key===" "&&!Se.defaultPrevented&&m(Se)});let se=l;se==="button"&&(K.href||K.to)&&(se=y);const ze={};se==="button"?(ze.type=J===void 0?"button":J,ze.disabled=c):(!K.href&&!K.to&&(ze.role="button"),c&&(ze["aria-disabled"]=c));const Ke=xt(n,W,Z),it=x({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:q}),Xe=rR(it);return d.jsxs(oR,x({as:se,className:ce(Xe.root,a),ownerState:it,onBlur:D,onClick:m,onContextMenu:be,onFocus:N,onKeyDown:oe,onKeyUp:Y,onMouseDown:je,onMouseLeave:Oe,onMouseUp:me,onDragLeave:we,onTouchEnd:mt,onTouchMove:et,onTouchStart:Fe,ref:Ke,tabIndex:c?-1:U,type:J},ze,K,{children:[s,ye?d.jsx($C,x({ref:I,center:i},X)):null]}))}),Xo=iR;function sR(e){return He("MuiAlert",e)}const aR=Ce("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),og=aR;function lR(e){return He("MuiIconButton",e)}const cR=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),uR=["edge","children","className","color","disabled","disableFocusRipple","size"],fR=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${$(r)}`,o&&`edge${$(o)}`,`size${$(i)}`]};return Te(s,lR,t)},dR=re(Xo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${$(n.color)}`],n.edge&&t[`edge${$(n.edge)}`],t[`size${$(n.size)}`]]}})(({theme:e,ownerState:t})=>x({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return x({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&x({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":x({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${cR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),pR=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=le(r,uR),p=x({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:u}),y=fR(p);return d.jsx(dR,x({className:ce(y.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:i}))}),Jw=pR,hR=In(d.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),vR=In(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),AR=In(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),mR=In(d.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),PR=In(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),yR=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],gR=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${$(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Te(i,sR,o)},bR=re(ki,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Ou:Iu,r=e.palette.mode==="light"?Iu:Ou,o=t.color||t.severity;return x({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${og.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${og.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&x({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),wR=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),xR=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ig=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),sg={success:d.jsx(hR,{fontSize:"inherit"}),warning:d.jsx(vR,{fontSize:"inherit"}),error:d.jsx(AR,{fontSize:"inherit"}),info:d.jsx(mR,{fontSize:"inherit"})},SR=g.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Ee({props:t,name:"MuiAlert"}),{action:u,children:f,className:p,closeText:y="Close",color:v,components:m={},componentsProps:b={},icon:A,iconMapping:h=sg,onClose:P,role:w="alert",severity:S="success",slotProps:C={},slots:H={},variant:R="standard"}=c,L=le(c,yR),k=x({},c,{color:v,severity:S,variant:R}),M=gR(k),U=(r=(o=H.closeButton)!=null?o:m.CloseButton)!=null?r:Jw,X=(i=(s=H.closeIcon)!=null?s:m.CloseIcon)!=null?i:PR,F=(a=C.closeButton)!=null?a:b.closeButton,J=(l=C.closeIcon)!=null?l:b.closeIcon;return d.jsxs(bR,x({role:w,elevation:0,ownerState:k,className:ce(M.root,p),ref:n},L,{children:[A!==!1?d.jsx(wR,{ownerState:k,className:M.icon,children:A||h[S]||sg[S]}):null,d.jsx(xR,{ownerState:k,className:M.message,children:f}),u!=null?d.jsx(ig,{ownerState:k,className:M.action,children:u}):null,u==null&&P?d.jsx(ig,{ownerState:k,className:M.action,children:d.jsx(U,x({size:"small","aria-label":y,title:y,color:"inherit",onClick:P},F,{children:d.jsx(X,x({fontSize:"small"},J))}))}):null]}))}),HR=SR;function CR(e){return He("MuiTypography",e)}Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const RR=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],DR=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${$(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Te(a,CR,s)},TR=re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${$(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>x({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ag={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ER={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kR=e=>ER[e]||e,jR=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiTypography"}),o=kR(r.color),i=_f(x({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=ag}=i,v=le(i,RR),m=x({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:y}),b=l||(f?"p":y[p]||ag[p])||"span",A=DR(m);return d.jsx(TR,x({as:b,ref:n,ownerState:m,className:ce(A.root,a)},v))}),Tr=jR;function zR(e){return He("MuiAppBar",e)}Ce("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const OR=["className","color","enableColorOnDark","position"],IR=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${$(t)}`,`position${$(n)}`]};return Te(o,zR,r)},Fc=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,LR=re(ki,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${$(n.position)}`],t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return x({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&x({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&x({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&x({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Fc(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Fc(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Fc(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Fc(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),BR=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=le(r,OR),c=x({},r,{color:i,position:a,enableColorOnDark:s}),u=IR(c);return d.jsx(LR,x({square:!0,component:"header",ownerState:c,elevation:4,className:ce(u.root,o,a==="fixed"&&"mui-fixed"),ref:n},l))}),MR=BR,NR=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function XR(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function UR(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function VR(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||UR(e))}function FR(e){const t=[],n=[];return Array.from(e.querySelectorAll(NR)).forEach((r,o)=>{const i=XR(r);i===-1||!VR(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function qR(){return!0}function JR(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=FR,isEnabled:s=qR,open:a}=e,l=g.useRef(!1),c=g.useRef(null),u=g.useRef(null),f=g.useRef(null),p=g.useRef(null),y=g.useRef(!1),v=g.useRef(null),m=xt(t.ref,v),b=g.useRef(null);g.useEffect(()=>{!a||!v.current||(y.current=!n)},[n,a]),g.useEffect(()=>{if(!a||!v.current)return;const P=yn(v.current);return v.current.contains(P.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),g.useEffect(()=>{if(!a||!v.current)return;const P=yn(v.current),w=H=>{b.current=H,!(r||!s()||H.key!=="Tab")&&P.activeElement===v.current&&H.shiftKey&&(l.current=!0,u.current&&u.current.focus())},S=()=>{const H=v.current;if(H===null)return;if(!P.hasFocus()||!s()||l.current){l.current=!1;return}if(H.contains(P.activeElement)||r&&P.activeElement!==c.current&&P.activeElement!==u.current)return;if(P.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!y.current)return;let R=[];if((P.activeElement===c.current||P.activeElement===u.current)&&(R=i(v.current)),R.length>0){var L,k;const M=!!((L=b.current)!=null&&L.shiftKey&&((k=b.current)==null?void 0:k.key)==="Tab"),U=R[0],X=R[R.length-1];typeof U!="string"&&typeof X!="string"&&(M?X.focus():U.focus())}else H.focus()};P.addEventListener("focusin",S),P.addEventListener("keydown",w,!0);const C=setInterval(()=>{P.activeElement&&P.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(C),P.removeEventListener("focusin",S),P.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const A=P=>{f.current===null&&(f.current=P.relatedTarget),y.current=!0,p.current=P.target;const w=t.props.onFocus;w&&w(P)},h=P=>{f.current===null&&(f.current=P.relatedTarget),y.current=!0};return d.jsxs(g.Fragment,{children:[d.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:c,"data-testid":"sentinelStart"}),g.cloneElement(t,{ref:m,onFocus:A}),d.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:u,"data-testid":"sentinelEnd"})]})}function WR(e){return typeof e=="function"?e():e}const QR=g.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=g.useState(null),l=xt(g.isValidElement(r)?r.ref:null,n);if(Yn(()=>{i||a(WR(o)||document.body)},[o,i]),Yn(()=>{if(s&&!i)return ju(n,s),()=>{ju(n,null)}},[n,s,i]),i){if(g.isValidElement(r)){const c={ref:l};return g.cloneElement(r,c)}return d.jsx(g.Fragment,{children:r})}return d.jsx(g.Fragment,{children:s&&Rd.createPortal(r,s)})});function KR(e){const t=yn(e);return t.body===e?Lr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function sl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lg(e){return parseInt(Lr(e).getComputedStyle(e).paddingRight,10)||0}function GR(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function cg(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!GR(s);a&&l&&sl(s,o)})}function Np(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function ZR(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(KR(r)){const s=T0(yn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${lg(r)+s}px`;const a=yn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${lg(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=yn(r).body;else{const s=r.parentElement,a=Lr(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function YR(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class _R{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&sl(t.modalRef,!1);const o=YR(n);cg(n,t.mount,t.modalRef,o,!0);const i=Np(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Np(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=ZR(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Np(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&sl(t.modalRef,n),cg(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&sl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function $R(e){return typeof e=="function"?e():e}function eD(e){return e?e.props.hasOwnProperty("in"):!1}const tD=new _R;function nD(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=tD,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:f}=e,p=g.useRef({}),y=g.useRef(null),v=g.useRef(null),m=xt(v,f),[b,A]=g.useState(!u),h=eD(l);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const w=()=>yn(y.current),S=()=>(p.current.modalRef=v.current,p.current.mount=y.current,p.current),C=()=>{o.mount(S(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},H=ei(()=>{const K=$R(t)||w().body;o.add(S(),K),v.current&&C()}),R=g.useCallback(()=>o.isTopModal(S()),[o]),L=ei(K=>{y.current=K,K&&(u&&R()?C():v.current&&sl(v.current,P))}),k=g.useCallback(()=>{o.remove(S(),P)},[P,o]);g.useEffect(()=>()=>{k()},[k]),g.useEffect(()=>{u?H():(!h||!i)&&k()},[u,k,h,i,H]);const M=K=>Z=>{var z;(z=K.onKeyDown)==null||z.call(K,Z),!(Z.key!=="Escape"||Z.which===229||!R())&&(n||(Z.stopPropagation(),c&&c(Z,"escapeKeyDown")))},U=K=>Z=>{var z;(z=K.onClick)==null||z.call(K,Z),Z.target===Z.currentTarget&&c&&c(Z,"backdropClick")};return{getRootProps:(K={})=>{const Z=qw(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const z=x({},Z,K);return x({role:"presentation"},z,{onKeyDown:M(z),ref:m})},getBackdropProps:(K={})=>{const Z=K;return x({"aria-hidden":!0},Z,{onClick:U(Z),open:u})},getTransitionProps:()=>{const K=()=>{A(!1),s&&s()},Z=()=>{A(!0),a&&a(),i&&k()};return{onEnter:ku(K,l==null?void 0:l.props.onEnter),onExited:ku(Z,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:L,isTopModal:R,exited:b,hasTransition:h}}const rD=["onChange","maxRows","minRows","style","value"];function qc(e){return parseInt(e,10)||0}const oD={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ug(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const iD=g.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=le(t,rD),{current:c}=g.useRef(a!=null),u=g.useRef(null),f=xt(n,u),p=g.useRef(null),y=g.useRef(0),[v,m]=g.useState({outerHeightStyle:0}),b=g.useCallback(()=>{const w=u.current,C=Lr(w).getComputedStyle(w);if(C.width==="0px")return{outerHeightStyle:0};const H=p.current;H.style.width=C.width,H.value=w.value||t.placeholder||"x",H.value.slice(-1)===` +`&&(H.value+=" ");const R=C.boxSizing,L=qc(C.paddingBottom)+qc(C.paddingTop),k=qc(C.borderBottomWidth)+qc(C.borderTopWidth),M=H.scrollHeight;H.value="x";const U=H.scrollHeight;let X=M;i&&(X=Math.max(Number(i)*U,X)),o&&(X=Math.min(Number(o)*U,X)),X=Math.max(X,U);const F=X+(R==="border-box"?L+k:0),J=Math.abs(X-M)<=1;return{outerHeightStyle:F,overflow:J}},[o,i,t.placeholder]),A=(w,S)=>{const{outerHeightStyle:C,overflow:H}=S;return y.current<20&&(C>0&&Math.abs((w.outerHeightStyle||0)-C)>1||w.overflow!==H)?(y.current+=1,{overflow:H,outerHeightStyle:C}):w},h=g.useCallback(()=>{const w=b();ug(w)||m(S=>A(S,w))},[b]);Yn(()=>{const w=()=>{const M=b();ug(M)||Rd.flushSync(()=>{m(U=>A(U,M))})},S=()=>{y.current=0,w()};let C;const H=Xf(S),R=u.current,L=Lr(R);L.addEventListener("resize",H);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(S),k.observe(R)),()=>{H.clear(),cancelAnimationFrame(C),L.removeEventListener("resize",H),k&&k.disconnect()}},[b]),Yn(()=>{h()}),g.useEffect(()=>{y.current=0},[a]);const P=w=>{y.current=0,c||h(),r&&r(w)};return d.jsxs(g.Fragment,{children:[d.jsx("textarea",x({value:a,onChange:P,ref:f,rows:i,style:x({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},s)},l)),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:x({},oD.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),sD=In(d.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function aD(e){return He("MuiChip",e)}const lD=Ce("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Je=lD,cD=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],uD=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${$(r)}`,`color${$(o)}`,a&&"clickable",a&&`clickableColor${$(o)}`,s&&"deletable",s&&`deletableColor${$(o)}`,`${l}${$(o)}`],label:["label",`label${$(r)}`],avatar:["avatar",`avatar${$(r)}`,`avatarColor${$(o)}`],icon:["icon",`icon${$(r)}`,`iconColor${$(i)}`],deleteIcon:["deleteIcon",`deleteIcon${$(r)}`,`deleteIconColor${$(o)}`,`deleteIcon${$(l)}Color${$(o)}`]};return Te(c,aD,t)},fD=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${Je.avatar}`]:t.avatar},{[`& .${Je.avatar}`]:t[`avatar${$(a)}`]},{[`& .${Je.avatar}`]:t[`avatarColor${$(r)}`]},{[`& .${Je.icon}`]:t.icon},{[`& .${Je.icon}`]:t[`icon${$(a)}`]},{[`& .${Je.icon}`]:t[`iconColor${$(o)}`]},{[`& .${Je.deleteIcon}`]:t.deleteIcon},{[`& .${Je.deleteIcon}`]:t[`deleteIcon${$(a)}`]},{[`& .${Je.deleteIcon}`]:t[`deleteIconColor${$(r)}`]},{[`& .${Je.deleteIcon}`]:t[`deleteIcon${$(l)}Color${$(r)}`]},t.root,t[`size${$(a)}`],t[`color${$(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${$(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${$(r)}`],t[l],t[`${l}${$(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return x({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Je.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Je.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Je.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Je.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Je.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Je.icon}`]:x({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&x({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Je.deleteIcon}`]:x({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ue(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ue(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ue(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Je.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ue(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Je.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>x({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ue(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Je.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ue(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Je.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>x({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Je.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Je.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Je.avatar}`]:{marginLeft:4},[`& .${Je.avatarSmall}`]:{marginLeft:2},[`& .${Je.icon}`]:{marginLeft:4},[`& .${Je.iconSmall}`]:{marginLeft:2},[`& .${Je.deleteIcon}`]:{marginRight:5},[`& .${Je.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ue(e.palette[t.color].main,.7)}`,[`&.${Je.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Je.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ue(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Je.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ue(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),dD=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${$(r)}`]]}})(({ownerState:e})=>x({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function fg(e){return e.key==="Backspace"||e.key==="Delete"}const pD=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:y,onDelete:v,onKeyDown:m,onKeyUp:b,size:A="medium",variant:h="filled",tabIndex:P,skipFocusWhenDisabled:w=!1}=r,S=le(r,cD),C=g.useRef(null),H=xt(C,n),R=I=>{I.stopPropagation(),v&&v(I)},L=I=>{I.currentTarget===I.target&&fg(I)&&I.preventDefault(),m&&m(I)},k=I=>{I.currentTarget===I.target&&(v&&fg(I)?v(I):I.key==="Escape"&&C.current&&C.current.blur()),b&&b(I)},M=s!==!1&&y?!0:s,U=M||v?Xo:l||"div",X=x({},r,{component:U,disabled:u,size:A,color:a,iconColor:g.isValidElement(f)&&f.props.color||a,onDelete:!!v,clickable:M,variant:h}),F=uD(X),J=U===Xo?x({component:l||"div",focusVisibleClassName:F.focusVisible},v&&{disableRipple:!0}):{};let K=null;v&&(K=c&&g.isValidElement(c)?g.cloneElement(c,{className:ce(c.props.className,F.deleteIcon),onClick:R}):d.jsx(sD,{className:ce(F.deleteIcon),onClick:R}));let Z=null;o&&g.isValidElement(o)&&(Z=g.cloneElement(o,{className:ce(F.avatar,o.props.className)}));let z=null;return f&&g.isValidElement(f)&&(z=g.cloneElement(f,{className:ce(F.icon,f.props.className)})),d.jsxs(fD,x({as:U,className:ce(F.root,i),disabled:M&&u?!0:void 0,onClick:y,onKeyDown:L,onKeyUp:k,ref:H,tabIndex:w&&u?-1:P,ownerState:X},J,S,{children:[Z||z,d.jsx(dD,{className:ce(F.label),ownerState:X,children:p}),K]}))}),Xp=pD;function Jo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const hD=g.createContext(void 0),hm=hD;function ro(){return g.useContext(hm)}function Ww(e){return d.jsx(f4,x({},e,{defaultTheme:td,themeId:Pi}))}function dg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function lf(e,t=!1){return e&&(dg(e.value)&&e.value!==""||t&&dg(e.defaultValue)&&e.defaultValue!=="")}function vD(e){return e.startAdornment}function AD(e){return He("MuiInputBase",e)}const mD=Ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ks=mD,PD=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Td=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${$(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ed=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},yD=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:y,type:v}=e,m={root:["root",`color${$(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${$(p)}`,u&&"multiline",y&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Te(m,AD,t)},kd=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Td})(({theme:e,ownerState:t})=>x({},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",[`&.${Ks.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&x({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),jd=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ed})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=x({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return x({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ks.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ks.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),gD=d.jsx(Ww,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),bD=g.forwardRef(function(t,n){var r;const o=Ee({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:y,endAdornment:v,fullWidth:m=!1,id:b,inputComponent:A="input",inputProps:h={},inputRef:P,maxRows:w,minRows:S,multiline:C=!1,name:H,onBlur:R,onChange:L,onClick:k,onFocus:M,onKeyDown:U,onKeyUp:X,placeholder:F,readOnly:J,renderSuffix:K,rows:Z,slotProps:z={},slots:I={},startAdornment:B,type:G="text",value:T}=o,W=le(o,PD),q=h.value!=null?h.value:T,{current:ae}=g.useRef(q!=null),_=g.useRef(),Pe=g.useCallback(Xe=>{},[]),ye=xt(_,P,h.ref,Pe),[ie,je]=g.useState(!1),be=ro(),we=Jo({props:o,muiFormControl:be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=be?be.focused:ie,g.useEffect(()=>{!be&&p&&ie&&(je(!1),R&&R())},[be,p,ie,R]);const me=be&&be.onFilled,Oe=be&&be.onEmpty,Fe=g.useCallback(Xe=>{lf(Xe)?me&&me():Oe&&Oe()},[me,Oe]);Yn(()=>{ae&&Fe({value:q})},[q,Fe,ae]);const mt=Xe=>{if(we.disabled){Xe.stopPropagation();return}M&&M(Xe),h.onFocus&&h.onFocus(Xe),be&&be.onFocus?be.onFocus(Xe):je(!0)},et=Xe=>{R&&R(Xe),h.onBlur&&h.onBlur(Xe),be&&be.onBlur?be.onBlur(Xe):je(!1)},D=(Xe,...Se)=>{if(!ae){const nn=Xe.target||_.current;if(nn==null)throw new Error(Bo(1));Fe({value:nn.value})}h.onChange&&h.onChange(Xe,...Se),L&&L(Xe,...Se)};g.useEffect(()=>{Fe(_.current)},[]);const N=Xe=>{_.current&&Xe.currentTarget===Xe.target&&_.current.focus(),k&&k(Xe)};let V=A,te=h;C&&V==="input"&&(Z?te=x({type:void 0,minRows:Z,maxRows:Z},te):te=x({type:void 0,maxRows:w,minRows:S},te),V=iD);const oe=Xe=>{Fe(Xe.animationName==="mui-auto-fill-cancel"?_.current:{value:"x"})};g.useEffect(()=>{be&&be.setAdornedStart(!!B)},[be,B]);const Y=x({},o,{color:we.color||"primary",disabled:we.disabled,endAdornment:v,error:we.error,focused:we.focused,formControl:be,fullWidth:m,hiddenLabel:we.hiddenLabel,multiline:C,size:we.size,startAdornment:B,type:G}),se=yD(Y),ze=I.root||c.Root||kd,Ke=z.root||u.root||{},it=I.input||c.Input||jd;return te=x({},te,(r=z.input)!=null?r:u.input),d.jsxs(g.Fragment,{children:[!y&&gD,d.jsxs(ze,x({},Ke,!Ws(ze)&&{ownerState:x({},Y,Ke.ownerState)},{ref:n,onClick:N},W,{className:ce(se.root,Ke.className,l,J&&"MuiInputBase-readOnly"),children:[B,d.jsx(hm.Provider,{value:null,children:d.jsx(it,x({ownerState:Y,"aria-invalid":we.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:f,disabled:we.disabled,id:b,onAnimationStart:oe,name:H,placeholder:F,readOnly:J,required:we.required,rows:Z,value:q,onKeyDown:U,onKeyUp:X,type:G},te,!Ws(it)&&{as:V,ownerState:x({},Y,te.ownerState)},{ref:ye,className:ce(se.input,te.className,J&&"MuiInputBase-readOnly"),onBlur:et,onChange:D,onFocus:mt}))}),v,K?K(x({},we,{startAdornment:B})):null]}))]})}),vm=bD;function wD(e){return He("MuiInput",e)}const xD=x({},Ks,Ce("MuiInput",["root","underline","input"])),Ca=xD;function SD(e){return He("MuiOutlinedInput",e)}const HD=x({},Ks,Ce("MuiOutlinedInput",["root","notchedOutline","input"])),so=HD;function CD(e){return He("MuiFilledInput",e)}const RD=x({},Ks,Ce("MuiFilledInput",["root","underline","input"])),Ko=RD,DD=In(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),TD=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ED={entering:{opacity:1},entered:{opacity:1}},kD=g.forwardRef(function(t,n){const r=Uo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:y,onExited:v,onExiting:m,style:b,timeout:A=o,TransitionComponent:h=um}=t,P=le(t,TD),w=g.useRef(null),S=xt(w,a.ref,n),C=F=>J=>{if(F){const K=w.current;J===void 0?F(K):F(K,J)}},H=C(p),R=C((F,J)=>{pm(F);const K=Js({style:b,timeout:A,easing:l},{mode:"enter"});F.style.webkitTransition=r.transitions.create("opacity",K),F.style.transition=r.transitions.create("opacity",K),u&&u(F,J)}),L=C(f),k=C(m),M=C(F=>{const J=Js({style:b,timeout:A,easing:l},{mode:"exit"});F.style.webkitTransition=r.transitions.create("opacity",J),F.style.transition=r.transitions.create("opacity",J),y&&y(F)}),U=C(v),X=F=>{i&&i(w.current,F)};return d.jsx(h,x({appear:s,in:c,nodeRef:w,onEnter:R,onEntered:L,onEntering:H,onExit:M,onExited:U,onExiting:k,addEndListener:X,timeout:A},P,{children:(F,J)=>g.cloneElement(a,x({style:x({opacity:0,visibility:F==="exited"&&!c?"hidden":void 0},ED[F],b,a.props.style),ref:S},J))}))}),Qw=kD;function jD(e){return He("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const zD=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],OD=e=>{const{classes:t,invisible:n}=e;return Te({root:["root",n&&"invisible"]},jD,t)},ID=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>x({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),LD=g.forwardRef(function(t,n){var r,o,i;const s=Ee({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:y,slotProps:v={},slots:m={},TransitionComponent:b=Qw,transitionDuration:A}=s,h=le(s,zD),P=x({},s,{component:c,invisible:p}),w=OD(P),S=(r=v.root)!=null?r:f.root;return d.jsx(b,x({in:y,timeout:A},h,{children:d.jsx(ID,x({"aria-hidden":!0},S,{as:(o=(i=m.root)!=null?i:u.Root)!=null?o:c,className:ce(w.root,l,S==null?void 0:S.className),ownerState:x({},P,S==null?void 0:S.ownerState),classes:w,ref:n,children:a}))}))}),Kw=LD,BD=Ce("MuiBox",["root"]),MD=BD,ND=ed(),XD=v4({themeId:Pi,defaultTheme:ND,defaultClassName:MD.root,generateClassName:uA.generate}),Et=XD;function UD(e){return He("MuiButton",e)}const VD=Ce("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Jc=VD,FD=g.createContext({}),qD=FD,JD=g.createContext(void 0),WD=JD,QD=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],KD=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${$(t)}`,`size${$(o)}`,`${i}Size${$(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${$(o)}`],endIcon:["endIcon",`iconSize${$(o)}`]},l=Te(a,UD,s);return x({},s,l)},Gw=e=>x({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),GD=re(Xo,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color)}`],t[`size${$(n.size)}`],t[`${n.variant}Size${$(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return x({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":x({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Jc.focusVisible}`]:x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Jc.disabled}`]:x({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ue(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Jc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Jc.disabled}`]:{boxShadow:"none"}}),ZD=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${$(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Gw(e))),YD=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${$(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Gw(e))),_D=g.forwardRef(function(t,n){const r=g.useContext(qD),o=g.useContext(WD),i=cA(r,t),s=Ee({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:m,fullWidth:b=!1,size:A="medium",startIcon:h,type:P,variant:w="text"}=s,S=le(s,QD),C=x({},s,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:y,fullWidth:b,size:A,type:P,variant:w}),H=KD(C),R=h&&d.jsx(ZD,{className:H.startIcon,ownerState:C,children:h}),L=v&&d.jsx(YD,{className:H.endIcon,ownerState:C,children:v}),k=o||"";return d.jsxs(GD,x({ownerState:C,className:ce(r.className,H.root,u,k),component:c,disabled:f,focusRipple:!y,focusVisibleClassName:ce(H.focusVisible,m),ref:n,type:P},S,{classes:H,children:[R,a,L]}))}),dt=_D;function $D(e){return He("MuiCard",e)}Ce("MuiCard",["root"]);const eT=["className","raised"],tT=e=>{const{classes:t}=e;return Te({root:["root"]},$D,t)},nT=re(ki,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),rT=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=le(r,eT),a=x({},r,{raised:i}),l=tT(a);return d.jsx(nT,x({className:ce(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),Zw=rT;function oT(e){return He("MuiCardContent",e)}Ce("MuiCardContent",["root"]);const iT=["className","component"],sT=e=>{const{classes:t}=e;return Te({root:["root"]},oT,t)},aT=re("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),lT=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=le(r,iT),a=x({},r,{component:i}),l=sT(a);return d.jsx(aT,x({as:i,className:ce(l.root,o),ownerState:a,ref:n},s))}),Yw=lT;function cT(e){return He("MuiCardMedia",e)}Ce("MuiCardMedia",["root","media","img"]);const uT=["children","className","component","image","src","style"],fT=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return Te({root:["root",n&&"media",r&&"img"]},cT,t)},dT=re("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})(({ownerState:e})=>x({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),pT=["video","audio","picture","iframe","img"],hT=["picture","img"],vT=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:s="div",image:a,src:l,style:c}=r,u=le(r,uT),f=pT.indexOf(s)!==-1,p=!f&&a?x({backgroundImage:`url("${a}")`},c):c,y=x({},r,{component:s,isMediaComponent:f,isImageComponent:hT.indexOf(s)!==-1}),v=fT(y);return d.jsx(dT,x({className:ce(v.root,i),as:s,role:!f&&a?"img":void 0,ref:n,style:p,ownerState:y,src:f?a||l:void 0},u,{children:o}))}),AT=vT;function mT(e){return He("PrivateSwitchBase",e)}Ce("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const PT=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],yT=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${$(o)}`],input:["input"]};return Te(i,mT,t)},gT=re(Xo)(({ownerState:e})=>x({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),bT=re("input",{shouldForwardProp:Ft})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wT=g.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:y,inputRef:v,name:m,onBlur:b,onChange:A,onFocus:h,readOnly:P,required:w=!1,tabIndex:S,type:C,value:H}=t,R=le(t,PT),[L,k]=yl({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),M=ro(),U=I=>{h&&h(I),M&&M.onFocus&&M.onFocus(I)},X=I=>{b&&b(I),M&&M.onBlur&&M.onBlur(I)},F=I=>{if(I.nativeEvent.defaultPrevented)return;const B=I.target.checked;k(B),A&&A(I,B)};let J=l;M&&typeof J>"u"&&(J=M.disabled);const K=C==="checkbox"||C==="radio",Z=x({},t,{checked:L,disabled:J,disableFocusRipple:c,edge:u}),z=yT(Z);return d.jsxs(gT,x({component:"span",className:ce(z.root,s),centerRipple:!0,focusRipple:!c,disabled:J,tabIndex:null,role:void 0,onFocus:U,onBlur:X,ownerState:Z,ref:n},R,{children:[d.jsx(bT,x({autoFocus:r,checked:o,defaultChecked:a,className:z.input,disabled:J,id:K?p:void 0,name:m,onChange:F,readOnly:P,ref:v,required:w,ownerState:Z,tabIndex:S,type:C},C==="checkbox"&&H===void 0?{}:{value:H},y)),L?i:f]}))}),Am=wT,xT=In(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ST=In(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),HT=In(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function CT(e){return He("MuiCheckbox",e)}const RT=Ce("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Up=RT,DT=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],TT=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${$(r)}`,`size${$(o)}`]},s=Te(i,CT,t);return x({},t,s)},ET=re(Am,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${$(n.size)}`],n.color!=="default"&&t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Up.checked}, &.${Up.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Up.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),kT=d.jsx(ST,{}),jT=d.jsx(xT,{}),zT=d.jsx(HT,{}),OT=g.forwardRef(function(t,n){var r,o;const i=Ee({props:t,name:"MuiCheckbox"}),{checkedIcon:s=kT,color:a="primary",icon:l=jT,indeterminate:c=!1,indeterminateIcon:u=zT,inputProps:f,size:p="medium",className:y}=i,v=le(i,DT),m=c?u:l,b=c?u:s,A=x({},i,{color:a,indeterminate:c,size:p}),h=TT(A);return d.jsx(ET,x({type:"checkbox",inputProps:x({"data-indeterminate":c},f),icon:g.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:p}),checkedIcon:g.cloneElement(b,{fontSize:(o=b.props.fontSize)!=null?o:p}),ownerState:A,ref:n,className:ce(h.root,y)},v,{classes:h}))}),IT=OT,LT=(e,t)=>x({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),BT=e=>x({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}}),MT=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=x({html:LT(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:x({margin:0},BT(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function NT(e){const t=Ee({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(g.Fragment,{children:[d.jsx(Ww,{styles:o=>MT(o,r)}),n]})}function XT(e){return He("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const UT=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],VT=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},XT,r)},FT=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>x({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),qT=re(Kw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JT=g.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Ee({name:"MuiModal",props:t}),{BackdropComponent:u=qT,BackdropProps:f,className:p,closeAfterTransition:y=!1,children:v,container:m,component:b,components:A={},componentsProps:h={},disableAutoFocus:P=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:C=!1,disableRestoreFocus:H=!1,disableScrollLock:R=!1,hideBackdrop:L=!1,keepMounted:k=!1,onBackdropClick:M,open:U,slotProps:X,slots:F}=c,J=le(c,UT),K=x({},c,{closeAfterTransition:y,disableAutoFocus:P,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:C,disableRestoreFocus:H,disableScrollLock:R,hideBackdrop:L,keepMounted:k}),{getRootProps:Z,getBackdropProps:z,getTransitionProps:I,portalRef:B,isTopModal:G,exited:T,hasTransition:W}=nD(x({},K,{rootRef:n})),q=x({},K,{exited:T}),ae=VT(q),_={};if(v.props.tabIndex===void 0&&(_.tabIndex="-1"),W){const{onEnter:me,onExited:Oe}=I();_.onEnter=me,_.onExited=Oe}const Pe=(r=(o=F==null?void 0:F.root)!=null?o:A.Root)!=null?r:FT,ye=(i=(s=F==null?void 0:F.backdrop)!=null?s:A.Backdrop)!=null?i:u,ie=(a=X==null?void 0:X.root)!=null?a:h.root,je=(l=X==null?void 0:X.backdrop)!=null?l:h.backdrop,be=Qs({elementType:Pe,externalSlotProps:ie,externalForwardedProps:J,getSlotProps:Z,additionalProps:{ref:n,as:b},ownerState:q,className:ce(p,ie==null?void 0:ie.className,ae==null?void 0:ae.root,!q.open&&q.exited&&(ae==null?void 0:ae.hidden))}),we=Qs({elementType:ye,externalSlotProps:je,additionalProps:f,getSlotProps:me=>z(x({},me,{onClick:Oe=>{M&&M(Oe),me!=null&&me.onClick&&me.onClick(Oe)}})),className:ce(je==null?void 0:je.className,f==null?void 0:f.className,ae==null?void 0:ae.backdrop),ownerState:q});return!k&&!U&&(!W||T)?null:d.jsx(QR,{ref:B,container:m,disablePortal:C,children:d.jsxs(Pe,x({},be,{children:[!L&&u?d.jsx(ye,x({},we)):null,d.jsx(JR,{disableEnforceFocus:w,disableAutoFocus:P,disableRestoreFocus:H,isEnabled:G,open:U,children:g.cloneElement(v,_)})]}))})}),mm=JT;function WT(e){return He("MuiDialog",e)}const QT=Ce("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Vp=QT,KT=g.createContext({}),_w=KT,GT=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ZT=re(Kw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),YT=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${$(n)}`],paper:["paper",`paperScroll${$(n)}`,`paperWidth${$(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Te(s,WT,t)},_T=re(mm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),$T=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${$(n.scroll)}`]]}})(({ownerState:e})=>x({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),eE=re(ki,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${$(n.scroll)}`],t[`paperWidth${$(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>x({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Vp.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Vp.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Vp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),tE=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiDialog"}),o=Uo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:y=!1,fullWidth:v=!1,maxWidth:m="sm",onBackdropClick:b,onClose:A,open:h,PaperComponent:P=ki,PaperProps:w={},scroll:S="paper",TransitionComponent:C=Qw,transitionDuration:H=i,TransitionProps:R}=r,L=le(r,GT),k=x({},r,{disableEscapeKeyDown:p,fullScreen:y,fullWidth:v,maxWidth:m,scroll:S}),M=YT(k),U=g.useRef(),X=Z=>{U.current=Z.target===Z.currentTarget},F=Z=>{U.current&&(U.current=null,b&&b(Z),A&&A(Z,"backdropClick"))},J=rc(a),K=g.useMemo(()=>({titleId:J}),[J]);return d.jsx(_T,x({className:ce(M.root,f),closeAfterTransition:!0,components:{Backdrop:ZT},componentsProps:{backdrop:x({transitionDuration:H,as:l},c)},disableEscapeKeyDown:p,onClose:A,open:h,ref:n,onClick:F,ownerState:k},L,{children:d.jsx(C,x({appear:!0,in:h,timeout:H,role:"presentation"},R,{children:d.jsx($T,{className:ce(M.container),onMouseDown:X,ownerState:k,children:d.jsx(eE,x({as:P,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":J},w,{className:ce(M.paper,w.className),ownerState:k,children:d.jsx(_w.Provider,{value:K,children:u})}))})}))}))}),Pu=tE;function nE(e){return He("MuiDialogContent",e)}Ce("MuiDialogContent",["root","dividers"]);function rE(e){return He("MuiDialogTitle",e)}const oE=Ce("MuiDialogTitle",["root"]),iE=oE,sE=["className","dividers"],aE=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},nE,t)},lE=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>x({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${iE.root} + &`]:{paddingTop:0}})),cE=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=le(r,sE),a=x({},r,{dividers:i}),l=aE(a);return d.jsx(lE,x({className:ce(l.root,o),ownerState:a,ref:n},s))}),Fp=cE,uE=["className","id"],fE=e=>{const{classes:t}=e;return Te({root:["root"]},rE,t)},dE=re(Tr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),pE=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=le(r,uE),a=r,l=fE(a),{titleId:c=i}=g.useContext(_w);return d.jsx(dE,x({component:"h2",className:ce(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c},s))}),qp=pE;function hE(e){return He("MuiDivider",e)}const vE=Ce("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),pg=vE,AE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],mE=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return Te({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},hE,r)},PE=re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>x({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ue(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>x({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>x({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>x({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>x({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),yE=re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>x({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),$w=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=a!=="hr"?"separator":void 0,textAlign:p="center",variant:y="fullWidth"}=r,v=le(r,AE),m=x({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:y}),b=mE(m);return d.jsx(PE,x({as:a,className:ce(b.root,s),role:f,ref:n,ownerState:m},v,{children:i?d.jsx(yE,{className:b.wrapper,ownerState:m,children:i}):null}))});$w.muiSkipListHighlight=!0;const cf=$w,gE=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bE(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Lr(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=i.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function wE(e){return typeof e=="function"?e():e}function Wc(e,t,n){const r=wE(n),o=bE(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const xE=g.forwardRef(function(t,n){const r=Uo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:u="down",easing:f=o,in:p,onEnter:y,onEntered:v,onEntering:m,onExit:b,onExited:A,onExiting:h,style:P,timeout:w=i,TransitionComponent:S=um}=t,C=le(t,gE),H=g.useRef(null),R=xt(l.ref,H,n),L=z=>I=>{z&&(I===void 0?z(H.current):z(H.current,I))},k=L((z,I)=>{Wc(u,z,c),pm(z),y&&y(z,I)}),M=L((z,I)=>{const B=Js({timeout:w,style:P,easing:f},{mode:"enter"});z.style.webkitTransition=r.transitions.create("-webkit-transform",x({},B)),z.style.transition=r.transitions.create("transform",x({},B)),z.style.webkitTransform="none",z.style.transform="none",m&&m(z,I)}),U=L(v),X=L(h),F=L(z=>{const I=Js({timeout:w,style:P,easing:f},{mode:"exit"});z.style.webkitTransition=r.transitions.create("-webkit-transform",I),z.style.transition=r.transitions.create("transform",I),Wc(u,z,c),b&&b(z)}),J=L(z=>{z.style.webkitTransition="",z.style.transition="",A&&A(z)}),K=z=>{s&&s(H.current,z)},Z=g.useCallback(()=>{H.current&&Wc(u,H.current,c)},[u,c]);return g.useEffect(()=>{if(p||u==="down"||u==="right")return;const z=Xf(()=>{H.current&&Wc(u,H.current,c)}),I=Lr(H.current);return I.addEventListener("resize",z),()=>{z.clear(),I.removeEventListener("resize",z)}},[u,p,c]),g.useEffect(()=>{p||Z()},[p,Z]),d.jsx(S,x({nodeRef:H,onEnter:k,onEntered:U,onEntering:M,onExit:F,onExited:J,onExiting:X,addEndListener:K,appear:a,in:p,timeout:w},C,{children:(z,I)=>g.cloneElement(l,x({ref:R,style:x({visibility:z==="exited"&&!p?"hidden":void 0},P,l.props.style)},I))}))}),SE=xE;function HE(e){return He("MuiDrawer",e)}Ce("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const CE=["BackdropProps"],RE=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],e1=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},DE=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${$(n)}`,r!=="temporary"&&`paperAnchorDocked${$(n)}`]};return Te(o,HE,t)},TE=re(mm,{name:"MuiDrawer",slot:"Root",overridesResolver:e1})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),hg=re("div",{shouldForwardProp:Ft,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:e1})({flex:"0 0 auto"}),EE=re(ki,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${$(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${$(n.anchor)}`]]}})(({theme:e,ownerState:t})=>x({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),t1={left:"right",right:"left",top:"down",bottom:"up"};function kE(e){return["left","right"].indexOf(e)!==-1}function jE(e,t){return e.direction==="rtl"&&kE(t)?t1[t]:t}const zE=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiDrawer"}),o=Uo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:l,className:c,elevation:u=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p}={},onClose:y,open:v=!1,PaperProps:m={},SlideProps:b,TransitionComponent:A=SE,transitionDuration:h=i,variant:P="temporary"}=r,w=le(r.ModalProps,CE),S=le(r,RE),C=g.useRef(!1);g.useEffect(()=>{C.current=!0},[]);const H=jE(o,s),L=x({},r,{anchor:s,elevation:u,open:v,variant:P},S),k=DE(L),M=d.jsx(EE,x({elevation:P==="temporary"?u:0,square:!0},m,{className:ce(k.paper,m.className),ownerState:L,children:l}));if(P==="permanent")return d.jsx(hg,x({className:ce(k.root,k.docked,c),ownerState:L,ref:n},S,{children:M}));const U=d.jsx(A,x({in:v,direction:t1[H],timeout:h,appear:C.current},b,{children:M}));return P==="persistent"?d.jsx(hg,x({className:ce(k.root,k.docked,c),ownerState:L,ref:n},S,{children:U})):d.jsx(TE,x({BackdropProps:x({},a,p,{transitionDuration:h}),className:ce(k.root,k.modal,c),open:v,ownerState:L,onClose:y,hideBackdrop:f,ref:n},S,w,{children:U}))}),OE=zE,IE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],LE=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},CD,t);return x({},t,o)},BE=re(kd,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Td(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return x({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ko.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ko.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ko.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ko.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ko.disabled}, .${Ko.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ko.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&x({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ME=re(jd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ed})(({theme:e,ownerState:t})=>x({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),n1=g.forwardRef(function(t,n){var r,o,i,s;const a=Ee({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:y,slots:v={},type:m="text"}=a,b=le(a,IE),A=x({},a,{fullWidth:u,inputComponent:f,multiline:p,type:m}),h=LE(a),P={root:{ownerState:A},input:{ownerState:A}},w=y??c?Pn(P,y??c):P,S=(r=(o=v.root)!=null?o:l.Root)!=null?r:BE,C=(i=(s=v.input)!=null?s:l.Input)!=null?i:ME;return d.jsx(vm,x({slots:{root:S,input:C},componentsProps:w,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:m},b,{classes:h}))});n1.muiName="Input";const r1=n1;function NE(e){return He("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const XE=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],UE=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${$(n)}`,r&&"fullWidth"]};return Te(o,NE,t)},VE=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,t[`margin${$(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>x({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),FE=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:y="none",required:v=!1,size:m="medium",variant:b="outlined"}=r,A=le(r,XE),h=x({},r,{color:s,component:a,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:y,required:v,size:m,variant:b}),P=UE(h),[w,S]=g.useState(()=>{let X=!1;return o&&g.Children.forEach(o,F=>{if(!Ka(F,["Input","Select"]))return;const J=Ka(F,["Select"])?F.props.input:F;J&&vD(J.props)&&(X=!0)}),X}),[C,H]=g.useState(()=>{let X=!1;return o&&g.Children.forEach(o,F=>{Ka(F,["Input","Select"])&&(lf(F.props,!0)||lf(F.props.inputProps,!0))&&(X=!0)}),X}),[R,L]=g.useState(!1);l&&R&&L(!1);const k=u!==void 0&&!l?u:R;let M;const U=g.useMemo(()=>({adornedStart:w,setAdornedStart:S,color:s,disabled:l,error:c,filled:C,focused:k,fullWidth:f,hiddenLabel:p,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{H(!1)},onFilled:()=>{H(!0)},onFocus:()=>{L(!0)},registerEffect:M,required:v,variant:b}),[w,s,l,c,C,k,f,p,M,v,m,b]);return d.jsx(hm.Provider,{value:U,children:d.jsx(VE,x({as:a,ownerState:h,className:ce(P.root,i),ref:n},A,{children:o}))})}),yr=FE,qE=U4({createStyledComponent:re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ee({props:e,name:"MuiStack"})}),uc=qE;function JE(e){return He("MuiFormControlLabel",e)}const WE=Ce("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Ja=WE,QE=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],KE=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${$(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Te(s,JE,t)},GE=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ja.label}`]:t.label},t.root,t[`labelPlacement${$(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>x({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ja.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ja.label}`]:{[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),ZE=re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ja.error}`]:{color:(e.vars||e).palette.error.main}})),YE=g.forwardRef(function(t,n){var r,o;const i=Ee({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:y,slotProps:v={}}=i,m=le(i,QE),b=ro(),A=(r=c??l.props.disabled)!=null?r:b==null?void 0:b.disabled,h=y??l.props.required,P={disabled:A,required:h};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof l.props[L]>"u"&&typeof i[L]<"u"&&(P[L]=i[L])});const w=Jo({props:i,muiFormControl:b,states:["error"]}),S=x({},i,{disabled:A,labelPlacement:p,required:h,error:w.error}),C=KE(S),H=(o=v.typography)!=null?o:a.typography;let R=f;return R!=null&&R.type!==Tr&&!u&&(R=d.jsx(Tr,x({component:"span"},H,{className:ce(C.label,H==null?void 0:H.className),children:R}))),d.jsxs(GE,x({className:ce(C.root,s),ownerState:S,ref:n},m,{children:[g.cloneElement(l,P),h?d.jsxs(uc,{display:"block",children:[R,d.jsxs(ZE,{ownerState:S,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):R]}))}),al=YE;function _E(e){return He("MuiFormGroup",e)}Ce("MuiFormGroup",["root","row","error"]);const $E=["className","row"],e7=e=>{const{classes:t,row:n,error:r}=e;return Te({root:["root",n&&"row",r&&"error"]},_E,t)},t7=re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>x({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),n7=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=le(r,$E),a=ro(),l=Jo({props:r,muiFormControl:a,states:["error"]}),c=x({},r,{row:i,error:l.error}),u=e7(c);return d.jsx(t7,x({className:ce(u.root,o),ownerState:c,ref:n},s))}),r7=n7;function o7(e){return He("MuiFormHelperText",e)}const i7=Ce("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),vg=i7;var Ag;const s7=["children","className","component","disabled","error","filled","focused","margin","required","variant"],a7=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${$(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return Te(c,o7,t)},l7=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${$(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vg.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),c7=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=le(r,s7),l=ro(),c=Jo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=x({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=a7(u);return d.jsx(l7,x({as:s,ownerState:u,className:ce(f.root,i),ref:n},a,{children:o===" "?Ag||(Ag=d.jsx("span",{className:"notranslate",children:"​"})):o}))}),u7=c7;function f7(e){return He("MuiFormLabel",e)}const d7=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ll=d7,p7=["children","className","color","component","disabled","error","filled","focused","required"],h7=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${$(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Te(l,f7,t)},v7=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ll.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ll.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ll.error}`]:{color:(e.vars||e).palette.error.main}})),A7=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ll.error}`]:{color:(e.vars||e).palette.error.main}})),m7=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=le(r,p7),l=ro(),c=Jo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=x({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=h7(u);return d.jsxs(v7,x({as:s,ownerState:u,className:ce(f.root,i),ref:n},a,{children:[o,c.required&&d.jsxs(A7,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),yu=m7,P7=g.createContext(),mg=P7;function y7(e){return He("MuiGrid",e)}const g7=[0,1,2,3,4,5,6,7,8,9,10],b7=["column-reverse","column","row-reverse","row"],w7=["nowrap","wrap-reverse","wrap"],Ra=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Bl=Ce("MuiGrid",["root","container","item","zeroMinWidth",...g7.map(e=>`spacing-xs-${e}`),...b7.map(e=>`direction-xs-${e}`),...w7.map(e=>`wrap-xs-${e}`),...Ra.map(e=>`grid-xs-${e}`),...Ra.map(e=>`grid-sm-${e}`),...Ra.map(e=>`grid-md-${e}`),...Ra.map(e=>`grid-lg-${e}`),...Ra.map(e=>`grid-xl-${e}`)]),x7=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Ps(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function S7({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=hi({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${Ps(u)})`;c={flexBasis:f,maxWidth:f}}}i=x({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function H7({theme:e,ownerState:t}){const n=hi({values:t.direction,breakpoints:e.breakpoints.values});return Hn({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Bl.item}`]={maxWidth:"none"}),o})}function o1({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function C7({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=hi({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=o1({breakpoints:e.breakpoints.values,values:i})),o=Hn({theme:e},i,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{marginTop:`-${Ps(u)}`,[`& > .${Bl.item}`]:{paddingTop:Ps(u)}}:(c=s)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Bl.item}`]:{paddingTop:0}}})}return o}function R7({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=hi({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=o1({breakpoints:e.breakpoints.values,values:i})),o=Hn({theme:e},i,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{width:`calc(100% + ${Ps(u)})`,marginLeft:`-${Ps(u)}`,[`& > .${Bl.item}`]:{paddingLeft:Ps(u)}}:(c=s)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Bl.item}`]:{paddingLeft:0}}})}return o}function D7(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const T7=re("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=D7(s,c,t));const f=[];return c.forEach(p=>{const y=n[p];y&&f.push(t[`grid-${p}-${String(y)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...f]}})(({ownerState:e})=>x({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),H7,C7,R7,S7);function E7(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const k7=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=E7(i,l));const u=[];l.forEach(p=>{const y=e[p];y&&u.push(`grid-${p}-${String(y)}`)});const f={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...u]};return Te(f,y7,t)},j7=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiGrid"}),{breakpoints:o}=Uo(),i=_f(r),{className:s,columns:a,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:y,spacing:v=0,wrap:m="wrap",zeroMinWidth:b=!1}=i,A=le(i,x7),h=y||v,P=l||v,w=g.useContext(mg),S=u?a||12:w,C={},H=x({},A);o.keys.forEach(k=>{A[k]!=null&&(C[k]=A[k],delete H[k])});const R=x({},i,{columns:S,container:u,direction:f,item:p,rowSpacing:h,columnSpacing:P,wrap:m,zeroMinWidth:b,spacing:v},C,{breakpoints:o.keys}),L=k7(R);return d.jsx(mg.Provider,{value:S,children:d.jsx(T7,x({ownerState:R,className:ce(L.root,s),as:c,ref:n},H))})}),Lo=j7,z7=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function dv(e){return`scale(${e}, ${e**2})`}const O7={entering:{opacity:1,transform:dv(1)},entered:{opacity:1,transform:"none"}},Jp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),i1=g.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:y,style:v,timeout:m="auto",TransitionComponent:b=um}=t,A=le(t,z7),h=R0(),P=g.useRef(),w=Uo(),S=g.useRef(null),C=xt(S,i.ref,n),H=J=>K=>{if(J){const Z=S.current;K===void 0?J(Z):J(Z,K)}},R=H(u),L=H((J,K)=>{pm(J);const{duration:Z,delay:z,easing:I}=Js({style:v,timeout:m,easing:s},{mode:"enter"});let B;m==="auto"?(B=w.transitions.getAutoHeightDuration(J.clientHeight),P.current=B):B=Z,J.style.transition=[w.transitions.create("opacity",{duration:B,delay:z}),w.transitions.create("transform",{duration:Jp?B:B*.666,delay:z,easing:I})].join(","),l&&l(J,K)}),k=H(c),M=H(y),U=H(J=>{const{duration:K,delay:Z,easing:z}=Js({style:v,timeout:m,easing:s},{mode:"exit"});let I;m==="auto"?(I=w.transitions.getAutoHeightDuration(J.clientHeight),P.current=I):I=K,J.style.transition=[w.transitions.create("opacity",{duration:I,delay:Z}),w.transitions.create("transform",{duration:Jp?I:I*.666,delay:Jp?Z:Z||I*.333,easing:z})].join(","),J.style.opacity=0,J.style.transform=dv(.75),f&&f(J)}),X=H(p),F=J=>{m==="auto"&&h.start(P.current||0,J),r&&r(S.current,J)};return d.jsx(b,x({appear:o,in:a,nodeRef:S,onEnter:L,onEntered:k,onEntering:R,onExit:U,onExited:X,onExiting:M,addEndListener:F,timeout:m==="auto"?null:m},A,{children:(J,K)=>g.cloneElement(i,x({style:x({opacity:0,transform:dv(.75),visibility:J==="exited"&&!a?"hidden":void 0},O7[J],v,i.props.style),ref:C},K))}))});i1.muiSupportAuto=!0;const I7=i1;function L7(e,t,n,r,o){const[i,s]=g.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Yn(()=>{let a=!0;if(!n)return;const l=n(e),c=()=>{a&&s(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[e,n]),i}const s1=g.useSyncExternalStore;function B7(e,t,n,r,o){const i=g.useCallback(()=>t,[t]),s=g.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[a,l]=g.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[i,n,e]);return s1(l,a,s)}function M7(e,t={}){const n=AA(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=I0({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(s1!==void 0?B7:L7)(l,o,i,s,a)}const N7=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],X7=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},wD,t);return x({},t,o)},U7=re(kd,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Td(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),x({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ca.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ca.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ca.disabled}, .${Ca.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ca.disabled}:before`]:{borderBottomStyle:"dotted"}})}),V7=re(jd,{name:"MuiInput",slot:"Input",overridesResolver:Ed})({}),a1=g.forwardRef(function(t,n){var r,o,i,s;const a=Ee({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:y=!1,slotProps:v,slots:m={},type:b="text"}=a,A=le(a,N7),h=X7(a),w={root:{ownerState:{disableUnderline:l}}},S=v??u?Pn(v??u,w):w,C=(r=(o=m.root)!=null?o:c.Root)!=null?r:U7,H=(i=(s=m.input)!=null?s:c.Input)!=null?i:V7;return d.jsx(vm,x({slots:{root:C,input:H},slotProps:S,fullWidth:f,inputComponent:p,multiline:y,ref:n,type:b},A,{classes:h}))});a1.muiName="Input";const l1=a1;function F7(e){return He("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const q7=["disableAnimation","margin","shrink","variant","className"],J7=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${$(r)}`,s],asterisk:[a&&"asterisk"]},c=Te(l,F7,t);return x({},t,c)},W7=re(yu,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ll.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>x({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&x({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&x({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&x({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Q7=g.forwardRef(function(t,n){const r=Ee({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=le(r,q7),l=ro();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=Jo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=x({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),p=J7(f);return d.jsx(W7,x({"data-shrink":c,ownerState:f,ref:n,className:ce(p.root,s)},a,{classes:p}))}),pv=Q7,K7=g.createContext({}),hr=K7;function G7(e){return He("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const Z7=["children","className","component","dense","disablePadding","subheader"],Y7=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Te({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},G7,t)},_7=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>x({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),$7=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=le(r,Z7),f=g.useMemo(()=>({dense:a}),[a]),p=x({},r,{component:s,dense:a,disablePadding:l}),y=Y7(p);return d.jsx(hr.Provider,{value:f,children:d.jsxs(_7,x({as:s,className:ce(y.root,i),ref:n,ownerState:p},u,{children:[c,o]}))})}),hv=$7;function ek(e){return He("MuiListItem",e)}const tk=Ce("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Qi=tk;function nk(e){return He("MuiListItemButton",e)}const rk=Ce("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ki=rk,ok=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ik=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},sk=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,c=Te({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},nk,n);return x({},n,c)},ak=re(Xo,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:ik})(({theme:e,ownerState:t})=>x({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ki.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ki.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ki.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ki.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ki.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),lk=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:f,selected:p=!1,className:y}=r,v=le(r,ok),m=g.useContext(hr),b=g.useMemo(()=>({dense:l||m.dense||!1,alignItems:o,disableGutters:c}),[o,m.dense,l,c]),A=g.useRef(null);Yn(()=>{i&&A.current&&A.current.focus()},[i]);const h=x({},r,{alignItems:o,dense:b.dense,disableGutters:c,divider:u,selected:p}),P=sk(h),w=xt(A,n);return d.jsx(hr.Provider,{value:b,children:d.jsx(ak,x({ref:w,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:ce(P.focusVisible,f),ownerState:h,className:ce(P.root,y)},v,{classes:P,children:a}))})}),c1=lk;function ck(e){return He("MuiListItemSecondaryAction",e)}Ce("MuiListItemSecondaryAction",["root","disableGutters"]);const uk=["className"],fk=e=>{const{disableGutters:t,classes:n}=e;return Te({root:["root",t&&"disableGutters"]},ck,n)},dk=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>x({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),u1=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=le(r,uk),s=g.useContext(hr),a=x({},r,{disableGutters:s.disableGutters}),l=fk(a);return d.jsx(dk,x({className:ce(l.root,o),ownerState:a,ref:n},i))});u1.muiName="ListItemSecondaryAction";const pk=u1,hk=["className"],vk=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Ak=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},mk=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:u}=e;return Te({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},ek,r)},Pk=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:Ak})(({theme:e,ownerState:t})=>x({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&x({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ki.root}`]:{paddingRight:48}},{[`&.${Qi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),yk=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),gk=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:y}={},dense:v=!1,disabled:m=!1,disableGutters:b=!1,disablePadding:A=!1,divider:h=!1,focusVisibleClassName:P,secondaryAction:w,selected:S=!1,slotProps:C={},slots:H={}}=r,R=le(r.ContainerProps,hk),L=le(r,vk),k=g.useContext(hr),M=g.useMemo(()=>({dense:v||k.dense||!1,alignItems:o,disableGutters:b}),[o,k.dense,v,b]),U=g.useRef(null);Yn(()=>{i&&U.current&&U.current.focus()},[i]);const X=g.Children.toArray(a),F=X.length&&Ka(X[X.length-1],["ListItemSecondaryAction"]),J=x({},r,{alignItems:o,autoFocus:i,button:s,dense:M.dense,disabled:m,disableGutters:b,disablePadding:A,divider:h,hasSecondaryAction:F,selected:S}),K=mk(J),Z=xt(U,n),z=H.root||u.Root||Pk,I=C.root||f.root||{},B=x({className:ce(K.root,I.className,l),disabled:m},L);let G=c||"li";return s&&(B.component=c||"div",B.focusVisibleClassName=ce(Qi.focusVisible,P),G=Xo),F?(G=!B.component&&!c?"div":G,p==="li"&&(G==="li"?G="div":B.component==="li"&&(B.component="div")),d.jsx(hr.Provider,{value:M,children:d.jsxs(yk,x({as:p,className:ce(K.container,y),ref:Z,ownerState:J},R,{children:[d.jsx(z,x({},I,!Ws(z)&&{as:G,ownerState:x({},J,I.ownerState)},B,{children:X})),X.pop()]}))})):d.jsx(hr.Provider,{value:M,children:d.jsxs(z,x({},I,{as:G,ref:Z},!Ws(z)&&{ownerState:x({},J,I.ownerState)},B,{children:[X,w&&d.jsx(pk,{children:w})]}))})}),Da=gk;function bk(e){return He("MuiListItemIcon",e)}const wk=Ce("MuiListItemIcon",["root","alignItemsFlexStart"]),Pg=wk,xk=["className"],Sk=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},bk,n)},Hk=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>x({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Ck=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=le(r,xk),s=g.useContext(hr),a=x({},r,{alignItems:s.alignItems}),l=Sk(a);return d.jsx(Hk,x({className:ce(l.root,o),ownerState:a,ref:n},i))}),yg=Ck;function Rk(e){return He("MuiListItemText",e)}const Dk=Ce("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),uf=Dk,Tk=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ek=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Te({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Rk,t)},kk=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${uf.primary}`]:t.primary},{[`& .${uf.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>x({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),jk=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=le(r,Tk),{dense:y}=g.useContext(hr);let v=l??o,m=u;const b=x({},r,{disableTypography:s,inset:a,primary:!!v,secondary:!!m,dense:y}),A=Ek(b);return v!=null&&v.type!==Tr&&!s&&(v=d.jsx(Tr,x({variant:y?"body2":"body1",className:A.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:v}))),m!=null&&m.type!==Tr&&!s&&(m=d.jsx(Tr,x({variant:"body2",className:A.secondary,color:"text.secondary",display:"block"},f,{children:m}))),d.jsxs(kk,x({className:ce(A.root,i),ownerState:b,ref:n},p,{children:[v,m]}))}),gu=jk,zk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Wp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function f1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ta(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!f1(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const Ok=g.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=le(t,zk),y=g.useRef(null),v=g.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Yn(()=>{o&&y.current.focus()},[o]),g.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(P,w)=>{const S=!y.current.style.width;if(P.clientHeight{const w=y.current,S=P.key,C=yn(w).activeElement;if(S==="ArrowDown")P.preventDefault(),Ta(w,C,c,l,Wp);else if(S==="ArrowUp")P.preventDefault(),Ta(w,C,c,l,gg);else if(S==="Home")P.preventDefault(),Ta(w,null,c,l,Wp);else if(S==="End")P.preventDefault(),Ta(w,null,c,l,gg);else if(S.length===1){const H=v.current,R=S.toLowerCase(),L=performance.now();H.keys.length>0&&(L-H.lastTime>500?(H.keys=[],H.repeating=!0,H.previousKeyMatched=!0):H.repeating&&R!==H.keys[0]&&(H.repeating=!1)),H.lastTime=L,H.keys.push(R);const k=C&&!H.repeating&&f1(C,H);H.previousKeyMatched&&(k||Ta(w,C,!1,l,Wp,H))?P.preventDefault():H.previousKeyMatched=!1}u&&u(P)},b=xt(y,n);let A=-1;g.Children.forEach(s,(P,w)=>{if(!g.isValidElement(P)){A===w&&(A+=1,A>=s.length&&(A=-1));return}P.props.disabled||(f==="selectedMenu"&&P.props.selected||A===-1)&&(A=w),A===w&&(P.props.disabled||P.props.muiSkipListHighlight||P.type.muiSkipListHighlight)&&(A+=1,A>=s.length&&(A=-1))});const h=g.Children.map(s,(P,w)=>{if(w===A){const S={};return i&&(S.autoFocus=!0),P.props.tabIndex===void 0&&f==="selectedMenu"&&(S.tabIndex=0),g.cloneElement(P,S)}return P});return d.jsx(hv,x({role:"menu",ref:b,className:a,onKeyDown:m,tabIndex:o?0:-1},p,{children:h}))}),Ik=Ok;function Lk(e){return He("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);const Bk=["onEntering"],Mk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Nk=["slotProps"];function bg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function wg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function xg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Qp(e){return typeof e=="function"?e():e}const Xk=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},Lk,t)},Uk=re(mm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d1=re(ki,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Vk=g.forwardRef(function(t,n){var r,o,i;const s=Ee({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:y,container:v,elevation:m=8,marginThreshold:b=16,open:A,PaperProps:h={},slots:P,slotProps:w,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:C=I7,transitionDuration:H="auto",TransitionProps:{onEntering:R}={},disableScrollLock:L=!1}=s,k=le(s.TransitionProps,Bk),M=le(s,Mk),U=(r=w==null?void 0:w.paper)!=null?r:h,X=g.useRef(),F=xt(X,U.ref),J=x({},s,{anchorOrigin:c,anchorReference:f,elevation:m,marginThreshold:b,externalPaperSlotProps:U,transformOrigin:S,TransitionComponent:C,transitionDuration:H,TransitionProps:k}),K=Xk(J),Z=g.useCallback(()=>{if(f==="anchorPosition")return u;const me=Qp(l),Fe=(me&&me.nodeType===1?me:yn(X.current).body).getBoundingClientRect();return{top:Fe.top+bg(Fe,c.vertical),left:Fe.left+wg(Fe,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),z=g.useCallback(me=>({vertical:bg(me,S.vertical),horizontal:wg(me,S.horizontal)}),[S.horizontal,S.vertical]),I=g.useCallback(me=>{const Oe={width:me.offsetWidth,height:me.offsetHeight},Fe=z(Oe);if(f==="none")return{top:null,left:null,transformOrigin:xg(Fe)};const mt=Z();let et=mt.top-Fe.vertical,D=mt.left-Fe.horizontal;const N=et+Oe.height,V=D+Oe.width,te=Lr(Qp(l)),oe=te.innerHeight-b,Y=te.innerWidth-b;if(b!==null&&etoe){const se=N-oe;et-=se,Fe.vertical+=se}if(b!==null&&DY){const se=V-Y;D-=se,Fe.horizontal+=se}return{top:`${Math.round(et)}px`,left:`${Math.round(D)}px`,transformOrigin:xg(Fe)}},[l,f,Z,z,b]),[B,G]=g.useState(A),T=g.useCallback(()=>{const me=X.current;if(!me)return;const Oe=I(me);Oe.top!==null&&(me.style.top=Oe.top),Oe.left!==null&&(me.style.left=Oe.left),me.style.transformOrigin=Oe.transformOrigin,G(!0)},[I]);g.useEffect(()=>(L&&window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)),[l,L,T]);const W=(me,Oe)=>{R&&R(me,Oe),T()},q=()=>{G(!1)};g.useEffect(()=>{A&&T()}),g.useImperativeHandle(a,()=>A?{updatePosition:()=>{T()}}:null,[A,T]),g.useEffect(()=>{if(!A)return;const me=Xf(()=>{T()}),Oe=Lr(l);return Oe.addEventListener("resize",me),()=>{me.clear(),Oe.removeEventListener("resize",me)}},[l,A,T]);let ae=H;H==="auto"&&!C.muiSupportAuto&&(ae=void 0);const _=v||(l?yn(Qp(l)).body:void 0),Pe=(o=P==null?void 0:P.root)!=null?o:Uk,ye=(i=P==null?void 0:P.paper)!=null?i:d1,ie=Qs({elementType:ye,externalSlotProps:x({},U,{style:B?U.style:x({},U.style,{opacity:0})}),additionalProps:{elevation:m,ref:F},ownerState:J,className:ce(K.paper,U==null?void 0:U.className)}),je=Qs({elementType:Pe,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:_,open:A},ownerState:J,className:ce(K.root,y)}),{slotProps:be}=je,we=le(je,Nk);return d.jsx(Pe,x({},we,!Ws(Pe)&&{slotProps:be,disableScrollLock:L},{children:d.jsx(C,x({appear:!0,in:A,onEntering:W,onExited:q,timeout:ae},k,{children:d.jsx(ye,x({},ie,{children:p}))}))}))}),Fk=Vk;function qk(e){return He("MuiMenu",e)}Ce("MuiMenu",["root","paper","list"]);const Jk=["onEntering"],Wk=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Qk={vertical:"top",horizontal:"right"},Kk={vertical:"top",horizontal:"left"},Gk=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"],list:["list"]},qk,t)},Zk=re(Fk,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yk=re(d1,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_k=re(Ik,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$k=g.forwardRef(function(t,n){var r,o;const i=Ee({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:y={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:b}={},variant:A="selectedMenu",slots:h={},slotProps:P={}}=i,w=le(i.TransitionProps,Jk),S=le(i,Wk),C=Uo(),H=C.direction==="rtl",R=x({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:y,transitionDuration:m,TransitionProps:w,variant:A}),L=Gk(R),k=s&&!c&&p,M=g.useRef(null),U=(I,B)=>{M.current&&M.current.adjustStyleForScrollbar(I,C),b&&b(I,B)},X=I=>{I.key==="Tab"&&(I.preventDefault(),f&&f(I,"tabKeyDown"))};let F=-1;g.Children.map(a,(I,B)=>{g.isValidElement(I)&&(I.props.disabled||(A==="selectedMenu"&&I.props.selected||F===-1)&&(F=B))});const J=(r=h.paper)!=null?r:Yk,K=(o=P.paper)!=null?o:y,Z=Qs({elementType:h.root,externalSlotProps:P.root,ownerState:R,className:[L.root,l]}),z=Qs({elementType:J,externalSlotProps:K,ownerState:R,className:L.paper});return d.jsx(Zk,x({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:H?"right":"left"},transformOrigin:H?Qk:Kk,slots:{paper:J,root:h.root},slotProps:{root:Z,paper:z},open:p,ref:n,transitionDuration:m,TransitionProps:x({onEntering:U},w),ownerState:R},S,{classes:v,children:d.jsx(_k,x({onKeyDown:X,actions:M,autoFocus:s&&(F===-1||c),autoFocusItem:k,variant:A},u,{className:ce(L.list,u.className),children:a}))}))}),ys=$k;function ej(e){return He("MuiMenuItem",e)}const tj=Ce("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ea=tj,nj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rj=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},oj=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=Te({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},ej,s);return x({},s,l)},ij=re(Xo,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:rj})(({theme:e,ownerState:t})=>x({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ea.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ea.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ea.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ea.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ea.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${pg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${pg.inset}`]:{marginLeft:52},[`& .${uf.root}`]:{marginTop:0,marginBottom:0},[`& .${uf.inset}`]:{paddingLeft:36},[`& .${Pg.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&x({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Pg.root} svg`]:{fontSize:"1.25rem"}}))),sj=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,y=le(r,nj),v=g.useContext(hr),m=g.useMemo(()=>({dense:s||v.dense||!1,disableGutters:l}),[v.dense,s,l]),b=g.useRef(null);Yn(()=>{o&&b.current&&b.current.focus()},[o]);const A=x({},r,{dense:m.dense,divider:a,disableGutters:l}),h=oj(r),P=xt(b,n);let w;return r.disabled||(w=f!==void 0?f:-1),d.jsx(hr.Provider,{value:m,children:d.jsx(ij,x({ref:P,role:u,tabIndex:w,component:i,focusVisibleClassName:ce(h.focusVisible,c),className:ce(h.root,p)},y,{ownerState:A,classes:h}))})}),gs=sj;function aj(e){return He("MuiNativeSelect",e)}const lj=Ce("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Pm=lj,cj=["className","disabled","error","IconComponent","inputRef","variant"],uj=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${$(n)}`,i&&"iconOpen",r&&"disabled"]};return Te(a,aj,t)},p1=({ownerState:e,theme:t})=>x({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":x({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Pm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),fj=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ft,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Pm.multiple}`]:t.multiple}]}})(p1),h1=({ownerState:e,theme:t})=>x({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Pm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),dj=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$(n.variant)}`],n.open&&t.iconOpen]}})(h1),pj=g.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=le(t,cj),u=x({},t,{disabled:o,variant:l,error:i}),f=uj(u);return d.jsxs(g.Fragment,{children:[d.jsx(fj,x({ownerState:u,className:ce(f.select,r),disabled:o,ref:a||n},c)),t.multiple?null:d.jsx(dj,{as:s,ownerState:u,className:f.icon})]})}),hj=pj;var Sg;const vj=["children","classes","className","label","notched"],Aj=re("fieldset",{shouldForwardProp:Ft})({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%"}),mj=re("legend",{shouldForwardProp:Ft})(({ownerState:e,theme:t})=>x({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&x({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Pj(e){const{className:t,label:n,notched:r}=e,o=le(e,vj),i=n!=null&&n!=="",s=x({},e,{notched:r,withLabel:i});return d.jsx(Aj,x({"aria-hidden":!0,className:t,ownerState:s},o,{children:d.jsx(mj,{ownerState:s,children:i?d.jsx("span",{children:n}):Sg||(Sg=d.jsx("span",{className:"notranslate",children:"​"}))})}))}const yj=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gj=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},SD,t);return x({},t,r)},bj=re(kd,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Td})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return x({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${so.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${so.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${so.focused} .${so.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${so.error} .${so.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${so.disabled} .${so.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&x({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),wj=re(Pj,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),xj=re(jd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ed})(({theme:e,ownerState:t})=>x({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),v1=g.forwardRef(function(t,n){var r,o,i,s,a;const l=Ee({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:y=!1,notched:v,slots:m={},type:b="text"}=l,A=le(l,yj),h=gj(l),P=ro(),w=Jo({props:l,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=x({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:P,fullWidth:u,hiddenLabel:w.hiddenLabel,multiline:y,size:w.size,type:b}),C=(r=(o=m.root)!=null?o:c.Root)!=null?r:bj,H=(i=(s=m.input)!=null?s:c.Input)!=null?i:xj;return d.jsx(vm,x({slots:{root:C,input:H},renderSuffix:R=>d.jsx(wj,{ownerState:S,className:h.notchedOutline,label:p!=null&&p!==""&&w.required?a||(a=d.jsxs(g.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:u,inputComponent:f,multiline:y,ref:n,type:b},A,{classes:x({},h,{notchedOutline:null})}))});v1.muiName="Input";const A1=v1,Sj=In(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Hj=In(d.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Cj=re("span",{shouldForwardProp:Ft})({position:"relative",display:"flex"}),Rj=re(Sj)({transform:"scale(1)"}),Dj=re(Hj)(({theme:e,ownerState:t})=>x({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function m1(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=x({},e,{checked:t});return d.jsxs(Cj,{className:n.root,ownerState:o,children:[d.jsx(Rj,{fontSize:r,className:n.background,ownerState:o}),d.jsx(Dj,{fontSize:r,className:n.dot,ownerState:o})]})}const Tj=g.createContext(void 0),P1=Tj;function Ej(){return g.useContext(P1)}function kj(e){return He("MuiRadio",e)}const Hg=Ce("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),jj=["checked","checkedIcon","color","icon","name","onChange","size","className"],zj=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${$(n)}`,r!=="medium"&&`size${$(r)}`]};return x({},t,Te(o,kj,t))},Oj=re(Am,{shouldForwardProp:e=>Ft(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${$(n.size)}`],t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Hg.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Hg.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Ij(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Cg=d.jsx(m1,{checked:!0}),Rg=d.jsx(m1,{}),Lj=g.forwardRef(function(t,n){var r,o;const i=Ee({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=Cg,color:l="primary",icon:c=Rg,name:u,onChange:f,size:p="medium",className:y}=i,v=le(i,jj),m=x({},i,{color:l,size:p}),b=zj(m),A=Ej();let h=s;const P=ku(f,A&&A.onChange);let w=u;return A&&(typeof h>"u"&&(h=Ij(A.value,i.value)),typeof w>"u"&&(w=A.name)),d.jsx(Oj,x({type:"radio",icon:g.cloneElement(c,{fontSize:(r=Rg.props.fontSize)!=null?r:p}),checkedIcon:g.cloneElement(a,{fontSize:(o=Cg.props.fontSize)!=null?o:p}),ownerState:m,classes:b,name:w,checked:h,onChange:P,ref:n,className:ce(b.root,y)},v))}),vv=Lj,Bj=["actions","children","defaultValue","name","onChange","value"],Mj=g.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:i,name:s,onChange:a,value:l}=t,c=le(t,Bj),u=g.useRef(null),[f,p]=yl({controlled:l,default:i,name:"RadioGroup"});g.useImperativeHandle(r,()=>({focus:()=>{let b=u.current.querySelector("input:not(:disabled):checked");b||(b=u.current.querySelector("input:not(:disabled)")),b&&b.focus()}}),[]);const y=xt(n,u),v=rc(s),m=g.useMemo(()=>({name:v,onChange(b){p(b.target.value),a&&a(b,b.target.value)},value:f}),[v,a,p,f]);return d.jsx(P1.Provider,{value:m,children:d.jsx(r7,x({role:"radiogroup",ref:y},c,{children:o}))})}),Av=Mj;function Nj(e){return He("MuiSelect",e)}const ka=Ce("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Dg;const Xj=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Uj=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ka.select}`]:t.select},{[`&.${ka.select}`]:t[n.variant]},{[`&.${ka.error}`]:t.error},{[`&.${ka.multiple}`]:t.multiple}]}})(p1,{[`&.${ka.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Vj=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$(n.variant)}`],n.open&&t.iconOpen]}})(h1),Fj=re("input",{shouldForwardProp:e=>pS(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Tg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function qj(e){return e==null||typeof e=="string"&&!e.trim()}const Jj=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${$(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Te(a,Nj,t)},Wj=g.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:y,error:v=!1,IconComponent:m,inputRef:b,labelId:A,MenuProps:h={},multiple:P,name:w,onBlur:S,onChange:C,onClose:H,onFocus:R,onOpen:L,open:k,readOnly:M,renderValue:U,SelectDisplayProps:X={},tabIndex:F,value:J,variant:K="standard"}=t,Z=le(t,Xj),[z,I]=yl({controlled:J,default:f,name:"Select"}),[B,G]=yl({controlled:k,default:u,name:"Select"}),T=g.useRef(null),W=g.useRef(null),[q,ae]=g.useState(null),{current:_}=g.useRef(k!=null),[Pe,ye]=g.useState(),ie=xt(n,b),je=g.useCallback(xe=>{W.current=xe,xe&&ae(xe)},[]),be=q==null?void 0:q.parentNode;g.useImperativeHandle(ie,()=>({focus:()=>{W.current.focus()},node:T.current,value:z}),[z]),g.useEffect(()=>{u&&B&&q&&!_&&(ye(a?null:be.clientWidth),W.current.focus())},[q,a]),g.useEffect(()=>{s&&W.current.focus()},[s]),g.useEffect(()=>{if(!A)return;const xe=yn(W.current).getElementById(A);if(xe){const Ge=()=>{getSelection().isCollapsed&&W.current.focus()};return xe.addEventListener("click",Ge),()=>{xe.removeEventListener("click",Ge)}}},[A]);const we=(xe,Ge)=>{xe?L&&L(Ge):H&&H(Ge),_||(ye(a?null:be.clientWidth),G(xe))},me=xe=>{xe.button===0&&(xe.preventDefault(),W.current.focus(),we(!0,xe))},Oe=xe=>{we(!1,xe)},Fe=g.Children.toArray(l),mt=xe=>{const Ge=Fe.find(O=>O.props.value===xe.target.value);Ge!==void 0&&(I(Ge.props.value),C&&C(xe,Ge))},et=xe=>Ge=>{let O;if(Ge.currentTarget.hasAttribute("tabindex")){if(P){O=Array.isArray(z)?z.slice():[];const j=z.indexOf(xe.props.value);j===-1?O.push(xe.props.value):O.splice(j,1)}else O=xe.props.value;if(xe.props.onClick&&xe.props.onClick(Ge),z!==O&&(I(O),C)){const j=Ge.nativeEvent||Ge,ee=new j.constructor(j.type,j);Object.defineProperty(ee,"target",{writable:!0,value:{value:O,name:w}}),C(ee,xe)}P||we(!1,Ge)}},D=xe=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(xe.key)!==-1&&(xe.preventDefault(),we(!0,xe))},N=q!==null&&B,V=xe=>{!N&&S&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:z,name:w}}),S(xe))};delete Z["aria-invalid"];let te,oe;const Y=[];let se=!1;(lf({value:z})||y)&&(U?te=U(z):se=!0);const ze=Fe.map(xe=>{if(!g.isValidElement(xe))return null;let Ge;if(P){if(!Array.isArray(z))throw new Error(Bo(2));Ge=z.some(O=>Tg(O,xe.props.value)),Ge&&se&&Y.push(xe.props.children)}else Ge=Tg(z,xe.props.value),Ge&&se&&(oe=xe.props.children);return g.cloneElement(xe,{"aria-selected":Ge?"true":"false",onClick:et(xe),onKeyUp:O=>{O.key===" "&&O.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp(O)},role:"option",selected:Ge,value:void 0,"data-value":xe.props.value})});se&&(P?Y.length===0?te=null:te=Y.reduce((xe,Ge,O)=>(xe.push(Ge),O{const{classes:t}=e;return t},ym={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ft(e)&&e!=="variant",slot:"Root"},Yj=re(l1,ym)(""),_j=re(A1,ym)(""),$j=re(r1,ym)(""),y1=g.forwardRef(function(t,n){const r=Ee({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=DD,id:f,input:p,inputProps:y,label:v,labelId:m,MenuProps:b,multiple:A=!1,native:h=!1,onClose:P,onOpen:w,open:S,renderValue:C,SelectDisplayProps:H,variant:R="outlined"}=r,L=le(r,Kj),k=h?hj:Qj,M=ro(),U=Jo({props:r,muiFormControl:M,states:["variant","error"]}),X=U.variant||R,F=x({},r,{variant:X,classes:s}),J=Zj(F),K=le(J,Gj),Z=p||{standard:d.jsx(Yj,{ownerState:F}),outlined:d.jsx(_j,{label:v,ownerState:F}),filled:d.jsx($j,{ownerState:F})}[X],z=xt(n,Z.ref);return d.jsx(g.Fragment,{children:g.cloneElement(Z,x({inputComponent:k,inputProps:x({children:i,error:U.error,IconComponent:u,variant:X,type:void 0,multiple:A},h?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:b,onClose:P,onOpen:w,open:S,renderValue:C,SelectDisplayProps:x({id:f},H)},y,{classes:y?Pn(K,y.classes):K},p?p.props.inputProps:{})},(A&&h||c)&&X==="outlined"?{notched:!0}:{},{ref:z,className:ce(Z.props.className,a,J.root)},!p&&{variant:X},L))})});y1.muiName="Select";const mv=y1;function e6(e){return He("MuiSwitch",e)}const t6=Ce("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),rn=t6,n6=["className","color","edge","size","sx"],r6=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${$(n)}`,`size${$(r)}`],switchBase:["switchBase",`color${$(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Te(a,e6,t);return x({},t,l)},o6=re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${$(n.edge)}`],t[`size${$(n.size)}`]]}})(({ownerState:e})=>x({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${rn.thumb}`]:{width:16,height:16},[`& .${rn.switchBase}`]:{padding:4,[`&.${rn.checked}`]:{transform:"translateX(16px)"}}})),i6=re(Am,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${rn.input}`]:t.input},n.color!=="default"&&t[`color${$(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${rn.checked}`]:{transform:"translateX(20px)"},[`&.${rn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${rn.checked} + .${rn.track}`]:{opacity:.5},[`&.${rn.disabled} + .${rn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${rn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>x({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${rn.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Iu(e.palette[t.color].main,.62):Ou(e.palette[t.color].main,.55)}`}},[`&.${rn.checked} + .${rn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),s6=re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),a6=re("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),l6=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=le(r,n6),u=x({},r,{color:i,edge:s,size:a}),f=r6(u),p=d.jsx(a6,{className:f.thumb,ownerState:u});return d.jsxs(o6,{className:ce(f.root,o),sx:l,ownerState:u,children:[d.jsx(i6,x({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:x({},f,{root:f.switchBase})})),d.jsx(s6,{className:f.track,ownerState:u})]})}),c6=l6;function u6(e){return He("MuiToolbar",e)}Ce("MuiToolbar",["root","gutters","regular","dense"]);const f6=["className","component","disableGutters","variant"],d6=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},u6,t)},p6=re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>x({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),h6=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,l=le(r,f6),c=x({},r,{component:i,disableGutters:s,variant:a}),u=d6(c);return d.jsx(p6,x({as:i,className:ce(u.root,o),ref:n,ownerState:c},l))}),v6=h6;function A6(e){return He("MuiTextField",e)}Ce("MuiTextField",["root"]);const m6=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],P6={standard:l1,filled:r1,outlined:A1},y6=e=>{const{classes:t}=e;return Te({root:["root"]},A6,t)},g6=re(yr,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b6=g.forwardRef(function(t,n){const r=Ee({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:y=!1,helperText:v,id:m,InputLabelProps:b,inputProps:A,InputProps:h,inputRef:P,label:w,maxRows:S,minRows:C,multiline:H=!1,name:R,onBlur:L,onChange:k,onFocus:M,placeholder:U,required:X=!1,rows:F,select:J=!1,SelectProps:K,type:Z,value:z,variant:I="outlined"}=r,B=le(r,m6),G=x({},r,{autoFocus:i,color:l,disabled:u,error:f,fullWidth:y,multiline:H,required:X,select:J,variant:I}),T=y6(G),W={};I==="outlined"&&(b&&typeof b.shrink<"u"&&(W.notched=b.shrink),W.label=w),J&&((!K||!K.native)&&(W.id=void 0),W["aria-describedby"]=void 0);const q=rc(m),ae=v&&q?`${q}-helper-text`:void 0,_=w&&q?`${q}-label`:void 0,Pe=P6[I],ye=d.jsx(Pe,x({"aria-describedby":ae,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:y,multiline:H,name:R,rows:F,maxRows:S,minRows:C,type:Z,value:z,id:q,inputRef:P,onBlur:L,onChange:k,onFocus:M,placeholder:U,inputProps:A},W,h));return d.jsxs(g6,x({className:ce(T.root,a),disabled:u,error:f,fullWidth:y,ref:n,required:X,color:l,variant:I,ownerState:G},B,{children:[w!=null&&w!==""&&d.jsx(pv,x({htmlFor:q,id:_},b,{children:w})),J?d.jsx(mv,x({"aria-describedby":ae,id:q,labelId:_,value:z,input:ye},K,{children:s})):ye,v&&d.jsx(u7,x({id:ae},p,{children:v}))]}))}),Gi=b6,Qn="/hub",gm="/services/japps",w6="This field is required.",Qc={required:w6},x6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABdCAYAAAAyj+FzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH4wEeAgwag/GoiAAAEHJJREFUeNrtnHl8VFWyx791u0OT0AkEt3FckK1BefieIG7jknFBGU0TlFbccACNflxGeUISfeOzR99oEhxxGRdQAoI68yEqyW2BEZfBBffEBRETFgUdZIZBIOmQdLr71vsjHW2h0+lOQliS+qf7c++pOvf8Tp06VXXrXOimdpF05cHn5uam9O7d90rD0DOAo1X5WgRfUVHRy4B2AxiH7rjjjqHhsGUCg3e9p8oboVCjZ+bMmT90AxiD7rzzzsNDoXAl8Is40LydltYzy+v1WvFkGV0RwGAwfFd88AD0jPr6+gmtyeqSAIrgSbDp+G4Ad6Fp06YdChycSFtVjukGcBdyOp3bE91hgR/2SwAVZHvB8MwdU4f13V4wPPNf3mHOjpLt9XobgYoEF/u7rbWwx+POzc3NmD179o49BdT2aUP622yMEvQEkGGKHgMc5Yc+Ng1AjyY0U+uhNt9lAZtR2YDwtcJnhmhloKf14UHetTVJ2sCZqjzXSjO/iD6dtBuTm5ub1hgKFQtcAziBTSpSPG/OnEeSUP3YmuXBVtd/8NlqSA7KaGBQB8xDCOE9LH3FUvvC3jNWr0mEKS8vbxZIbosy0cuLi4tfSApAr9drbNi48VXg7BjL6t55JSX/2yZNK3ANMCxuFOEK4PA9HFp9qKJznT3r5ot30854TfPz869V1btAjmoepggfquptxcXF7ycdiUyePNmtUN5C20a1rH7z5s3bnOhg6gqGjrRU7wDNAWydbEq3IvKkFbA/2Hvmqh9ai0pUtZdlWd8XFxdvanMsPGnSpBmITIvTeGxJSYmZiMbZlD8Cl+0D0c42RQrTG+selZnf1Xe08J/vwoYRiO8Xafz73iy7P3/IrXblc2DCPhIqZgpa5O+R9oW/wHXuHgVQVBfH0b5tqampK1q6X5s3+Fh//aaPFH1Iodc+6B0NUGVZbZ5rlk49MnWPAFhSUvKewKMx2oWBGx5//HF/zP0+f8hViHwI/Ne+HsUh5Pp7pFXU5g8a1kGb1u40efLkiQq/BY4UWBUWeeCZOXNW7L5kMWrrXQ8ITN0Pg5IaES5xFla/1uEAJuTT3TLI4U8zFkDCgfm+SI2iXOssrl7QqQCqd1iP2p3BRSL8poMGEga+B/xAHVCj0CDgBxWQPiipCD2BTKAP0LejIkcVuTajsKqkUwDU3JEp/szahUBOG/prAD4G/RhkrYiss0TWpzts34h3VWNSvsltx/Tp0bPnQAsdoKoDEYaKcgowpA3PZQlyjbOo6tk9DmBt3uAnELkhQfE7QZcJvG0Z1nvpDkdFskAl/Xx3DDpELdtphvIrFT0bGJkgaxCRC9ILq97YYwDW5rluRmLu0j/TMhFeQymtV1l0SHFV7d40cvW3H9svbLdyVNWDcForY/7BsmynJBpPJwXgjjzXSYbwDpDSQpOVqjqzIa1H6aHeVf59ccfYUTBwkFi2G0S4Dshoodlnzp3WyfLo2kCHAbh52vG9etkaKgFXjOTdChWrKL1o7cvSzmxNZ9GWvCHpqcJkS3SqKP1iJE4ezCiqvr3DAGzB7r1vqNzSq7jq4/3Vh1Fvlt1fv+l64J5ddnUFzUovWvNWuwFsyqhYH0RlU7YKcm+v1KpHxYvFAUDbC4Zn2mj0onpT1DhXObelnyCzK4KJJxN2V2VRtR5vFirI3MZUa4CzqOrhAwU8gD6FK7elF1bdaohxMlAVuTysLrP2lnZpYE2Ba5woLwENghQ4i6oe5gCnLXlD0nuiTyFcBmxtUOkfz5Mw4mmfKHcD6wRO6QrgARxSXFWbXlw9AdVbgQyH6E1tWsI7810XAD0Nm+0MZ1H1Z3QxSi9e8wiqEwRuVu+wHkkDGIbzbHbO6XXf6u/popRevOYlVH/nbwiNTTrerbvz2MPppqZoJn/A0d0odNO+SQdcfaDH4+kRCARGORyOj0pLSxv3dH/2Awm8MWPGOAKBwDYgNRQKHQxs3dN9HlDVWfX19QKkdmaf9hizmGEYhi0tLa1uTy0Bt9v9S8MwDge2lpWVfbO3AHe73emWZf0iHA5vX7p06ZZEzZ7b7Xapqvh8vq8khtDVwFBVHe/z+V6Muj4PcAOFpmkW78qXnZ39gYicJCKTy8vL50bxzQI8InKVqn4vIo+p6qlRrJ8Dt5im+VYUz19oejG/1DTN38Toq7+IVKiqhsPhEUuWLNngdrs3A4dF5wiIpNdU9Qyfz7cqSv6JIlKoqllRyYPPVXW6z+dbtktfF4mID5ivql7gryJyEvCYaZo3J7OEe9H0QiepJaKqKUCmqp4DrFDVwSIyT1VnAmuA44FX3W73eVFssyO/oy+66KIjdrM7hnEZkCkiK5csWbIh0o9PRMqimr0JvAa8Fg6H/VHgXQC8o6onicg9InIBMA04QkSWZGdnj/mZuokEIvLtIrIkAt5aVf22szaRZjMwFXg7GAyOb14uHo+nIBAILAAuBeZ4PJ5BpaWljaZp/t3tdn8JHGcYxhXAjF0m5bLI3x813efzXZeTk9NHVXMAbDbblEWLFm3dRZsOBhZEnmlUeXl5c+bllZycnDLLslaKyJ89Ho+rtLQ0HLkXiAB5IVBrGMbJZWVlH3bmJtKcGvcDl0fbmtLS0sZgMHgzTa8yj2psbLwwim9O5Pe30cLGjRvnoqkCwu9wOF5Masc0jGtpqo8uNk2zKvpeWVnZOlV9DhgQCAROidLA5ix7b+C6aPA6SwObZ/JN0zR3Kx1bunTpFrfbvRi4VFVPBxZFNOiZcDj8R+C4nJyckWVlZRUA4XC4Wfv+Ulpa6k/SnFzQPKljx46NVWjkUFVUdSiwIsLT/O6krqam5rW96Qd+E2dga0QEVf3x7MaiRYu2ut3uF4ErVfUafqprvizC05YX4c0VscWqLb++EZFYeYDvly9fHmo3gKra4cveMAyHqiIiDbsMZJaqXmlZ1pVjxoyZbrfb+wPDgCqfz/d+G7pqrhq7F/guzvPEKkIPtTcSaYgM6qAWZi2jtexQa5ohIhuiL5aXl7/tdru/FJHjUlJSzgVGRCbx6bZMlIjsUNU+wLumaf6tsyOR5rzgyTH8sqOJHNqzLCvUAv+5ubm5KTFi176qem7Evr0aY9CzIqDlAGOBRhGJWQyUkpJiRPGlxlg9yyN/p3R6KKeqf4/8PXHs2LHjmq9ffPHFh4vI880OqYi09LLpiM2bNz/p8Xh6RAGfFggEnqHpNMCKl19++b3d1k0otACoFxFPRANfNE3zn7E62LJlSw1QDxAMBs+I0eRBIAiMd7vdd3m93t3GP3r06KSKQ+0xZjw1loEdOXLkK5WVlR8Bo1T1hezs7I9FJBAKhUYAW4AXgPGq2rOFviqBqwOBwK+zs7OXiYgAFwJHAJvC4fDEWEyLFy/e5na7F9J07AJVfbylwSxfvjwU2XiuEpGn3W73BMBmmuZFAKZpfu52u28CngDuqaysvHLs2LGvq2pQVQ8RkZNUtSISBbVNA1U1MwLkz+55vV4rFAq5VdUXuX8ScCqwNBQKnSoiK4Ftcfp6Fzgf8IvI9UBuJJpYAIxavHjx+ji2683I3499Pt878QYUDAb/O/KMqZHQMyta603TfEpVRwPvAy5VvRG4VUSuAGwisnoXkTuB9cC3reYDvV6vUVlZGYpcPys6Po2mrKysnhkZGUc6HI7Nrfli2dnZD4rIVODPpmneEgmnDjMMIzUlJWVTAgkLcbvdy4EzgUtM03wpEc0YPXp0r9TU1L6HHXbY5tmzZ8d8OT5u3LiDgsHgkYZhNDgcji2lpaU/JGsDf7aEP/300xMi4NUBn8RZKg3A2rYa3pZsWAsZk6kR8CpGjBhRZppmQnzLli2ri4yjRYqEeu3KGf4IYE5OzkDLsh6LLJmS8vLyvVqW5vV6jYqKiunA/UDQMIzrWzs9vjfIHpnl9yzLGklT6drnjY2Nv9+bD5WdnX1wZWXlchEZBljApOZQbl8jIypj8p6I3FxTU3Py0qVLazqqAxH5LhKGfZsoj8/n20pTtdRXwK9N03yObkqOcnJyjmF/feml3mE9/PlDz++exqYjurUFQ85OKhIR76pGVM+pzXdN6NLgeTFqB7hKDDT56qywGk8Bc2sLBl/SNcHLstfWu+YaMKRXYfVHSQPYVKkuL6FS6s9zFaqn08/77jWqnTbwUH/9pqUCE8PovXE3yXg3d0w/drBhhL9scnd0uVg9LnfOWLX5gAYvf/CZIH+l6WR9hbOoelS84vm42ZjeM1av4cfcm2SpEayozRsy/kAEbvO043v58133g7wRAU+xrNtbO3nQqpuwvWB4pk0DVcAhURZiuWD7nbPoq5UHAng1+YOyEePR6CMPKizIKKye2Kqfm0gH/jzX1SrM3zVVh8jjNis8I6147Xf7JXDTXWeIwf9FYu1o+rfYgv/hvO/rf3YIgAC1ea7nES6PlUECyixD/9T7/jUf7BeuSf2gCwWjADgtdiPxpBdXvZCIvIQB3HbbMX1SHD0+UeJ+T+p1UZ5plJDZt2j9jn0JuO3TBw00xLjUEK5T6B8H4ifSi9bcmHComsxD+KcNOV5t+g7xXxABBER4FaU0JA5fn8KV2/YGaDumHztYJDw+8rW2ExJgecuZmnJeMidKk441a/KGuEX0JRL/DkwY+AJ4R9B3bYTfSS1av3FPhFw7Bw463lI5HeQ04HTgyCRErNMQp2T8qfrfSSVL2vKw/jzXNSqU0PbSkH8Ba1VYJxbrBNZbNllvC4XrgzZjuz2csjMYrGvIfOib7erNsu9o2Jru0Lr0oKak2gxxKqGDFBmgagwUdAAwUGBQ278WIhtDImdlFn71TdKcbd/6XdcJPMn+X6T5D0vCWb0L17Upw96udFHkKNhzdHJVaAfSl3ZCY9pjUtqlPRmF1YvU4vzIktzf6PWwOE5vrz1u9/LLmFH9NuHwcJqKGfeLRAsijzhTf3lBR3gHHZbxbTq8/I8CkN8Djn0UvPWi5DqLq1/vKIEdnjKvucM1VFSeRPWsfQi4oCIPp6fW3t3KNwX3PoA/ujoFrnNVeQD4z726XOEFS8J3tnWX3WsANju3/oGDc7BkKsKvOhG4BoHn1GZ7KP2+1V/syY4SBnDWrFlpKSkpp6lqPyBsGMaqDRs2fOL1ekOJ8NdNHzTCMuRqkAm0+hXxNqvbxwbyrBrh59PvX7ulM2aqVQAXLlyY6vf7/we4hd2/tbJBVe+dMmXKnGS0snaA61SB84Dmosme7YhoVoC8GhZ9pU9h9frOthFxAXz66af7GobxCnBiK3Lmb9y4cVJbSi/Um2Wvq998LISHWyr9RPQokINVSReJlJ6I7sSSOoVNgm5UZb1d9NN9IQ/ZIoCqKnPnzl0W0ZLWgVD9w5QpU7x0MWoRwLlz53pUdWESsgJ2u901ceLEjV0JQCOORl2VpCxHKBS6sqtpYIsAisioNsgb1Q1gk8uSoqpJf3RCVQ/tBhC4/vrrg0DSJW4isrUbwJ/ozTbIW94N4E/a9GSSshqBZ7sBbA4xNmz4WzIapar3T548eUs3gBHyer1WMBj0AJ8mYPvmffvtt/fQBanVWDiSRLgbuJGmI1nR9J2I3D1p0qQSuiglnI2ZP39+r2AweCbQDwiKyGqn0/nBpZdeGqYL0/8DYoC55FAuaE8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDEtMzBUMDI6MTI6MjYrMDA6MDDUuE4iAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTAxLTMwVDAyOjEyOjI2KzAwOjAwpeX2ngAAAABJRU5ErkJggg==",S6=[],H6=["Any","Owned by me","Shared with me"],C6=["Recently modified","Name: A-Z","Name: Z-A"];var aa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Gs=typeof window>"u"||"Deno"in globalThis;function Un(){}function R6(e,t){return typeof e=="function"?e(t):e}function Pv(e){return typeof e=="number"&&e>=0&&e!==1/0}function g1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Eg(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==bm(s,t.options))return!1}else if(!Ml(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function kg(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Ci(t.options.mutationKey)!==Ci(i))return!1}else if(!Ml(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function bm(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ci)(e)}function Ci(e){return JSON.stringify(e,(t,n)=>yv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ml(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ml(e[n],t[n])):!1}function b1(e,t){if(e===t)return e;const n=jg(e)&&jg(t);if(n||yv(e)&&yv(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function gv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?b1(e,t):t}function T6(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function E6(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var wm=Symbol(),si,Ao,ws,U8,k6=(U8=class extends aa{constructor(){super();ge(this,si,void 0);ge(this,Ao,void 0);ge(this,ws,void 0);pe(this,ws,t=>{if(!Gs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){E(this,Ao)||this.setEventListener(E(this,ws))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Ao))==null||t.call(this),pe(this,Ao,void 0))}setEventListener(t){var n;pe(this,ws,t),(n=E(this,Ao))==null||n.call(this),pe(this,Ao,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){E(this,si)!==t&&(pe(this,si,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof E(this,si)=="boolean"?E(this,si):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},si=new WeakMap,Ao=new WeakMap,ws=new WeakMap,U8),xm=new k6,xs,mo,Ss,V8,j6=(V8=class extends aa{constructor(){super();ge(this,xs,!0);ge(this,mo,void 0);ge(this,Ss,void 0);pe(this,Ss,t=>{if(!Gs&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,mo)||this.setEventListener(E(this,Ss))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,mo))==null||t.call(this),pe(this,mo,void 0))}setEventListener(t){var n;pe(this,Ss,t),(n=E(this,mo))==null||n.call(this),pe(this,mo,t(this.setOnline.bind(this)))}setOnline(t){E(this,xs)!==t&&(pe(this,xs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return E(this,xs)}},xs=new WeakMap,mo=new WeakMap,Ss=new WeakMap,V8),df=new j6;function z6(e){return Math.min(1e3*2**e,3e4)}function Sm(e){return(e??"online")==="online"?df.isOnline():!0}var w1=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kp(e){return e instanceof w1}function x1(e){let t=!1,n=0,r=!1,o,i,s;const a=new Promise((b,A)=>{i=b,s=A}),l=b=>{var A;r||(y(new w1(b)),(A=e.abort)==null||A.call(e))},c=()=>{t=!0},u=()=>{t=!1},f=()=>!xm.isFocused()||e.networkMode!=="always"&&!df.isOnline(),p=b=>{var A;r||(r=!0,(A=e.onSuccess)==null||A.call(e,b),o==null||o(),i(b))},y=b=>{var A;r||(r=!0,(A=e.onError)==null||A.call(e,b),o==null||o(),s(b))},v=()=>new Promise(b=>{var A;o=h=>{const P=r||!f();return P&&b(h),P},(A=e.onPause)==null||A.call(e)}).then(()=>{var b;o=void 0,r||(b=e.onContinue)==null||b.call(e)}),m=()=>{if(r)return;let b;try{b=e.fn()}catch(A){b=Promise.reject(A)}Promise.resolve(b).then(p).catch(A=>{var C;if(r)return;const h=e.retry??(Gs?0:3),P=e.retryDelay??z6,w=typeof P=="function"?P(n,A):P,S=h===!0||typeof h=="number"&&n{if(f())return v()}).then(()=>{t?y(A):m()})})};return Sm(e.networkMode)?m():v().then(m),{promise:a,cancel:l,continue:()=>(o==null?void 0:o())?a:Promise.resolve(),cancelRetry:c,continueRetry:u}}function O6(){let e=[],t=0,n=p=>{p()},r=p=>{p()},o=p=>setTimeout(p,0);const i=p=>{o=p},s=p=>{let y;t++;try{y=p()}finally{t--,t||c()}return y},a=p=>{t?e.push(p):o(()=>{n(p)})},l=p=>(...y)=>{a(()=>{p(...y)})},c=()=>{const p=e;e=[],p.length&&o(()=>{r(()=>{p.forEach(y=>{n(y)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:i}}var kt=O6(),ai,F8,S1=(F8=class{constructor(){ge(this,ai,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pv(this.gcTime)&&pe(this,ai,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gs?1/0:5*60*1e3))}clearGcTimeout(){E(this,ai)&&(clearTimeout(E(this,ai)),pe(this,ai,void 0))}},ai=new WeakMap,F8),Hs,Cs,Nn,on,Mt,Vl,li,ar,Fr,q8,I6=(q8=class extends S1{constructor(t){super();ge(this,ar);ge(this,Hs,void 0);ge(this,Cs,void 0);ge(this,Nn,void 0);ge(this,on,void 0);ge(this,Mt,void 0);ge(this,Vl,void 0);ge(this,li,void 0);pe(this,li,!1),pe(this,Vl,t.defaultOptions),this.setOptions(t.options),pe(this,Mt,[]),pe(this,Nn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,pe(this,Hs,t.state||L6(this.options)),this.state=E(this,Hs),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...E(this,Vl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!E(this,Mt).length&&this.state.fetchStatus==="idle"&&E(this,Nn).remove(this)}setData(t,n){const r=gv(this.state.data,t,this.options);return Le(this,ar,Fr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,ar,Fr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=E(this,on))==null?void 0:r.promise;return(o=E(this,on))==null||o.cancel(t),n?n.then(Un).catch(Un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,Hs))}isActive(){return E(this,Mt).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?E(this,Mt).some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!g1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=E(this,Mt).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,on))==null||n.continue()}onOnline(){var n;const t=E(this,Mt).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,on))==null||n.continue()}addObserver(t){E(this,Mt).includes(t)||(E(this,Mt).push(t),this.clearGcTimeout(),E(this,Nn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){E(this,Mt).includes(t)&&(pe(this,Mt,E(this,Mt).filter(n=>n!==t)),E(this,Mt).length||(E(this,on)&&(E(this,li)?E(this,on).cancel({revert:!0}):E(this,on).cancelRetry()),this.scheduleGc()),E(this,Nn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return E(this,Mt).length}invalidate(){this.state.isInvalidated||Le(this,ar,Fr).call(this,{type:"invalidate"})}fetch(t,n){var c,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(E(this,on))return E(this,on).continueRetry(),E(this,on).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=E(this,Mt).find(y=>y.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,o={queryKey:this.queryKey,meta:this.meta},i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(pe(this,li,!0),r.signal)})};i(o);const s=()=>!this.options.queryFn||this.options.queryFn===wm?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(pe(this,li,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(a),(c=this.options.behavior)==null||c.onFetch(a,this),pe(this,Cs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Le(this,ar,Fr).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=p=>{var y,v,m,b;Kp(p)&&p.silent||Le(this,ar,Fr).call(this,{type:"error",error:p}),Kp(p)||((v=(y=E(this,Nn).config).onError)==null||v.call(y,p,this),(b=(m=E(this,Nn).config).onSettled)==null||b.call(m,this.state.data,p,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return pe(this,on,x1({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var y,v,m,b;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(p),(v=(y=E(this,Nn).config).onSuccess)==null||v.call(y,p,this),(b=(m=E(this,Nn).config).onSettled)==null||b.call(m,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(p,y)=>{Le(this,ar,Fr).call(this,{type:"failed",failureCount:p,error:y})},onPause:()=>{Le(this,ar,Fr).call(this,{type:"pause"})},onContinue:()=>{Le(this,ar,Fr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),E(this,on).promise}},Hs=new WeakMap,Cs=new WeakMap,Nn=new WeakMap,on=new WeakMap,Mt=new WeakMap,Vl=new WeakMap,li=new WeakMap,ar=new WeakSet,Fr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...H1(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Kp(o)&&o.revert&&E(this,Cs)?{...E(this,Cs),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),kt.batch(()=>{E(this,Mt).forEach(r=>{r.onQueryUpdate()}),E(this,Nn).notify({query:this,type:"updated",action:t})})},q8);function H1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function L6(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var br,J8,B6=(J8=class extends aa{constructor(t={}){super();ge(this,br,void 0);this.config=t,pe(this,br,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??bm(o,n);let s=this.get(i);return s||(s=new I6({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){E(this,br).has(t.queryHash)||(E(this,br).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=E(this,br).get(t.queryHash);n&&(t.destroy(),n===t&&E(this,br).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){kt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,br).get(t)}getAll(){return[...E(this,br).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Eg(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Eg(t,r)):n}notify(t){kt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},br=new WeakMap,J8),wr,Fl,Rn,Rs,xr,lo,W8,M6=(W8=class extends S1{constructor(t){super();ge(this,xr);ge(this,wr,void 0);ge(this,Fl,void 0);ge(this,Rn,void 0);ge(this,Rs,void 0);this.mutationId=t.mutationId,pe(this,Fl,t.defaultOptions),pe(this,Rn,t.mutationCache),pe(this,wr,[]),this.state=t.state||C1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...E(this,Fl),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,wr).includes(t)||(E(this,wr).push(t),this.clearGcTimeout(),E(this,Rn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pe(this,wr,E(this,wr).filter(n=>n!==t)),this.scheduleGc(),E(this,Rn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,wr).length||(this.state.status==="pending"?this.scheduleGc():E(this,Rn).remove(this))}continue(){var t;return((t=E(this,Rs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,a,l,c,u,f,p,y,v,m,b,A,h,P,w,S,C,H;const n=()=>(pe(this,Rs,x1({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,L)=>{Le(this,xr,lo).call(this,{type:"failed",failureCount:R,error:L})},onPause:()=>{Le(this,xr,lo).call(this,{type:"pause"})},onContinue:()=>{Le(this,xr,lo).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),E(this,Rs).promise),r=this.state.status==="pending";try{if(!r){Le(this,xr,lo).call(this,{type:"pending",variables:t}),await((i=(o=E(this,Rn).config).onMutate)==null?void 0:i.call(o,t,this));const L=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));L!==this.state.context&&Le(this,xr,lo).call(this,{type:"pending",context:L,variables:t})}const R=await n();return await((c=(l=E(this,Rn).config).onSuccess)==null?void 0:c.call(l,R,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,R,t,this.state.context)),await((y=(p=E(this,Rn).config).onSettled)==null?void 0:y.call(p,R,null,this.state.variables,this.state.context,this)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,R,null,t,this.state.context)),Le(this,xr,lo).call(this,{type:"success",data:R}),R}catch(R){try{throw await((A=(b=E(this,Rn).config).onError)==null?void 0:A.call(b,R,t,this.state.context,this)),await((P=(h=this.options).onError)==null?void 0:P.call(h,R,t,this.state.context)),await((S=(w=E(this,Rn).config).onSettled)==null?void 0:S.call(w,void 0,R,this.state.variables,this.state.context,this)),await((H=(C=this.options).onSettled)==null?void 0:H.call(C,void 0,R,t,this.state.context)),R}finally{Le(this,xr,lo).call(this,{type:"error",error:R})}}}},wr=new WeakMap,Fl=new WeakMap,Rn=new WeakMap,Rs=new WeakMap,xr=new WeakSet,lo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Sm(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),kt.batch(()=>{E(this,wr).forEach(r=>{r.onMutationUpdate(t)}),E(this,Rn).notify({mutation:this,type:"updated",action:t})})},W8);function C1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xn,ql,ci,Q8,N6=(Q8=class extends aa{constructor(t={}){super();ge(this,Xn,void 0);ge(this,ql,void 0);ge(this,ci,void 0);this.config=t,pe(this,Xn,[]),pe(this,ql,0)}build(t,n,r){const o=new M6({mutationCache:this,mutationId:++xc(this,ql)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){E(this,Xn).push(t),this.notify({type:"added",mutation:t})}remove(t){pe(this,Xn,E(this,Xn).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){kt.batch(()=>{E(this,Xn).forEach(t=>{this.remove(t)})})}getAll(){return E(this,Xn)}find(t){const n={exact:!0,...t};return E(this,Xn).find(r=>kg(n,r))}findAll(t={}){return E(this,Xn).filter(n=>kg(t,n))}notify(t){kt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return pe(this,ci,(E(this,ci)??Promise.resolve()).then(()=>{const t=E(this,Xn).filter(n=>n.state.isPaused);return kt.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Un)),Promise.resolve()))}).then(()=>{pe(this,ci,void 0)})),E(this,ci)}},Xn=new WeakMap,ql=new WeakMap,ci=new WeakMap,Q8);function X6(e){return{onFetch:(t,n)=>{const r=async()=>{var v,m,b,A,h;const o=t.options,i=(b=(m=(v=t.fetchOptions)==null?void 0:v.meta)==null?void 0:m.fetchMore)==null?void 0:b.direction,s=((A=t.state.data)==null?void 0:A.pages)||[],a=((h=t.state.data)==null?void 0:h.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const u=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},f=t.options.queryFn&&t.options.queryFn!==wm?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),p=async(P,w,S)=>{if(c)return Promise.reject();if(w==null&&P.pages.length)return Promise.resolve(P);const C={queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};u(C);const H=await f(C),{maxPages:R}=t.options,L=S?E6:T6;return{pages:L(P.pages,H,R),pageParams:L(P.pageParams,w,R)}};let y;if(i&&s.length){const P=i==="backward",w=P?U6:Og,S={pages:s,pageParams:a},C=w(o,S);y=await p(S,C,P)}else{y=await p(l,a[0]??o.initialPageParam);const P=e??s.length;for(let w=1;w{var o,i;return(i=(o=t.options).persister)==null?void 0:i.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function Og(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function U6(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Ht,Po,yo,Ds,Ts,go,Es,ks,K8,V6=(K8=class{constructor(e={}){ge(this,Ht,void 0);ge(this,Po,void 0);ge(this,yo,void 0);ge(this,Ds,void 0);ge(this,Ts,void 0);ge(this,go,void 0);ge(this,Es,void 0);ge(this,ks,void 0);pe(this,Ht,e.queryCache||new B6),pe(this,Po,e.mutationCache||new N6),pe(this,yo,e.defaultOptions||{}),pe(this,Ds,new Map),pe(this,Ts,new Map),pe(this,go,0)}mount(){xc(this,go)._++,E(this,go)===1&&(pe(this,Es,xm.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ht).onFocus())})),pe(this,ks,df.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ht).onOnline())})))}unmount(){var e,t;xc(this,go)._--,E(this,go)===0&&((e=E(this,Es))==null||e.call(this),pe(this,Es,void 0),(t=E(this,ks))==null||t.call(this),pe(this,ks,void 0))}isFetching(e){return E(this,Ht).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,Po).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,Ht).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=E(this,Ht).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=E(this,Ht).get(r.queryHash),i=o==null?void 0:o.state.data,s=R6(t,i);if(s!==void 0)return E(this,Ht).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return kt.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,Ht).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=E(this,Ht);kt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=E(this,Ht),r={type:"active",...e};return kt.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=kt.batch(()=>E(this,Ht).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Un).catch(Un)}invalidateQueries(e={},t={}){return kt.batch(()=>{if(E(this,Ht).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=kt.batch(()=>E(this,Ht).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Un)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Un)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=E(this,Ht).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Un).catch(Un)}fetchInfiniteQuery(e){return e.behavior=X6(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Un).catch(Un)}resumePausedMutations(){return df.isOnline()?E(this,Po).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Ht)}getMutationCache(){return E(this,Po)}getDefaultOptions(){return E(this,yo)}setDefaultOptions(e){pe(this,yo,e)}setQueryDefaults(e,t){E(this,Ds).set(Ci(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,Ds).values()];let n={};return t.forEach(r=>{Ml(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){E(this,Ts).set(Ci(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,Ts).values()];let n={};return t.forEach(r=>{Ml(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,yo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===wm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,yo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,Ht).clear(),E(this,Po).clear()}},Ht=new WeakMap,Po=new WeakMap,yo=new WeakMap,Ds=new WeakMap,Ts=new WeakMap,go=new WeakMap,Es=new WeakMap,ks=new WeakMap,K8),hn,rt,Jl,sn,ui,js,Sr,Wl,zs,Os,fi,di,bo,Is,pi,Wa,Ql,bv,Kl,wv,Gl,xv,Zl,Sv,Yl,Hv,_l,Cv,$l,Rv,Sf,R1,G8,F6=(G8=class extends aa{constructor(t,n){super();ge(this,pi);ge(this,Ql);ge(this,Kl);ge(this,Gl);ge(this,Zl);ge(this,Yl);ge(this,_l);ge(this,$l);ge(this,Sf);ge(this,hn,void 0);ge(this,rt,void 0);ge(this,Jl,void 0);ge(this,sn,void 0);ge(this,ui,void 0);ge(this,js,void 0);ge(this,Sr,void 0);ge(this,Wl,void 0);ge(this,zs,void 0);ge(this,Os,void 0);ge(this,fi,void 0);ge(this,di,void 0);ge(this,bo,void 0);ge(this,Is,new Set);this.options=n,pe(this,hn,t),pe(this,Sr,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,rt).addObserver(this),Ig(E(this,rt),this.options)?Le(this,pi,Wa).call(this):this.updateResult(),Le(this,Zl,Sv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Dv(E(this,rt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Dv(E(this,rt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Le(this,Yl,Hv).call(this),Le(this,_l,Cv).call(this),E(this,rt).removeObserver(this)}setOptions(t,n){const r=this.options,o=E(this,rt);if(this.options=E(this,hn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");Le(this,$l,Rv).call(this),E(this,rt).setOptions(this.options),r._defaulted&&!ff(this.options,r)&&E(this,hn).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,rt),observer:this});const i=this.hasListeners();i&&Lg(E(this,rt),o,this.options,r)&&Le(this,pi,Wa).call(this),this.updateResult(n),i&&(E(this,rt)!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Le(this,Ql,bv).call(this);const s=Le(this,Kl,wv).call(this);i&&(E(this,rt)!==o||this.options.enabled!==r.enabled||s!==E(this,bo))&&Le(this,Gl,xv).call(this,s)}getOptimisticResult(t){const n=E(this,hn).getQueryCache().build(E(this,hn),t),r=this.createResult(n,t);return J6(this,r)&&(pe(this,sn,r),pe(this,js,this.options),pe(this,ui,E(this,rt).state)),r}getCurrentResult(){return E(this,sn)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){E(this,Is).add(t)}getCurrentQuery(){return E(this,rt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=E(this,hn).defaultQueryOptions(t),r=E(this,hn).getQueryCache().build(E(this,hn),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Le(this,pi,Wa).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,sn)))}createResult(t,n){var H;const r=E(this,rt),o=this.options,i=E(this,sn),s=E(this,ui),a=E(this,js),c=t!==r?t.state:E(this,Jl),{state:u}=t;let f={...u},p=!1,y;if(n._optimisticResults){const R=this.hasListeners(),L=!R&&Ig(t,n),k=R&&Lg(t,r,n,o);(L||k)&&(f={...f,...H1(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:v,errorUpdatedAt:m,status:b}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(s==null?void 0:s.data)&&n.select===E(this,Wl))y=E(this,zs);else try{pe(this,Wl,n.select),y=n.select(f.data),y=gv(i==null?void 0:i.data,y,n),pe(this,zs,y),pe(this,Sr,null)}catch(R){pe(this,Sr,R)}else y=f.data;if(n.placeholderData!==void 0&&y===void 0&&b==="pending"){let R;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))R=i.data;else if(R=typeof n.placeholderData=="function"?n.placeholderData((H=E(this,Os))==null?void 0:H.state.data,E(this,Os)):n.placeholderData,n.select&&R!==void 0)try{R=n.select(R),pe(this,Sr,null)}catch(L){pe(this,Sr,L)}R!==void 0&&(b="success",y=gv(i==null?void 0:i.data,R,n),p=!0)}E(this,Sr)&&(v=E(this,Sr),y=E(this,zs),m=Date.now(),b="error");const A=f.fetchStatus==="fetching",h=b==="pending",P=b==="error",w=h&&A,S=y!==void 0;return{status:b,fetchStatus:f.fetchStatus,isPending:h,isSuccess:b==="success",isError:P,isInitialLoading:w,isLoading:w,data:y,dataUpdatedAt:f.dataUpdatedAt,error:v,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:A,isRefetching:A&&!h,isLoadingError:P&&!S,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:P&&S,isStale:Hm(t,n),refetch:this.refetch}}updateResult(t){const n=E(this,sn),r=this.createResult(E(this,rt),this.options);if(pe(this,ui,E(this,rt).state),pe(this,js,this.options),E(this,ui).data!==void 0&&pe(this,Os,E(this,rt)),ff(r,n))return;pe(this,sn,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!E(this,Is).size)return!0;const l=new Set(a??E(this,Is));return this.options.throwOnError&&l.add("error"),Object.keys(E(this,sn)).some(c=>{const u=c;return E(this,sn)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),Le(this,Sf,R1).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Le(this,Zl,Sv).call(this)}},hn=new WeakMap,rt=new WeakMap,Jl=new WeakMap,sn=new WeakMap,ui=new WeakMap,js=new WeakMap,Sr=new WeakMap,Wl=new WeakMap,zs=new WeakMap,Os=new WeakMap,fi=new WeakMap,di=new WeakMap,bo=new WeakMap,Is=new WeakMap,pi=new WeakSet,Wa=function(t){Le(this,$l,Rv).call(this);let n=E(this,rt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Un)),n},Ql=new WeakSet,bv=function(){if(Le(this,Yl,Hv).call(this),Gs||E(this,sn).isStale||!Pv(this.options.staleTime))return;const n=g1(E(this,sn).dataUpdatedAt,this.options.staleTime)+1;pe(this,fi,setTimeout(()=>{E(this,sn).isStale||this.updateResult()},n))},Kl=new WeakSet,wv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,rt)):this.options.refetchInterval)??!1},Gl=new WeakSet,xv=function(t){Le(this,_l,Cv).call(this),pe(this,bo,t),!(Gs||this.options.enabled===!1||!Pv(E(this,bo))||E(this,bo)===0)&&pe(this,di,setInterval(()=>{(this.options.refetchIntervalInBackground||xm.isFocused())&&Le(this,pi,Wa).call(this)},E(this,bo)))},Zl=new WeakSet,Sv=function(){Le(this,Ql,bv).call(this),Le(this,Gl,xv).call(this,Le(this,Kl,wv).call(this))},Yl=new WeakSet,Hv=function(){E(this,fi)&&(clearTimeout(E(this,fi)),pe(this,fi,void 0))},_l=new WeakSet,Cv=function(){E(this,di)&&(clearInterval(E(this,di)),pe(this,di,void 0))},$l=new WeakSet,Rv=function(){const t=E(this,hn).getQueryCache().build(E(this,hn),this.options);if(t===E(this,rt))return;const n=E(this,rt);pe(this,rt,t),pe(this,Jl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Sf=new WeakSet,R1=function(t){kt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(E(this,sn))}),E(this,hn).getQueryCache().notify({query:E(this,rt),type:"observerResultsUpdated"})})},G8);function q6(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ig(e,t){return q6(e,t)||e.state.data!==void 0&&Dv(e,t,t.refetchOnMount)}function Dv(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Hm(e,t)}return!1}function Lg(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Hm(e,n)}function Hm(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function J6(e,t){return!ff(e.getCurrentResult(),t)}var wo,xo,vn,Wr,Ls,bu,ec,Tv,Z8,W6=(Z8=class extends aa{constructor(n,r){super();ge(this,Ls);ge(this,ec);ge(this,wo,void 0);ge(this,xo,void 0);ge(this,vn,void 0);ge(this,Wr,void 0);pe(this,wo,n),this.setOptions(r),this.bindMethods(),Le(this,Ls,bu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=E(this,wo).defaultMutationOptions(n),ff(this.options,r)||E(this,wo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,vn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ci(r.mutationKey)!==Ci(this.options.mutationKey)?this.reset():((o=E(this,vn))==null?void 0:o.state.status)==="pending"&&E(this,vn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=E(this,vn))==null||n.removeObserver(this)}onMutationUpdate(n){Le(this,Ls,bu).call(this),Le(this,ec,Tv).call(this,n)}getCurrentResult(){return E(this,xo)}reset(){var n;(n=E(this,vn))==null||n.removeObserver(this),pe(this,vn,void 0),Le(this,Ls,bu).call(this),Le(this,ec,Tv).call(this)}mutate(n,r){var o;return pe(this,Wr,r),(o=E(this,vn))==null||o.removeObserver(this),pe(this,vn,E(this,wo).getMutationCache().build(E(this,wo),this.options)),E(this,vn).addObserver(this),E(this,vn).execute(n)}},wo=new WeakMap,xo=new WeakMap,vn=new WeakMap,Wr=new WeakMap,Ls=new WeakSet,bu=function(){var r;const n=((r=E(this,vn))==null?void 0:r.state)??C1();pe(this,xo,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},ec=new WeakSet,Tv=function(n){kt.batch(()=>{var r,o,i,s,a,l,c,u;if(E(this,Wr)&&this.hasListeners()){const f=E(this,xo).variables,p=E(this,xo).context;(n==null?void 0:n.type)==="success"?((o=(r=E(this,Wr)).onSuccess)==null||o.call(r,n.data,f,p),(s=(i=E(this,Wr)).onSettled)==null||s.call(i,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((l=(a=E(this,Wr)).onError)==null||l.call(a,n.error,f,p),(u=(c=E(this,Wr)).onSettled)==null||u.call(c,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(E(this,xo))})})},Z8),D1=g.createContext(void 0),zd=e=>{const t=g.useContext(D1);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Q6=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(D1.Provider,{value:e,children:t})),T1=g.createContext(!1),K6=()=>g.useContext(T1);T1.Provider;function G6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Z6=g.createContext(G6()),Y6=()=>g.useContext(Z6);function E1(e,t){return typeof e=="function"?e(...t):!!e}function _6(){}var $6=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},ez=e=>{g.useEffect(()=>{e.clearReset()},[e])},tz=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&E1(n,[e.error,r]),nz=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},rz=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,oz=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function iz(e,t,n){const r=zd(n),o=K6(),i=Y6(),s=r.defaultQueryOptions(e);s._optimisticResults=o?"isRestoring":"optimistic",nz(s),$6(s,i),ez(i);const[a]=g.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(g.useSyncExternalStore(g.useCallback(c=>{const u=o?()=>{}:a.subscribe(kt.batchCalls(c));return a.updateResult(),u},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),g.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),rz(s,l))throw oz(s,a,i);if(tz({result:l,errorResetBoundary:i,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:a.trackResult(l)}function Er(e,t){return iz(e,F6,t)}function Zs(e,t){const n=zd(t),[r]=g.useState(()=>new W6(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const o=g.useSyncExternalStore(g.useCallback(s=>r.subscribe(kt.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=g.useCallback((s,a)=>{r.mutate(s,a).catch(_6)},[r]);if(o.error&&E1(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}var Ev={},Bg=Rd;Ev.createRoot=Bg.createRoot,Ev.hydrateRoot=Bg.hydrateRoot;/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -135,7 +135,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Cw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Mj(){return Math.random().toString(36).substr(2,8)}function T1(e,t){return{usr:e.state,key:e.key,idx:t}}function Cm(e,t,n,r){return n===void 0&&(n=null),Ol({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ia(t):t,{state:n,key:t&&t.key||r||Mj()})}function ww(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ia(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Lj(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Eo.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Ol({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=Eo.Pop;let C=u(),v=C==null?null:C-c;c=C,l&&l({action:a,location:g.location,delta:v})}function f(C,v){a=Eo.Push;let h=Cm(g.location,C,v);n&&n(h,C),c=u()+1;let y=T1(h,c),S=g.createHref(h);try{s.pushState(y,"",S)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(S)}i&&l&&l({action:a,location:g.location,delta:1})}function b(C,v){a=Eo.Replace;let h=Cm(g.location,C,v);n&&n(h,C),c=u();let y=T1(h,c),S=g.createHref(h);s.replaceState(y,"",S),i&&l&&l({action:a,location:g.location,delta:0})}function m(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof C=="string"?C:ww(C);return h=h.replace(/ $/,"%20"),Nt(v,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,v)}let g={get action(){return a},get location(){return e(o,s)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(k1,d),l=C,()=>{o.removeEventListener(k1,d),l=null}},createHref(C){return t(o,C)},createURL:m,encodeLocation(C){let v=m(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:b,go(C){return s.go(C)}};return g}var A1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(A1||(A1={}));function Fj(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ia(t):t,o=_w(r.pathname||"/",n);if(o==null)return null;let i=Rw(e);Dj(i);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Nt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=mi([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Nt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Rw(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Hj(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Ew(i.path))o(i,s,l)}),t}function Ew(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Ew(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Dj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Kj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const jj=/^:[\w-]+$/,Bj=3,zj=2,Uj=1,Vj=10,Wj=-2,$1=e=>e==="*";function Hj(e,t){let n=e.split("/"),r=n.length;return n.some($1)&&(r+=Wj),t&&(r+=zj),n.filter(o=>!$1(o)).reduce((o,i)=>o+(jj.test(i)?Bj:i===""?Uj:Vj),r)}function Kj(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function qj(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:f,isOptional:b}=u;if(f==="*"){let g=a[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=a[d];return b&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function Qj(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Cw(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Xj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cw(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _w(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Yj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ia(e):e;return{pathname:n?n.startsWith("/")?n:Zj(n,t):t,search:r5(r),hash:o5(o)}}function Zj(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function zp(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Jj(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function e5(e,t){let n=Jj(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function t5(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ia(e):(o=Ol({},e),Nt(!o.pathname||!o.pathname.includes("?"),zp("?","pathname","search",o)),Nt(!o.pathname||!o.pathname.includes("#"),zp("#","pathname","hash",o)),Nt(!o.search||!o.search.includes("#"),zp("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=Yj(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const mi=e=>e.join("/").replace(/\/\/+/g,"/"),n5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),r5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,o5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function i5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const kw=["post","put","patch","delete"];new Set(kw);const s5=["get",...kw];new Set(s5);/** + */function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function k1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function az(){return Math.random().toString(36).substr(2,8)}function Ng(e,t){return{usr:e.state,key:e.key,idx:t}}function kv(e,t,n,r){return n===void 0&&(n=null),Nl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?la(t):t,{state:n,key:t&&t.key||r||az()})}function j1(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function la(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function lz(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Co.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Nl({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function f(){a=Co.Pop;let b=u(),A=b==null?null:b-c;c=b,l&&l({action:a,location:m.location,delta:A})}function p(b,A){a=Co.Push;let h=kv(m.location,b,A);n&&n(h,b),c=u()+1;let P=Ng(h,c),w=m.createHref(h);try{s.pushState(P,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(w)}i&&l&&l({action:a,location:m.location,delta:1})}function y(b,A){a=Co.Replace;let h=kv(m.location,b,A);n&&n(h,b),c=u();let P=Ng(h,c),w=m.createHref(h);s.replaceState(P,"",w),i&&l&&l({action:a,location:m.location,delta:0})}function v(b){let A=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof b=="string"?b:j1(b);return h=h.replace(/ $/,"%20"),zt(A,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,A)}let m={get action(){return a},get location(){return e(o,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Mg,f),l=b,()=>{o.removeEventListener(Mg,f),l=null}},createHref(b){return t(o,b)},createURL:v,encodeLocation(b){let A=v(b);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:p,replace:y,go(b){return s.go(b)}};return m}var Xg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Xg||(Xg={}));function cz(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?la(t):t,o=I1(r.pathname||"/",n);if(o==null)return null;let i=z1(e);uz(i);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(zt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=mi([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(zt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),z1(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:mz(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of O1(i.path))o(i,s,l)}),t}function O1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=O1(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function uz(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Pz(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fz=/^:[\w-]+$/,dz=3,pz=2,hz=1,vz=10,Az=-2,Ug=e=>e==="*";function mz(e,t){let n=e.split("/"),r=n.length;return n.some(Ug)&&(r+=Az),t&&(r+=pz),n.filter(o=>!Ug(o)).reduce((o,i)=>o+(fz.test(i)?dz:i===""?hz:vz),r)}function Pz(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function yz(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:y}=u;if(p==="*"){let m=a[f]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const v=a[f];return y&&!v?c[p]=void 0:c[p]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function bz(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),k1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function wz(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return k1(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function I1(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function xz(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?la(e):e;return{pathname:n?n.startsWith("/")?n:Sz(n,t):t,search:Tz(r),hash:Ez(o)}}function Sz(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Gp(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Hz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cz(e,t){let n=Hz(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Rz(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=la(e):(o=Nl({},e),zt(!o.pathname||!o.pathname.includes("?"),Gp("?","pathname","search",o)),zt(!o.pathname||!o.pathname.includes("#"),Gp("#","pathname","hash",o)),zt(!o.search||!o.search.includes("#"),Gp("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}a=f>=0?t[f]:"/"}let l=xz(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const mi=e=>e.join("/").replace(/\/\/+/g,"/"),Dz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Tz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ez=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const L1=["post","put","patch","delete"];new Set(L1);const jz=["get",...L1];new Set(jz);/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -144,7 +144,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),x.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=t5(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:mi([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function c5(e,t){return u5(e,t)}function u5(e,t,n,r){Af()||Nt(!1);let{navigator:o}=x.useContext(kf),{matches:i}=x.useContext(sa),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=gg(),u;if(t){var d;let C=typeof t=="string"?ia(t):t;l==="/"||(d=C.pathname)!=null&&d.startsWith(l)||Nt(!1),u=C}else u=c;let f=u.pathname||"/",b=f;if(l!=="/"){let C=l.replace(/^\//,"").split("/");b="/"+f.replace(/^\//,"").split("/").slice(C.length).join("/")}let m=Fj(e,{pathname:b}),g=m5(m&&m.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:mi([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:mi([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&g?x.createElement(Tf.Provider,{value:{location:Ml({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Eo.Pop}},g):g}function d5(){let e=b5(),t=i5(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const f5=x.createElement(d5,null);class p5 extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(sa.Provider,{value:this.props.routeContext},x.createElement(Tw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function h5(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(vg);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(sa.Provider,{value:t},r)}function m5(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));u>=0||Nt(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let b,m=!1,g=null,C=null;n&&(b=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||f5,l&&(c<0&&f===0?(S5("route-fallback",!1),m=!0,C=null):c===f&&(m=!0,C=d.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,f+1)),h=()=>{let y;return b?y=g:m?y=C:d.route.Component?y=x.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=u,x.createElement(h5,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:y})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?x.createElement(p5,{location:n.location,revalidation:n.revalidation,component:g,error:b,children:h(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):h()},null)}var $w=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($w||{}),id=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(id||{});function v5(e){let t=x.useContext(vg);return t||Nt(!1),t}function g5(e){let t=x.useContext(a5);return t||Nt(!1),t}function y5(e){let t=x.useContext(sa);return t||Nt(!1),t}function Pw(e){let t=y5(),n=t.matches[t.matches.length-1];return n.route.id||Nt(!1),n.route.id}function b5(){var e;let t=x.useContext(Tw),n=g5(id.UseRouteError),r=Pw(id.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function x5(){let{router:e}=v5($w.UseNavigateStable),t=Pw(id.UseNavigateStable),n=x.useRef(!1);return Aw(()=>{n.current=!0}),x.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ml({fromRouteId:t},i)))},[e,t])}const P1={};function S5(e,t,n){!t&&!P1[e]&&(P1[e]=!0)}function Gi(e){Nt(!1)}function C5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Eo.Pop,navigator:i,static:s=!1,future:a}=e;Af()&&Nt(!1);let l=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:l,navigator:i,static:s,future:Ml({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=ia(r));let{pathname:u="/",search:d="",hash:f="",state:b=null,key:m="default"}=r,g=x.useMemo(()=>{let C=_w(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:b,key:m},navigationType:o}},[l,u,d,f,b,m,o]);return g==null?null:x.createElement(kf.Provider,{value:c},x.createElement(Tf.Provider,{children:n,value:g}))}function w5(e){let{children:t,location:n}=e;return c5(wm(t),n)}new Promise(()=>{});function wm(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let i=[...t,o];if(r.type===x.Fragment){n.push.apply(n,wm(r.props.children,i));return}r.type!==Gi&&Nt(!1),!r.props.index||!r.props.children||Nt(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=wm(r.props.children,i)),n.push(s)}),n}/** + */function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),g.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Rz(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:mi([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,s,i,e])}function Iz(e,t){return Lz(e,t)}function Lz(e,t,n,r){Ld()||zt(!1);let{navigator:o}=g.useContext(Od),{matches:i}=g.useContext(ca),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=Rm(),u;if(t){var f;let b=typeof t=="string"?la(t):t;l==="/"||(f=b.pathname)!=null&&f.startsWith(l)||zt(!1),u=b}else u=c;let p=u.pathname||"/",y=p;if(l!=="/"){let b=l.replace(/^\//,"").split("/");y="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=cz(e,{pathname:y}),m=Uz(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:mi([l,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:mi([l,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&m?g.createElement(Id.Provider,{value:{location:Xl({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Co.Pop}},m):m}function Bz(){let e=Jz(),t=kz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:o},n):null,null)}const Mz=g.createElement(Bz,null);class Nz extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?g.createElement(ca.Provider,{value:this.props.routeContext},g.createElement(B1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xz(e){let{routeContext:t,match:n,children:r}=e,o=g.useContext(Cm);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(ca.Provider,{value:t},r)}function Uz(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id]));u>=0||zt(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,f,p)=>{let y,v=!1,m=null,b=null;n&&(y=a&&f.route.id?a[f.route.id]:void 0,m=f.route.errorElement||Mz,l&&(c<0&&p===0?(Qz("route-fallback",!1),v=!0,b=null):c===p&&(v=!0,b=f.route.hydrateFallbackElement||null)));let A=t.concat(s.slice(0,p+1)),h=()=>{let P;return y?P=m:v?P=b:f.route.Component?P=g.createElement(f.route.Component,null):f.route.element?P=f.route.element:P=u,g.createElement(Xz,{match:f,routeContext:{outlet:u,matches:A,isDataRoute:n!=null},children:P})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?g.createElement(Nz,{location:n.location,revalidation:n.revalidation,component:m,error:y,children:h(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):h()},null)}var N1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N1||{}),pf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(pf||{});function Vz(e){let t=g.useContext(Cm);return t||zt(!1),t}function Fz(e){let t=g.useContext(zz);return t||zt(!1),t}function qz(e){let t=g.useContext(ca);return t||zt(!1),t}function X1(e){let t=qz(),n=t.matches[t.matches.length-1];return n.route.id||zt(!1),n.route.id}function Jz(){var e;let t=g.useContext(B1),n=Fz(pf.UseRouteError),r=X1(pf.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Wz(){let{router:e}=Vz(N1.UseNavigateStable),t=X1(pf.UseNavigateStable),n=g.useRef(!1);return M1(()=>{n.current=!0}),g.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Xl({fromRouteId:t},i)))},[e,t])}const Vg={};function Qz(e,t,n){!t&&!Vg[e]&&(Vg[e]=!0)}function Zi(e){zt(!1)}function Kz(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Co.Pop,navigator:i,static:s=!1,future:a}=e;Ld()&&zt(!1);let l=t.replace(/^\/*/,"/"),c=g.useMemo(()=>({basename:l,navigator:i,static:s,future:Xl({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=la(r));let{pathname:u="/",search:f="",hash:p="",state:y=null,key:v="default"}=r,m=g.useMemo(()=>{let b=I1(u,l);return b==null?null:{location:{pathname:b,search:f,hash:p,state:y,key:v},navigationType:o}},[l,u,f,p,y,v,o]);return m==null?null:g.createElement(Od.Provider,{value:c},g.createElement(Id.Provider,{children:n,value:m}))}function Gz(e){let{children:t,location:n}=e;return Iz(jv(t),n)}new Promise(()=>{});function jv(e,t){t===void 0&&(t=[]);let n=[];return g.Children.forEach(e,(r,o)=>{if(!g.isValidElement(r))return;let i=[...t,o];if(r.type===g.Fragment){n.push.apply(n,jv(r.props.children,i));return}r.type!==Zi&&zt(!1),!r.props.index||!r.props.children||zt(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=jv(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -153,15 +153,15 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Rm(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function R5(e,t){let n=Rm(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const E5="6";try{window.__reactRouterVersion=E5}catch{}const _5="startTransition",N1=wu[_5];function k5(e){let{basename:t,children:n,future:r,window:o}=e,i=x.useRef();i.current==null&&(i.current=Oj({window:o,v5Compat:!0}));let s=i.current,[a,l]=x.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=x.useCallback(d=>{c&&N1?N1(()=>l(d)):l(d)},[l,c]);return x.useLayoutEffect(()=>s.listen(u),[s,u]),x.createElement(C5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var I1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(I1||(I1={}));var O1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(O1||(O1={}));function Nw(e){let t=x.useRef(Rm(e)),n=x.useRef(!1),r=gg(),o=x.useMemo(()=>R5(r.search,n.current?null:t.current),[r.search]),i=yg(),s=x.useCallback((a,l)=>{const c=Rm(typeof a=="function"?a(o):a);n.current=!0,i("?"+c,l)},[i,o]);return[o,s]}var Iw={};function T5(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var A5=T5,Fe=A5;function $5(e){return!!e&&typeof e.then=="function"}var st=$5;function P5(e,t){if(e!=null)return e;throw Fe(t??"Got unexpected null or undefined")}var dt=P5;function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class $f{getValue(){throw Fe("BaseLoadable")}toPromise(){throw Fe("BaseLoadable")}valueMaybe(){throw Fe("BaseLoadable")}valueOrThrow(){throw Fe(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Fe("BaseLoadable")}promiseOrThrow(){throw Fe(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Fe("BaseLoadable")}errorOrThrow(){throw Fe(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Fe("BaseLoadable")}}class N5 extends $f{constructor(t){super(),Me(this,"state","hasValue"),Me(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return st(n)?Ei(n):Gs(n)?n:sc(n)}catch(n){return st(n)?Ei(n.next(()=>this.map(t))):Pf(n)}}}class I5 extends $f{constructor(t){super(),Me(this,"state","hasError"),Me(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class Ow extends $f{constructor(t){super(),Me(this,"state","loading"),Me(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return Ei(this.contents.then(n=>{const r=t(n);if(Gs(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(st(n))return n.then(()=>this.map(t).contents);throw n}))}}function sc(e){return Object.freeze(new N5(e))}function Pf(e){return Object.freeze(new I5(e))}function Ei(e){return Object.freeze(new Ow(e))}function Mw(){return Object.freeze(new Ow(new Promise(()=>{})))}function O5(e){return e.every(t=>t.state==="hasValue")?sc(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Pf(dt(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Ei(Promise.all(e.map(t=>t.contents)))}function Lw(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>Gs(o)?o:st(o)?Ei(o):sc(o)),r=O5(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,s,a)=>({...i,[s]:o[a]}),{}))}function Gs(e){return e instanceof $f}const M5={of:e=>st(e)?Ei(e):Gs(e)?e:sc(e),error:e=>Pf(e),loading:()=>Mw(),all:Lw,isLoadable:Gs};var $i={loadableWithValue:sc,loadableWithError:Pf,loadableWithPromise:Ei,loadableLoading:Mw,loadableAll:Lw,isLoadable:Gs,RecoilLoadable:M5},L5=$i.loadableWithValue,F5=$i.loadableWithError,D5=$i.loadableWithPromise,j5=$i.loadableLoading,B5=$i.loadableAll,z5=$i.isLoadable,U5=$i.RecoilLoadable,ac=Object.freeze({__proto__:null,loadableWithValue:L5,loadableWithError:F5,loadableWithPromise:D5,loadableLoading:j5,loadableAll:B5,isLoadable:z5,RecoilLoadable:U5});const Em={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function V5(e,t){var n,r;const o=(n=Iw[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw Fe(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function W5(e,t){var n;const r=(n=Iw[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function H5(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(V5("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{Em.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),W5("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{Em.RECOIL_GKS_ENABLED.add(n)})}))}H5();var aa=Em;function Nf(e){return aa.RECOIL_GKS_ENABLED.has(e)}Nf.setPass=e=>{aa.RECOIL_GKS_ENABLED.add(e)};Nf.setFail=e=>{aa.RECOIL_GKS_ENABLED.delete(e)};Nf.clear=()=>{aa.RECOIL_GKS_ENABLED.clear()};var tt=Nf;function K5(e,t,{error:n}={}){return null}var q5=K5,bg=q5,Up,Vp,Wp;const G5=(Up=ge.createMutableSource)!==null&&Up!==void 0?Up:ge.unstable_createMutableSource,Fw=(Vp=ge.useMutableSource)!==null&&Vp!==void 0?Vp:ge.unstable_useMutableSource,Dw=(Wp=ge.useSyncExternalStore)!==null&&Wp!==void 0?Wp:ge.unstable_useSyncExternalStore;function Q5(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function X5(){return tt("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:tt("recoil_sync_external_store")&&Dw!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:tt("recoil_mutable_source")&&Fw!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?tt("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:tt("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function Y5(){return!1}var lc={createMutableSource:G5,useMutableSource:Fw,useSyncExternalStore:Dw,currentRendererSupportsUseSyncExternalStore:Q5,reactMode:X5,isFastRefreshEnabled:Y5};class xg{constructor(t){Me(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class jw extends xg{}class Bw extends xg{}function Z5(e){return e instanceof jw||e instanceof Bw}var If={AbstractRecoilValue:xg,RecoilState:jw,RecoilValueReadOnly:Bw,isRecoilValue:Z5},J5=If.AbstractRecoilValue,e4=If.RecoilState,t4=If.RecoilValueReadOnly,n4=If.isRecoilValue,Qs=Object.freeze({__proto__:null,AbstractRecoilValue:J5,RecoilState:e4,RecoilValueReadOnly:t4,isRecoilValue:n4});function r4(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var Of=r4;class zw{}const o4=new zw,_i=new Map,Sg=new Map;function i4(e){return Of(e,t=>dt(Sg.get(t)))}function s4(e){if(_i.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in + */function zv(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Zz(e,t){let n=zv(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const Yz="6";try{window.__reactRouterVersion=Yz}catch{}const _z="startTransition",Fg=Tu[_z];function $z(e){let{basename:t,children:n,future:r,window:o}=e,i=g.useRef();i.current==null&&(i.current=sz({window:o,v5Compat:!0}));let s=i.current,[a,l]=g.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=g.useCallback(f=>{c&&Fg?Fg(()=>l(f)):l(f)},[l,c]);return g.useLayoutEffect(()=>s.listen(u),[s,u]),g.createElement(Kz,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var qg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qg||(qg={}));var Jg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Jg||(Jg={}));function U1(e){let t=g.useRef(zv(e)),n=g.useRef(!1),r=Rm(),o=g.useMemo(()=>Zz(r.search,n.current?null:t.current),[r.search]),i=Dm(),s=g.useCallback((a,l)=>{const c=zv(typeof a=="function"?a(o):a);n.current=!0,i("?"+c,l)},[i,o]);return[o,s]}var V1={};function eO(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var tO=eO,Be=tO;function nO(e){return!!e&&typeof e.then=="function"}var at=nO;function rO(e,t){if(e!=null)return e;throw Be(t??"Got unexpected null or undefined")}var pt=rO;function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Bd{getValue(){throw Be("BaseLoadable")}toPromise(){throw Be("BaseLoadable")}valueMaybe(){throw Be("BaseLoadable")}valueOrThrow(){throw Be(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Be("BaseLoadable")}promiseOrThrow(){throw Be(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Be("BaseLoadable")}errorOrThrow(){throw Be(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Be("BaseLoadable")}}class oO extends Bd{constructor(t){super(),Ie(this,"state","hasValue"),Ie(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return at(n)?Ri(n):Ys(n)?n:fc(n)}catch(n){return at(n)?Ri(n.next(()=>this.map(t))):Md(n)}}}class iO extends Bd{constructor(t){super(),Ie(this,"state","hasError"),Ie(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class F1 extends Bd{constructor(t){super(),Ie(this,"state","loading"),Ie(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return Ri(this.contents.then(n=>{const r=t(n);if(Ys(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(at(n))return n.then(()=>this.map(t).contents);throw n}))}}function fc(e){return Object.freeze(new oO(e))}function Md(e){return Object.freeze(new iO(e))}function Ri(e){return Object.freeze(new F1(e))}function q1(){return Object.freeze(new F1(new Promise(()=>{})))}function sO(e){return e.every(t=>t.state==="hasValue")?fc(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Md(pt(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Ri(Promise.all(e.map(t=>t.contents)))}function J1(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>Ys(o)?o:at(o)?Ri(o):fc(o)),r=sO(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,s,a)=>({...i,[s]:o[a]}),{}))}function Ys(e){return e instanceof Bd}const aO={of:e=>at(e)?Ri(e):Ys(e)?e:fc(e),error:e=>Md(e),loading:()=>q1(),all:J1,isLoadable:Ys};var ji={loadableWithValue:fc,loadableWithError:Md,loadableWithPromise:Ri,loadableLoading:q1,loadableAll:J1,isLoadable:Ys,RecoilLoadable:aO},lO=ji.loadableWithValue,cO=ji.loadableWithError,uO=ji.loadableWithPromise,fO=ji.loadableLoading,dO=ji.loadableAll,pO=ji.isLoadable,hO=ji.RecoilLoadable,dc=Object.freeze({__proto__:null,loadableWithValue:lO,loadableWithError:cO,loadableWithPromise:uO,loadableLoading:fO,loadableAll:dO,isLoadable:pO,RecoilLoadable:hO});const Ov={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function vO(e,t){var n,r;const o=(n=V1[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw Be(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function AO(e,t){var n;const r=(n=V1[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function mO(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(vO("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{Ov.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),AO("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{Ov.RECOIL_GKS_ENABLED.add(n)})}))}mO();var ua=Ov;function Nd(e){return ua.RECOIL_GKS_ENABLED.has(e)}Nd.setPass=e=>{ua.RECOIL_GKS_ENABLED.add(e)};Nd.setFail=e=>{ua.RECOIL_GKS_ENABLED.delete(e)};Nd.clear=()=>{ua.RECOIL_GKS_ENABLED.clear()};var nt=Nd;function PO(e,t,{error:n}={}){return null}var yO=PO,Tm=yO,Zp,Yp,_p;const gO=(Zp=ve.createMutableSource)!==null&&Zp!==void 0?Zp:ve.unstable_createMutableSource,W1=(Yp=ve.useMutableSource)!==null&&Yp!==void 0?Yp:ve.unstable_useMutableSource,Q1=(_p=ve.useSyncExternalStore)!==null&&_p!==void 0?_p:ve.unstable_useSyncExternalStore;function bO(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function wO(){return nt("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:nt("recoil_sync_external_store")&&Q1!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:nt("recoil_mutable_source")&&W1!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?nt("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:nt("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function xO(){return!1}var pc={createMutableSource:gO,useMutableSource:W1,useSyncExternalStore:Q1,currentRendererSupportsUseSyncExternalStore:bO,reactMode:wO,isFastRefreshEnabled:xO};class Em{constructor(t){Ie(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class K1 extends Em{}class G1 extends Em{}function SO(e){return e instanceof K1||e instanceof G1}var Xd={AbstractRecoilValue:Em,RecoilState:K1,RecoilValueReadOnly:G1,isRecoilValue:SO},HO=Xd.AbstractRecoilValue,CO=Xd.RecoilState,RO=Xd.RecoilValueReadOnly,DO=Xd.isRecoilValue,_s=Object.freeze({__proto__:null,AbstractRecoilValue:HO,RecoilState:CO,RecoilValueReadOnly:RO,isRecoilValue:DO});function TO(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var Ud=TO;class Z1{}const EO=new Z1,Di=new Map,km=new Map;function kO(e){return Ud(e,t=>pt(km.get(t)))}function jO(e){if(Di.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in production. But it is safe to ignore this warning if it occurred because of - hot module replacement.`;console.warn(t)}}function a4(e){aa.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&s4(e.key),_i.set(e.key,e);const t=e.set==null?new Qs.RecoilValueReadOnly(e.key):new Qs.RecoilState(e.key);return Sg.set(e.key,t),t}class Uw extends Error{}function l4(e){const t=_i.get(e);if(t==null)throw new Uw(`Missing definition for RecoilValue: "${e}""`);return t}function c4(e){return _i.get(e)}const sd=new Map;function u4(e){var t;if(!tt("recoil_memory_managament_2020"))return;const n=_i.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;_i.delete(e),(r=Vw(e))===null||r===void 0||r(),sd.delete(e)}}function d4(e,t){tt("recoil_memory_managament_2020")&&(t===void 0?sd.delete(e):sd.set(e,t))}function Vw(e){return sd.get(e)}var wn={nodes:_i,recoilValues:Sg,registerNode:a4,getNode:l4,getNodeMaybe:c4,deleteNodeConfigIfPossible:u4,setConfigDeletionHandler:d4,getConfigDeletionHandler:Vw,recoilValuesForKeys:i4,NodeMissingError:Uw,DefaultValue:zw,DEFAULT_VALUE:o4};function f4(e,t){t()}var p4={enqueueExecution:f4};function h4(e,t){return t={exports:{}},e(t,t.exports),t.exports}var m4=h4(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},n={},r=5,o=Math.pow(2,r),i=o-1,s=o/2,a=o/4,l={},c=function(N){return function(){return N}},u=n.hash=function(O){var N=typeof O>"u"?"undefined":t(O);if(N==="number")return O;N!=="string"&&(O+="");for(var J=0,de=0,fe=O.length;de>1&1431655765,N=(N&858993459)+(N>>2&858993459),N=N+(N>>4)&252645135,N+=N>>8,N+=N>>16,N&127},f=function(N,J){return J>>>N&i},b=function(N){return 1<=J;)fe[Ae--]=fe[Ae];return fe[J]=de,fe}for(var Ee=0,_e=0,De=new Array(me+1);Ee>>=1;return Ae[J]=de,V(N,_e+1,Ae)},U=function(N,J,de,fe){for(var me=new Array(J-1),Ae=0,Ee=0,_e=0,De=fe.length;_e1?F(N,this.hash,De):De[0]}var lt=fe();return lt===l?this:(++Ee.value,H(N,de,this.hash,this,me,k(N,me,Ae,lt)))},L=function(N,J,de,fe,me,Ae,Ee){var _e=this.mask,De=this.children,lt=f(de,me),cn=b(lt),Ot=m(_e,cn),Fn=_e&cn,nr=Fn?De[Ot]:_,Ii=nr._modify(N,J,de+r,fe,me,Ae,Ee);if(nr===Ii)return this;var gc=X(N,this),fa=_e,pa=void 0;if(Fn&&E(Ii)){if(fa&=~cn,!fa)return _;if(De.length<=2&&z(De[Ot^1]))return De[Ot^1];pa=C(gc,Ot,De)}else if(!Fn&&!E(Ii)){if(De.length>=s)return j(N,lt,Ii,_e,De);fa|=cn,pa=v(gc,Ot,Ii,De)}else pa=g(gc,Ot,Ii,De);return gc?(this.mask=fa,this.children=pa,this):P(N,fa,pa)},Q=function(N,J,de,fe,me,Ae,Ee){var _e=this.size,De=this.children,lt=f(de,me),cn=De[lt],Ot=(cn||_)._modify(N,J,de+r,fe,me,Ae,Ee);if(cn===Ot)return this;var Fn=X(N,this),nr=void 0;if(E(cn)&&!E(Ot))++_e,nr=g(Fn,lt,Ot,De);else if(!E(cn)&&E(Ot)){if(--_e,_e<=a)return U(N,_e,lt,De);nr=g(Fn,lt,_,De)}else nr=g(Fn,lt,Ot,De);return Fn?(this.size=_e,this.children=nr,this):V(N,_e,nr)};_._modify=function(O,N,J,de,fe,me,Ae){var Ee=de();return Ee===l?_:(++Ae.value,k(O,fe,me,Ee))};function A(O,N,J,de,fe){this._editable=O,this._edit=N,this._config=J,this._root=de,this._size=fe}A.prototype.setTree=function(O,N){return this._editable?(this._root=O,this._size=N,this):O===this._root?this:new A(this._editable,this._edit,this._config,O,N)};var K=n.tryGetHash=function(O,N,J,de){for(var fe=de._root,me=0,Ae=de._config.keyEq;;)switch(fe.type){case h:return Ae(J,fe.key)?fe.value:O;case y:{if(N===fe.hash)for(var Ee=fe.children,_e=0,De=Ee.length;_e{n.set(o,t(r,o))}),n}var ad=S4;function C4(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function w4(e){return{nodeDeps:ad(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:ad(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Hp(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:i}=n,s=o.get(e);if(s&&r&&s!==r.nodeDeps.get(e))return;o.set(e,t);const a=s==null?t:sl(t,s);for(const l of a)i.has(l)||i.set(l,new Set),dt(i.get(l)).add(e);if(s){const l=sl(s,t);for(const c of l){if(!i.has(c))return;const u=dt(i.get(c));u.delete(e),u.size===0&&i.delete(c)}}}function R4(e,t,n,r){var o,i,s,a;const l=n.getState();r===l.currentTree.version||r===((o=l.nextTree)===null||o===void 0?void 0:o.version)||((i=l.previousTree)===null||i===void 0||i.version);const c=n.getGraph(r);if(Hp(e,t,c),r===((s=l.previousTree)===null||s===void 0?void 0:s.version)){const d=n.getGraph(l.currentTree.version);Hp(e,t,d,c)}if(r===((a=l.previousTree)===null||a===void 0?void 0:a.version)||r===l.currentTree.version){var u;const d=(u=l.nextTree)===null||u===void 0?void 0:u.version;if(d!==void 0){const f=n.getGraph(d);Hp(e,t,f,c)}}}var cc={cloneGraph:w4,graph:C4,saveDepsToStore:R4};let E4=0;const _4=()=>E4++;let k4=0;const T4=()=>k4++;let A4=0;const $4=()=>A4++;var Mf={getNextTreeStateVersion:_4,getNextStoreID:T4,getNextComponentID:$4};const{persistentMap:M1}=b4,{graph:P4}=cc,{getNextTreeStateVersion:Ww}=Mf;function Hw(){const e=Ww();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:M1(),nonvalidatedAtoms:M1()}}function N4(){const e=Hw();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,P4()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var Kw={makeEmptyTreeState:Hw,makeEmptyStoreState:N4,getNextTreeStateVersion:Ww};class qw{}function I4(){return new qw}var Lf={RetentionZone:qw,retentionZone:I4};function O4(e,t){const n=new Set(e);return n.add(t),n}function M4(e,t){const n=new Set(e);return n.delete(t),n}function L4(e,t,n){const r=new Map(e);return r.set(t,n),r}function F4(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function D4(e,t){const n=new Map(e);return n.delete(t),n}function j4(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var Gw={setByAddingToSet:O4,setByDeletingFromSet:M4,mapBySettingInMap:L4,mapByUpdatingInMap:F4,mapByDeletingFromMap:D4,mapByDeletingMultipleFromMap:j4};function*B4(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var Rg=B4;function z4(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var Qw=z4;const{getNode:uc,getNodeMaybe:U4,recoilValuesForKeys:L1}=wn,{RetentionZone:F1}=Lf,{setByAddingToSet:V4}=Gw,W4=Object.freeze(new Set);class H4 extends Error{}function K4(e,t,n){if(!tt("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(i){let s=r.get(i);s||r.set(i,s=new Set),s.add(t)}if(n instanceof F1)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!tt("recoil_memory_managament_2020"))return;const{retention:i}=e.getState();function s(a){const l=i.nodesRetainedByZone.get(a);l==null||l.delete(t),l&&l.size===0&&i.nodesRetainedByZone.delete(a)}if(n instanceof F1)s(n);else if(Array.isArray(n))for(const a of n)s(a)}}function Eg(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=uc(n),s=K4(e,n,i.retainedBy),a=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{a(),s()})}function q4(e,t,n){Eg(e,e.getState().currentTree,t,n)}function G4(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function Q4(e,t,n){return Eg(e,t,n,"get"),uc(n).get(e,t)}function Xw(e,t,n){return uc(n).peek(e,t)}function X4(e,t,n){var r;const o=U4(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:V4(e.dirtyAtoms,t)}}function Y4(e,t,n,r){const o=uc(n);if(o.set==null)throw new H4(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return Eg(e,t,n,"set"),i(e,t,r)}function Z4(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=uc(n).nodeType;return Qw({type:i},{loadable:()=>Xw(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>i==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var s;return L1((s=o.nodeDeps.get(n))!==null&&s!==void 0?s:[])},subscribers:()=>{var s,a;return{nodes:L1(Rg(Yw(e,t,new Set([n])),l=>l!==n)),components:Of((s=(a=r.nodeToComponentSubscriptions.get(n))===null||a===void 0?void 0:a.values())!==null&&s!==void 0?s:[],([l])=>({name:l}))}}})}function Yw(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let a=o.pop();a;a=o.pop()){var s;r.add(a);const l=(s=i.nodeToNodeSubscriptions.get(a))!==null&&s!==void 0?s:W4;for(const c of l)r.has(c)||o.push(c)}return r}var Wo={getNodeLoadable:Q4,peekNodeLoadable:Xw,setNodeValue:Y4,initializeNode:q4,cleanUpNode:G4,setUnvalidatedAtomValue_DEPRECATED:X4,peekNodeInfo:Z4,getDownstreamNodes:Yw};let Zw=null;function J4(e){Zw=e}function e3(){var e;(e=Zw)===null||e===void 0||e()}var Jw={setInvalidateMemoizedSnapshot:J4,invalidateMemoizedSnapshot:e3};const{getDownstreamNodes:t3,getNodeLoadable:eR,setNodeValue:n3}=Wo,{getNextComponentID:r3}=Mf,{getNode:o3,getNodeMaybe:tR}=wn,{DefaultValue:_g}=wn,{reactMode:i3}=lc,{AbstractRecoilValue:s3,RecoilState:a3,RecoilValueReadOnly:l3,isRecoilValue:c3}=Qs,{invalidateMemoizedSnapshot:u3}=Jw;function d3(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=i.previousTree)===null||o===void 0||o.version);const s=eR(e,n,t);return s.state==="loading"&&s.contents.catch(()=>{}),s}function f3(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof _g?n.delete(o):n.set(o,r)}),n}function p3(e,t,{key:n},r){if(typeof r=="function"){const o=eR(e,t,n);if(o.state==="loading"){const i=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw Fe(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function h3(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,s=p3(e,t,o,i),a=n3(e,t,o.key,s);for(const[l,c]of a.entries())_m(t,l,c)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;_m(t,o,i)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:i}=n,s=tR(o);s==null||(r=s.invalidate)===null||r===void 0||r.call(s,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,i),t.dirtyAtoms.add(o)}else bg(`Unknown action ${n.type}`)}function _m(e,t,n){n.state==="hasValue"&&n.contents instanceof _g?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function nR(e,t){e.replaceState(n=>{const r=rR(n);for(const o of t)h3(e,r,o);return oR(e,r),u3(),r})}function Ff(e,t){if(al.length){const n=al[al.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else nR(e,[t])}const al=[];function m3(){const e=new Map;return al.push(e),()=>{for(const[t,n]of e)nR(t,n);al.pop()}}function rR(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function oR(e,t){const n=t3(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=tR(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function iR(e,t,n){Ff(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function v3(e,t,n){if(n instanceof _g)return iR(e,t,n);Ff(e,{type:"setLoadable",recoilValue:t,loadable:n})}function g3(e,t){Ff(e,{type:"markModified",recoilValue:t})}function y3(e,t,n){Ff(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function b3(e,{key:t},n,r=null){const o=r3(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),dt(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const s=i3();if(s.early&&(s.mode==="LEGACY"||s.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&n(a)}return{release:()=>{const a=e.getState(),l=a.nodeToComponentSubscriptions.get(t);l===void 0||!l.has(o)||(l.delete(o),l.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}function x3(e,t){var n;const{currentTree:r}=e.getState(),o=o3(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var Lr={RecoilValueReadOnly:l3,AbstractRecoilValue:s3,RecoilState:a3,getRecoilValueAsLoadable:d3,setRecoilValue:iR,setRecoilValueLoadable:v3,markRecoilValueModified:g3,setUnvalidatedRecoilValue:y3,subscribeToRecoilValue:b3,isRecoilValue:c3,applyAtomValueWrites:f3,batchStart:m3,writeLoadableToTreeState:_m,invalidateDownstreams:oR,copyTreeState:rR,refreshRecoilValue:x3};function S3(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1}var C3=S3;const{cleanUpNode:w3}=Wo,{deleteNodeConfigIfPossible:R3,getNode:sR}=wn,{RetentionZone:aR}=Lf,E3=12e4,lR=new Set;function cR(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const s of t)if(s instanceof aR)for(const a of A3(n,s))o.add(a);else o.add(s);const i=_3(e,o);for(const s of i)T3(e,r,s)}function _3(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,s=new Set;return a(t),i;function a(l){const c=new Set,u=k3(e,r,l,i,s);for(const m of u){var d;if(sR(m).retainedBy==="recoilRoot"){s.add(m);continue}if(((d=n.retention.referenceCounts.get(m))!==null&&d!==void 0?d:0)>0){s.add(m);continue}if(uR(m).some(C=>n.retention.referenceCounts.get(C))){s.add(m);continue}const g=o.nodeToNodeSubscriptions.get(m);if(g&&C3(g,C=>s.has(C))){s.add(m);continue}i.add(m),c.add(m)}const f=new Set;for(const m of c)for(const g of(b=o.nodeDeps.get(m))!==null&&b!==void 0?b:lR){var b;i.has(g)||f.add(g)}f.size&&a(f)}}function k3(e,t,n,r,o){const i=e.getGraph(t.version),s=[],a=new Set;for(;n.size>0;)l(dt(n.values().next().value));return s;function l(c){if(r.has(c)||o.has(c)){n.delete(c);return}if(a.has(c))return;const u=i.nodeToNodeSubscriptions.get(c);if(u)for(const d of u)l(d);a.add(c),n.delete(c),s.push(c)}}function T3(e,t,n){if(!tt("recoil_memory_managament_2020"))return;w3(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=uR(n);for(const l of o){var i;(i=r.retention.nodesRetainedByZone.get(l))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const s=r.graphsByVersion.get(t.version);if(s){const l=s.nodeDeps.get(n);if(l!==void 0){s.nodeDeps.delete(n);for(const c of l){var a;(a=s.nodeToNodeSubscriptions.get(c))===null||a===void 0||a.delete(n)}}s.nodeToNodeSubscriptions.delete(n)}R3(n)}function A3(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:lR}function uR(e){const t=sR(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof aR?[t]:t}function $3(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):cR(e,new Set([t]))}function P3(e,t,n){var r;if(!tt("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=((r=o.get(t))!==null&&r!==void 0?r:0)+n;i===0?dR(e,t):o.set(t,i)}function dR(e,t){if(!tt("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),$3(e,t)}function N3(e){if(!tt("recoil_memory_managament_2020"))return;const t=e.getState();cR(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function I3(e){return e===void 0?"recoilRoot":e}var Pi={SUSPENSE_TIMEOUT_MS:E3,updateRetainCount:P3,updateRetainCountToZero:dR,releaseScheduledRetainablesNow:N3,retainedByOptionWithDefault:I3};const{unstable_batchedUpdates:O3}=za;var M3={unstable_batchedUpdates:O3};const{unstable_batchedUpdates:L3}=M3;var F3={unstable_batchedUpdates:L3};const{batchStart:D3}=Lr,{unstable_batchedUpdates:j3}=F3;let kg=j3||(e=>e());const B3=e=>{kg=e},z3=()=>kg,U3=e=>{kg(()=>{let t=()=>{};try{t=D3(),e()}finally{t()}})};var Df={getBatcher:z3,setBatcher:B3,batchUpdates:U3};function*V3(e){for(const t of e)for(const n of t)yield n}var fR=V3;const pR=typeof Window>"u"||typeof window>"u",W3=e=>!pR&&(e===window||e instanceof Window),H3=typeof navigator<"u"&&navigator.product==="ReactNative";var jf={isSSR:pR,isReactNative:H3,isWindow:W3};function K3(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function q3(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function G3(e,t){let n,r;return[(...s)=>{const a=t(...s);return n===a||(n=a,r=e(...s)),r},()=>{n=null}]}var Q3={memoizeWithArgsHash:K3,memoizeOneWithArgsHash:q3,memoizeOneWithArgsHashAndInvalidation:G3};const{batchUpdates:km}=Df,{initializeNode:X3,peekNodeInfo:Y3}=Wo,{graph:Z3}=cc,{getNextStoreID:J3}=Mf,{DEFAULT_VALUE:eB,recoilValues:D1,recoilValuesForKeys:j1}=wn,{AbstractRecoilValue:tB,getRecoilValueAsLoadable:nB,setRecoilValue:B1,setUnvalidatedRecoilValue:rB}=Lr,{updateRetainCount:gu}=Pi,{setInvalidateMemoizedSnapshot:oB}=Jw,{getNextTreeStateVersion:iB,makeEmptyStoreState:sB}=Kw,{isSSR:aB}=jf,{memoizeOneWithArgsHashAndInvalidation:lB}=Q3;class Bf{constructor(t,n){Me(this,"_store",void 0),Me(this,"_refCount",1),Me(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),nB(this._store,r))),Me(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Me(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const s=this._store.getState().currentTree;return j1(s.dirtyAtoms)}const o=this._store.getState().knownAtoms,i=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?D1.values():r.isInitialized===!0?j1(fR([o,i])):Rg(D1.values(),({key:s})=>!o.has(s)&&!i.has(s))}),Me(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),Y3(this._store,this._store.getState().currentTree,r))),Me(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new Tm(this,km);return r(o),o}),Me(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new Tm(this,km);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:J3(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return dt(o.get(r));const i=Z3();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Fe("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)X3(this._store,r,"get"),gu(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){aB||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!tt("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){tt("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function hR(e,t,n=!1){const r=e.getState(),o=n?iB():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Of(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function cB(e){const t=new Bf(sB());return e!=null?t.map(e):t}const[z1,mR]=lB((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:dt(r.previousTree);return new Bf(hR(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});oB(mR);function uB(e,t="latest"){const n=z1(e,t);return n.isRetained()?n:(mR(),z1(e,t))}class Tm extends Bf{constructor(t,n){super(hR(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Me(this,"_batch",void 0),Me(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{gu(i,r.key,1),B1(this.getStore_INTERNAL(),r,o)})}),Me(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{gu(o,r.key,1),B1(this.getStore_INTERNAL(),r,eB)})}),Me(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();km(()=>{for(const[i,s]of r.entries())gu(o,i,1),rB(o,new tB(i),s)})}),this._batch=n}}var zf={Snapshot:Bf,MutableSnapshot:Tm,freshSnapshot:cB,cloneSnapshot:uB},dB=zf.Snapshot,fB=zf.MutableSnapshot,pB=zf.freshSnapshot,hB=zf.cloneSnapshot,Uf=Object.freeze({__proto__:null,Snapshot:dB,MutableSnapshot:fB,freshSnapshot:pB,cloneSnapshot:hB});function mB(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var vB=mB;const{useRef:gB}=ge;function yB(e){const t=gB(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var U1=yB;const{getNextTreeStateVersion:bB,makeEmptyStoreState:vR}=Kw,{cleanUpNode:xB,getDownstreamNodes:SB,initializeNode:CB,setNodeValue:wB,setUnvalidatedAtomValue_DEPRECATED:RB}=Wo,{graph:EB}=cc,{cloneGraph:_B}=cc,{getNextStoreID:gR}=Mf,{createMutableSource:Kp,reactMode:yR}=lc,{applyAtomValueWrites:kB}=Lr,{releaseScheduledRetainablesNow:bR}=Pi,{freshSnapshot:TB}=Uf,{useCallback:AB,useContext:xR,useEffect:Am,useMemo:$B,useRef:PB,useState:NB}=ge;function $a(){throw Fe("This component must be used inside a component.")}const SR=Object.freeze({storeID:gR(),getState:$a,replaceState:$a,getGraph:$a,subscribeToTransactions:$a,addTransactionMetadata:$a});let $m=!1;function V1(e){if($m)throw Fe("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){tt("recoil_memory_managament_2020")&&tt("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&bR(e);const n=t.currentTree.version,r=bB();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,_B(dt(t.graphsByVersion.get(n))))}}const CR=ge.createContext({current:SR}),Vf=()=>xR(CR),wR=ge.createContext(null);function IB(){return xR(wR)}function Tg(e,t,n){const r=SB(e,n,n.dirtyAtoms);for(const o of r){const i=t.nodeToComponentSubscriptions.get(o);if(i)for(const[s,[a,l]]of i)l(n)}}function RR(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,i]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[s,a]of i)a(e);for(const[o,i]of t.transactionSubscriptions)i(e);(!yR().early||t.suspendedComponentResolvers.size>0)&&(Tg(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function OB(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,RR(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):bg("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,tt("recoil_memory_managament_2020")&&n==null&&bR(e)}finally{t.commitDepth--}}function MB({setNotifyBatcherOfChange:e}){const t=Vf(),[,n]=NB([]);return e(()=>n({})),Am(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),Am(()=>{p4.enqueueExecution("Batcher",()=>{OB(t.current)})}),null}function LB(e,t){const n=vR();return t({set:(r,o)=>{const i=n.currentTree,s=wB(e,i,r.key,o),a=new Set(s.keys()),l=i.nonvalidatedAtoms.clone();for(const c of a)l.delete(c);n.currentTree={...i,dirtyAtoms:vB(i.dirtyAtoms,a),atomValues:kB(i.atomValues,s),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=RB(n.currentTree,i,o)})}}),n}function FB(e){const t=TB(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let W1=0;function DB({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=b=>{const m=o.current.graphsByVersion;if(m.has(b))return dt(m.get(b));const g=EB();return m.set(b,g),g},s=(b,m)=>{if(m==null){const{transactionSubscriptions:g}=d.current.getState(),C=W1++;return g.set(C,b),{release:()=>{g.delete(C)}}}else{const{nodeTransactionSubscriptions:g}=d.current.getState();g.has(m)||g.set(m,new Map);const C=W1++;return dt(g.get(m)).set(C,b),{release:()=>{const v=g.get(m);v&&(v.delete(C),v.size===0&&g.delete(m))}}}},a=b=>{V1(d.current);for(const m of Object.keys(b))dt(d.current.getState().nextTree).transactionMetadata[m]=b[m]},l=b=>{V1(d.current);const m=dt(o.current.nextTree);let g;try{$m=!0,g=b(m)}finally{$m=!1}g!==m&&(o.current.nextTree=g,yR().early&&Tg(d.current,o.current,g),dt(c.current)())},c=PB(null),u=AB(b=>{c.current=b},[c]),d=U1(()=>n??{storeID:gR(),getState:()=>o.current,replaceState:l,getGraph:i,subscribeToTransactions:s,addTransactionMetadata:a});n!=null&&(d.current=n),o=U1(()=>e!=null?LB(d.current,e):t!=null?FB(t):vR());const f=$B(()=>Kp==null?void 0:Kp(o,()=>o.current.currentTree.version),[o]);return Am(()=>{const b=d.current;for(const m of new Set(b.getState().knownAtoms))CB(b,m,"get");return()=>{for(const m of b.getState().knownAtoms)xB(b,m)}},[d]),ge.createElement(CR.Provider,{value:d},ge.createElement(wR.Provider,{value:f},ge.createElement(MB,{setNotifyBatcherOfChange:u}),r))}function jB(e){const{override:t,...n}=e,r=Vf();return t===!1&&r.current!==SR?e.children:ge.createElement(DB,n)}function BB(){return Vf().current.storeID}var ro={RecoilRoot:jB,useStoreRef:Vf,useRecoilMutableSource:IB,useRecoilStoreID:BB,notifyComponents_FOR_TESTING:Tg,sendEndOfBatchNotifications_FOR_TESTING:RR};function zB(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var ER=HB;const{useStoreRef:KB}=ro,{SUSPENSE_TIMEOUT_MS:qB}=Pi,{updateRetainCount:Pa}=Pi,{RetentionZone:GB}=Lf,{useEffect:QB,useRef:XB}=ge,{isSSR:H1}=jf;function YB(e){if(tt("recoil_memory_managament_2020"))return ZB(e)}function ZB(e){const n=(Array.isArray(e)?e:[e]).map(s=>s instanceof GB?s:s.key),r=KB();QB(()=>{if(!tt("recoil_memory_managament_2020"))return;const s=r.current;if(o.current&&!H1)window.clearTimeout(o.current),o.current=null;else for(const a of n)Pa(s,a,1);return()=>{for(const a of n)Pa(s,a,-1)}},[r,...n]);const o=XB(),i=ER(n);if(!H1&&(i===void 0||!UB(i,n))){const s=r.current;for(const a of n)Pa(s,a,1);if(i)for(const a of i)Pa(s,a,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const a of n)Pa(s,a,-1)},qB)}}var Ag=YB;function JB(){return""}var dc=JB;const{batchUpdates:ez}=Df,{DEFAULT_VALUE:_R}=wn,{currentRendererSupportsUseSyncExternalStore:tz,reactMode:la,useMutableSource:nz,useSyncExternalStore:rz}=lc,{useRecoilMutableSource:oz,useStoreRef:Fr}=ro,{AbstractRecoilValue:Pm,getRecoilValueAsLoadable:fc,setRecoilValue:ld,setUnvalidatedRecoilValue:iz,subscribeToRecoilValue:Xs}=Lr,{useCallback:xn,useEffect:Ys,useMemo:kR,useRef:ll,useState:$g}=ge,{setByAddingToSet:sz}=Gw,{isSSR:az}=jf;function Pg(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const i=n.current.getState().suspendedComponentResolvers;i.add(o),az&&st(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:Fe(`Invalid value of loadable atom "${t.key}"`)}function lz(){const e=dc(),t=Fr(),[,n]=$g([]),r=ll(new Set);r.current=new Set;const o=ll(new Set),i=ll(new Map),s=xn(l=>{const c=i.current.get(l);c&&(c.release(),i.current.delete(l))},[i]),a=xn((l,c)=>{i.current.has(c)&&n([])},[]);return Ys(()=>{const l=t.current;sl(r.current,o.current).forEach(c=>{if(i.current.has(c))return;const u=Xs(l,new Pm(c),f=>a(f,c),e);i.current.set(c,u),l.getState().nextTree?l.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(l.getState(),c)}):a(l.getState(),c)}),sl(o.current,r.current).forEach(c=>{s(c)}),o.current=r.current}),Ys(()=>{const l=i.current;return sl(r.current,new Set(l.keys())).forEach(c=>{const u=Xs(t.current,new Pm(c),d=>a(d,c),e);l.set(c,u)}),()=>l.forEach((c,u)=>s(u))},[e,t,s,a]),kR(()=>{function l(m){return g=>{ld(t.current,m,g)}}function c(m){return()=>ld(t.current,m,_R)}function u(m){var g;r.current.has(m.key)||(r.current=sz(r.current,m.key));const C=t.current.getState();return fc(t.current,m,la().early&&(g=C.nextTree)!==null&&g!==void 0?g:C.currentTree)}function d(m){const g=u(m);return Pg(g,m,t)}function f(m){return[d(m),l(m)]}function b(m){return[u(m),l(m)]}return{getRecoilValue:d,getRecoilValueLoadable:u,getRecoilState:f,getRecoilStateLoadable:b,getSetRecoilState:l,getResetRecoilState:c}},[r,t])}const cz={current:0};function uz(e){const t=Fr(),n=dc(),r=xn(()=>{var a;const l=t.current,c=l.getState(),u=la().early&&(a=c.nextTree)!==null&&a!==void 0?a:c.currentTree;return{loadable:fc(l,e,u),key:e.key}},[t,e]),o=xn(a=>{let l;return()=>{var c,u;const d=a();return(c=l)!==null&&c!==void 0&&c.loadable.is(d.loadable)&&((u=l)===null||u===void 0?void 0:u.key)===d.key?l:(l=d,d)}},[]),i=kR(()=>o(r),[r,o]),s=xn(a=>{const l=t.current;return Xs(l,e,a,n).release},[t,e,n]);return rz(s,i,i).loadable}function dz(e){const t=Fr(),n=xn(()=>{var c;const u=t.current,d=u.getState(),f=la().early&&(c=d.nextTree)!==null&&c!==void 0?c:d.currentTree;return fc(u,e,f)},[t,e]),r=xn(()=>n(),[n]),o=dc(),i=xn((c,u)=>{const d=t.current;return Xs(d,e,()=>{if(!tt("recoil_suppress_rerender_in_callback"))return u();const b=n();l.current.is(b)||u(),l.current=b},o).release},[t,e,o,n]),s=oz();if(s==null)throw Fe("Recoil hooks must be used in components contained within a component.");const a=nz(s,r,i),l=ll(a);return Ys(()=>{l.current=a}),a}function Nm(e){const t=Fr(),n=dc(),r=xn(()=>{var l;const c=t.current,u=c.getState(),d=la().early&&(l=u.nextTree)!==null&&l!==void 0?l:u.currentTree;return fc(c,e,d)},[t,e]),o=xn(()=>({loadable:r(),key:e.key}),[r,e.key]),i=xn(l=>{const c=o();return l.loadable.is(c.loadable)&&l.key===c.key?l:c},[o]);Ys(()=>{const l=Xs(t.current,e,c=>{a(i)},n);return a(i),l.release},[n,e,t,i]);const[s,a]=$g(o);return s.key!==e.key?o().loadable:s.loadable}function fz(e){const t=Fr(),[,n]=$g([]),r=dc(),o=xn(()=>{var a;const l=t.current,c=l.getState(),u=la().early&&(a=c.nextTree)!==null&&a!==void 0?a:c.currentTree;return fc(l,e,u)},[t,e]),i=o(),s=ll(i);return Ys(()=>{s.current=i}),Ys(()=>{const a=t.current,l=a.getState(),c=Xs(a,e,d=>{var f;if(!tt("recoil_suppress_rerender_in_callback"))return n([]);const b=o();(f=s.current)!==null&&f!==void 0&&f.is(b)||n(b),s.current=b},r);if(l.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s.current=null,n([])});else{var u;if(!tt("recoil_suppress_rerender_in_callback"))return n([]);const d=o();(u=s.current)!==null&&u!==void 0&&u.is(d)||n(d),s.current=d}return c.release},[r,o,e,t]),i}function Ng(e){return tt("recoil_memory_managament_2020")&&Ag(e),{TRANSITION_SUPPORT:Nm,SYNC_EXTERNAL_STORE:tz()?uz:Nm,MUTABLE_SOURCE:dz,LEGACY:fz}[la().mode](e)}function TR(e){const t=Fr(),n=Ng(e);return Pg(n,e,t)}function Wf(e){const t=Fr();return xn(n=>{ld(t.current,e,n)},[t,e])}function pz(e){const t=Fr();return xn(()=>{ld(t.current,e,_R)},[t,e])}function hz(e){return[TR(e),Wf(e)]}function mz(e){return[Ng(e),Wf(e)]}function vz(){const e=Fr();return(t,n={})=>{ez(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>iz(e.current,new Pm(o),r))})}}function AR(e){return tt("recoil_memory_managament_2020")&&Ag(e),Nm(e)}function $R(e){const t=Fr(),n=AR(e);return Pg(n,e,t)}function gz(e){return[$R(e),Wf(e)]}var yz={recoilComponentGetRecoilValueCount_FOR_TESTING:cz,useRecoilInterface:lz,useRecoilState:hz,useRecoilStateLoadable:mz,useRecoilValue:TR,useRecoilValueLoadable:Ng,useResetRecoilState:pz,useSetRecoilState:Wf,useSetUnvalidatedAtomValues:vz,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:AR,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:$R,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:gz};function bz(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var xz=bz;function Sz(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var Cz=Sz;function wz(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function G1(e){const t=e.atomValues.toMap(),n=ad(xz(t,(r,o)=>{const s=PR(o).persistence_UNSTABLE;return s!=null&&s.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return Rz(e.nonvalidatedAtoms.toMap(),n)}function Nz(e){Kf(Hf(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=G1(r),i=G1(n),s=ad(kz,l=>{var c,u,d,f;return{persistence_UNSTABLE:{type:(c=(u=l.persistence_UNSTABLE)===null||u===void 0?void 0:u.type)!==null&&c!==void 0?c:"none",backButton:(d=(f=l.persistence_UNSTABLE)===null||f===void 0?void 0:f.backButton)!==null&&d!==void 0?d:!1}}}),a=Cz(r.dirtyAtoms,l=>o.has(l)||i.has(l));e({atomValues:o,previousAtomValues:i,atomInfo:s,modifiedAtoms:a,transactionMetadata:{...r.transactionMetadata}})},[e]))}function Iz(e){Kf(Hf(t=>{const n=cd(t,"latest"),r=cd(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function Oz(){const e=Ig(),[t,n]=Pz(()=>cd(e.current)),r=ER(t),o=K1(),i=K1();if(Kf(Hf(a=>n(cd(a)),[])),NR(()=>{const a=t.retain();if(o.current&&!q1){var l;window.clearTimeout(o.current),o.current=null,(l=i.current)===null||l===void 0||l.call(i),i.current=null}return()=>{window.setTimeout(a,10)}},[t]),r!==t&&!q1){if(o.current){var s;window.clearTimeout(o.current),o.current=null,(s=i.current)===null||s===void 0||s.call(i),i.current=null}i.current=t.retain(),o.current=window.setTimeout(()=>{var a;o.current=null,(a=i.current)===null||a===void 0||a.call(i),i.current=null},$z)}return t}function IR(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;Ez(()=>{const s=new Set;for(const c of[o.atomValues.keys(),i.atomValues.keys()])for(const u of c){var a,l;((a=o.atomValues.get(u))===null||a===void 0?void 0:a.contents)!==((l=i.atomValues.get(u))===null||l===void 0?void 0:l.contents)&&PR(u).shouldRestoreFromSnapshots&&s.add(u)}s.forEach(c=>{Az(e,new Tz(c),i.atomValues.has(c)?dt(i.atomValues.get(c)):_z)}),e.replaceState(c=>({...c,stateID:t.getID()}))})}function Mz(){const e=Ig();return Hf(t=>IR(e.current,t),[e])}var OR={useRecoilSnapshot:Oz,gotoSnapshot:IR,useGotoRecoilSnapshot:Mz,useRecoilTransactionObserver:Iz,useTransactionObservation_DEPRECATED:Nz,useTransactionSubscription_DEPRECATED:Kf};const{peekNodeInfo:Lz}=Wo,{useStoreRef:Fz}=ro;function Dz(){const e=Fz();return({key:t})=>Lz(e.current,e.current.getState().currentTree,t)}var jz=Dz;const{reactMode:Bz}=lc,{RecoilRoot:zz,useStoreRef:Uz}=ro,{useMemo:Vz}=ge;function Wz(){Bz().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=Uz().current;return Vz(()=>{function t({children:n}){return ge.createElement(zz,{store_INTERNAL:e},n)}return t},[e])}var Hz=Wz;const{loadableWithValue:Kz}=ac,{initializeNode:qz}=Wo,{DEFAULT_VALUE:Gz,getNode:Qz}=wn,{copyTreeState:Xz,getRecoilValueAsLoadable:Yz,invalidateDownstreams:Zz,writeLoadableToTreeState:Jz}=Lr;function Q1(e){return Qz(e.key).nodeType==="atom"}class eU{constructor(t,n){Me(this,"_store",void 0),Me(this,"_treeState",void 0),Me(this,"_changes",void 0),Me(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!Q1(r))throw Fe("Reading selectors within atomicUpdate is not supported");const o=Yz(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:Fe(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Me(this,"set",(r,o)=>{if(!Q1(r))throw Fe("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else qz(this._store,r.key,"set"),this._changes.set(r.key,o)}),Me(this,"reset",r=>{this.set(r,Gz)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=Xz(this._treeState);for(const[n,r]of this._changes)Jz(t,n,Kz(r));return Zz(this._store,t),t}}function tU(e){return t=>{e.replaceState(n=>{const r=new eU(e,n);return t(r),r.newTreeState_INTERNAL()})}}var nU={atomicUpdater:tU},rU=nU.atomicUpdater,MR=Object.freeze({__proto__:null,atomicUpdater:rU});function oU(e,t){if(!e)throw new Error(t)}var iU=oU,Ha=iU;const{atomicUpdater:sU}=MR,{batchUpdates:aU}=Df,{DEFAULT_VALUE:lU}=wn,{useStoreRef:cU}=ro,{refreshRecoilValue:uU,setRecoilValue:X1}=Lr,{cloneSnapshot:dU}=Uf,{gotoSnapshot:fU}=OR,{useCallback:pU}=ge;class LR{}const hU=new LR;function FR(e,t,n,r){let o=hU,i;if(aU(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw Fe(a);const l=Qw({...r??{},set:(u,d)=>X1(e,u,d),reset:u=>X1(e,u,lU),refresh:u=>uU(e,u),gotoSnapshot:u=>fU(e,u),transact_UNSTABLE:u=>sU(e)(u)},{snapshot:()=>{const u=dU(e);return i=u.retain(),u}}),c=t(l);if(typeof c!="function")throw Fe(a);o=c(...n)}),o instanceof LR&&Ha(!1),st(o))o=o.finally(()=>{var a;(a=i)===null||a===void 0||a()});else{var s;(s=i)===null||s===void 0||s()}return o}function mU(e,t){const n=cU();return pU((...r)=>FR(n.current,e,r),t!=null?[...t,n]:void 0)}var DR={recoilCallback:FR,useRecoilCallback:mU};const{useStoreRef:vU}=ro,{refreshRecoilValue:gU}=Lr,{useCallback:yU}=ge;function bU(e){const t=vU();return yU(()=>{const n=t.current;gU(n,e)},[e,t])}var xU=bU;const{atomicUpdater:SU}=MR,{useStoreRef:CU}=ro,{useMemo:wU}=ge;function RU(e,t){const n=CU();return wU(()=>(...r)=>{SU(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var EU=RU;class _U{constructor(t){Me(this,"value",void 0),this.value=t}}var kU={WrappedValue:_U},TU=kU.WrappedValue,jR=Object.freeze({__proto__:null,WrappedValue:TU});const{isFastRefreshEnabled:AU}=lc;class Y1 extends Error{}class $U{constructor(t){var n,r,o;Me(this,"_name",void 0),Me(this,"_numLeafs",void 0),Me(this,"_root",void 0),Me(this,"_onHit",void 0),Me(this,"_onSet",void 0),Me(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:i=>i}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var i,s,a,l;let c,u;for(const[C,v]of t){var d,f,b;const h=this._root;if((h==null?void 0:h.type)==="leaf")throw this.invalidCacheError();const y=c;if(c=y?y.branches.get(u):h,c=(d=c)!==null&&d!==void 0?d:{type:"branch",nodeKey:C,parent:y,branches:new Map,branchKey:u},c.type!=="branch"||c.nodeKey!==C)throw this.invalidCacheError();y==null||y.branches.set(u,c),r==null||(f=r.onNodeVisit)===null||f===void 0||f.call(r,c),u=this._mapNodeValue(v),this._root=(b=this._root)!==null&&b!==void 0?b:c}const m=c?(i=c)===null||i===void 0?void 0:i.branches.get(u):this._root;if(m!=null&&(m.type!=="leaf"||m.branchKey!==u))throw this.invalidCacheError();const g={type:"leaf",value:n,parent:c,branchKey:u};(s=c)===null||s===void 0||s.branches.set(u,g),this._root=(a=this._root)!==null&&a!==void 0?a:g,this._numLeafs++,this._onSet(g),r==null||(l=r.onNodeVisit)===null||l===void 0||l.call(r,g)};try{o()}catch(i){if(i instanceof Y1)this.clear(),o();else throw i}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var i;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(i=r)===null||i===void 0?void 0:i.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=AU()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw bg(t+(this._name!=null?` - ${this._name}`:"")),new Y1}}var PU={TreeCache:$U},NU=PU.TreeCache,BR=Object.freeze({__proto__:null,TreeCache:NU});class IU{constructor(t){var n;Me(this,"_maxSize",void 0),Me(this,"_size",void 0),Me(this,"_head",void 0),Me(this,"_tail",void 0),Me(this,"_map",void 0),Me(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const i=this.head(),s={key:t,right:i,left:null,value:n};i?i.left=s:this._tail=s,this._map.set(r,s),this._head=s,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=dt(this._map.get(n)),o=r.right,i=r.left;o&&(o.left=r.left),i&&(i.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=i),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var OU={LRUCache:IU},MU=OU.LRUCache,zR=Object.freeze({__proto__:null,LRUCache:MU});const{LRUCache:LU}=zR,{TreeCache:FU}=BR;function DU({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new LU({maxSize:t}),o=new FU({name:e,mapNodeValue:n,onHit:i=>{r.set(i,!0)},onSet:i=>{const s=r.tail();r.set(i,!0),s&&o.size()>t&&o.delete(s.key)}});return o}var Z1=DU;function or(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw Fe("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(st(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,i)=>or(o,t,i.toString()))}]`;if(typeof e.toJSON=="function")return or(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[i,s]of e)o[typeof i=="string"?i:or(i,t)]=s;return or(o,t,n)}return e instanceof Set?or(Array.from(e).sort((o,i)=>or(o,t).localeCompare(or(i,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?or(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${or(o,t)}:${or(e[o],t,o)}`).join(",")}}`}function jU(e,t={allowFunctions:!1}){return or(e,t)}var qf=jU;const{TreeCache:BU}=BR,Wc={equality:"reference",eviction:"keep-all",maxSize:1/0};function zU({equality:e=Wc.equality,eviction:t=Wc.eviction,maxSize:n=Wc.maxSize}=Wc,r){const o=UU(e);return VU(t,n,o,r)}function UU(e){switch(e){case"reference":return t=>t;case"value":return t=>qf(t)}throw Fe(`Unrecognized equality policy ${e}`)}function VU(e,t,n,r){switch(e){case"keep-all":return new BU({name:r,mapNodeValue:n});case"lru":return Z1({name:r,maxSize:dt(t),mapNodeValue:n});case"most-recent":return Z1({name:r,maxSize:1,mapNodeValue:n})}throw Fe(`Unrecognized eviction policy ${e}`)}var WU=zU;function HU(e){return()=>null}var KU={startPerfBlock:HU};const{isLoadable:qU,loadableWithError:Hc,loadableWithPromise:GU,loadableWithValue:qp}=ac,{WrappedValue:UR}=jR,{getNodeLoadable:Kc,peekNodeLoadable:QU,setNodeValue:XU}=Wo,{saveDepsToStore:YU}=cc,{DEFAULT_VALUE:ZU,getConfigDeletionHandler:JU,getNode:eV,registerNode:J1}=wn,{isRecoilValue:tV}=Qs,{markRecoilValueModified:eb}=Lr,{retainedByOptionWithDefault:nV}=Pi,{recoilCallback:rV}=DR,{startPerfBlock:oV}=KU;class VR{}const Na=new VR,Ia=[],qc=new Map,iV=(()=>{let e=0;return()=>e++})();function WR(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=e.set!=null?e.set:void 0,s=new Set,a=WU(o??{equality:"reference",eviction:"keep-all"},n),l=nV(e.retainedBy_UNSTABLE),c=new Map;let u=0;function d(){return!tt("recoil_memory_managament_2020")||u>0}function f(A){return A.getState().knownSelectors.add(n),u++,()=>{u--}}function b(){return JU(n)!==void 0&&!d()}function m(A,K,W,ae,Z){G(K,ae,Z),g(A,W)}function g(A,K){U(A,K)&&j(A),v(K,!0)}function C(A,K){U(A,K)&&(dt(P(A)).stateVersions.clear(),v(K,!1))}function v(A,K){const W=qc.get(A);if(W!=null){for(const ae of W)eb(ae,dt(t));K&&qc.delete(A)}}function h(A,K){let W=qc.get(K);W==null&&qc.set(K,W=new Set),W.add(A)}function y(A,K,W,ae,Z,ye){return K.then(be=>{if(!d())throw j(A),Na;const ie=qp(be);return m(A,W,Z,ie,ae),be}).catch(be=>{if(!d())throw j(A),Na;if(st(be))return S(A,be,W,ae,Z,ye);const ie=Hc(be);throw m(A,W,Z,ie,ae),be})}function S(A,K,W,ae,Z,ye){return K.then(be=>{if(!d())throw j(A),Na;ye.loadingDepKey!=null&&ye.loadingDepPromise===K?W.atomValues.set(ye.loadingDepKey,qp(be)):A.getState().knownSelectors.forEach(Ce=>{W.atomValues.delete(Ce)});const ie=E(A,W);if(ie&&ie.state!=="loading"){if((U(A,Z)||P(A)==null)&&g(A,Z),ie.state==="hasValue")return ie.contents;throw ie.contents}if(!U(A,Z)){const Ce=F(A,W);if(Ce!=null)return Ce.loadingLoadable.contents}const[Ne,Se]=_(A,W,Z);if(Ne.state!=="loading"&&m(A,W,Z,Ne,Se),Ne.state==="hasError")throw Ne.contents;return Ne.contents}).catch(be=>{if(be instanceof VR)throw Na;if(!d())throw j(A),Na;const ie=Hc(be);throw m(A,W,Z,ie,ae),be})}function R(A,K,W,ae){var Z,ye,be,ie;if(U(A,ae)||K.version===((Z=A.getState())===null||Z===void 0||(ye=Z.currentTree)===null||ye===void 0?void 0:ye.version)||K.version===((be=A.getState())===null||be===void 0||(ie=be.nextTree)===null||ie===void 0?void 0:ie.version)){var Ne,Se,Ce;YU(n,W,A,(Ne=(Se=A.getState())===null||Se===void 0||(Ce=Se.nextTree)===null||Ce===void 0?void 0:Ce.version)!==null&&Ne!==void 0?Ne:A.getState().currentTree.version)}for(const ve of W)s.add(ve)}function _(A,K,W){const ae=oV(n);let Z=!0,ye=!0;const be=()=>{ae(),ye=!1};let ie,Ne=!1,Se;const Ce={loadingDepKey:null,loadingDepPromise:null},ve=new Map;function Oe({key:mt}){const Je=Kc(A,K,mt);switch(ve.set(mt,Je),Z||(R(A,K,new Set(ve.keys()),W),C(A,W)),Je.state){case"hasValue":return Je.contents;case"hasError":throw Je.contents;case"loading":throw Ce.loadingDepKey=mt,Ce.loadingDepPromise=Je.contents,Je.contents}throw Fe("Invalid Loadable state")}const Ve=mt=>(...Je)=>{if(ye)throw Fe("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Ha(!1),rV(A,mt,Je,{node:t})};try{ie=r({get:Oe,getCallback:Ve}),ie=tV(ie)?Oe(ie):ie,qU(ie)&&(ie.state==="hasError"&&(Ne=!0),ie=ie.contents),st(ie)?ie=y(A,ie,K,ve,W,Ce).finally(be):be(),ie=ie instanceof UR?ie.value:ie}catch(mt){ie=mt,st(ie)?ie=S(A,ie,K,ve,W,Ce).finally(be):(Ne=!0,be())}return Ne?Se=Hc(ie):st(ie)?Se=GU(ie):Se=qp(ie),Z=!1,z(A,W,ve),R(A,K,new Set(ve.keys()),W),[Se,ve]}function E(A,K){let W=K.atomValues.get(n);if(W!=null)return W;const ae=new Set;try{W=a.get(ye=>(typeof ye!="string"&&Ha(!1),Kc(A,K,ye).contents),{onNodeVisit:ye=>{ye.type==="branch"&&ye.nodeKey!==n&&ae.add(ye.nodeKey)}})}catch(ye){throw Fe(`Problem with cache lookup for selector "${n}": ${ye.message}`)}if(W){var Z;K.atomValues.set(n,W),R(A,K,ae,(Z=P(A))===null||Z===void 0?void 0:Z.executionID)}return W}function k(A,K){const W=E(A,K);if(W!=null)return j(A),W;const ae=F(A,K);if(ae!=null){var Z;return((Z=ae.loadingLoadable)===null||Z===void 0?void 0:Z.state)==="loading"&&h(A,ae.executionID),ae.loadingLoadable}const ye=iV(),[be,ie]=_(A,K,ye);return be.state==="loading"?(V(A,ye,be,ie,K),h(A,ye)):(j(A),G(K,be,ie)),be}function F(A,K){const W=fR([c.has(A)?[dt(c.get(A))]:[],Of(Rg(c,([Z])=>Z!==A),([,Z])=>Z)]);function ae(Z){for(const[ye,be]of Z)if(!Kc(A,K,ye).is(be))return!0;return!1}for(const Z of W){if(Z.stateVersions.get(K.version)||!ae(Z.depValuesDiscoveredSoFarDuringAsyncWork))return Z.stateVersions.set(K.version,!0),Z;Z.stateVersions.set(K.version,!1)}}function P(A){return c.get(A)}function V(A,K,W,ae,Z){c.set(A,{depValuesDiscoveredSoFarDuringAsyncWork:ae,executionID:K,loadingLoadable:W,stateVersions:new Map([[Z.version,!0]])})}function z(A,K,W){if(U(A,K)){const ae=P(A);ae!=null&&(ae.depValuesDiscoveredSoFarDuringAsyncWork=W)}}function j(A){c.delete(A)}function U(A,K){var W;return K===((W=P(A))===null||W===void 0?void 0:W.executionID)}function H(A){return Array.from(A.entries()).map(([K,W])=>[K,W.contents])}function G(A,K,W){A.atomValues.set(n,K);try{a.set(H(W),K)}catch(ae){throw Fe(`Problem with setting cache for selector "${n}": ${ae.message}`)}}function X(A){if(Ia.includes(n)){const K=`Recoil selector has circular dependencies: ${Ia.slice(Ia.indexOf(n)).join(" → ")}`;return Hc(Fe(K))}Ia.push(n);try{return A()}finally{Ia.pop()}}function I(A,K){const W=K.atomValues.get(n);return W??a.get(ae=>{var Z;return typeof ae!="string"&&Ha(!1),(Z=QU(A,K,ae))===null||Z===void 0?void 0:Z.contents})}function M(A,K){return X(()=>k(A,K))}function L(A){A.atomValues.delete(n)}function Q(A,K){t==null&&Ha(!1);for(const ae of s){var W;const Z=eV(ae);(W=Z.clearCache)===null||W===void 0||W.call(Z,A,K)}s.clear(),L(K),a.clear(),eb(A,t)}return i!=null?t=J1({key:n,nodeType:"selector",peek:I,get:M,set:(K,W,ae)=>{let Z=!1;const ye=new Map;function be({key:Ce}){if(Z)throw Fe("Recoil: Async selector sets are not currently supported.");const ve=Kc(K,W,Ce);if(ve.state==="hasValue")return ve.contents;if(ve.state==="loading"){const Oe=`Getting value of asynchronous atom or selector "${Ce}" in a pending state while setting selector "${n}" is not yet supported.`;throw Fe(Oe)}else throw ve.contents}function ie(Ce,ve){if(Z)throw Fe("Recoil: Async selector sets are not currently supported.");const Oe=typeof ve=="function"?ve(be(Ce)):ve;XU(K,W,Ce.key,Oe).forEach((mt,Je)=>ye.set(Je,mt))}function Ne(Ce){ie(Ce,ZU)}const Se=i({set:ie,get:be,reset:Ne},ae);if(Se!==void 0)throw st(Se)?Fe("Recoil: Async selector sets are not currently supported."):Fe("Recoil: selector set should be a void function.");return Z=!0,ye},init:f,invalidate:L,clearCache:Q,shouldDeleteConfigOnRelease:b,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l}):t=J1({key:n,nodeType:"selector",peek:I,get:M,init:f,invalidate:L,clearCache:Q,shouldDeleteConfigOnRelease:b,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}WR.value=e=>new UR(e);var Zs=WR;const{isLoadable:sV,loadableWithError:Gp,loadableWithPromise:Qp,loadableWithValue:zi}=ac,{WrappedValue:HR}=jR,{peekNodeInfo:aV}=Wo,{DEFAULT_VALUE:Yo,DefaultValue:uo,getConfigDeletionHandler:KR,registerNode:lV,setConfigDeletionHandler:cV}=wn,{isRecoilValue:uV}=Qs,{getRecoilValueAsLoadable:dV,markRecoilValueModified:fV,setRecoilValue:tb,setRecoilValueLoadable:pV}=Lr,{retainedByOptionWithDefault:hV}=Pi,Oa=e=>e instanceof HR?e.value:e;function mV(e){const{key:t,persistence_UNSTABLE:n}=e,r=hV(e.retainedBy_UNSTABLE);let o=0;function i(h){return Qp(h.then(y=>(s=zi(y),y)).catch(y=>{throw s=Gp(y),y}))}let s=st(e.default)?i(e.default):sV(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:zi(Oa(e.default));s.contents;let a;const l=new Map;function c(h){return h}function u(h,y){const S=y.then(R=>{var _,E;return((E=((_=h.getState().nextTree)!==null&&_!==void 0?_:h.getState().currentTree).atomValues.get(t))===null||E===void 0?void 0:E.contents)===S&&tb(h,v,R),R}).catch(R=>{var _,E;throw((E=((_=h.getState().nextTree)!==null&&_!==void 0?_:h.getState().currentTree).atomValues.get(t))===null||E===void 0?void 0:E.contents)===S&&pV(h,v,Gp(R)),R});return S}function d(h,y,S){var R;o++;const _=()=>{var P;o--,(P=l.get(h))===null||P===void 0||P.forEach(V=>V()),l.delete(h)};if(h.getState().knownAtoms.add(t),s.state==="loading"){const P=()=>{var V;((V=h.getState().nextTree)!==null&&V!==void 0?V:h.getState().currentTree).atomValues.has(t)||fV(h,v)};s.contents.finally(P)}const E=(R=e.effects)!==null&&R!==void 0?R:e.effects_UNSTABLE;if(E!=null){let P=function(L){if(U&&L.key===t){const Q=j;return Q instanceof uo?f(h,y):st(Q)?Qp(Q.then(A=>A instanceof uo?s.toPromise():A)):zi(Q)}return dV(h,L)},V=function(L){return P(L).toPromise()},z=function(L){var Q;const A=aV(h,(Q=h.getState().nextTree)!==null&&Q!==void 0?Q:h.getState().currentTree,L.key);return U&&L.key===t&&!(j instanceof uo)?{...A,isSet:!0,loadable:P(L)}:A},j=Yo,U=!0,H=!1,G=null;const X=L=>Q=>{if(U){const A=P(v),K=A.state==="hasValue"?A.contents:Yo;j=typeof Q=="function"?Q(K):Q,st(j)&&(j=j.then(W=>(G={effect:L,value:W},W)))}else{if(st(Q))throw Fe("Setting atoms to async values is not implemented.");typeof Q!="function"&&(G={effect:L,value:Oa(Q)}),tb(h,v,typeof Q=="function"?A=>{const K=Oa(Q(A));return G={effect:L,value:K},K}:Oa(Q))}},I=L=>()=>X(L)(Yo),M=L=>Q=>{var A;const{release:K}=h.subscribeToTransactions(W=>{var ae;let{currentTree:Z,previousTree:ye}=W.getState();ye||(ye=Z);const be=(ae=Z.atomValues.get(t))!==null&&ae!==void 0?ae:s;if(be.state==="hasValue"){var ie,Ne,Se,Ce;const ve=be.contents,Oe=(ie=ye.atomValues.get(t))!==null&&ie!==void 0?ie:s,Ve=Oe.state==="hasValue"?Oe.contents:Yo;((Ne=G)===null||Ne===void 0?void 0:Ne.effect)!==L||((Se=G)===null||Se===void 0?void 0:Se.value)!==ve?Q(ve,Ve,!Z.atomValues.has(t)):((Ce=G)===null||Ce===void 0?void 0:Ce.effect)===L&&(G=null)}},t);l.set(h,[...(A=l.get(h))!==null&&A!==void 0?A:[],K])};for(const L of E)try{const Q=L({node:v,storeID:h.storeID,parentStoreID_UNSTABLE:h.parentStoreID,trigger:S,setSelf:X(L),resetSelf:I(L),onSet:M(L),getPromise:V,getLoadable:P,getInfo_UNSTABLE:z});if(Q!=null){var k;l.set(h,[...(k=l.get(h))!==null&&k!==void 0?k:[],Q])}}catch(Q){j=Q,H=!0}if(U=!1,!(j instanceof uo)){var F;const L=H?Gp(j):st(j)?Qp(u(h,j)):zi(Oa(j));L.contents,y.atomValues.set(t,L),(F=h.getState().nextTree)===null||F===void 0||F.atomValues.set(t,L)}}return _}function f(h,y){var S,R;return(S=(R=y.atomValues.get(t))!==null&&R!==void 0?R:a)!==null&&S!==void 0?S:s}function b(h,y){if(y.atomValues.has(t))return dt(y.atomValues.get(t));if(y.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(n==null)return s;const S=y.nonvalidatedAtoms.get(t),R=n.validator(S,Yo);return a=R instanceof uo?s:zi(R),a}else return s}function m(){a=void 0}function g(h,y,S){if(y.atomValues.has(t)){const R=dt(y.atomValues.get(t));if(R.state==="hasValue"&&S===R.contents)return new Map}else if(!y.nonvalidatedAtoms.has(t)&&S instanceof uo)return new Map;return a=void 0,new Map().set(t,zi(S))}function C(){return KR(t)!==void 0&&o<=0}const v=lV({key:t,nodeType:"atom",peek:f,get:b,set:g,init:d,invalidate:m,shouldDeleteConfigOnRelease:C,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return v}function Og(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return uV(n)?vV({...t,default:n}):mV({...t,default:n})}function vV(e){const t=Og({...e,default:Yo,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof uo?r:dt(e.persistence_UNSTABLE).validator(r,Yo)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Zs({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof uo?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return cV(n.key,KR(e.key)),n}Og.value=e=>new HR(e);var qR=Og;class gV{constructor(t){var n;Me(this,"_map",void 0),Me(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var yV={MapCache:gV},bV=yV.MapCache,xV=Object.freeze({__proto__:null,MapCache:bV});const{LRUCache:nb}=zR,{MapCache:SV}=xV,Gc={equality:"reference",eviction:"none",maxSize:1/0};function CV({equality:e=Gc.equality,eviction:t=Gc.eviction,maxSize:n=Gc.maxSize}=Gc){const r=wV(e);return RV(t,n,r)}function wV(e){switch(e){case"reference":return t=>t;case"value":return t=>qf(t)}throw Fe(`Unrecognized equality policy ${e}`)}function RV(e,t,n){switch(e){case"keep-all":return new SV({mapKey:n});case"lru":return new nb({mapKey:n,maxSize:dt(t)});case"most-recent":return new nb({mapKey:n,maxSize:1})}throw Fe(`Unrecognized eviction policy ${e}`)}var GR=CV;const{setConfigDeletionHandler:EV}=wn;function _V(e){var t,n;const r=GR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i,s;const a=r.get(o);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:l,...c}=e,u="default"in e?e.default:new Promise(()=>{}),d=qR({...c,key:`${e.key}__${(i=qf(o))!==null&&i!==void 0?i:"void"}`,default:typeof u=="function"?u(o):u,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(s=e.effects)!==null&&s!==void 0?s:e.effects_UNSTABLE});return r.set(o,d),EV(d.key,()=>{r.delete(o)}),d}}var kV=_V;const{setConfigDeletionHandler:TV}=wn;let AV=0;function $V(e){var t,n;const r=GR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;let s;try{s=r.get(o)}catch(f){throw Fe(`Problem with cache lookup for selector ${e.key}: ${f.message}`)}if(s!=null)return s;const a=`${e.key}__selectorFamily/${(i=qf(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${AV++}`,l=f=>e.get(o)(f),c=e.cachePolicy_UNSTABLE,u=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let d;if(e.set!=null){const f=e.set;d=Zs({key:a,get:l,set:(m,g)=>f(o)(m,g),cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u})}else d=Zs({key:a,get:l,cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u});return r.set(o,d),TV(d.key,()=>{r.delete(o)}),d}}var Ho=$V;const PV=Ho({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function NV(e){return PV(e)}var IV=NV;const OV=Ho({key:"__error",get:e=>()=>{throw Fe(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function MV(e){return OV(e)}var LV=MV;function FV(e){return e}var DV=FV;const{loadableWithError:QR,loadableWithPromise:XR,loadableWithValue:YR}=ac;function Gf(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,i]of t.entries())try{n[o]=e(i)}catch(s){r[o]=s}return[n,r]}function jV(e){return e!=null&&!st(e)}function Qf(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function Im(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function ys(e,t,n){const r=n.map((o,i)=>o==null?YR(t[i]):st(o)?XR(o):QR(o));return Im(e,r)}function BV(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const zV=Ho({key:"__waitForNone",get:e=>({get:t})=>{const n=Qf(e),[r,o]=Gf(t,n);return ys(e,r,o)},dangerouslyAllowMutability:!0}),UV=Ho({key:"__waitForAny",get:e=>({get:t})=>{const n=Qf(e),[r,o]=Gf(t,n);return o.some(i=>!st(i))?ys(e,r,o):new Promise(i=>{for(const[s,a]of o.entries())st(a)&&a.then(l=>{r[s]=l,o[s]=void 0,i(ys(e,r,o))}).catch(l=>{o[s]=l,i(ys(e,r,o))})})},dangerouslyAllowMutability:!0}),VV=Ho({key:"__waitForAll",get:e=>({get:t})=>{const n=Qf(e),[r,o]=Gf(t,n);if(o.every(s=>s==null))return Im(e,r);const i=o.find(jV);if(i!=null)throw i;return Promise.all(o).then(s=>Im(e,BV(r,s)))},dangerouslyAllowMutability:!0}),WV=Ho({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Qf(e),[r,o]=Gf(t,n);return o.every(i=>!st(i))?ys(e,r,o):Promise.all(o.map((i,s)=>st(i)?i.then(a=>{r[s]=a,o[s]=void 0}).catch(a=>{r[s]=void 0,o[s]=a}):null)).then(()=>ys(e,r,o))},dangerouslyAllowMutability:!0}),HV=Ho({key:"__noWait",get:e=>({get:t})=>{try{return Zs.value(YR(t(e)))}catch(n){return Zs.value(st(n)?XR(n):QR(n))}},dangerouslyAllowMutability:!0});var KV={waitForNone:zV,waitForAny:UV,waitForAll:VV,waitForAllSettled:WV,noWait:HV};const{RecoilLoadable:qV}=ac,{DefaultValue:GV}=wn,{RecoilRoot:QV,useRecoilStoreID:XV}=ro,{isRecoilValue:YV}=Qs,{retentionZone:ZV}=Lf,{freshSnapshot:JV}=Uf,{useRecoilState:e6,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:t6,useRecoilStateLoadable:n6,useRecoilValue:r6,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:o6,useRecoilValueLoadable:i6,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:s6,useResetRecoilState:a6,useSetRecoilState:l6}=yz,{useGotoRecoilSnapshot:c6,useRecoilSnapshot:u6,useRecoilTransactionObserver:d6}=OR,{useRecoilCallback:f6}=DR,{noWait:p6,waitForAll:h6,waitForAllSettled:m6,waitForAny:v6,waitForNone:g6}=KV;var Mg={DefaultValue:GV,isRecoilValue:YV,RecoilLoadable:qV,RecoilEnv:aa,RecoilRoot:QV,useRecoilStoreID:XV,useRecoilBridgeAcrossReactRoots_UNSTABLE:Hz,atom:qR,selector:Zs,atomFamily:kV,selectorFamily:Ho,constSelector:IV,errorSelector:LV,readOnlySelector:DV,noWait:p6,waitForNone:g6,waitForAny:v6,waitForAll:h6,waitForAllSettled:m6,useRecoilValue:r6,useRecoilValueLoadable:i6,useRecoilState:e6,useRecoilStateLoadable:n6,useSetRecoilState:l6,useResetRecoilState:a6,useGetRecoilValueInfo_UNSTABLE:jz,useRecoilRefresher_UNSTABLE:xU,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:s6,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:o6,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:t6,useRecoilCallback:f6,useRecoilTransaction_UNSTABLE:EU,useGotoRecoilSnapshot:c6,useRecoilSnapshot:u6,useRecoilTransactionObserver_UNSTABLE:d6,snapshot_UNSTABLE:JV,useRetain:Ag,retentionZone:ZV},y6=Mg.RecoilRoot,ca=Mg.atom,kt=Mg.useRecoilState;function ZR(e,t){return function(){return e.apply(t,arguments)}}const{toString:b6}=Object.prototype,{getPrototypeOf:Lg}=Object,Xf=(e=>t=>{const n=b6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dr=e=>(e=e.toLowerCase(),t=>Xf(t)===e),Yf=e=>t=>typeof t===e,{isArray:ua}=Array,Ll=Yf("undefined");function x6(e){return e!==null&&!Ll(e)&&e.constructor!==null&&!Ll(e.constructor)&&Qn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const JR=Dr("ArrayBuffer");function S6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&JR(e.buffer),t}const C6=Yf("string"),Qn=Yf("function"),eE=Yf("number"),Zf=e=>e!==null&&typeof e=="object",w6=e=>e===!0||e===!1,yu=e=>{if(Xf(e)!=="object")return!1;const t=Lg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},R6=Dr("Date"),E6=Dr("File"),_6=Dr("Blob"),k6=Dr("FileList"),T6=e=>Zf(e)&&Qn(e.pipe),A6=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qn(e.append)&&((t=Xf(e))==="formdata"||t==="object"&&Qn(e.toString)&&e.toString()==="[object FormData]"))},$6=Dr("URLSearchParams"),P6=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ua(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const nE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rE=e=>!Ll(e)&&e!==nE;function Om(){const{caseless:e}=rE(this)&&this||{},t={},n=(r,o)=>{const i=e&&tE(t,o)||o;yu(t[i])&&yu(r)?t[i]=Om(t[i],r):yu(r)?t[i]=Om({},r):ua(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(pc(t,(o,i)=>{n&&Qn(o)?e[i]=ZR(o,n):e[i]=o},{allOwnKeys:r}),e),I6=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),O6=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},M6=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Lg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},L6=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},F6=e=>{if(!e)return null;if(ua(e))return e;let t=e.length;if(!eE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},D6=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lg(Uint8Array)),j6=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},B6=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},z6=Dr("HTMLFormElement"),U6=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),rb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),V6=Dr("RegExp"),oE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pc(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},W6=e=>{oE(e,(t,n)=>{if(Qn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},H6=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ua(e)?r(e):r(String(e).split(t)),n},K6=()=>{},q6=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Xp="abcdefghijklmnopqrstuvwxyz",ob="0123456789",iE={DIGIT:ob,ALPHA:Xp,ALPHA_DIGIT:Xp+Xp.toUpperCase()+ob},G6=(e=16,t=iE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Q6(e){return!!(e&&Qn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const X6=e=>{const t=new Array(10),n=(r,o)=>{if(Zf(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=ua(r)?[]:{};return pc(r,(s,a)=>{const l=n(s,o+1);!Ll(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Y6=Dr("AsyncFunction"),Z6=e=>e&&(Zf(e)||Qn(e))&&Qn(e.then)&&Qn(e.catch),q={isArray:ua,isArrayBuffer:JR,isBuffer:x6,isFormData:A6,isArrayBufferView:S6,isString:C6,isNumber:eE,isBoolean:w6,isObject:Zf,isPlainObject:yu,isUndefined:Ll,isDate:R6,isFile:E6,isBlob:_6,isRegExp:V6,isFunction:Qn,isStream:T6,isURLSearchParams:$6,isTypedArray:D6,isFileList:k6,forEach:pc,merge:Om,extend:N6,trim:P6,stripBOM:I6,inherits:O6,toFlatObject:M6,kindOf:Xf,kindOfTest:Dr,endsWith:L6,toArray:F6,forEachEntry:j6,matchAll:B6,isHTMLForm:z6,hasOwnProperty:rb,hasOwnProp:rb,reduceDescriptors:oE,freezeMethods:W6,toObjectSet:H6,toCamelCase:U6,noop:K6,toFiniteNumber:q6,findKey:tE,global:nE,isContextDefined:rE,ALPHABET:iE,generateString:G6,isSpecCompliantForm:Q6,toJSONObject:X6,isAsyncFn:Y6,isThenable:Z6};function Ue(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}q.inherits(Ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sE=Ue.prototype,aE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{aE[e]={value:e}});Object.defineProperties(Ue,aE);Object.defineProperty(sE,"isAxiosError",{value:!0});Ue.from=(e,t,n,r,o,i)=>{const s=Object.create(sE);return q.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ue.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const J6=null;function Mm(e){return q.isPlainObject(e)||q.isArray(e)}function lE(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function ib(e,t,n){return e?e.concat(t).map(function(o,i){return o=lE(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function e8(e){return q.isArray(e)&&!e.some(Mm)}const t8=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function Jf(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,C){return!q.isUndefined(C[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(q.isDate(m))return m.toISOString();if(!l&&q.isBlob(m))throw new Ue("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(m)||q.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,C){let v=m;if(m&&!C&&typeof m=="object"){if(q.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(q.isArray(m)&&e8(m)||(q.isFileList(m)||q.endsWith(g,"[]"))&&(v=q.toArray(m)))return g=lE(g),v.forEach(function(y,S){!(q.isUndefined(y)||y===null)&&t.append(s===!0?ib([g],S,i):s===null?g:g+"[]",c(y))}),!1}return Mm(m)?!0:(t.append(ib(C,g,i),c(m)),!1)}const d=[],f=Object.assign(t8,{defaultVisitor:u,convertValue:c,isVisitable:Mm});function b(m,g){if(!q.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),q.forEach(m,function(v,h){(!(q.isUndefined(v)||v===null)&&o.call(t,v,q.isString(h)?h.trim():h,g,f))===!0&&b(v,g?g.concat(h):[h])}),d.pop()}}if(!q.isObject(e))throw new TypeError("data must be an object");return b(e),t}function sb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Fg(e,t){this._pairs=[],e&&Jf(e,this,t)}const cE=Fg.prototype;cE.append=function(t,n){this._pairs.push([t,n])};cE.toString=function(t){const n=t?function(r){return t.call(this,r,sb)}:sb;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function n8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uE(e,t,n){if(!t)return e;const r=n&&n.encode||n8,o=n&&n.serialize;let i;if(o?i=o(t,n):i=q.isURLSearchParams(t)?t.toString():new Fg(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ab{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const dE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},r8=typeof URLSearchParams<"u"?URLSearchParams:Fg,o8=typeof FormData<"u"?FormData:null,i8=typeof Blob<"u"?Blob:null,s8={isBrowser:!0,classes:{URLSearchParams:r8,FormData:o8,Blob:i8},protocols:["http","https","file","blob","url","data"]},fE=typeof window<"u"&&typeof document<"u",a8=(e=>fE&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),l8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fE,hasStandardBrowserEnv:a8,hasStandardBrowserWebWorkerEnv:l8},Symbol.toStringTag,{value:"Module"})),Ar={...c8,...s8};function u8(e,t){return Jf(e,new Ar.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ar.isNode&&q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function d8(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function f8(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&q.isArray(o)?o.length:s,l?(q.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!q.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&q.isArray(o[s])&&(o[s]=f8(o[s])),!a)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,(r,o)=>{t(d8(r),o,n,0)}),n}return null}function p8(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Dg={transitional:dE,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=q.isObject(t);if(i&&q.isHTMLForm(t)&&(t=new FormData(t)),q.isFormData(t))return o?JSON.stringify(pE(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return u8(t,this.formSerializer).toString();if((a=q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Jf(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),p8(t)):t}],transformResponse:[function(t){const n=this.transitional||Dg.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&q.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Ue.from(a,Ue.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ar.classes.FormData,Blob:Ar.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],e=>{Dg.headers[e]={}});const jg=Dg,h8=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),m8=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&h8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lb=Symbol("internals");function Ma(e){return e&&String(e).trim().toLowerCase()}function bu(e){return e===!1||e==null?e:q.isArray(e)?e.map(bu):String(e)}function v8(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const g8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yp(e,t,n,r,o){if(q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function y8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function b8(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class ep{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Ma(l);if(!u)throw new Error("header name must be a non-empty string");const d=q.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=bu(a))}const s=(a,l)=>q.forEach(a,(c,u)=>i(c,u,l));return q.isPlainObject(t)||t instanceof this.constructor?s(t,n):q.isString(t)&&(t=t.trim())&&!g8(t)?s(m8(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ma(t),t){const r=q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return v8(o);if(q.isFunction(n))return n.call(this,o,r);if(q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ma(t),t){const r=q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Yp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Ma(s),s){const a=q.findKey(r,s);a&&(!n||Yp(r,r[a],a,n))&&(delete r[a],o=!0)}}return q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Yp(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return q.forEach(this,(o,i)=>{const s=q.findKey(r,i);if(s){n[s]=bu(o),delete n[i];return}const a=t?y8(i):String(i).trim();a!==i&&delete n[i],n[a]=bu(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[lb]=this[lb]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Ma(s);r[a]||(b8(o,s),r[a]=!0)}return q.isArray(t)?t.forEach(i):i(t),this}}ep.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.reduceDescriptors(ep.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});q.freezeMethods(ep);const Qr=ep;function Zp(e,t){const n=this||jg,r=t||n,o=Qr.from(r.headers);let i=r.data;return q.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function hE(e){return!!(e&&e.__CANCEL__)}function hc(e,t,n){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(hc,Ue,{__CANCEL__:!0});function x8(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ue("Request failed with status code "+n.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const S8=Ar.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];q.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),q.isString(r)&&s.push("path="+r),q.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function C8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function w8(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mE(e,t){return e&&!C8(t)?w8(e,t):t}const R8=Ar.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=q.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function E8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _8(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),c=i<=s;n=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const k8=typeof XMLHttpRequest<"u",T8=k8&&function(e){return new Promise(function(n,r){let o=e.data;const i=Qr.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(q.isFormData(o)){if(Ar.hasStandardBrowserEnv||Ar.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[g,...C]=u?u.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...C].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",C=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+C))}const f=mE(e.baseURL,e.url);d.open(e.method.toUpperCase(),uE(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function b(){if(!d)return;const g=Qr.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:e,request:d};x8(function(y){n(y),c()},function(y){r(y),c()},v),d=null}if("onloadend"in d?d.onloadend=b:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(b)},d.onabort=function(){d&&(r(new Ue("Request aborted",Ue.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Ue("Network Error",Ue.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||dE;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),r(new Ue(C,v.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,d)),d=null},Ar.hasStandardBrowserEnv&&(a&&q.isFunction(a)&&(a=a(e)),a||a!==!1&&R8(f))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&S8.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in d&&q.forEach(i.toJSON(),function(C,v){d.setRequestHeader(v,C)}),q.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),s&&s!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",cb(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",cb(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{d&&(r(!g||g.type?new hc(null,e,d):g),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=E8(f);if(m&&Ar.protocols.indexOf(m)===-1){r(new Ue("Unsupported protocol "+m+":",Ue.ERR_BAD_REQUEST,e));return}d.send(o||null)})},Lm={http:J6,xhr:T8};q.forEach(Lm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ub=e=>`- ${e}`,A8=e=>q.isFunction(e)||e===null||e===!1,vE={getAdapter:e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : -`+i.map(ub).join(` -`):" "+ub(i[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Lm};function Jp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hc(null,e)}function db(e){return Jp(e),e.headers=Qr.from(e.headers),e.data=Zp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vE.getAdapter(e.adapter||jg.adapter)(e).then(function(r){return Jp(e),r.data=Zp.call(e,e.transformResponse,r),r.headers=Qr.from(r.headers),r},function(r){return hE(r)||(Jp(e),r&&r.response&&(r.response.data=Zp.call(e,e.transformResponse,r.response),r.response.headers=Qr.from(r.response.headers))),Promise.reject(r)})}const fb=e=>e instanceof Qr?{...e}:e;function Js(e,t){t=t||{};const n={};function r(c,u,d){return q.isPlainObject(c)&&q.isPlainObject(u)?q.merge.call({caseless:d},c,u):q.isPlainObject(u)?q.merge({},u):q.isArray(u)?u.slice():u}function o(c,u,d){if(q.isUndefined(u)){if(!q.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function i(c,u){if(!q.isUndefined(u))return r(void 0,u)}function s(c,u){if(q.isUndefined(u)){if(!q.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>o(fb(c),fb(u),!0)};return q.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);q.isUndefined(f)&&d!==a||(n[u]=f)}),n}const gE="1.6.8",Bg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Bg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pb={};Bg.transitional=function(t,n,r){function o(i,s){return"[Axios v"+gE+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new Ue(o(s," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!pb[s]&&(pb[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function $8(e,t,n){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Ue("option "+i+" must be "+l,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+i,Ue.ERR_BAD_OPTION)}}const Fm={assertOptions:$8,validators:Bg},so=Fm.validators;class ud{constructor(t){this.defaults=t,this.interceptors={request:new ab,response:new ab}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Js(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Fm.assertOptions(r,{silentJSONParsing:so.transitional(so.boolean),forcedJSONParsing:so.transitional(so.boolean),clarifyTimeoutError:so.transitional(so.boolean)},!1),o!=null&&(q.isFunction(o)?n.paramsSerializer={serialize:o}:Fm.assertOptions(o,{encode:so.function,serialize:so.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&q.merge(i.common,i[n.method]);i&&q.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Qr.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const m=[db.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),f=m.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new hc(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new zg(function(o){t=o}),cancel:t}}}const P8=zg;function N8(e){return function(n){return e.apply(null,n)}}function I8(e){return q.isObject(e)&&e.isAxiosError===!0}const Dm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dm).forEach(([e,t])=>{Dm[t]=e});const O8=Dm;function yE(e){const t=new xu(e),n=ZR(xu.prototype.request,t);return q.extend(n,xu.prototype,t,{allOwnKeys:!0}),q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return yE(Js(e,o))},n}const Tt=yE(jg);Tt.Axios=xu;Tt.CanceledError=hc;Tt.CancelToken=P8;Tt.isCancel=hE;Tt.VERSION=gE;Tt.toFormData=Jf;Tt.AxiosError=Ue;Tt.Cancel=Tt.CanceledError;Tt.all=function(t){return Promise.all(t)};Tt.spread=N8;Tt.isAxiosError=I8;Tt.mergeConfig=Js;Tt.AxiosHeaders=Qr;Tt.formToJSON=e=>pE(q.isHTMLForm(e)?new FormData(e):e);Tt.getAdapter=vE.getAdapter;Tt.HttpStatusCode=O8;Tt.default=Tt;const Xt=Tt.create({baseURL:"/services/japps",headers:{"Content-Type":"application/json"}});Xt.interceptors.response.use(e=>e,e=>{const t=e.response.status;(e.response.status===401||t===403)&&(window.location.href="/services/japps/jhub-login")});const M8=()=>window.jhdata,bE=(e,t)=>{var r;const n=[];for(const o in e)if(Object.hasOwnProperty.call(e,o)){const i=e[o];i.display===!0&&i.info.name&&n.push({name:i.info.name,url:(r=i.info.url)==null?void 0:r.replace("[USER]",t),external:i.info.external,pinned:ej.includes(i.info.name)})}return n},L8=(e,t,n)=>{const r=[],o=[];if(t.toLowerCase()==="shared")r.push(...e.shared_apps);else{r.push(...e.user_apps);const i=r.find(s=>{var a;return s.name===""&&!((a=s.user_options)!=null&&a.jhub_app)});if(i){const s=jm(i);o.push({id:"",name:"JupyterLab",description:"This is your default JupyterLab server.",framework:"JupyterLab",url:i.url,thumbnail:JD,username:n,ready:i.ready,pending:i.pending,stopped:i.stopped,public:!1,status:s})}}return r.forEach(i=>{var s;if((s=i.user_options)!=null&&s.jhub_app){const a=i.user_options,l=jm(i);o.push({id:a.name,name:a.display_name,description:a.description,framework:F8(a.framework),url:i.url,thumbnail:a.thumbnail,username:i.username||n,ready:i.ready,pending:i.pending,stopped:i.stopped,public:a.public,status:l})}}),o},F8=e=>e.charAt(0).toUpperCase()+e.slice(1),D8=()=>{var e;if((e=window.theme)!=null&&e.logo)return window.theme.logo},_r=e=>{document.location.href=e},jm=e=>e.stopped?"Ready":e.pending?"Pending":e.ready?"Running":"Unknown";var mc=e=>e.type==="checkbox",as=e=>e instanceof Date,rn=e=>e==null;const xE=e=>typeof e=="object";var It=e=>!rn(e)&&!Array.isArray(e)&&xE(e)&&!as(e),SE=e=>It(e)&&e.target?mc(e.target)?e.target.checked:e.target.value:e,j8=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,CE=(e,t)=>e.has(j8(t)),B8=e=>{const t=e.constructor&&e.constructor.prototype;return It(t)&&t.hasOwnProperty("isPrototypeOf")},Ug=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function un(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Ug&&(e instanceof Blob||e instanceof FileList))&&(n||It(e)))if(t=n?[]:{},!n&&!B8(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=un(e[r]));else return e;return t}var vc=e=>Array.isArray(e)?e.filter(Boolean):[],bt=e=>e===void 0,ce=(e,t,n)=>{if(!t||!It(e))return n;const r=vc(t.split(/[,[\].]+?/)).reduce((o,i)=>rn(o)?o:o[i],e);return bt(r)||r===e?bt(e[t])?n:e[t]:r},cr=e=>typeof e=="boolean";const dd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ur={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},jr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},z8=ge.createContext(null),Vg=()=>ge.useContext(z8);var wE=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==ur.all&&(t._proxyFormState[s]=!r||ur.all),n&&(n[s]=!0),e[s]}});return o},zn=e=>It(e)&&!Object.keys(e).length,RE=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return zn(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||ur.all))},Su=e=>Array.isArray(e)?e:[e],EE=(e,t,n)=>!e||!t||e===t||Su(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Wg(e){const t=ge.useRef(e);t.current=e,ge.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function U8(e){const t=Vg(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,a]=ge.useState(n._formState),l=ge.useRef(!0),c=ge.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ge.useRef(o);return u.current=o,Wg({disabled:r,next:d=>l.current&&EE(u.current,d.name,i)&&RE(d,c.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),ge.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),wE(s,n,c.current,!1)}var $r=e=>typeof e=="string",_E=(e,t,n,r,o)=>$r(e)?(r&&t.watch.add(e),ce(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),ce(n,i))):(r&&(t.watchAll=!0),n);function V8(e){const t=Vg(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s}=e||{},a=ge.useRef(r);a.current=r,Wg({disabled:i,subject:n._subjects.values,next:u=>{EE(a.current,u.name,s)&&c(un(_E(a.current,n._names,u.values||n._formValues,!1,o)))}});const[l,c]=ge.useState(n._getWatch(r,o));return ge.useEffect(()=>n._removeUnmounted()),l}var Hg=e=>/^\w*$/.test(e),kE=e=>vc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),et=(e,t,n)=>{let r=-1;const o=Hg(t)?[t]:kE(t),i=o.length,s=i-1;for(;++r{const u=o._options.shouldUnregister||i,d=(f,b)=>{const m=ce(o._fields,f);m&&(m._f.mount=b)};if(d(n,!0),u){const f=un(ce(o._options.defaultValues,n));et(o._defaultValues,n,f),bt(ce(o._formValues,n))&&et(o._formValues,n,f)}return()=>{(s?u&&!o._state.action:u)?o.unregister(n):d(n,!1)}},[n,o,s,i]),ge.useEffect(()=>{ce(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:ce(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:a,...cr(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:ge.useCallback(u=>c.current.onChange({target:{value:SE(u),name:n},type:dd.CHANGE}),[n]),onBlur:ge.useCallback(()=>c.current.onBlur({target:{value:ce(o._formValues,n),name:n},type:dd.BLUR}),[n,o]),ref:u=>{const d=ce(o._fields,n);d&&u&&(d._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:f=>u.setCustomValidity(f),reportValidity:()=>u.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ce(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!ce(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ce(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ce(l.validatingFields,n)},error:{enumerable:!0,get:()=>ce(l.errors,n)}})}}const Br=e=>e.render(W8(e));var H8=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},hb=e=>({isOnSubmit:!e||e===ur.onSubmit,isOnBlur:e===ur.onBlur,isOnChange:e===ur.onChange,isOnAll:e===ur.all,isOnTouch:e===ur.onTouched}),mb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const cl=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=ce(e,o);if(i){const{_f:s,...a}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;cl(a,t)}else It(a)&&cl(a,t)}}};var K8=(e,t,n)=>{const r=vc(ce(e,n));return et(r,"root",t[n]),et(e,n,r),e},Kg=e=>e.type==="file",_o=e=>typeof e=="function",fd=e=>{if(!Ug)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Cu=e=>$r(e),qg=e=>e.type==="radio",pd=e=>e instanceof RegExp;const vb={value:!1,isValid:!1},gb={value:!0,isValid:!0};var TE=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!bt(e[0].attributes.value)?bt(e[0].value)||e[0].value===""?gb:{value:e[0].value,isValid:!0}:gb:vb}return vb};const yb={isValid:!1,value:null};var AE=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yb):yb;function bb(e,t,n="validate"){if(Cu(e)||Array.isArray(e)&&e.every(Cu)||cr(e)&&!e)return{type:n,message:Cu(e)?e:"",ref:t}}var Ui=e=>It(e)&&!pd(e)?e:{value:e,message:""},xb=async(e,t,n,r,o)=>{const{ref:i,refs:s,required:a,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:b,name:m,valueAsNumber:g,mount:C,disabled:v}=e._f,h=ce(t,m);if(!C||v)return{};const y=s?s[0]:i,S=z=>{r&&y.reportValidity&&(y.setCustomValidity(cr(z)?"":z||""),y.reportValidity())},R={},_=qg(i),E=mc(i),k=_||E,F=(g||Kg(i))&&bt(i.value)&&bt(h)||fd(i)&&i.value===""||h===""||Array.isArray(h)&&!h.length,P=H8.bind(null,m,n,R),V=(z,j,U,H=jr.maxLength,G=jr.minLength)=>{const X=z?j:U;R[m]={type:z?H:G,message:X,ref:i,...P(z?H:G,X)}};if(o?!Array.isArray(h)||!h.length:a&&(!k&&(F||rn(h))||cr(h)&&!h||E&&!TE(s).isValid||_&&!AE(s).isValid)){const{value:z,message:j}=Cu(a)?{value:!!a,message:a}:Ui(a);if(z&&(R[m]={type:jr.required,message:j,ref:y,...P(jr.required,j)},!n))return S(j),R}if(!F&&(!rn(u)||!rn(d))){let z,j;const U=Ui(d),H=Ui(u);if(!rn(h)&&!isNaN(h)){const G=i.valueAsNumber||h&&+h;rn(U.value)||(z=G>U.value),rn(H.value)||(j=Gnew Date(new Date().toDateString()+" "+L),I=i.type=="time",M=i.type=="week";$r(U.value)&&h&&(z=I?X(h)>X(U.value):M?h>U.value:G>new Date(U.value)),$r(H.value)&&h&&(j=I?X(h)+z.value,H=!rn(j.value)&&h.length<+j.value;if((U||H)&&(V(U,z.message,j.message),!n))return S(R[m].message),R}if(f&&!F&&$r(h)){const{value:z,message:j}=Ui(f);if(pd(z)&&!h.match(z)&&(R[m]={type:jr.pattern,message:j,ref:i,...P(jr.pattern,j)},!n))return S(j),R}if(b){if(_o(b)){const z=await b(h,t),j=bb(z,y);if(j&&(R[m]={...j,...P(jr.validate,j.message)},!n))return S(j.message),R}else if(It(b)){let z={};for(const j in b){if(!zn(z)&&!n)break;const U=bb(await b[j](h,t),y,j);U&&(z={...U,...P(j,U.message)},S(U.message),n&&(R[m]=z))}if(!zn(z)&&(R[m]={ref:y,...z},!n))return R}}return S(!0),R};function q8(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},hd=e=>rn(e)||!xE(e);function ri(e,t){if(hd(e)||hd(t))return e===t;if(as(e)&&as(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const i=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const s=t[o];if(as(i)&&as(s)||It(i)&&It(s)||Array.isArray(i)&&Array.isArray(s)?!ri(i,s):i!==s)return!1}}return!0}var $E=e=>e.type==="select-multiple",Q8=e=>qg(e)||mc(e),th=e=>fd(e)&&e.isConnected,PE=e=>{for(const t in e)if(_o(e[t]))return!0;return!1};function md(e,t={}){const n=Array.isArray(e);if(It(e)||n)for(const r in e)Array.isArray(e[r])||It(e[r])&&!PE(e[r])?(t[r]=Array.isArray(e[r])?[]:{},md(e[r],t[r])):rn(e[r])||(t[r]=!0);return t}function NE(e,t,n){const r=Array.isArray(e);if(It(e)||r)for(const o in e)Array.isArray(e[o])||It(e[o])&&!PE(e[o])?bt(t)||hd(n[o])?n[o]=Array.isArray(e[o])?md(e[o],[]):{...md(e[o])}:NE(e[o],rn(t)?{}:t[o],n[o]):n[o]=!ri(e[o],t[o]);return n}var Qc=(e,t)=>NE(e,t,md(t)),IE=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>bt(e)?e:t?e===""?NaN:e&&+e:n&&$r(e)?new Date(e):r?r(e):e;function nh(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Kg(t)?t.files:qg(t)?AE(e.refs).value:$E(t)?[...t.selectedOptions].map(({value:n})=>n):mc(t)?TE(e.refs).value:IE(bt(t.value)?e.ref.value:t.value,e)}var X8=(e,t,n,r)=>{const o={};for(const i of e){const s=ce(t,i);s&&et(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},La=e=>bt(e)?e:pd(e)?e.source:It(e)?pd(e.value)?e.value.source:e.value:e,Y8=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Sb(e,t,n){const r=ce(e,n);if(r||Hg(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=ce(t,i),a=ce(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:n}}var Z8=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,J8=(e,t)=>!vc(ce(e,t)).length&&Lt(e,t);const e9={mode:ur.onSubmit,reValidateMode:ur.onChange,shouldFocusError:!0};function t9(e={}){let t={...e9,...e},n={submitCount:0,isDirty:!1,isLoading:_o(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=It(t.defaultValues)||It(t.values)?un(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:un(o),s={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:eh(),array:eh(),state:eh()},f=hb(t.mode),b=hb(t.reValidateMode),m=t.criteriaMode===ur.all,g=T=>D=>{clearTimeout(c),c=setTimeout(T,D)},C=async T=>{if(u.isValid||T){const D=t.resolver?zn((await k()).errors):await P(r,!0);D!==n.isValid&&d.state.next({isValid:D})}},v=(T,D)=>{(u.isValidating||u.validatingFields)&&((T||Array.from(a.mount)).forEach(B=>B&&et(n.validatingFields,B,!!D)),n.isValidating=Object.values(n.validatingFields).some(B=>B),d.state.next({validatingFields:n.validatingFields,isValidating:n.isValidating}))},h=(T,D=[],B,ee,oe=!0,Y=!0)=>{if(ee&&B){if(s.action=!0,Y&&Array.isArray(ce(r,T))){const se=B(ce(r,T),ee.argA,ee.argB);oe&&et(r,T,se)}if(Y&&Array.isArray(ce(n.errors,T))){const se=B(ce(n.errors,T),ee.argA,ee.argB);oe&&et(n.errors,T,se),J8(n.errors,T)}if(u.touchedFields&&Y&&Array.isArray(ce(n.touchedFields,T))){const se=B(ce(n.touchedFields,T),ee.argA,ee.argB);oe&&et(n.touchedFields,T,se)}u.dirtyFields&&(n.dirtyFields=Qc(o,i)),d.state.next({name:T,isDirty:z(T,D),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else et(i,T,D)},y=(T,D)=>{et(n.errors,T,D),d.state.next({errors:n.errors})},S=T=>{n.errors=T,d.state.next({errors:n.errors,isValid:!1})},R=(T,D,B,ee)=>{const oe=ce(r,T);if(oe){const Y=ce(i,T,bt(B)?ce(o,T):B);bt(Y)||ee&&ee.defaultChecked||D?et(i,T,D?Y:nh(oe._f)):H(T,Y),s.mount&&C()}},_=(T,D,B,ee,oe)=>{let Y=!1,se=!1;const Ie={name:T},Ge=!!(ce(r,T)&&ce(r,T)._f.disabled);if(!B||ee){u.isDirty&&(se=n.isDirty,n.isDirty=Ie.isDirty=z(),Y=se!==Ie.isDirty);const ot=Ge||ri(ce(o,T),D);se=!!(!Ge&&ce(n.dirtyFields,T)),ot||Ge?Lt(n.dirtyFields,T):et(n.dirtyFields,T,!0),Ie.dirtyFields=n.dirtyFields,Y=Y||u.dirtyFields&&se!==!ot}if(B){const ot=ce(n.touchedFields,T);ot||(et(n.touchedFields,T,B),Ie.touchedFields=n.touchedFields,Y=Y||u.touchedFields&&ot!==B)}return Y&&oe&&d.state.next(Ie),Y?Ie:{}},E=(T,D,B,ee)=>{const oe=ce(n.errors,T),Y=u.isValid&&cr(D)&&n.isValid!==D;if(e.delayError&&B?(l=g(()=>y(T,B)),l(e.delayError)):(clearTimeout(c),l=null,B?et(n.errors,T,B):Lt(n.errors,T)),(B?!ri(oe,B):oe)||!zn(ee)||Y){const se={...ee,...Y&&cr(D)?{isValid:D}:{},errors:n.errors,name:T};n={...n,...se},d.state.next(se)}},k=async T=>{v(T,!0);const D=await t.resolver(i,t.context,X8(T||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(T),D},F=async T=>{const{errors:D}=await k(T);if(T)for(const B of T){const ee=ce(D,B);ee?et(n.errors,B,ee):Lt(n.errors,B)}else n.errors=D;return D},P=async(T,D,B={valid:!0})=>{for(const ee in T){const oe=T[ee];if(oe){const{_f:Y,...se}=oe;if(Y){const Ie=a.array.has(Y.name);v([ee],!0);const Ge=await xb(oe,i,m,t.shouldUseNativeValidation&&!D,Ie);if(v([ee]),Ge[Y.name]&&(B.valid=!1,D))break;!D&&(ce(Ge,Y.name)?Ie?K8(n.errors,Ge,Y.name):et(n.errors,Y.name,Ge[Y.name]):Lt(n.errors,Y.name))}se&&await P(se,D,B)}}return B.valid},V=()=>{for(const T of a.unMount){const D=ce(r,T);D&&(D._f.refs?D._f.refs.every(B=>!th(B)):!th(D._f.ref))&&Z(T)}a.unMount=new Set},z=(T,D)=>(T&&D&&et(i,T,D),!ri(Q(),o)),j=(T,D,B)=>_E(T,a,{...s.mount?i:bt(D)?o:$r(T)?{[T]:D}:D},B,D),U=T=>vc(ce(s.mount?i:o,T,e.shouldUnregister?ce(o,T,[]):[])),H=(T,D,B={})=>{const ee=ce(r,T);let oe=D;if(ee){const Y=ee._f;Y&&(!Y.disabled&&et(i,T,IE(D,Y)),oe=fd(Y.ref)&&rn(D)?"":D,$E(Y.ref)?[...Y.ref.options].forEach(se=>se.selected=oe.includes(se.value)):Y.refs?mc(Y.ref)?Y.refs.length>1?Y.refs.forEach(se=>(!se.defaultChecked||!se.disabled)&&(se.checked=Array.isArray(oe)?!!oe.find(Ie=>Ie===se.value):oe===se.value)):Y.refs[0]&&(Y.refs[0].checked=!!oe):Y.refs.forEach(se=>se.checked=se.value===oe):Kg(Y.ref)?Y.ref.value="":(Y.ref.value=oe,Y.ref.type||d.values.next({name:T,values:{...i}})))}(B.shouldDirty||B.shouldTouch)&&_(T,oe,B.shouldTouch,B.shouldDirty,!0),B.shouldValidate&&L(T)},G=(T,D,B)=>{for(const ee in D){const oe=D[ee],Y=`${T}.${ee}`,se=ce(r,Y);(a.array.has(T)||!hd(oe)||se&&!se._f)&&!as(oe)?G(Y,oe,B):H(Y,oe,B)}},X=(T,D,B={})=>{const ee=ce(r,T),oe=a.array.has(T),Y=un(D);et(i,T,Y),oe?(d.array.next({name:T,values:{...i}}),(u.isDirty||u.dirtyFields)&&B.shouldDirty&&d.state.next({name:T,dirtyFields:Qc(o,i),isDirty:z(T,Y)})):ee&&!ee._f&&!rn(Y)?G(T,Y,B):H(T,Y,B),mb(T,a)&&d.state.next({...n}),d.values.next({name:s.mount?T:void 0,values:{...i}})},I=async T=>{const D=T.target;let B=D.name,ee=!0;const oe=ce(r,B),Y=()=>D.type?nh(oe._f):SE(T),se=Ie=>{ee=Number.isNaN(Ie)||Ie===ce(i,B,Ie)};if(oe){let Ie,Ge;const ot=Y(),Be=T.type===dd.BLUR||T.type===dd.FOCUS_OUT,Re=!Y8(oe._f)&&!t.resolver&&!ce(n.errors,B)&&!oe._f.deps||Z8(Be,ce(n.touchedFields,B),n.isSubmitted,b,f),Zt=mb(B,a,Be);et(i,B,ot),Be?(oe._f.onBlur&&oe._f.onBlur(T),l&&l(0)):oe._f.onChange&&oe._f.onChange(T);const tr=_(B,ot,Be,!1),mr=!zn(tr)||Zt;if(!Be&&d.values.next({name:B,type:T.type,values:{...i}}),Re)return u.isValid&&C(),mr&&d.state.next({name:B,...Zt?{}:tr});if(!Be&&Zt&&d.state.next({...n}),t.resolver){const{errors:we}=await k([B]);if(se(ot),ee){const Qe=Sb(n.errors,r,B),O=Sb(we,r,Qe.name||B);Ie=O.error,B=O.name,Ge=zn(we)}}else v([B],!0),Ie=(await xb(oe,i,m,t.shouldUseNativeValidation))[B],v([B]),se(ot),ee&&(Ie?Ge=!1:u.isValid&&(Ge=await P(r,!0)));ee&&(oe._f.deps&&L(oe._f.deps),E(B,Ge,Ie,tr))}},M=(T,D)=>{if(ce(n.errors,D)&&T.focus)return T.focus(),1},L=async(T,D={})=>{let B,ee;const oe=Su(T);if(t.resolver){const Y=await F(bt(T)?T:oe);B=zn(Y),ee=T?!oe.some(se=>ce(Y,se)):B}else T?(ee=(await Promise.all(oe.map(async Y=>{const se=ce(r,Y);return await P(se&&se._f?{[Y]:se}:se)}))).every(Boolean),!(!ee&&!n.isValid)&&C()):ee=B=await P(r);return d.state.next({...!$r(T)||u.isValid&&B!==n.isValid?{}:{name:T},...t.resolver||!T?{isValid:B}:{},errors:n.errors}),D.shouldFocus&&!ee&&cl(r,M,T?oe:a.mount),ee},Q=T=>{const D={...o,...s.mount?i:{}};return bt(T)?D:$r(T)?ce(D,T):T.map(B=>ce(D,B))},A=(T,D)=>({invalid:!!ce((D||n).errors,T),isDirty:!!ce((D||n).dirtyFields,T),isTouched:!!ce((D||n).touchedFields,T),isValidating:!!ce((D||n).validatingFields,T),error:ce((D||n).errors,T)}),K=T=>{T&&Su(T).forEach(D=>Lt(n.errors,D)),d.state.next({errors:T?n.errors:{}})},W=(T,D,B)=>{const ee=(ce(r,T,{_f:{}})._f||{}).ref;et(n.errors,T,{...D,ref:ee}),d.state.next({name:T,errors:n.errors,isValid:!1}),B&&B.shouldFocus&&ee&&ee.focus&&ee.focus()},ae=(T,D)=>_o(T)?d.values.subscribe({next:B=>T(j(void 0,D),B)}):j(T,D,!0),Z=(T,D={})=>{for(const B of T?Su(T):a.mount)a.mount.delete(B),a.array.delete(B),D.keepValue||(Lt(r,B),Lt(i,B)),!D.keepError&&Lt(n.errors,B),!D.keepDirty&&Lt(n.dirtyFields,B),!D.keepTouched&&Lt(n.touchedFields,B),!D.keepIsValidating&&Lt(n.validatingFields,B),!t.shouldUnregister&&!D.keepDefaultValue&&Lt(o,B);d.values.next({values:{...i}}),d.state.next({...n,...D.keepDirty?{isDirty:z()}:{}}),!D.keepIsValid&&C()},ye=({disabled:T,name:D,field:B,fields:ee,value:oe})=>{if(cr(T)){const Y=T?void 0:bt(oe)?nh(B?B._f:ce(ee,D)._f):oe;et(i,D,Y),_(D,Y,!1,!1,!0)}},be=(T,D={})=>{let B=ce(r,T);const ee=cr(D.disabled);return et(r,T,{...B||{},_f:{...B&&B._f?B._f:{ref:{name:T}},name:T,mount:!0,...D}}),a.mount.add(T),B?ye({field:B,disabled:D.disabled,name:T,value:D.value}):R(T,!0,D.value),{...ee?{disabled:D.disabled}:{},...t.progressive?{required:!!D.required,min:La(D.min),max:La(D.max),minLength:La(D.minLength),maxLength:La(D.maxLength),pattern:La(D.pattern)}:{},name:T,onChange:I,onBlur:I,ref:oe=>{if(oe){be(T,D),B=ce(r,T);const Y=bt(oe.value)&&oe.querySelectorAll&&oe.querySelectorAll("input,select,textarea")[0]||oe,se=Q8(Y),Ie=B._f.refs||[];if(se?Ie.find(Ge=>Ge===Y):Y===B._f.ref)return;et(r,T,{_f:{...B._f,...se?{refs:[...Ie.filter(th),Y,...Array.isArray(ce(o,T))?[{}]:[]],ref:{type:Y.type,name:T}}:{ref:Y}}}),R(T,!1,void 0,Y)}else B=ce(r,T,{}),B._f&&(B._f.mount=!1),(t.shouldUnregister||D.shouldUnregister)&&!(CE(a.array,T)&&s.action)&&a.unMount.add(T)}}},ie=()=>t.shouldFocusError&&cl(r,M,a.mount),Ne=T=>{cr(T)&&(d.state.next({disabled:T}),cl(r,(D,B)=>{let ee=T;const oe=ce(r,B);oe&&cr(oe._f.disabled)&&(ee||(ee=oe._f.disabled)),D.disabled=ee},0,!1))},Se=(T,D)=>async B=>{let ee;B&&(B.preventDefault&&B.preventDefault(),B.persist&&B.persist());let oe=un(i);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:Y,values:se}=await k();n.errors=Y,oe=se}else await P(r);if(Lt(n.errors,"root"),zn(n.errors)){d.state.next({errors:{}});try{await T(oe,B)}catch(Y){ee=Y}}else D&&await D({...n.errors},B),ie(),setTimeout(ie);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zn(n.errors)&&!ee,submitCount:n.submitCount+1,errors:n.errors}),ee)throw ee},Ce=(T,D={})=>{ce(r,T)&&(bt(D.defaultValue)?X(T,un(ce(o,T))):(X(T,D.defaultValue),et(o,T,un(D.defaultValue))),D.keepTouched||Lt(n.touchedFields,T),D.keepDirty||(Lt(n.dirtyFields,T),n.isDirty=D.defaultValue?z(T,un(ce(o,T))):z()),D.keepError||(Lt(n.errors,T),u.isValid&&C()),d.state.next({...n}))},ve=(T,D={})=>{const B=T?un(T):o,ee=un(B),oe=zn(T),Y=oe?o:ee;if(D.keepDefaultValues||(o=B),!D.keepValues){if(D.keepDirtyValues)for(const se of a.mount)ce(n.dirtyFields,se)?et(Y,se,ce(i,se)):X(se,ce(Y,se));else{if(Ug&&bt(T))for(const se of a.mount){const Ie=ce(r,se);if(Ie&&Ie._f){const Ge=Array.isArray(Ie._f.refs)?Ie._f.refs[0]:Ie._f.ref;if(fd(Ge)){const ot=Ge.closest("form");if(ot){ot.reset();break}}}}r={}}i=e.shouldUnregister?D.keepDefaultValues?un(o):{}:un(Y),d.array.next({values:{...Y}}),d.values.next({values:{...Y}})}a={mount:D.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!D.keepIsValid||!!D.keepDirtyValues,s.watch=!!e.shouldUnregister,d.state.next({submitCount:D.keepSubmitCount?n.submitCount:0,isDirty:oe?!1:D.keepDirty?n.isDirty:!!(D.keepDefaultValues&&!ri(T,o)),isSubmitted:D.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:oe?[]:D.keepDirtyValues?D.keepDefaultValues&&i?Qc(o,i):n.dirtyFields:D.keepDefaultValues&&T?Qc(o,T):{},touchedFields:D.keepTouched?n.touchedFields:{},errors:D.keepErrors?n.errors:{},isSubmitSuccessful:D.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Oe=(T,D)=>ve(_o(T)?T(i):T,D);return{control:{register:be,unregister:Z,getFieldState:A,handleSubmit:Se,setError:W,_executeSchema:k,_getWatch:j,_getDirty:z,_updateValid:C,_removeUnmounted:V,_updateFieldArray:h,_updateDisabledField:ye,_getFieldArray:U,_reset:ve,_resetDefaultValues:()=>_o(t.defaultValues)&&t.defaultValues().then(T=>{Oe(T,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:T=>{n={...n,...T}},_disableForm:Ne,_subjects:d,_proxyFormState:u,_setErrors:S,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(T){s=T},get _defaultValues(){return o},get _names(){return a},set _names(T){a=T},get _formState(){return n},set _formState(T){n=T},get _options(){return t},set _options(T){t={...t,...T}}},trigger:L,register:be,handleSubmit:Se,watch:ae,setValue:X,getValues:Q,reset:Oe,resetField:Ce,clearErrors:K,unregister:Z,setError:W,setFocus:(T,D={})=>{const B=ce(r,T),ee=B&&B._f;if(ee){const oe=ee.refs?ee.refs[0]:ee.ref;oe.focus&&(oe.focus(),D.shouldSelect&&oe.select())}},getFieldState:A}}function n9(e={}){const t=ge.useRef(),n=ge.useRef(),[r,o]=ge.useState({isDirty:!1,isValidating:!1,isLoading:_o(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:_o(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...t9(e),formState:r});const i=t.current.control;return i._options=e,Wg({subject:i._subjects.state,next:s=>{RE(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),ge.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ge.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),ge.useEffect(()=>{e.values&&!ri(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[e.values,i]),ge.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ge.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),ge.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=wE(r,i),t.current}const da=ca({key:"currentUser",default:void 0}),r9=ca({key:"currentJhData",default:{admin_access:!1,base_url:"/hub",options_form:!1,prefix:"/",user:"",xsrf_token:""}}),Ni=ca({key:"currentNotification",default:void 0}),OE=ca({key:"currentFormInput",default:void 0}),ME=ca({key:"currentImage",default:void 0}),LE=ca({key:"currentFile",default:void 0}),FE=({id:e})=>{const t=yg(),[n,r]=x.useState(!1),[o]=kt(da),[,i]=kt(Ni),[s,a]=kt(OE),[l,c]=x.useState(""),[u,d]=kt(LE),[f,b]=kt(ME),[m,g]=x.useState(!1),{data:C,error:v}=qr({queryKey:["app-form",e],queryFn:()=>Xt.get(`/server/${e}`).then(M=>M.data),enabled:!!e}),{data:h,isLoading:y}=qr({queryKey:["app-frameworks"],queryFn:()=>Xt.get("/frameworks/").then(M=>M.data)}),{data:S,isLoading:R}=qr({queryKey:["app-environments"],queryFn:()=>Xt.get("/conda-environments/").then(M=>M.data)}),{data:_,isLoading:E}=qr({queryKey:["app-profiles"],queryFn:()=>Xt.get("/spawner-profiles/").then(M=>M.data)}),{control:k,handleSubmit:F,reset:P,watch:V,formState:{errors:z}}=n9({defaultValues:{display_name:"",description:"",framework:"",thumbnail:"",filepath:"",conda_env:"",env:"",custom_command:"",profile:"",is_public:!1}}),j=V("framework"),U=({display_name:M,description:L,framework:Q,thumbnail:A,filepath:K,conda_env:W,env:ae,custom_command:Z,profile:ye})=>{if(_&&_.length>0){const be={jhub_app:!0,display_name:l||M,description:L,framework:Q,thumbnail:A,filepath:K,conda_env:W,env:ae?JSON.parse(ae):null,custom_command:Z,profile:ye,is_public:m};a(be),t(`/server-types${e?`?id=${e}`:""}`)}else{const be={servername:l||M,user_options:{jhub_app:!0,name:l||M,display_name:M,description:L||"",framework:Q,thumbnail:A||"",filepath:K||"",conda_env:W||"",env:ae?JSON.parse(ae):null,custom_command:Z||"",profile:ye||"",public:m}};r(!0),e?I(be,{onSuccess:async()=>{window.location.assign(Kn)},onError:async ie=>{r(!1),i(ie.message)}}):X(be,{onSuccess:async ie=>{const Ne=o==null?void 0:o.name;if(Ne&&(ie==null?void 0:ie.length)>1){const Se=ie[1];window.location.assign(`${Kn}/spawn-pending/${Ne}/${Se}`)}},onError:async ie=>{r(!1),i(ie.message)}})}},H=async({servername:M,user_options:L})=>{const Q={accept:"application/json","Content-Type":"multipart/form-data"},A=new FormData;return A.append("data",JSON.stringify({servername:M,user_options:L})),u&&A.append("thumbnail",u),(await Xt.post("/server",A,{headers:Q})).data},G=async({servername:M,user_options:L})=>{const Q={accept:"application/json","Content-Type":"multipart/form-data"},A=new FormData;return A.append("data",JSON.stringify({servername:M,user_options:L})),u?A.append("thumbnail",u):f&&A.append("thumbnail_data_url",f),(await Xt.put(`/server/${M}`,A,{headers:Q})).data},{mutate:X}=qs({mutationFn:H,retry:1}),{mutate:I}=qs({mutationFn:G,retry:1});return x.useEffect(()=>{C!=null&&C.name&&(C!=null&&C.user_options)&&(c(C.name),P({...C.user_options,env:C.user_options.env?JSON.stringify(C.user_options.env):void 0}),g(C.user_options.public),b(C.user_options.thumbnail))},[C==null?void 0:C.name,C==null?void 0:C.user_options,P,b]),x.useEffect(()=>{s&&(c(s.display_name),P({display_name:s.display_name||"",description:s.description||"",framework:s.framework||"",filepath:s.filepath||"",conda_env:s.conda_env||"",env:s.env?JSON.stringify(s.env):void 0,custom_command:s.custom_command||"",profile:s.profile||""}),g(s.is_public),b(s.thumbnail))},[s,P,b]),x.useEffect(()=>{v&&i(v.message)},[v,i]),p.jsxs("form",{id:"app-form",onSubmit:F(U),className:"form",noValidate:!0,children:[p.jsxs("div",{className:"form-section",children:[p.jsx("h2",{children:"App Info"}),p.jsx(Br,{name:"display_name",control:k,rules:Vc,render:({field:{ref:M,...L}})=>{var Q;return p.jsx(yr,{children:p.jsx(qi,{...L,id:"display_name",label:"Name",placeholder:"Add app name (max. 16 characters)",autoFocus:!0,required:!0,error:!!((Q=z.display_name)!=null&&Q.message),inputProps:{maxLength:16}})})}}),p.jsx(Br,{name:"description",control:k,render:({field:{ref:M,...L}})=>p.jsx(yr,{children:p.jsx(qi,{...L,id:"description",label:"Description",placeholder:"Add app description (max. 75 characters)",multiline:!0,rows:4,inputProps:{maxLength:75}})})})]}),p.jsx("hr",{}),p.jsxs("div",{className:"form-section",children:[p.jsx("h2",{children:"Configuration"}),p.jsx(Br,{name:"framework",control:k,rules:Vc,render:({field:{ref:M,...L}})=>{var Q;return p.jsxs(yr,{children:[p.jsx(sm,{id:"framework-label",required:!0,children:"Framework"}),p.jsx(lm,{...L,id:"framework",label:"Framework",required:!0,error:!!((Q=z.framework)!=null&&Q.message),children:h==null?void 0:h.map(A=>p.jsx(gs,{value:A.name,children:A.display_name},A.name))})]})}}),j==="custom"?p.jsx(Br,{name:"custom_command",control:k,rules:Vc,render:({field:{ref:M,...L}})=>p.jsx(yr,{children:p.jsx(qi,{...L,id:"custom_command",label:"Custom Command",required:j==="custom"})})}):p.jsx(p.Fragment,{}),S&&S.length>0?p.jsx(Br,{name:"conda_env",control:k,rules:Vc,render:({field:{ref:M,...L}})=>{var Q;return p.jsxs(yr,{children:[p.jsx(sm,{id:"framework-label",required:!0,children:"Software Environment"}),p.jsx(lm,{...L,id:"conda_env",label:"Software Environment",required:!0,error:!!((Q=z.conda_env)!=null&&Q.message),children:S.map(A=>p.jsx(gs,{value:A,children:A},A))})]})}}):p.jsx(p.Fragment,{}),p.jsx(Br,{name:"filepath",control:k,render:({field:{ref:M,...L}})=>{var Q;return p.jsx(yr,{children:p.jsx(qi,{...L,id:"filepath",label:"File path",placeholder:'Enter the path to the file, e.g. "/shared/users/panel_basic.py"',error:!!((Q=z.filepath)!=null&&Q.message)})})}}),p.jsx(Br,{name:"env",control:k,render:({field:{ref:M,...L}})=>p.jsx(yr,{children:p.jsx(qi,{...L,id:"env",label:"Environment Variables",placeholder:'Enter valid json: {"KEY_1":"VALUE_1","KEY_2":"VALUE_2"}'})})})]}),p.jsx("hr",{}),p.jsxs("div",{className:"form-section",children:[p.jsx("h2",{children:"Sharing"}),p.jsx(Br,{name:"is_public",control:k,render:({field:{ref:M,value:L,onChange:Q,...A}})=>p.jsx(yr,{children:p.jsx(GC,{control:p.jsx(jD,{...A,id:"is_public",checked:m,onChange:()=>{g(!m)}}),label:"Allow Public Access"})})})]}),p.jsx("hr",{}),p.jsxs("div",{className:"form-section",children:[p.jsx("h2",{children:"App Thumbnail"}),p.jsx(Br,{name:"thumbnail",control:k,render:({field:{ref:M,value:L,onChange:Q,...A}})=>p.jsx(yr,{children:p.jsx(F9,{...A,id:"thumbnail",currentImage:f,setCurrentImage:b,currentFile:u,setCurrentFile:d})})})]}),p.jsx("hr",{}),p.jsxs("div",{className:"button-section",children:[p.jsx("div",{className:"prev",children:p.jsx(Et,{id:"cancel-btn",type:"button",variant:"text",color:"secondary",onClick:()=>_r(`${Kn}`),children:"Cancel"})}),p.jsx("div",{className:"next",children:p.jsx(Et,{id:"submit-btn",type:"submit",variant:"contained",color:"primary",disabled:y||R||E||n,children:_&&_.length>0?p.jsx(p.Fragment,{children:"Next"}):e?p.jsx(p.Fragment,{children:"Save"}):p.jsx(p.Fragment,{children:"Create App"})})})]})]})};var DE={exports:{}};/*! + hot module replacement.`;console.warn(t)}}function zO(e){ua.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&jO(e.key),Di.set(e.key,e);const t=e.set==null?new _s.RecoilValueReadOnly(e.key):new _s.RecoilState(e.key);return km.set(e.key,t),t}class Y1 extends Error{}function OO(e){const t=Di.get(e);if(t==null)throw new Y1(`Missing definition for RecoilValue: "${e}""`);return t}function IO(e){return Di.get(e)}const hf=new Map;function LO(e){var t;if(!nt("recoil_memory_managament_2020"))return;const n=Di.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Di.delete(e),(r=_1(e))===null||r===void 0||r(),hf.delete(e)}}function BO(e,t){nt("recoil_memory_managament_2020")&&(t===void 0?hf.delete(e):hf.set(e,t))}function _1(e){return hf.get(e)}var Cn={nodes:Di,recoilValues:km,registerNode:zO,getNode:OO,getNodeMaybe:IO,deleteNodeConfigIfPossible:LO,setConfigDeletionHandler:BO,getConfigDeletionHandler:_1,recoilValuesForKeys:kO,NodeMissingError:Y1,DefaultValue:Z1,DEFAULT_VALUE:EO};function MO(e,t){t()}var NO={enqueueExecution:MO};function XO(e,t){return t={exports:{}},e(t,t.exports),t.exports}var UO=XO(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},n={},r=5,o=Math.pow(2,r),i=o-1,s=o/2,a=o/4,l={},c=function(j){return function(){return j}},u=n.hash=function(O){var j=typeof O>"u"?"undefined":t(O);if(j==="number")return O;j!=="string"&&(O+="");for(var ee=0,fe=0,de=O.length;fe>1&1431655765,j=(j&858993459)+(j>>2&858993459),j=j+(j>>4)&252645135,j+=j>>8,j+=j>>16,j&127},p=function(j,ee){return ee>>>j&i},y=function(j){return 1<=ee;)de[ke--]=de[ke];return de[ee]=fe,de}for(var Re=0,De=0,Me=new Array(Ae+1);Re>>=1;return ke[ee]=fe,M(j,De+1,ke)},F=function(j,ee,fe,de){for(var Ae=new Array(ee-1),ke=0,Re=0,De=0,Me=de.length;De1?L(j,this.hash,Me):Me[0]}var ct=de();return ct===l?this:(++Re.value,J(j,fe,this.hash,this,Ae,R(j,Ae,ke,ct)))},B=function(j,ee,fe,de,Ae,ke,Re){var De=this.mask,Me=this.children,ct=p(fe,Ae),dn=y(ct),It=v(De,dn),Mn=De&dn,rr=Mn?Me[It]:C,Ii=rr._modify(j,ee,fe+r,de,Ae,ke,Re);if(rr===Ii)return this;var wc=Z(j,this),ha=De,va=void 0;if(Mn&&H(Ii)){if(ha&=~dn,!ha)return C;if(Me.length<=2&&U(Me[It^1]))return Me[It^1];va=b(wc,It,Me)}else if(!Mn&&!H(Ii)){if(Me.length>=s)return X(j,ct,Ii,De,Me);ha|=dn,va=A(wc,It,Ii,Me)}else va=m(wc,It,Ii,Me);return wc?(this.mask=ha,this.children=va,this):k(j,ha,va)},G=function(j,ee,fe,de,Ae,ke,Re){var De=this.size,Me=this.children,ct=p(fe,Ae),dn=Me[ct],It=(dn||C)._modify(j,ee,fe+r,de,Ae,ke,Re);if(dn===It)return this;var Mn=Z(j,this),rr=void 0;if(H(dn)&&!H(It))++De,rr=m(Mn,ct,It,Me);else if(!H(dn)&&H(It)){if(--De,De<=a)return F(j,De,ct,Me);rr=m(Mn,ct,C,Me)}else rr=m(Mn,ct,It,Me);return Mn?(this.size=De,this.children=rr,this):M(j,De,rr)};C._modify=function(O,j,ee,fe,de,Ae,ke){var Re=fe();return Re===l?C:(++ke.value,R(O,de,Ae,Re))};function T(O,j,ee,fe,de){this._editable=O,this._edit=j,this._config=ee,this._root=fe,this._size=de}T.prototype.setTree=function(O,j){return this._editable?(this._root=O,this._size=j,this):O===this._root?this:new T(this._editable,this._edit,this._config,O,j)};var W=n.tryGetHash=function(O,j,ee,fe){for(var de=fe._root,Ae=0,ke=fe._config.keyEq;;)switch(de.type){case h:return ke(ee,de.key)?de.value:O;case P:{if(j===de.hash)for(var Re=de.children,De=0,Me=Re.length;De{n.set(o,t(r,o))}),n}var vf=QO;function KO(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function GO(e){return{nodeDeps:vf(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:vf(e.nodeToNodeSubscriptions,t=>new Set(t))}}function $p(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:i}=n,s=o.get(e);if(s&&r&&s!==r.nodeDeps.get(e))return;o.set(e,t);const a=s==null?t:cl(t,s);for(const l of a)i.has(l)||i.set(l,new Set),pt(i.get(l)).add(e);if(s){const l=cl(s,t);for(const c of l){if(!i.has(c))return;const u=pt(i.get(c));u.delete(e),u.size===0&&i.delete(c)}}}function ZO(e,t,n,r){var o,i,s,a;const l=n.getState();r===l.currentTree.version||r===((o=l.nextTree)===null||o===void 0?void 0:o.version)||((i=l.previousTree)===null||i===void 0||i.version);const c=n.getGraph(r);if($p(e,t,c),r===((s=l.previousTree)===null||s===void 0?void 0:s.version)){const f=n.getGraph(l.currentTree.version);$p(e,t,f,c)}if(r===((a=l.previousTree)===null||a===void 0?void 0:a.version)||r===l.currentTree.version){var u;const f=(u=l.nextTree)===null||u===void 0?void 0:u.version;if(f!==void 0){const p=n.getGraph(f);$p(e,t,p,c)}}}var hc={cloneGraph:GO,graph:KO,saveDepsToStore:ZO};let YO=0;const _O=()=>YO++;let $O=0;const eI=()=>$O++;let tI=0;const nI=()=>tI++;var Vd={getNextTreeStateVersion:_O,getNextStoreID:eI,getNextComponentID:nI};const{persistentMap:Wg}=JO,{graph:rI}=hc,{getNextTreeStateVersion:$1}=Vd;function e2(){const e=$1();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Wg(),nonvalidatedAtoms:Wg()}}function oI(){const e=e2();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,rI()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var t2={makeEmptyTreeState:e2,makeEmptyStoreState:oI,getNextTreeStateVersion:$1};class n2{}function iI(){return new n2}var Fd={RetentionZone:n2,retentionZone:iI};function sI(e,t){const n=new Set(e);return n.add(t),n}function aI(e,t){const n=new Set(e);return n.delete(t),n}function lI(e,t,n){const r=new Map(e);return r.set(t,n),r}function cI(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function uI(e,t){const n=new Map(e);return n.delete(t),n}function fI(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var r2={setByAddingToSet:sI,setByDeletingFromSet:aI,mapBySettingInMap:lI,mapByUpdatingInMap:cI,mapByDeletingFromMap:uI,mapByDeletingMultipleFromMap:fI};function*dI(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var Om=dI;function pI(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var o2=pI;const{getNode:vc,getNodeMaybe:hI,recoilValuesForKeys:Qg}=Cn,{RetentionZone:Kg}=Fd,{setByAddingToSet:vI}=r2,AI=Object.freeze(new Set);class mI extends Error{}function PI(e,t,n){if(!nt("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(i){let s=r.get(i);s||r.set(i,s=new Set),s.add(t)}if(n instanceof Kg)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!nt("recoil_memory_managament_2020"))return;const{retention:i}=e.getState();function s(a){const l=i.nodesRetainedByZone.get(a);l==null||l.delete(t),l&&l.size===0&&i.nodesRetainedByZone.delete(a)}if(n instanceof Kg)s(n);else if(Array.isArray(n))for(const a of n)s(a)}}function Im(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=vc(n),s=PI(e,n,i.retainedBy),a=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{a(),s()})}function yI(e,t,n){Im(e,e.getState().currentTree,t,n)}function gI(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function bI(e,t,n){return Im(e,t,n,"get"),vc(n).get(e,t)}function i2(e,t,n){return vc(n).peek(e,t)}function wI(e,t,n){var r;const o=hI(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:vI(e.dirtyAtoms,t)}}function xI(e,t,n,r){const o=vc(n);if(o.set==null)throw new mI(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return Im(e,t,n,"set"),i(e,t,r)}function SI(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=vc(n).nodeType;return o2({type:i},{loadable:()=>i2(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>i==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var s;return Qg((s=o.nodeDeps.get(n))!==null&&s!==void 0?s:[])},subscribers:()=>{var s,a;return{nodes:Qg(Om(s2(e,t,new Set([n])),l=>l!==n)),components:Ud((s=(a=r.nodeToComponentSubscriptions.get(n))===null||a===void 0?void 0:a.values())!==null&&s!==void 0?s:[],([l])=>({name:l}))}}})}function s2(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let a=o.pop();a;a=o.pop()){var s;r.add(a);const l=(s=i.nodeToNodeSubscriptions.get(a))!==null&&s!==void 0?s:AI;for(const c of l)r.has(c)||o.push(c)}return r}var Wo={getNodeLoadable:bI,peekNodeLoadable:i2,setNodeValue:xI,initializeNode:yI,cleanUpNode:gI,setUnvalidatedAtomValue_DEPRECATED:wI,peekNodeInfo:SI,getDownstreamNodes:s2};let a2=null;function HI(e){a2=e}function CI(){var e;(e=a2)===null||e===void 0||e()}var l2={setInvalidateMemoizedSnapshot:HI,invalidateMemoizedSnapshot:CI};const{getDownstreamNodes:RI,getNodeLoadable:c2,setNodeValue:DI}=Wo,{getNextComponentID:TI}=Vd,{getNode:EI,getNodeMaybe:u2}=Cn,{DefaultValue:Lm}=Cn,{reactMode:kI}=pc,{AbstractRecoilValue:jI,RecoilState:zI,RecoilValueReadOnly:OI,isRecoilValue:II}=_s,{invalidateMemoizedSnapshot:LI}=l2;function BI(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=i.previousTree)===null||o===void 0||o.version);const s=c2(e,n,t);return s.state==="loading"&&s.contents.catch(()=>{}),s}function MI(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof Lm?n.delete(o):n.set(o,r)}),n}function NI(e,t,{key:n},r){if(typeof r=="function"){const o=c2(e,t,n);if(o.state==="loading"){const i=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw Be(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function XI(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,s=NI(e,t,o,i),a=DI(e,t,o.key,s);for(const[l,c]of a.entries())Iv(t,l,c)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;Iv(t,o,i)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:i}=n,s=u2(o);s==null||(r=s.invalidate)===null||r===void 0||r.call(s,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,i),t.dirtyAtoms.add(o)}else Tm(`Unknown action ${n.type}`)}function Iv(e,t,n){n.state==="hasValue"&&n.contents instanceof Lm?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function f2(e,t){e.replaceState(n=>{const r=d2(n);for(const o of t)XI(e,r,o);return p2(e,r),LI(),r})}function qd(e,t){if(ul.length){const n=ul[ul.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else f2(e,[t])}const ul=[];function UI(){const e=new Map;return ul.push(e),()=>{for(const[t,n]of e)f2(t,n);ul.pop()}}function d2(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function p2(e,t){const n=RI(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=u2(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function h2(e,t,n){qd(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function VI(e,t,n){if(n instanceof Lm)return h2(e,t,n);qd(e,{type:"setLoadable",recoilValue:t,loadable:n})}function FI(e,t){qd(e,{type:"markModified",recoilValue:t})}function qI(e,t,n){qd(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function JI(e,{key:t},n,r=null){const o=TI(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),pt(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const s=kI();if(s.early&&(s.mode==="LEGACY"||s.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&n(a)}return{release:()=>{const a=e.getState(),l=a.nodeToComponentSubscriptions.get(t);l===void 0||!l.has(o)||(l.delete(o),l.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}function WI(e,t){var n;const{currentTree:r}=e.getState(),o=EI(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var Br={RecoilValueReadOnly:OI,AbstractRecoilValue:jI,RecoilState:zI,getRecoilValueAsLoadable:BI,setRecoilValue:h2,setRecoilValueLoadable:VI,markRecoilValueModified:FI,setUnvalidatedRecoilValue:qI,subscribeToRecoilValue:JI,isRecoilValue:II,applyAtomValueWrites:MI,batchStart:UI,writeLoadableToTreeState:Iv,invalidateDownstreams:p2,copyTreeState:d2,refreshRecoilValue:WI};function QI(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1}var KI=QI;const{cleanUpNode:GI}=Wo,{deleteNodeConfigIfPossible:ZI,getNode:v2}=Cn,{RetentionZone:A2}=Fd,YI=12e4,m2=new Set;function P2(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const s of t)if(s instanceof A2)for(const a of tL(n,s))o.add(a);else o.add(s);const i=_I(e,o);for(const s of i)eL(e,r,s)}function _I(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,s=new Set;return a(t),i;function a(l){const c=new Set,u=$I(e,r,l,i,s);for(const v of u){var f;if(v2(v).retainedBy==="recoilRoot"){s.add(v);continue}if(((f=n.retention.referenceCounts.get(v))!==null&&f!==void 0?f:0)>0){s.add(v);continue}if(y2(v).some(b=>n.retention.referenceCounts.get(b))){s.add(v);continue}const m=o.nodeToNodeSubscriptions.get(v);if(m&&KI(m,b=>s.has(b))){s.add(v);continue}i.add(v),c.add(v)}const p=new Set;for(const v of c)for(const m of(y=o.nodeDeps.get(v))!==null&&y!==void 0?y:m2){var y;i.has(m)||p.add(m)}p.size&&a(p)}}function $I(e,t,n,r,o){const i=e.getGraph(t.version),s=[],a=new Set;for(;n.size>0;)l(pt(n.values().next().value));return s;function l(c){if(r.has(c)||o.has(c)){n.delete(c);return}if(a.has(c))return;const u=i.nodeToNodeSubscriptions.get(c);if(u)for(const f of u)l(f);a.add(c),n.delete(c),s.push(c)}}function eL(e,t,n){if(!nt("recoil_memory_managament_2020"))return;GI(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=y2(n);for(const l of o){var i;(i=r.retention.nodesRetainedByZone.get(l))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const s=r.graphsByVersion.get(t.version);if(s){const l=s.nodeDeps.get(n);if(l!==void 0){s.nodeDeps.delete(n);for(const c of l){var a;(a=s.nodeToNodeSubscriptions.get(c))===null||a===void 0||a.delete(n)}}s.nodeToNodeSubscriptions.delete(n)}ZI(n)}function tL(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:m2}function y2(e){const t=v2(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof A2?[t]:t}function nL(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):P2(e,new Set([t]))}function rL(e,t,n){var r;if(!nt("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=((r=o.get(t))!==null&&r!==void 0?r:0)+n;i===0?g2(e,t):o.set(t,i)}function g2(e,t){if(!nt("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),nL(e,t)}function oL(e){if(!nt("recoil_memory_managament_2020"))return;const t=e.getState();P2(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function iL(e){return e===void 0?"recoilRoot":e}var zi={SUSPENSE_TIMEOUT_MS:YI,updateRetainCount:rL,updateRetainCountToZero:g2,releaseScheduledRetainablesNow:oL,retainedByOptionWithDefault:iL};const{unstable_batchedUpdates:sL}=Fa;var aL={unstable_batchedUpdates:sL};const{unstable_batchedUpdates:lL}=aL;var cL={unstable_batchedUpdates:lL};const{batchStart:uL}=Br,{unstable_batchedUpdates:fL}=cL;let Bm=fL||(e=>e());const dL=e=>{Bm=e},pL=()=>Bm,hL=e=>{Bm(()=>{let t=()=>{};try{t=uL(),e()}finally{t()}})};var Jd={getBatcher:pL,setBatcher:dL,batchUpdates:hL};function*vL(e){for(const t of e)for(const n of t)yield n}var b2=vL;const w2=typeof Window>"u"||typeof window>"u",AL=e=>!w2&&(e===window||e instanceof Window),mL=typeof navigator<"u"&&navigator.product==="ReactNative";var Wd={isSSR:w2,isReactNative:mL,isWindow:AL};function PL(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function yL(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function gL(e,t){let n,r;return[(...s)=>{const a=t(...s);return n===a||(n=a,r=e(...s)),r},()=>{n=null}]}var bL={memoizeWithArgsHash:PL,memoizeOneWithArgsHash:yL,memoizeOneWithArgsHashAndInvalidation:gL};const{batchUpdates:Lv}=Jd,{initializeNode:wL,peekNodeInfo:xL}=Wo,{graph:SL}=hc,{getNextStoreID:HL}=Vd,{DEFAULT_VALUE:CL,recoilValues:Gg,recoilValuesForKeys:Zg}=Cn,{AbstractRecoilValue:RL,getRecoilValueAsLoadable:DL,setRecoilValue:Yg,setUnvalidatedRecoilValue:TL}=Br,{updateRetainCount:wu}=zi,{setInvalidateMemoizedSnapshot:EL}=l2,{getNextTreeStateVersion:kL,makeEmptyStoreState:jL}=t2,{isSSR:zL}=Wd,{memoizeOneWithArgsHashAndInvalidation:OL}=bL;class Qd{constructor(t,n){Ie(this,"_store",void 0),Ie(this,"_refCount",1),Ie(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),DL(this._store,r))),Ie(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Ie(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const s=this._store.getState().currentTree;return Zg(s.dirtyAtoms)}const o=this._store.getState().knownAtoms,i=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?Gg.values():r.isInitialized===!0?Zg(b2([o,i])):Om(Gg.values(),({key:s})=>!o.has(s)&&!i.has(s))}),Ie(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),xL(this._store,this._store.getState().currentTree,r))),Ie(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new Bv(this,Lv);return r(o),o}),Ie(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new Bv(this,Lv);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:HL(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return pt(o.get(r));const i=SL();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Be("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)wL(this._store,r,"get"),wu(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){zL||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!nt("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){nt("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function x2(e,t,n=!1){const r=e.getState(),o=n?kL():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Ud(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function IL(e){const t=new Qd(jL());return e!=null?t.map(e):t}const[_g,S2]=OL((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:pt(r.previousTree);return new Qd(x2(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});EL(S2);function LL(e,t="latest"){const n=_g(e,t);return n.isRetained()?n:(S2(),_g(e,t))}class Bv extends Qd{constructor(t,n){super(x2(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Ie(this,"_batch",void 0),Ie(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{wu(i,r.key,1),Yg(this.getStore_INTERNAL(),r,o)})}),Ie(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{wu(o,r.key,1),Yg(this.getStore_INTERNAL(),r,CL)})}),Ie(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();Lv(()=>{for(const[i,s]of r.entries())wu(o,i,1),TL(o,new RL(i),s)})}),this._batch=n}}var Kd={Snapshot:Qd,MutableSnapshot:Bv,freshSnapshot:IL,cloneSnapshot:LL},BL=Kd.Snapshot,ML=Kd.MutableSnapshot,NL=Kd.freshSnapshot,XL=Kd.cloneSnapshot,Gd=Object.freeze({__proto__:null,Snapshot:BL,MutableSnapshot:ML,freshSnapshot:NL,cloneSnapshot:XL});function UL(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var VL=UL;const{useRef:FL}=ve;function qL(e){const t=FL(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var $g=qL;const{getNextTreeStateVersion:JL,makeEmptyStoreState:H2}=t2,{cleanUpNode:WL,getDownstreamNodes:QL,initializeNode:KL,setNodeValue:GL,setUnvalidatedAtomValue_DEPRECATED:ZL}=Wo,{graph:YL}=hc,{cloneGraph:_L}=hc,{getNextStoreID:C2}=Vd,{createMutableSource:eh,reactMode:R2}=pc,{applyAtomValueWrites:$L}=Br,{releaseScheduledRetainablesNow:D2}=zi,{freshSnapshot:eB}=Gd,{useCallback:tB,useContext:T2,useEffect:Mv,useMemo:nB,useRef:rB,useState:oB}=ve;function ja(){throw Be("This component must be used inside a component.")}const E2=Object.freeze({storeID:C2(),getState:ja,replaceState:ja,getGraph:ja,subscribeToTransactions:ja,addTransactionMetadata:ja});let Nv=!1;function e8(e){if(Nv)throw Be("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){nt("recoil_memory_managament_2020")&&nt("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&D2(e);const n=t.currentTree.version,r=JL();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,_L(pt(t.graphsByVersion.get(n))))}}const k2=ve.createContext({current:E2}),Zd=()=>T2(k2),j2=ve.createContext(null);function iB(){return T2(j2)}function Mm(e,t,n){const r=QL(e,n,n.dirtyAtoms);for(const o of r){const i=t.nodeToComponentSubscriptions.get(o);if(i)for(const[s,[a,l]]of i)l(n)}}function z2(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,i]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[s,a]of i)a(e);for(const[o,i]of t.transactionSubscriptions)i(e);(!R2().early||t.suspendedComponentResolvers.size>0)&&(Mm(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function sB(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,z2(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):Tm("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,nt("recoil_memory_managament_2020")&&n==null&&D2(e)}finally{t.commitDepth--}}function aB({setNotifyBatcherOfChange:e}){const t=Zd(),[,n]=oB([]);return e(()=>n({})),Mv(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),Mv(()=>{NO.enqueueExecution("Batcher",()=>{sB(t.current)})}),null}function lB(e,t){const n=H2();return t({set:(r,o)=>{const i=n.currentTree,s=GL(e,i,r.key,o),a=new Set(s.keys()),l=i.nonvalidatedAtoms.clone();for(const c of a)l.delete(c);n.currentTree={...i,dirtyAtoms:VL(i.dirtyAtoms,a),atomValues:$L(i.atomValues,s),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=ZL(n.currentTree,i,o)})}}),n}function cB(e){const t=eB(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let t8=0;function uB({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=y=>{const v=o.current.graphsByVersion;if(v.has(y))return pt(v.get(y));const m=YL();return v.set(y,m),m},s=(y,v)=>{if(v==null){const{transactionSubscriptions:m}=f.current.getState(),b=t8++;return m.set(b,y),{release:()=>{m.delete(b)}}}else{const{nodeTransactionSubscriptions:m}=f.current.getState();m.has(v)||m.set(v,new Map);const b=t8++;return pt(m.get(v)).set(b,y),{release:()=>{const A=m.get(v);A&&(A.delete(b),A.size===0&&m.delete(v))}}}},a=y=>{e8(f.current);for(const v of Object.keys(y))pt(f.current.getState().nextTree).transactionMetadata[v]=y[v]},l=y=>{e8(f.current);const v=pt(o.current.nextTree);let m;try{Nv=!0,m=y(v)}finally{Nv=!1}m!==v&&(o.current.nextTree=m,R2().early&&Mm(f.current,o.current,m),pt(c.current)())},c=rB(null),u=tB(y=>{c.current=y},[c]),f=$g(()=>n??{storeID:C2(),getState:()=>o.current,replaceState:l,getGraph:i,subscribeToTransactions:s,addTransactionMetadata:a});n!=null&&(f.current=n),o=$g(()=>e!=null?lB(f.current,e):t!=null?cB(t):H2());const p=nB(()=>eh==null?void 0:eh(o,()=>o.current.currentTree.version),[o]);return Mv(()=>{const y=f.current;for(const v of new Set(y.getState().knownAtoms))KL(y,v,"get");return()=>{for(const v of y.getState().knownAtoms)WL(y,v)}},[f]),ve.createElement(k2.Provider,{value:f},ve.createElement(j2.Provider,{value:p},ve.createElement(aB,{setNotifyBatcherOfChange:u}),r))}function fB(e){const{override:t,...n}=e,r=Zd();return t===!1&&r.current!==E2?e.children:ve.createElement(uB,n)}function dB(){return Zd().current.storeID}var oo={RecoilRoot:fB,useStoreRef:Zd,useRecoilMutableSource:iB,useRecoilStoreID:dB,notifyComponents_FOR_TESTING:Mm,sendEndOfBatchNotifications_FOR_TESTING:z2};function pB(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var O2=mB;const{useStoreRef:PB}=oo,{SUSPENSE_TIMEOUT_MS:yB}=zi,{updateRetainCount:za}=zi,{RetentionZone:gB}=Fd,{useEffect:bB,useRef:wB}=ve,{isSSR:n8}=Wd;function xB(e){if(nt("recoil_memory_managament_2020"))return SB(e)}function SB(e){const n=(Array.isArray(e)?e:[e]).map(s=>s instanceof gB?s:s.key),r=PB();bB(()=>{if(!nt("recoil_memory_managament_2020"))return;const s=r.current;if(o.current&&!n8)window.clearTimeout(o.current),o.current=null;else for(const a of n)za(s,a,1);return()=>{for(const a of n)za(s,a,-1)}},[r,...n]);const o=wB(),i=O2(n);if(!n8&&(i===void 0||!hB(i,n))){const s=r.current;for(const a of n)za(s,a,1);if(i)for(const a of i)za(s,a,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const a of n)za(s,a,-1)},yB)}}var Nm=xB;function HB(){return""}var Ac=HB;const{batchUpdates:CB}=Jd,{DEFAULT_VALUE:I2}=Cn,{currentRendererSupportsUseSyncExternalStore:RB,reactMode:fa,useMutableSource:DB,useSyncExternalStore:TB}=pc,{useRecoilMutableSource:EB,useStoreRef:Mr}=oo,{AbstractRecoilValue:Xv,getRecoilValueAsLoadable:mc,setRecoilValue:Af,setUnvalidatedRecoilValue:kB,subscribeToRecoilValue:$s}=Br,{useCallback:xn,useEffect:ea,useMemo:L2,useRef:fl,useState:Xm}=ve,{setByAddingToSet:jB}=r2,{isSSR:zB}=Wd;function Um(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const i=n.current.getState().suspendedComponentResolvers;i.add(o),zB&&at(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:Be(`Invalid value of loadable atom "${t.key}"`)}function OB(){const e=Ac(),t=Mr(),[,n]=Xm([]),r=fl(new Set);r.current=new Set;const o=fl(new Set),i=fl(new Map),s=xn(l=>{const c=i.current.get(l);c&&(c.release(),i.current.delete(l))},[i]),a=xn((l,c)=>{i.current.has(c)&&n([])},[]);return ea(()=>{const l=t.current;cl(r.current,o.current).forEach(c=>{if(i.current.has(c))return;const u=$s(l,new Xv(c),p=>a(p,c),e);i.current.set(c,u),l.getState().nextTree?l.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(l.getState(),c)}):a(l.getState(),c)}),cl(o.current,r.current).forEach(c=>{s(c)}),o.current=r.current}),ea(()=>{const l=i.current;return cl(r.current,new Set(l.keys())).forEach(c=>{const u=$s(t.current,new Xv(c),f=>a(f,c),e);l.set(c,u)}),()=>l.forEach((c,u)=>s(u))},[e,t,s,a]),L2(()=>{function l(v){return m=>{Af(t.current,v,m)}}function c(v){return()=>Af(t.current,v,I2)}function u(v){var m;r.current.has(v.key)||(r.current=jB(r.current,v.key));const b=t.current.getState();return mc(t.current,v,fa().early&&(m=b.nextTree)!==null&&m!==void 0?m:b.currentTree)}function f(v){const m=u(v);return Um(m,v,t)}function p(v){return[f(v),l(v)]}function y(v){return[u(v),l(v)]}return{getRecoilValue:f,getRecoilValueLoadable:u,getRecoilState:p,getRecoilStateLoadable:y,getSetRecoilState:l,getResetRecoilState:c}},[r,t])}const IB={current:0};function LB(e){const t=Mr(),n=Ac(),r=xn(()=>{var a;const l=t.current,c=l.getState(),u=fa().early&&(a=c.nextTree)!==null&&a!==void 0?a:c.currentTree;return{loadable:mc(l,e,u),key:e.key}},[t,e]),o=xn(a=>{let l;return()=>{var c,u;const f=a();return(c=l)!==null&&c!==void 0&&c.loadable.is(f.loadable)&&((u=l)===null||u===void 0?void 0:u.key)===f.key?l:(l=f,f)}},[]),i=L2(()=>o(r),[r,o]),s=xn(a=>{const l=t.current;return $s(l,e,a,n).release},[t,e,n]);return TB(s,i,i).loadable}function BB(e){const t=Mr(),n=xn(()=>{var c;const u=t.current,f=u.getState(),p=fa().early&&(c=f.nextTree)!==null&&c!==void 0?c:f.currentTree;return mc(u,e,p)},[t,e]),r=xn(()=>n(),[n]),o=Ac(),i=xn((c,u)=>{const f=t.current;return $s(f,e,()=>{if(!nt("recoil_suppress_rerender_in_callback"))return u();const y=n();l.current.is(y)||u(),l.current=y},o).release},[t,e,o,n]),s=EB();if(s==null)throw Be("Recoil hooks must be used in components contained within a component.");const a=DB(s,r,i),l=fl(a);return ea(()=>{l.current=a}),a}function Uv(e){const t=Mr(),n=Ac(),r=xn(()=>{var l;const c=t.current,u=c.getState(),f=fa().early&&(l=u.nextTree)!==null&&l!==void 0?l:u.currentTree;return mc(c,e,f)},[t,e]),o=xn(()=>({loadable:r(),key:e.key}),[r,e.key]),i=xn(l=>{const c=o();return l.loadable.is(c.loadable)&&l.key===c.key?l:c},[o]);ea(()=>{const l=$s(t.current,e,c=>{a(i)},n);return a(i),l.release},[n,e,t,i]);const[s,a]=Xm(o);return s.key!==e.key?o().loadable:s.loadable}function MB(e){const t=Mr(),[,n]=Xm([]),r=Ac(),o=xn(()=>{var a;const l=t.current,c=l.getState(),u=fa().early&&(a=c.nextTree)!==null&&a!==void 0?a:c.currentTree;return mc(l,e,u)},[t,e]),i=o(),s=fl(i);return ea(()=>{s.current=i}),ea(()=>{const a=t.current,l=a.getState(),c=$s(a,e,f=>{var p;if(!nt("recoil_suppress_rerender_in_callback"))return n([]);const y=o();(p=s.current)!==null&&p!==void 0&&p.is(y)||n(y),s.current=y},r);if(l.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s.current=null,n([])});else{var u;if(!nt("recoil_suppress_rerender_in_callback"))return n([]);const f=o();(u=s.current)!==null&&u!==void 0&&u.is(f)||n(f),s.current=f}return c.release},[r,o,e,t]),i}function Vm(e){return nt("recoil_memory_managament_2020")&&Nm(e),{TRANSITION_SUPPORT:Uv,SYNC_EXTERNAL_STORE:RB()?LB:Uv,MUTABLE_SOURCE:BB,LEGACY:MB}[fa().mode](e)}function B2(e){const t=Mr(),n=Vm(e);return Um(n,e,t)}function Yd(e){const t=Mr();return xn(n=>{Af(t.current,e,n)},[t,e])}function NB(e){const t=Mr();return xn(()=>{Af(t.current,e,I2)},[t,e])}function XB(e){return[B2(e),Yd(e)]}function UB(e){return[Vm(e),Yd(e)]}function VB(){const e=Mr();return(t,n={})=>{CB(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>kB(e.current,new Xv(o),r))})}}function M2(e){return nt("recoil_memory_managament_2020")&&Nm(e),Uv(e)}function N2(e){const t=Mr(),n=M2(e);return Um(n,e,t)}function FB(e){return[N2(e),Yd(e)]}var qB={recoilComponentGetRecoilValueCount_FOR_TESTING:IB,useRecoilInterface:OB,useRecoilState:XB,useRecoilStateLoadable:UB,useRecoilValue:B2,useRecoilValueLoadable:Vm,useResetRecoilState:NB,useSetRecoilState:Yd,useSetUnvalidatedAtomValues:VB,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:M2,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:N2,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:FB};function JB(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var WB=JB;function QB(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var KB=QB;function GB(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function i8(e){const t=e.atomValues.toMap(),n=vf(WB(t,(r,o)=>{const s=X2(o).persistence_UNSTABLE;return s!=null&&s.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return ZB(e.nonvalidatedAtoms.toMap(),n)}function oM(e){$d(_d(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=i8(r),i=i8(n),s=vf($B,l=>{var c,u,f,p;return{persistence_UNSTABLE:{type:(c=(u=l.persistence_UNSTABLE)===null||u===void 0?void 0:u.type)!==null&&c!==void 0?c:"none",backButton:(f=(p=l.persistence_UNSTABLE)===null||p===void 0?void 0:p.backButton)!==null&&f!==void 0?f:!1}}}),a=KB(r.dirtyAtoms,l=>o.has(l)||i.has(l));e({atomValues:o,previousAtomValues:i,atomInfo:s,modifiedAtoms:a,transactionMetadata:{...r.transactionMetadata}})},[e]))}function iM(e){$d(_d(t=>{const n=mf(t,"latest"),r=mf(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function sM(){const e=Fm(),[t,n]=rM(()=>mf(e.current)),r=O2(t),o=r8(),i=r8();if($d(_d(a=>n(mf(a)),[])),U2(()=>{const a=t.retain();if(o.current&&!o8){var l;window.clearTimeout(o.current),o.current=null,(l=i.current)===null||l===void 0||l.call(i),i.current=null}return()=>{window.setTimeout(a,10)}},[t]),r!==t&&!o8){if(o.current){var s;window.clearTimeout(o.current),o.current=null,(s=i.current)===null||s===void 0||s.call(i),i.current=null}i.current=t.retain(),o.current=window.setTimeout(()=>{var a;o.current=null,(a=i.current)===null||a===void 0||a.call(i),i.current=null},nM)}return t}function V2(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;YB(()=>{const s=new Set;for(const c of[o.atomValues.keys(),i.atomValues.keys()])for(const u of c){var a,l;((a=o.atomValues.get(u))===null||a===void 0?void 0:a.contents)!==((l=i.atomValues.get(u))===null||l===void 0?void 0:l.contents)&&X2(u).shouldRestoreFromSnapshots&&s.add(u)}s.forEach(c=>{tM(e,new eM(c),i.atomValues.has(c)?pt(i.atomValues.get(c)):_B)}),e.replaceState(c=>({...c,stateID:t.getID()}))})}function aM(){const e=Fm();return _d(t=>V2(e.current,t),[e])}var F2={useRecoilSnapshot:sM,gotoSnapshot:V2,useGotoRecoilSnapshot:aM,useRecoilTransactionObserver:iM,useTransactionObservation_DEPRECATED:oM,useTransactionSubscription_DEPRECATED:$d};const{peekNodeInfo:lM}=Wo,{useStoreRef:cM}=oo;function uM(){const e=cM();return({key:t})=>lM(e.current,e.current.getState().currentTree,t)}var fM=uM;const{reactMode:dM}=pc,{RecoilRoot:pM,useStoreRef:hM}=oo,{useMemo:vM}=ve;function AM(){dM().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=hM().current;return vM(()=>{function t({children:n}){return ve.createElement(pM,{store_INTERNAL:e},n)}return t},[e])}var mM=AM;const{loadableWithValue:PM}=dc,{initializeNode:yM}=Wo,{DEFAULT_VALUE:gM,getNode:bM}=Cn,{copyTreeState:wM,getRecoilValueAsLoadable:xM,invalidateDownstreams:SM,writeLoadableToTreeState:HM}=Br;function s8(e){return bM(e.key).nodeType==="atom"}class CM{constructor(t,n){Ie(this,"_store",void 0),Ie(this,"_treeState",void 0),Ie(this,"_changes",void 0),Ie(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!s8(r))throw Be("Reading selectors within atomicUpdate is not supported");const o=xM(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:Be(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Ie(this,"set",(r,o)=>{if(!s8(r))throw Be("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else yM(this._store,r.key,"set"),this._changes.set(r.key,o)}),Ie(this,"reset",r=>{this.set(r,gM)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=wM(this._treeState);for(const[n,r]of this._changes)HM(t,n,PM(r));return SM(this._store,t),t}}function RM(e){return t=>{e.replaceState(n=>{const r=new CM(e,n);return t(r),r.newTreeState_INTERNAL()})}}var DM={atomicUpdater:RM},TM=DM.atomicUpdater,q2=Object.freeze({__proto__:null,atomicUpdater:TM});function EM(e,t){if(!e)throw new Error(t)}var kM=EM,Qa=kM;const{atomicUpdater:jM}=q2,{batchUpdates:zM}=Jd,{DEFAULT_VALUE:OM}=Cn,{useStoreRef:IM}=oo,{refreshRecoilValue:LM,setRecoilValue:a8}=Br,{cloneSnapshot:BM}=Gd,{gotoSnapshot:MM}=F2,{useCallback:NM}=ve;class J2{}const XM=new J2;function W2(e,t,n,r){let o=XM,i;if(zM(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw Be(a);const l=o2({...r??{},set:(u,f)=>a8(e,u,f),reset:u=>a8(e,u,OM),refresh:u=>LM(e,u),gotoSnapshot:u=>MM(e,u),transact_UNSTABLE:u=>jM(e)(u)},{snapshot:()=>{const u=BM(e);return i=u.retain(),u}}),c=t(l);if(typeof c!="function")throw Be(a);o=c(...n)}),o instanceof J2&&Qa(!1),at(o))o=o.finally(()=>{var a;(a=i)===null||a===void 0||a()});else{var s;(s=i)===null||s===void 0||s()}return o}function UM(e,t){const n=IM();return NM((...r)=>W2(n.current,e,r),t!=null?[...t,n]:void 0)}var Q2={recoilCallback:W2,useRecoilCallback:UM};const{useStoreRef:VM}=oo,{refreshRecoilValue:FM}=Br,{useCallback:qM}=ve;function JM(e){const t=VM();return qM(()=>{const n=t.current;FM(n,e)},[e,t])}var WM=JM;const{atomicUpdater:QM}=q2,{useStoreRef:KM}=oo,{useMemo:GM}=ve;function ZM(e,t){const n=KM();return GM(()=>(...r)=>{QM(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var YM=ZM;class _M{constructor(t){Ie(this,"value",void 0),this.value=t}}var $M={WrappedValue:_M},eN=$M.WrappedValue,K2=Object.freeze({__proto__:null,WrappedValue:eN});const{isFastRefreshEnabled:tN}=pc;class l8 extends Error{}class nN{constructor(t){var n,r,o;Ie(this,"_name",void 0),Ie(this,"_numLeafs",void 0),Ie(this,"_root",void 0),Ie(this,"_onHit",void 0),Ie(this,"_onSet",void 0),Ie(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:i=>i}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var i,s,a,l;let c,u;for(const[b,A]of t){var f,p,y;const h=this._root;if((h==null?void 0:h.type)==="leaf")throw this.invalidCacheError();const P=c;if(c=P?P.branches.get(u):h,c=(f=c)!==null&&f!==void 0?f:{type:"branch",nodeKey:b,parent:P,branches:new Map,branchKey:u},c.type!=="branch"||c.nodeKey!==b)throw this.invalidCacheError();P==null||P.branches.set(u,c),r==null||(p=r.onNodeVisit)===null||p===void 0||p.call(r,c),u=this._mapNodeValue(A),this._root=(y=this._root)!==null&&y!==void 0?y:c}const v=c?(i=c)===null||i===void 0?void 0:i.branches.get(u):this._root;if(v!=null&&(v.type!=="leaf"||v.branchKey!==u))throw this.invalidCacheError();const m={type:"leaf",value:n,parent:c,branchKey:u};(s=c)===null||s===void 0||s.branches.set(u,m),this._root=(a=this._root)!==null&&a!==void 0?a:m,this._numLeafs++,this._onSet(m),r==null||(l=r.onNodeVisit)===null||l===void 0||l.call(r,m)};try{o()}catch(i){if(i instanceof l8)this.clear(),o();else throw i}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var i;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(i=r)===null||i===void 0?void 0:i.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=tN()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw Tm(t+(this._name!=null?` - ${this._name}`:"")),new l8}}var rN={TreeCache:nN},oN=rN.TreeCache,G2=Object.freeze({__proto__:null,TreeCache:oN});class iN{constructor(t){var n;Ie(this,"_maxSize",void 0),Ie(this,"_size",void 0),Ie(this,"_head",void 0),Ie(this,"_tail",void 0),Ie(this,"_map",void 0),Ie(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const i=this.head(),s={key:t,right:i,left:null,value:n};i?i.left=s:this._tail=s,this._map.set(r,s),this._head=s,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=pt(this._map.get(n)),o=r.right,i=r.left;o&&(o.left=r.left),i&&(i.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=i),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var sN={LRUCache:iN},aN=sN.LRUCache,Z2=Object.freeze({__proto__:null,LRUCache:aN});const{LRUCache:lN}=Z2,{TreeCache:cN}=G2;function uN({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new lN({maxSize:t}),o=new cN({name:e,mapNodeValue:n,onHit:i=>{r.set(i,!0)},onSet:i=>{const s=r.tail();r.set(i,!0),s&&o.size()>t&&o.delete(s.key)}});return o}var c8=uN;function ir(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw Be("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(at(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,i)=>ir(o,t,i.toString()))}]`;if(typeof e.toJSON=="function")return ir(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[i,s]of e)o[typeof i=="string"?i:ir(i,t)]=s;return ir(o,t,n)}return e instanceof Set?ir(Array.from(e).sort((o,i)=>ir(o,t).localeCompare(ir(i,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?ir(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${ir(o,t)}:${ir(e[o],t,o)}`).join(",")}}`}function fN(e,t={allowFunctions:!1}){return ir(e,t)}var ep=fN;const{TreeCache:dN}=G2,Kc={equality:"reference",eviction:"keep-all",maxSize:1/0};function pN({equality:e=Kc.equality,eviction:t=Kc.eviction,maxSize:n=Kc.maxSize}=Kc,r){const o=hN(e);return vN(t,n,o,r)}function hN(e){switch(e){case"reference":return t=>t;case"value":return t=>ep(t)}throw Be(`Unrecognized equality policy ${e}`)}function vN(e,t,n,r){switch(e){case"keep-all":return new dN({name:r,mapNodeValue:n});case"lru":return c8({name:r,maxSize:pt(t),mapNodeValue:n});case"most-recent":return c8({name:r,maxSize:1,mapNodeValue:n})}throw Be(`Unrecognized eviction policy ${e}`)}var AN=pN;function mN(e){return()=>null}var PN={startPerfBlock:mN};const{isLoadable:yN,loadableWithError:Gc,loadableWithPromise:gN,loadableWithValue:th}=dc,{WrappedValue:Y2}=K2,{getNodeLoadable:Zc,peekNodeLoadable:bN,setNodeValue:wN}=Wo,{saveDepsToStore:xN}=hc,{DEFAULT_VALUE:SN,getConfigDeletionHandler:HN,getNode:CN,registerNode:u8}=Cn,{isRecoilValue:RN}=_s,{markRecoilValueModified:f8}=Br,{retainedByOptionWithDefault:DN}=zi,{recoilCallback:TN}=Q2,{startPerfBlock:EN}=PN;class _2{}const Oa=new _2,Ia=[],Yc=new Map,kN=(()=>{let e=0;return()=>e++})();function $2(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=e.set!=null?e.set:void 0,s=new Set,a=AN(o??{equality:"reference",eviction:"keep-all"},n),l=DN(e.retainedBy_UNSTABLE),c=new Map;let u=0;function f(){return!nt("recoil_memory_managament_2020")||u>0}function p(T){return T.getState().knownSelectors.add(n),u++,()=>{u--}}function y(){return HN(n)!==void 0&&!f()}function v(T,W,q,ae,_){K(W,ae,_),m(T,q)}function m(T,W){F(T,W)&&X(T),A(W,!0)}function b(T,W){F(T,W)&&(pt(k(T)).stateVersions.clear(),A(W,!1))}function A(T,W){const q=Yc.get(T);if(q!=null){for(const ae of q)f8(ae,pt(t));W&&Yc.delete(T)}}function h(T,W){let q=Yc.get(W);q==null&&Yc.set(W,q=new Set),q.add(T)}function P(T,W,q,ae,_,Pe){return W.then(ye=>{if(!f())throw X(T),Oa;const ie=th(ye);return v(T,q,_,ie,ae),ye}).catch(ye=>{if(!f())throw X(T),Oa;if(at(ye))return w(T,ye,q,ae,_,Pe);const ie=Gc(ye);throw v(T,q,_,ie,ae),ye})}function w(T,W,q,ae,_,Pe){return W.then(ye=>{if(!f())throw X(T),Oa;Pe.loadingDepKey!=null&&Pe.loadingDepPromise===W?q.atomValues.set(Pe.loadingDepKey,th(ye)):T.getState().knownSelectors.forEach(we=>{q.atomValues.delete(we)});const ie=H(T,q);if(ie&&ie.state!=="loading"){if((F(T,_)||k(T)==null)&&m(T,_),ie.state==="hasValue")return ie.contents;throw ie.contents}if(!F(T,_)){const we=L(T,q);if(we!=null)return we.loadingLoadable.contents}const[je,be]=C(T,q,_);if(je.state!=="loading"&&v(T,q,_,je,be),je.state==="hasError")throw je.contents;return je.contents}).catch(ye=>{if(ye instanceof _2)throw Oa;if(!f())throw X(T),Oa;const ie=Gc(ye);throw v(T,q,_,ie,ae),ye})}function S(T,W,q,ae){var _,Pe,ye,ie;if(F(T,ae)||W.version===((_=T.getState())===null||_===void 0||(Pe=_.currentTree)===null||Pe===void 0?void 0:Pe.version)||W.version===((ye=T.getState())===null||ye===void 0||(ie=ye.nextTree)===null||ie===void 0?void 0:ie.version)){var je,be,we;xN(n,q,T,(je=(be=T.getState())===null||be===void 0||(we=be.nextTree)===null||we===void 0?void 0:we.version)!==null&&je!==void 0?je:T.getState().currentTree.version)}for(const me of q)s.add(me)}function C(T,W,q){const ae=EN(n);let _=!0,Pe=!0;const ye=()=>{ae(),Pe=!1};let ie,je=!1,be;const we={loadingDepKey:null,loadingDepPromise:null},me=new Map;function Oe({key:mt}){const et=Zc(T,W,mt);switch(me.set(mt,et),_||(S(T,W,new Set(me.keys()),q),b(T,q)),et.state){case"hasValue":return et.contents;case"hasError":throw et.contents;case"loading":throw we.loadingDepKey=mt,we.loadingDepPromise=et.contents,et.contents}throw Be("Invalid Loadable state")}const Fe=mt=>(...et)=>{if(Pe)throw Be("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Qa(!1),TN(T,mt,et,{node:t})};try{ie=r({get:Oe,getCallback:Fe}),ie=RN(ie)?Oe(ie):ie,yN(ie)&&(ie.state==="hasError"&&(je=!0),ie=ie.contents),at(ie)?ie=P(T,ie,W,me,q,we).finally(ye):ye(),ie=ie instanceof Y2?ie.value:ie}catch(mt){ie=mt,at(ie)?ie=w(T,ie,W,me,q,we).finally(ye):(je=!0,ye())}return je?be=Gc(ie):at(ie)?be=gN(ie):be=th(ie),_=!1,U(T,q,me),S(T,W,new Set(me.keys()),q),[be,me]}function H(T,W){let q=W.atomValues.get(n);if(q!=null)return q;const ae=new Set;try{q=a.get(Pe=>(typeof Pe!="string"&&Qa(!1),Zc(T,W,Pe).contents),{onNodeVisit:Pe=>{Pe.type==="branch"&&Pe.nodeKey!==n&&ae.add(Pe.nodeKey)}})}catch(Pe){throw Be(`Problem with cache lookup for selector "${n}": ${Pe.message}`)}if(q){var _;W.atomValues.set(n,q),S(T,W,ae,(_=k(T))===null||_===void 0?void 0:_.executionID)}return q}function R(T,W){const q=H(T,W);if(q!=null)return X(T),q;const ae=L(T,W);if(ae!=null){var _;return((_=ae.loadingLoadable)===null||_===void 0?void 0:_.state)==="loading"&&h(T,ae.executionID),ae.loadingLoadable}const Pe=kN(),[ye,ie]=C(T,W,Pe);return ye.state==="loading"?(M(T,Pe,ye,ie,W),h(T,Pe)):(X(T),K(W,ye,ie)),ye}function L(T,W){const q=b2([c.has(T)?[pt(c.get(T))]:[],Ud(Om(c,([_])=>_!==T),([,_])=>_)]);function ae(_){for(const[Pe,ye]of _)if(!Zc(T,W,Pe).is(ye))return!0;return!1}for(const _ of q){if(_.stateVersions.get(W.version)||!ae(_.depValuesDiscoveredSoFarDuringAsyncWork))return _.stateVersions.set(W.version,!0),_;_.stateVersions.set(W.version,!1)}}function k(T){return c.get(T)}function M(T,W,q,ae,_){c.set(T,{depValuesDiscoveredSoFarDuringAsyncWork:ae,executionID:W,loadingLoadable:q,stateVersions:new Map([[_.version,!0]])})}function U(T,W,q){if(F(T,W)){const ae=k(T);ae!=null&&(ae.depValuesDiscoveredSoFarDuringAsyncWork=q)}}function X(T){c.delete(T)}function F(T,W){var q;return W===((q=k(T))===null||q===void 0?void 0:q.executionID)}function J(T){return Array.from(T.entries()).map(([W,q])=>[W,q.contents])}function K(T,W,q){T.atomValues.set(n,W);try{a.set(J(q),W)}catch(ae){throw Be(`Problem with setting cache for selector "${n}": ${ae.message}`)}}function Z(T){if(Ia.includes(n)){const W=`Recoil selector has circular dependencies: ${Ia.slice(Ia.indexOf(n)).join(" → ")}`;return Gc(Be(W))}Ia.push(n);try{return T()}finally{Ia.pop()}}function z(T,W){const q=W.atomValues.get(n);return q??a.get(ae=>{var _;return typeof ae!="string"&&Qa(!1),(_=bN(T,W,ae))===null||_===void 0?void 0:_.contents})}function I(T,W){return Z(()=>R(T,W))}function B(T){T.atomValues.delete(n)}function G(T,W){t==null&&Qa(!1);for(const ae of s){var q;const _=CN(ae);(q=_.clearCache)===null||q===void 0||q.call(_,T,W)}s.clear(),B(W),a.clear(),f8(T,t)}return i!=null?t=u8({key:n,nodeType:"selector",peek:z,get:I,set:(W,q,ae)=>{let _=!1;const Pe=new Map;function ye({key:we}){if(_)throw Be("Recoil: Async selector sets are not currently supported.");const me=Zc(W,q,we);if(me.state==="hasValue")return me.contents;if(me.state==="loading"){const Oe=`Getting value of asynchronous atom or selector "${we}" in a pending state while setting selector "${n}" is not yet supported.`;throw Be(Oe)}else throw me.contents}function ie(we,me){if(_)throw Be("Recoil: Async selector sets are not currently supported.");const Oe=typeof me=="function"?me(ye(we)):me;wN(W,q,we.key,Oe).forEach((mt,et)=>Pe.set(et,mt))}function je(we){ie(we,SN)}const be=i({set:ie,get:ye,reset:je},ae);if(be!==void 0)throw at(be)?Be("Recoil: Async selector sets are not currently supported."):Be("Recoil: selector set should be a void function.");return _=!0,Pe},init:p,invalidate:B,clearCache:G,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l}):t=u8({key:n,nodeType:"selector",peek:z,get:I,init:p,invalidate:B,clearCache:G,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}$2.value=e=>new Y2(e);var ta=$2;const{isLoadable:jN,loadableWithError:nh,loadableWithPromise:rh,loadableWithValue:Fi}=dc,{WrappedValue:ex}=K2,{peekNodeInfo:zN}=Wo,{DEFAULT_VALUE:$o,DefaultValue:fo,getConfigDeletionHandler:tx,registerNode:ON,setConfigDeletionHandler:IN}=Cn,{isRecoilValue:LN}=_s,{getRecoilValueAsLoadable:BN,markRecoilValueModified:MN,setRecoilValue:d8,setRecoilValueLoadable:NN}=Br,{retainedByOptionWithDefault:XN}=zi,La=e=>e instanceof ex?e.value:e;function UN(e){const{key:t,persistence_UNSTABLE:n}=e,r=XN(e.retainedBy_UNSTABLE);let o=0;function i(h){return rh(h.then(P=>(s=Fi(P),P)).catch(P=>{throw s=nh(P),P}))}let s=at(e.default)?i(e.default):jN(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Fi(La(e.default));s.contents;let a;const l=new Map;function c(h){return h}function u(h,P){const w=P.then(S=>{var C,H;return((H=((C=h.getState().nextTree)!==null&&C!==void 0?C:h.getState().currentTree).atomValues.get(t))===null||H===void 0?void 0:H.contents)===w&&d8(h,A,S),S}).catch(S=>{var C,H;throw((H=((C=h.getState().nextTree)!==null&&C!==void 0?C:h.getState().currentTree).atomValues.get(t))===null||H===void 0?void 0:H.contents)===w&&NN(h,A,nh(S)),S});return w}function f(h,P,w){var S;o++;const C=()=>{var k;o--,(k=l.get(h))===null||k===void 0||k.forEach(M=>M()),l.delete(h)};if(h.getState().knownAtoms.add(t),s.state==="loading"){const k=()=>{var M;((M=h.getState().nextTree)!==null&&M!==void 0?M:h.getState().currentTree).atomValues.has(t)||MN(h,A)};s.contents.finally(k)}const H=(S=e.effects)!==null&&S!==void 0?S:e.effects_UNSTABLE;if(H!=null){let k=function(B){if(F&&B.key===t){const G=X;return G instanceof fo?p(h,P):at(G)?rh(G.then(T=>T instanceof fo?s.toPromise():T)):Fi(G)}return BN(h,B)},M=function(B){return k(B).toPromise()},U=function(B){var G;const T=zN(h,(G=h.getState().nextTree)!==null&&G!==void 0?G:h.getState().currentTree,B.key);return F&&B.key===t&&!(X instanceof fo)?{...T,isSet:!0,loadable:k(B)}:T},X=$o,F=!0,J=!1,K=null;const Z=B=>G=>{if(F){const T=k(A),W=T.state==="hasValue"?T.contents:$o;X=typeof G=="function"?G(W):G,at(X)&&(X=X.then(q=>(K={effect:B,value:q},q)))}else{if(at(G))throw Be("Setting atoms to async values is not implemented.");typeof G!="function"&&(K={effect:B,value:La(G)}),d8(h,A,typeof G=="function"?T=>{const W=La(G(T));return K={effect:B,value:W},W}:La(G))}},z=B=>()=>Z(B)($o),I=B=>G=>{var T;const{release:W}=h.subscribeToTransactions(q=>{var ae;let{currentTree:_,previousTree:Pe}=q.getState();Pe||(Pe=_);const ye=(ae=_.atomValues.get(t))!==null&&ae!==void 0?ae:s;if(ye.state==="hasValue"){var ie,je,be,we;const me=ye.contents,Oe=(ie=Pe.atomValues.get(t))!==null&&ie!==void 0?ie:s,Fe=Oe.state==="hasValue"?Oe.contents:$o;((je=K)===null||je===void 0?void 0:je.effect)!==B||((be=K)===null||be===void 0?void 0:be.value)!==me?G(me,Fe,!_.atomValues.has(t)):((we=K)===null||we===void 0?void 0:we.effect)===B&&(K=null)}},t);l.set(h,[...(T=l.get(h))!==null&&T!==void 0?T:[],W])};for(const B of H)try{const G=B({node:A,storeID:h.storeID,parentStoreID_UNSTABLE:h.parentStoreID,trigger:w,setSelf:Z(B),resetSelf:z(B),onSet:I(B),getPromise:M,getLoadable:k,getInfo_UNSTABLE:U});if(G!=null){var R;l.set(h,[...(R=l.get(h))!==null&&R!==void 0?R:[],G])}}catch(G){X=G,J=!0}if(F=!1,!(X instanceof fo)){var L;const B=J?nh(X):at(X)?rh(u(h,X)):Fi(La(X));B.contents,P.atomValues.set(t,B),(L=h.getState().nextTree)===null||L===void 0||L.atomValues.set(t,B)}}return C}function p(h,P){var w,S;return(w=(S=P.atomValues.get(t))!==null&&S!==void 0?S:a)!==null&&w!==void 0?w:s}function y(h,P){if(P.atomValues.has(t))return pt(P.atomValues.get(t));if(P.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(n==null)return s;const w=P.nonvalidatedAtoms.get(t),S=n.validator(w,$o);return a=S instanceof fo?s:Fi(S),a}else return s}function v(){a=void 0}function m(h,P,w){if(P.atomValues.has(t)){const S=pt(P.atomValues.get(t));if(S.state==="hasValue"&&w===S.contents)return new Map}else if(!P.nonvalidatedAtoms.has(t)&&w instanceof fo)return new Map;return a=void 0,new Map().set(t,Fi(w))}function b(){return tx(t)!==void 0&&o<=0}const A=ON({key:t,nodeType:"atom",peek:p,get:y,set:m,init:f,invalidate:v,shouldDeleteConfigOnRelease:b,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return A}function qm(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return LN(n)?VN({...t,default:n}):UN({...t,default:n})}function VN(e){const t=qm({...e,default:$o,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof fo?r:pt(e.persistence_UNSTABLE).validator(r,$o)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=ta({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof fo?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return IN(n.key,tx(e.key)),n}qm.value=e=>new ex(e);var nx=qm;class FN{constructor(t){var n;Ie(this,"_map",void 0),Ie(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var qN={MapCache:FN},JN=qN.MapCache,WN=Object.freeze({__proto__:null,MapCache:JN});const{LRUCache:p8}=Z2,{MapCache:QN}=WN,_c={equality:"reference",eviction:"none",maxSize:1/0};function KN({equality:e=_c.equality,eviction:t=_c.eviction,maxSize:n=_c.maxSize}=_c){const r=GN(e);return ZN(t,n,r)}function GN(e){switch(e){case"reference":return t=>t;case"value":return t=>ep(t)}throw Be(`Unrecognized equality policy ${e}`)}function ZN(e,t,n){switch(e){case"keep-all":return new QN({mapKey:n});case"lru":return new p8({mapKey:n,maxSize:pt(t)});case"most-recent":return new p8({mapKey:n,maxSize:1})}throw Be(`Unrecognized eviction policy ${e}`)}var rx=KN;const{setConfigDeletionHandler:YN}=Cn;function _N(e){var t,n;const r=rx({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i,s;const a=r.get(o);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:l,...c}=e,u="default"in e?e.default:new Promise(()=>{}),f=nx({...c,key:`${e.key}__${(i=ep(o))!==null&&i!==void 0?i:"void"}`,default:typeof u=="function"?u(o):u,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(s=e.effects)!==null&&s!==void 0?s:e.effects_UNSTABLE});return r.set(o,f),YN(f.key,()=>{r.delete(o)}),f}}var $N=_N;const{setConfigDeletionHandler:eX}=Cn;let tX=0;function nX(e){var t,n;const r=rx({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;let s;try{s=r.get(o)}catch(p){throw Be(`Problem with cache lookup for selector ${e.key}: ${p.message}`)}if(s!=null)return s;const a=`${e.key}__selectorFamily/${(i=ep(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${tX++}`,l=p=>e.get(o)(p),c=e.cachePolicy_UNSTABLE,u=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let f;if(e.set!=null){const p=e.set;f=ta({key:a,get:l,set:(v,m)=>p(o)(v,m),cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u})}else f=ta({key:a,get:l,cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u});return r.set(o,f),eX(f.key,()=>{r.delete(o)}),f}}var Qo=nX;const rX=Qo({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function oX(e){return rX(e)}var iX=oX;const sX=Qo({key:"__error",get:e=>()=>{throw Be(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function aX(e){return sX(e)}var lX=aX;function cX(e){return e}var uX=cX;const{loadableWithError:ox,loadableWithPromise:ix,loadableWithValue:sx}=dc;function tp(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,i]of t.entries())try{n[o]=e(i)}catch(s){r[o]=s}return[n,r]}function fX(e){return e!=null&&!at(e)}function np(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function Vv(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function bs(e,t,n){const r=n.map((o,i)=>o==null?sx(t[i]):at(o)?ix(o):ox(o));return Vv(e,r)}function dX(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const pX=Qo({key:"__waitForNone",get:e=>({get:t})=>{const n=np(e),[r,o]=tp(t,n);return bs(e,r,o)},dangerouslyAllowMutability:!0}),hX=Qo({key:"__waitForAny",get:e=>({get:t})=>{const n=np(e),[r,o]=tp(t,n);return o.some(i=>!at(i))?bs(e,r,o):new Promise(i=>{for(const[s,a]of o.entries())at(a)&&a.then(l=>{r[s]=l,o[s]=void 0,i(bs(e,r,o))}).catch(l=>{o[s]=l,i(bs(e,r,o))})})},dangerouslyAllowMutability:!0}),vX=Qo({key:"__waitForAll",get:e=>({get:t})=>{const n=np(e),[r,o]=tp(t,n);if(o.every(s=>s==null))return Vv(e,r);const i=o.find(fX);if(i!=null)throw i;return Promise.all(o).then(s=>Vv(e,dX(r,s)))},dangerouslyAllowMutability:!0}),AX=Qo({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=np(e),[r,o]=tp(t,n);return o.every(i=>!at(i))?bs(e,r,o):Promise.all(o.map((i,s)=>at(i)?i.then(a=>{r[s]=a,o[s]=void 0}).catch(a=>{r[s]=void 0,o[s]=a}):null)).then(()=>bs(e,r,o))},dangerouslyAllowMutability:!0}),mX=Qo({key:"__noWait",get:e=>({get:t})=>{try{return ta.value(sx(t(e)))}catch(n){return ta.value(at(n)?ix(n):ox(n))}},dangerouslyAllowMutability:!0});var PX={waitForNone:pX,waitForAny:hX,waitForAll:vX,waitForAllSettled:AX,noWait:mX};const{RecoilLoadable:yX}=dc,{DefaultValue:gX}=Cn,{RecoilRoot:bX,useRecoilStoreID:wX}=oo,{isRecoilValue:xX}=_s,{retentionZone:SX}=Fd,{freshSnapshot:HX}=Gd,{useRecoilState:CX,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:RX,useRecoilStateLoadable:DX,useRecoilValue:TX,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:EX,useRecoilValueLoadable:kX,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:jX,useResetRecoilState:zX,useSetRecoilState:OX}=qB,{useGotoRecoilSnapshot:IX,useRecoilSnapshot:LX,useRecoilTransactionObserver:BX}=F2,{useRecoilCallback:MX}=Q2,{noWait:NX,waitForAll:XX,waitForAllSettled:UX,waitForAny:VX,waitForNone:FX}=PX;var Jm={DefaultValue:gX,isRecoilValue:xX,RecoilLoadable:yX,RecoilEnv:ua,RecoilRoot:bX,useRecoilStoreID:wX,useRecoilBridgeAcrossReactRoots_UNSTABLE:mM,atom:nx,selector:ta,atomFamily:$N,selectorFamily:Qo,constSelector:iX,errorSelector:lX,readOnlySelector:uX,noWait:NX,waitForNone:FX,waitForAny:VX,waitForAll:XX,waitForAllSettled:UX,useRecoilValue:TX,useRecoilValueLoadable:kX,useRecoilState:CX,useRecoilStateLoadable:DX,useSetRecoilState:OX,useResetRecoilState:zX,useGetRecoilValueInfo_UNSTABLE:fM,useRecoilRefresher_UNSTABLE:WM,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:jX,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:EX,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:RX,useRecoilCallback:MX,useRecoilTransaction_UNSTABLE:YM,useGotoRecoilSnapshot:IX,useRecoilSnapshot:LX,useRecoilTransactionObserver_UNSTABLE:BX,snapshot_UNSTABLE:HX,useRetain:Nm,retentionZone:SX},qX=Jm.RecoilRoot,Nr=Jm.atom,_e=Jm.useRecoilState;new Date().getHours()-1,new Date().getHours()-3,new Date().getHours()-2,new Date().getHours()-4;function ax(e,t){return function(){return e.apply(t,arguments)}}const{toString:JX}=Object.prototype,{getPrototypeOf:Wm}=Object,rp=(e=>t=>{const n=JX.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xr=e=>(e=e.toLowerCase(),t=>rp(t)===e),op=e=>t=>typeof t===e,{isArray:da}=Array,Ul=op("undefined");function WX(e){return e!==null&&!Ul(e)&&e.constructor!==null&&!Ul(e.constructor)&&Zn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const lx=Xr("ArrayBuffer");function QX(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&lx(e.buffer),t}const KX=op("string"),Zn=op("function"),cx=op("number"),ip=e=>e!==null&&typeof e=="object",GX=e=>e===!0||e===!1,xu=e=>{if(rp(e)!=="object")return!1;const t=Wm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ZX=Xr("Date"),YX=Xr("File"),_X=Xr("Blob"),$X=Xr("FileList"),eU=e=>ip(e)&&Zn(e.pipe),tU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Zn(e.append)&&((t=rp(e))==="formdata"||t==="object"&&Zn(e.toString)&&e.toString()==="[object FormData]"))},nU=Xr("URLSearchParams"),rU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),da(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const fx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dx=e=>!Ul(e)&&e!==fx;function Fv(){const{caseless:e}=dx(this)&&this||{},t={},n=(r,o)=>{const i=e&&ux(t,o)||o;xu(t[i])&&xu(r)?t[i]=Fv(t[i],r):xu(r)?t[i]=Fv({},r):da(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Pc(t,(o,i)=>{n&&Zn(o)?e[i]=ax(o,n):e[i]=o},{allOwnKeys:r}),e),iU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sU=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},aU=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Wm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lU=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},cU=e=>{if(!e)return null;if(da(e))return e;let t=e.length;if(!cx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uU=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wm(Uint8Array)),fU=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},dU=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pU=Xr("HTMLFormElement"),hU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),h8=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vU=Xr("RegExp"),px=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pc(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},AU=e=>{px(e,(t,n)=>{if(Zn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Zn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mU=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return da(e)?r(e):r(String(e).split(t)),n},PU=()=>{},yU=(e,t)=>(e=+e,Number.isFinite(e)?e:t),oh="abcdefghijklmnopqrstuvwxyz",v8="0123456789",hx={DIGIT:v8,ALPHA:oh,ALPHA_DIGIT:oh+oh.toUpperCase()+v8},gU=(e=16,t=hx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function bU(e){return!!(e&&Zn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wU=e=>{const t=new Array(10),n=(r,o)=>{if(ip(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=da(r)?[]:{};return Pc(r,(s,a)=>{const l=n(s,o+1);!Ul(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},xU=Xr("AsyncFunction"),SU=e=>e&&(ip(e)||Zn(e))&&Zn(e.then)&&Zn(e.catch),Q={isArray:da,isArrayBuffer:lx,isBuffer:WX,isFormData:tU,isArrayBufferView:QX,isString:KX,isNumber:cx,isBoolean:GX,isObject:ip,isPlainObject:xu,isUndefined:Ul,isDate:ZX,isFile:YX,isBlob:_X,isRegExp:vU,isFunction:Zn,isStream:eU,isURLSearchParams:nU,isTypedArray:uU,isFileList:$X,forEach:Pc,merge:Fv,extend:oU,trim:rU,stripBOM:iU,inherits:sU,toFlatObject:aU,kindOf:rp,kindOfTest:Xr,endsWith:lU,toArray:cU,forEachEntry:fU,matchAll:dU,isHTMLForm:pU,hasOwnProperty:h8,hasOwnProp:h8,reduceDescriptors:px,freezeMethods:AU,toObjectSet:mU,toCamelCase:hU,noop:PU,toFiniteNumber:yU,findKey:ux,global:fx,isContextDefined:dx,ALPHABET:hx,generateString:gU,isSpecCompliantForm:bU,toJSONObject:wU,isAsyncFn:xU,isThenable:SU};function Ve(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Q.inherits(Ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vx=Ve.prototype,Ax={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ax[e]={value:e}});Object.defineProperties(Ve,Ax);Object.defineProperty(vx,"isAxiosError",{value:!0});Ve.from=(e,t,n,r,o,i)=>{const s=Object.create(vx);return Q.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ve.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const HU=null;function qv(e){return Q.isPlainObject(e)||Q.isArray(e)}function mx(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function A8(e,t,n){return e?e.concat(t).map(function(o,i){return o=mx(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function CU(e){return Q.isArray(e)&&!e.some(qv)}const RU=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function sp(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,b){return!Q.isUndefined(b[m])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(Q.isDate(v))return v.toISOString();if(!l&&Q.isBlob(v))throw new Ve("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(v)||Q.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,m,b){let A=v;if(v&&!b&&typeof v=="object"){if(Q.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(Q.isArray(v)&&CU(v)||(Q.isFileList(v)||Q.endsWith(m,"[]"))&&(A=Q.toArray(v)))return m=mx(m),A.forEach(function(P,w){!(Q.isUndefined(P)||P===null)&&t.append(s===!0?A8([m],w,i):s===null?m:m+"[]",c(P))}),!1}return qv(v)?!0:(t.append(A8(b,m,i),c(v)),!1)}const f=[],p=Object.assign(RU,{defaultVisitor:u,convertValue:c,isVisitable:qv});function y(v,m){if(!Q.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),Q.forEach(v,function(A,h){(!(Q.isUndefined(A)||A===null)&&o.call(t,A,Q.isString(h)?h.trim():h,m,p))===!0&&y(A,m?m.concat(h):[h])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return y(e),t}function m8(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qm(e,t){this._pairs=[],e&&sp(e,this,t)}const Px=Qm.prototype;Px.append=function(t,n){this._pairs.push([t,n])};Px.toString=function(t){const n=t?function(r){return t.call(this,r,m8)}:m8;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function DU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yx(e,t,n){if(!t)return e;const r=n&&n.encode||DU,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Q.isURLSearchParams(t)?t.toString():new Qm(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class P8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const gx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TU=typeof URLSearchParams<"u"?URLSearchParams:Qm,EU=typeof FormData<"u"?FormData:null,kU=typeof Blob<"u"?Blob:null,jU={isBrowser:!0,classes:{URLSearchParams:TU,FormData:EU,Blob:kU},protocols:["http","https","file","blob","url","data"]},bx=typeof window<"u"&&typeof document<"u",zU=(e=>bx&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),OU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",IU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bx,hasStandardBrowserEnv:zU,hasStandardBrowserWebWorkerEnv:OU},Symbol.toStringTag,{value:"Module"})),kr={...IU,...jU};function LU(e,t){return sp(e,new kr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return kr.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function BU(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MU(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&Q.isArray(o)?o.length:s,l?(Q.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!Q.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&Q.isArray(o[s])&&(o[s]=MU(o[s])),!a)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,o)=>{t(BU(r),o,n,0)}),n}return null}function NU(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Km={transitional:gx,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return o?JSON.stringify(wx(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return LU(t,this.formSerializer).toString();if((a=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return sp(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),NU(t)):t}],transformResponse:[function(t){const n=this.transitional||Km.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&Q.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Ve.from(a,Ve.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kr.classes.FormData,Blob:kr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Km.headers[e]={}});const Gm=Km,XU=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),UU=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&XU[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},y8=Symbol("internals");function Ba(e){return e&&String(e).trim().toLowerCase()}function Su(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Su):String(e)}function VU(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const FU=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ih(e,t,n,r,o){if(Q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function qU(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function JU(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class ap{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Ba(l);if(!u)throw new Error("header name must be a non-empty string");const f=Q.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Su(a))}const s=(a,l)=>Q.forEach(a,(c,u)=>i(c,u,l));return Q.isPlainObject(t)||t instanceof this.constructor?s(t,n):Q.isString(t)&&(t=t.trim())&&!FU(t)?s(UU(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ba(t),t){const r=Q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return VU(o);if(Q.isFunction(n))return n.call(this,o,r);if(Q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ba(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ih(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Ba(s),s){const a=Q.findKey(r,s);a&&(!n||ih(r,r[a],a,n))&&(delete r[a],o=!0)}}return Q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||ih(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Q.forEach(this,(o,i)=>{const s=Q.findKey(r,i);if(s){n[s]=Su(o),delete n[i];return}const a=t?qU(i):String(i).trim();a!==i&&delete n[i],n[a]=Su(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[y8]=this[y8]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Ba(s);r[a]||(JU(o,s),r[a]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}}ap.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(ap.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Q.freezeMethods(ap);const Zr=ap;function sh(e,t){const n=this||Gm,r=t||n,o=Zr.from(r.headers);let i=r.data;return Q.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xx(e){return!!(e&&e.__CANCEL__)}function yc(e,t,n){Ve.call(this,e??"canceled",Ve.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(yc,Ve,{__CANCEL__:!0});function WU(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ve("Request failed with status code "+n.status,[Ve.ERR_BAD_REQUEST,Ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const QU=kr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&s.push("path="+r),Q.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function KU(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GU(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sx(e,t){return e&&!KU(t)?GU(e,t):t}const ZU=kr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=Q.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function YU(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _U(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),c=i<=s;n=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const $U=typeof XMLHttpRequest<"u",eV=$U&&function(e){return new Promise(function(n,r){let o=e.data;const i=Zr.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(Q.isFormData(o)){if(kr.hasStandardBrowserEnv||kr.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[m,...b]=u?u.split(";").map(A=>A.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...b].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+b))}const p=Sx(e.baseURL,e.url);f.open(e.method.toUpperCase(),yx(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function y(){if(!f)return;const m=Zr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:m,config:e,request:f};WU(function(P){n(P),c()},function(P){r(P),c()},A),f=null}if("onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(y)},f.onabort=function(){f&&(r(new Ve("Request aborted",Ve.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new Ve("Network Error",Ve.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||gx;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new Ve(b,A.clarifyTimeoutError?Ve.ETIMEDOUT:Ve.ECONNABORTED,e,f)),f=null},kr.hasStandardBrowserEnv&&(a&&Q.isFunction(a)&&(a=a(e)),a||a!==!1&&ZU(p))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&QU.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}o===void 0&&i.setContentType(null),"setRequestHeader"in f&&Q.forEach(i.toJSON(),function(b,A){f.setRequestHeader(A,b)}),Q.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",g8(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",g8(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{f&&(r(!m||m.type?new yc(null,e,f):m),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=YU(p);if(v&&kr.protocols.indexOf(v)===-1){r(new Ve("Unsupported protocol "+v+":",Ve.ERR_BAD_REQUEST,e));return}f.send(o||null)})},Jv={http:HU,xhr:eV};Q.forEach(Jv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const b8=e=>`- ${e}`,tV=e=>Q.isFunction(e)||e===null||e===!1,Hx={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : +`+i.map(b8).join(` +`):" "+b8(i[0]):"as no adapter specified";throw new Ve("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Jv};function ah(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yc(null,e)}function w8(e){return ah(e),e.headers=Zr.from(e.headers),e.data=sh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Hx.getAdapter(e.adapter||Gm.adapter)(e).then(function(r){return ah(e),r.data=sh.call(e,e.transformResponse,r),r.headers=Zr.from(r.headers),r},function(r){return xx(r)||(ah(e),r&&r.response&&(r.response.data=sh.call(e,e.transformResponse,r.response),r.response.headers=Zr.from(r.response.headers))),Promise.reject(r)})}const x8=e=>e instanceof Zr?{...e}:e;function na(e,t){t=t||{};const n={};function r(c,u,f){return Q.isPlainObject(c)&&Q.isPlainObject(u)?Q.merge.call({caseless:f},c,u):Q.isPlainObject(u)?Q.merge({},u):Q.isArray(u)?u.slice():u}function o(c,u,f){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!Q.isUndefined(u))return r(void 0,u)}function s(c,u){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>o(x8(c),x8(u),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,p=f(e[u],t[u],u);Q.isUndefined(p)&&f!==a||(n[u]=p)}),n}const Cx="1.6.8",Zm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const S8={};Zm.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Cx+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new Ve(o(s," has been removed"+(n?" in "+n:"")),Ve.ERR_DEPRECATED);return n&&!S8[s]&&(S8[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function nV(e,t,n){if(typeof e!="object")throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Ve("option "+i+" must be "+l,Ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ve("Unknown option "+i,Ve.ERR_BAD_OPTION)}}const Wv={assertOptions:nV,validators:Zm},ao=Wv.validators;class Pf{constructor(t){this.defaults=t,this.interceptors={request:new P8,response:new P8}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=na(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Wv.assertOptions(r,{silentJSONParsing:ao.transitional(ao.boolean),forcedJSONParsing:ao.transitional(ao.boolean),clarifyTimeoutError:ao.transitional(ao.boolean)},!1),o!=null&&(Q.isFunction(o)?n.paramsSerializer={serialize:o}:Wv.assertOptions(o,{encode:ao.function,serialize:ao.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&Q.merge(i.common,i[n.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Zr.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,f=0,p;if(!l){const v=[w8.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),p=v.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new yc(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ym(function(o){t=o}),cancel:t}}}const rV=Ym;function oV(e){return function(n){return e.apply(null,n)}}function iV(e){return Q.isObject(e)&&e.isAxiosError===!0}const Qv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qv).forEach(([e,t])=>{Qv[t]=e});const sV=Qv;function Rx(e){const t=new Hu(e),n=ax(Hu.prototype.request,t);return Q.extend(n,Hu.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Rx(na(e,o))},n}const Dt=Rx(Gm);Dt.Axios=Hu;Dt.CanceledError=yc;Dt.CancelToken=rV;Dt.isCancel=xx;Dt.VERSION=Cx;Dt.toFormData=sp;Dt.AxiosError=Ve;Dt.Cancel=Dt.CanceledError;Dt.all=function(t){return Promise.all(t)};Dt.spread=oV;Dt.isAxiosError=iV;Dt.mergeConfig=na;Dt.AxiosHeaders=Zr;Dt.formToJSON=e=>wx(Q.isHTMLForm(e)?new FormData(e):e);Dt.getAdapter=Hx.getAdapter;Dt.HttpStatusCode=sV;Dt.default=Dt;const Wt=Dt.create({baseURL:"/services/japps",headers:{"Content-Type":"application/json"}});Wt.interceptors.response.use(e=>e,e=>{const t=e.response.status;(e.response.status===401||t===403)&&(window.location.href="/services/japps/jhub-login")});const aV=()=>window.jhdata,Dx=(e,t)=>{var r;const n=[];for(const o in e)if(Object.hasOwnProperty.call(e,o)){const i=e[o];i.display===!0&&i.info.name&&n.push({name:i.info.name,url:(r=i.info.url)==null?void 0:r.replace("[USER]",t),external:i.info.external,pinned:S6.includes(i.info.name)})}return n},Tx=(e,t,n)=>{const r=[],o=[];if((t==="shared"||t==="all")&&r.push(...e.shared_apps.map(i=>({...i,shared:!0}))),t==="mine"||t==="all"){r.push(...e.user_apps.map(s=>({...s,shared:!1})));const i=r.find(s=>{var a;return s.name===""&&!((a=s.user_options)!=null&&a.jhub_app)});if(i){const s=Kv(i);o.push({id:"",name:"JupyterLab",description:"This is your default JupyterLab server.",framework:"JupyterLab",url:i.url,thumbnail:x6,username:n,ready:i.ready,pending:i.pending,stopped:i.stopped,public:!1,shared:!1,last_activity:i.last_activity,status:s})}}return r.forEach(i=>{var s;if((s=i.user_options)!=null&&s.jhub_app){const a=i.user_options,l=Kv(i);o.push({id:a.name,name:a.display_name,description:a.description,framework:lV(a.framework),url:i.url,thumbnail:a.thumbnail,username:i.username||n,ready:i.ready,pending:i.pending,stopped:i.stopped,public:a.public,shared:i.shared,last_activity:i.last_activity,status:l})}}),o},lV=e=>e.charAt(0).toUpperCase()+e.slice(1),cV=()=>{var e;if((e=window.theme)!=null&&e.logo)return window.theme.logo},Rr=e=>{document.location.href=e},Kv=e=>e.stopped?"Ready":e.pending?"Pending":e.ready?"Running":"Unknown",Gv=(e,t,n,r,o,i)=>{const s=n.toLowerCase(),l=Tx(e,r==="Owned by me"?"mine":r==="Shared with me"?"shared":"all",(t==null?void 0:t.name)??"").filter(c=>{var u,f;return c.name.toLowerCase().includes(s)||((u=c.description)==null?void 0:u.toLowerCase().includes(s))||((f=c.framework)==null?void 0:f.toLowerCase().includes(s))}).filter(c=>o.length>0?o.includes(c.framework):!0);return l.sort((c,u)=>i==="Recently modified"?c.last_activity>u.last_activity?-1:1:i==="Name: A-Z"?c.name>u.name?1:-1:c.name>u.name?-1:1),l};var gc=e=>e.type==="checkbox",cs=e=>e instanceof Date,ln=e=>e==null;const Ex=e=>typeof e=="object";var Ot=e=>!ln(e)&&!Array.isArray(e)&&Ex(e)&&!cs(e),kx=e=>Ot(e)&&e.target?gc(e.target)?e.target.checked:e.target.value:e,uV=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,jx=(e,t)=>e.has(uV(t)),fV=e=>{const t=e.constructor&&e.constructor.prototype;return Ot(t)&&t.hasOwnProperty("isPrototypeOf")},_m=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(_m&&(e instanceof Blob||e instanceof FileList))&&(n||Ot(e)))if(t=n?[]:{},!n&&!fV(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=pn(e[r]));else return e;return t}var bc=e=>Array.isArray(e)?e.filter(Boolean):[],bt=e=>e===void 0,ue=(e,t,n)=>{if(!t||!Ot(e))return n;const r=bc(t.split(/[,[\].]+?/)).reduce((o,i)=>ln(o)?o:o[i],e);return bt(r)||r===e?bt(e[t])?n:e[t]:r},ur=e=>typeof e=="boolean";const yf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},fr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ur={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},dV=ve.createContext(null),$m=()=>ve.useContext(dV);var zx=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==fr.all&&(t._proxyFormState[s]=!r||fr.all),n&&(n[s]=!0),e[s]}});return o},Vn=e=>Ot(e)&&!Object.keys(e).length,Ox=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Vn(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||fr.all))},Cu=e=>Array.isArray(e)?e:[e],Ix=(e,t,n)=>!e||!t||e===t||Cu(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function eP(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function pV(e){const t=$m(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,a]=ve.useState(n._formState),l=ve.useRef(!0),c=ve.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ve.useRef(o);return u.current=o,eP({disabled:r,next:f=>l.current&&Ix(u.current,f.name,i)&&Ox(f,c.current,n._updateFormState)&&a({...n._formState,...f}),subject:n._subjects.state}),ve.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),zx(s,n,c.current,!1)}var jr=e=>typeof e=="string",Lx=(e,t,n,r,o)=>jr(e)?(r&&t.watch.add(e),ue(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),ue(n,i))):(r&&(t.watchAll=!0),n);function hV(e){const t=$m(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s}=e||{},a=ve.useRef(r);a.current=r,eP({disabled:i,subject:n._subjects.values,next:u=>{Ix(a.current,u.name,s)&&c(pn(Lx(a.current,n._names,u.values||n._formValues,!1,o)))}});const[l,c]=ve.useState(n._getWatch(r,o));return ve.useEffect(()=>n._removeUnmounted()),l}var tP=e=>/^\w*$/.test(e),Bx=e=>bc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),tt=(e,t,n)=>{let r=-1;const o=tP(t)?[t]:Bx(t),i=o.length,s=i-1;for(;++r{const u=o._options.shouldUnregister||i,f=(p,y)=>{const v=ue(o._fields,p);v&&(v._f.mount=y)};if(f(n,!0),u){const p=pn(ue(o._options.defaultValues,n));tt(o._defaultValues,n,p),bt(ue(o._formValues,n))&&tt(o._formValues,n,p)}return()=>{(s?u&&!o._state.action:u)?o.unregister(n):f(n,!1)}},[n,o,s,i]),ve.useEffect(()=>{ue(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:ue(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:a,...ur(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:ve.useCallback(u=>c.current.onChange({target:{value:kx(u),name:n},type:yf.CHANGE}),[n]),onBlur:ve.useCallback(()=>c.current.onBlur({target:{value:ue(o._formValues,n),name:n},type:yf.BLUR}),[n,o]),ref:u=>{const f=ue(o._fields,n);f&&u&&(f._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:p=>u.setCustomValidity(p),reportValidity:()=>u.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ue(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!ue(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ue(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ue(l.validatingFields,n)},error:{enumerable:!0,get:()=>ue(l.errors,n)}})}}const Vr=e=>e.render(vV(e));var AV=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},H8=e=>({isOnSubmit:!e||e===fr.onSubmit,isOnBlur:e===fr.onBlur,isOnChange:e===fr.onChange,isOnAll:e===fr.all,isOnTouch:e===fr.onTouched}),C8=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const dl=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=ue(e,o);if(i){const{_f:s,...a}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;dl(a,t)}else Ot(a)&&dl(a,t)}}};var mV=(e,t,n)=>{const r=bc(ue(e,n));return tt(r,"root",t[n]),tt(e,n,r),e},nP=e=>e.type==="file",Ro=e=>typeof e=="function",gf=e=>{if(!_m)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ru=e=>jr(e),rP=e=>e.type==="radio",bf=e=>e instanceof RegExp;const R8={value:!1,isValid:!1},D8={value:!0,isValid:!0};var Mx=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!bt(e[0].attributes.value)?bt(e[0].value)||e[0].value===""?D8:{value:e[0].value,isValid:!0}:D8:R8}return R8};const T8={isValid:!1,value:null};var Nx=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,T8):T8;function E8(e,t,n="validate"){if(Ru(e)||Array.isArray(e)&&e.every(Ru)||ur(e)&&!e)return{type:n,message:Ru(e)?e:"",ref:t}}var qi=e=>Ot(e)&&!bf(e)?e:{value:e,message:""},k8=async(e,t,n,r,o)=>{const{ref:i,refs:s,required:a,maxLength:l,minLength:c,min:u,max:f,pattern:p,validate:y,name:v,valueAsNumber:m,mount:b,disabled:A}=e._f,h=ue(t,v);if(!b||A)return{};const P=s?s[0]:i,w=U=>{r&&P.reportValidity&&(P.setCustomValidity(ur(U)?"":U||""),P.reportValidity())},S={},C=rP(i),H=gc(i),R=C||H,L=(m||nP(i))&&bt(i.value)&&bt(h)||gf(i)&&i.value===""||h===""||Array.isArray(h)&&!h.length,k=AV.bind(null,v,n,S),M=(U,X,F,J=Ur.maxLength,K=Ur.minLength)=>{const Z=U?X:F;S[v]={type:U?J:K,message:Z,ref:i,...k(U?J:K,Z)}};if(o?!Array.isArray(h)||!h.length:a&&(!R&&(L||ln(h))||ur(h)&&!h||H&&!Mx(s).isValid||C&&!Nx(s).isValid)){const{value:U,message:X}=Ru(a)?{value:!!a,message:a}:qi(a);if(U&&(S[v]={type:Ur.required,message:X,ref:P,...k(Ur.required,X)},!n))return w(X),S}if(!L&&(!ln(u)||!ln(f))){let U,X;const F=qi(f),J=qi(u);if(!ln(h)&&!isNaN(h)){const K=i.valueAsNumber||h&&+h;ln(F.value)||(U=K>F.value),ln(J.value)||(X=Knew Date(new Date().toDateString()+" "+B),z=i.type=="time",I=i.type=="week";jr(F.value)&&h&&(U=z?Z(h)>Z(F.value):I?h>F.value:K>new Date(F.value)),jr(J.value)&&h&&(X=z?Z(h)+U.value,J=!ln(X.value)&&h.length<+X.value;if((F||J)&&(M(F,U.message,X.message),!n))return w(S[v].message),S}if(p&&!L&&jr(h)){const{value:U,message:X}=qi(p);if(bf(U)&&!h.match(U)&&(S[v]={type:Ur.pattern,message:X,ref:i,...k(Ur.pattern,X)},!n))return w(X),S}if(y){if(Ro(y)){const U=await y(h,t),X=E8(U,P);if(X&&(S[v]={...X,...k(Ur.validate,X.message)},!n))return w(X.message),S}else if(Ot(y)){let U={};for(const X in y){if(!Vn(U)&&!n)break;const F=E8(await y[X](h,t),P,X);F&&(U={...F,...k(X,F.message)},w(F.message),n&&(S[v]=U))}if(!Vn(U)&&(S[v]={ref:P,...U},!n))return S}}return w(!0),S};function PV(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},wf=e=>ln(e)||!Ex(e);function ii(e,t){if(wf(e)||wf(t))return e===t;if(cs(e)&&cs(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const i=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const s=t[o];if(cs(i)&&cs(s)||Ot(i)&&Ot(s)||Array.isArray(i)&&Array.isArray(s)?!ii(i,s):i!==s)return!1}}return!0}var Xx=e=>e.type==="select-multiple",gV=e=>rP(e)||gc(e),ch=e=>gf(e)&&e.isConnected,Ux=e=>{for(const t in e)if(Ro(e[t]))return!0;return!1};function xf(e,t={}){const n=Array.isArray(e);if(Ot(e)||n)for(const r in e)Array.isArray(e[r])||Ot(e[r])&&!Ux(e[r])?(t[r]=Array.isArray(e[r])?[]:{},xf(e[r],t[r])):ln(e[r])||(t[r]=!0);return t}function Vx(e,t,n){const r=Array.isArray(e);if(Ot(e)||r)for(const o in e)Array.isArray(e[o])||Ot(e[o])&&!Ux(e[o])?bt(t)||wf(n[o])?n[o]=Array.isArray(e[o])?xf(e[o],[]):{...xf(e[o])}:Vx(e[o],ln(t)?{}:t[o],n[o]):n[o]=!ii(e[o],t[o]);return n}var $c=(e,t)=>Vx(e,t,xf(t)),Fx=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>bt(e)?e:t?e===""?NaN:e&&+e:n&&jr(e)?new Date(e):r?r(e):e;function uh(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return nP(t)?t.files:rP(t)?Nx(e.refs).value:Xx(t)?[...t.selectedOptions].map(({value:n})=>n):gc(t)?Mx(e.refs).value:Fx(bt(t.value)?e.ref.value:t.value,e)}var bV=(e,t,n,r)=>{const o={};for(const i of e){const s=ue(t,i);s&&tt(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Ma=e=>bt(e)?e:bf(e)?e.source:Ot(e)?bf(e.value)?e.value.source:e.value:e,wV=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function j8(e,t,n){const r=ue(e,n);if(r||tP(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=ue(t,i),a=ue(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:n}}var xV=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,SV=(e,t)=>!bc(ue(e,t)).length&&Bt(e,t);const HV={mode:fr.onSubmit,reValidateMode:fr.onChange,shouldFocusError:!0};function CV(e={}){let t={...HV,...e},n={submitCount:0,isDirty:!1,isLoading:Ro(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Ot(t.defaultValues)||Ot(t.values)?pn(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:pn(o),s={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:lh(),array:lh(),state:lh()},p=H8(t.mode),y=H8(t.reValidateMode),v=t.criteriaMode===fr.all,m=D=>N=>{clearTimeout(c),c=setTimeout(D,N)},b=async D=>{if(u.isValid||D){const N=t.resolver?Vn((await R()).errors):await k(r,!0);N!==n.isValid&&f.state.next({isValid:N})}},A=(D,N)=>{(u.isValidating||u.validatingFields)&&((D||Array.from(a.mount)).forEach(V=>V&&tt(n.validatingFields,V,!!N)),n.isValidating=Object.values(n.validatingFields).some(V=>V),f.state.next({validatingFields:n.validatingFields,isValidating:n.isValidating}))},h=(D,N=[],V,te,oe=!0,Y=!0)=>{if(te&&V){if(s.action=!0,Y&&Array.isArray(ue(r,D))){const se=V(ue(r,D),te.argA,te.argB);oe&&tt(r,D,se)}if(Y&&Array.isArray(ue(n.errors,D))){const se=V(ue(n.errors,D),te.argA,te.argB);oe&&tt(n.errors,D,se),SV(n.errors,D)}if(u.touchedFields&&Y&&Array.isArray(ue(n.touchedFields,D))){const se=V(ue(n.touchedFields,D),te.argA,te.argB);oe&&tt(n.touchedFields,D,se)}u.dirtyFields&&(n.dirtyFields=$c(o,i)),f.state.next({name:D,isDirty:U(D,N),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else tt(i,D,N)},P=(D,N)=>{tt(n.errors,D,N),f.state.next({errors:n.errors})},w=D=>{n.errors=D,f.state.next({errors:n.errors,isValid:!1})},S=(D,N,V,te)=>{const oe=ue(r,D);if(oe){const Y=ue(i,D,bt(V)?ue(o,D):V);bt(Y)||te&&te.defaultChecked||N?tt(i,D,N?Y:uh(oe._f)):J(D,Y),s.mount&&b()}},C=(D,N,V,te,oe)=>{let Y=!1,se=!1;const ze={name:D},Ke=!!(ue(r,D)&&ue(r,D)._f.disabled);if(!V||te){u.isDirty&&(se=n.isDirty,n.isDirty=ze.isDirty=U(),Y=se!==ze.isDirty);const it=Ke||ii(ue(o,D),N);se=!!(!Ke&&ue(n.dirtyFields,D)),it||Ke?Bt(n.dirtyFields,D):tt(n.dirtyFields,D,!0),ze.dirtyFields=n.dirtyFields,Y=Y||u.dirtyFields&&se!==!it}if(V){const it=ue(n.touchedFields,D);it||(tt(n.touchedFields,D,V),ze.touchedFields=n.touchedFields,Y=Y||u.touchedFields&&it!==V)}return Y&&oe&&f.state.next(ze),Y?ze:{}},H=(D,N,V,te)=>{const oe=ue(n.errors,D),Y=u.isValid&&ur(N)&&n.isValid!==N;if(e.delayError&&V?(l=m(()=>P(D,V)),l(e.delayError)):(clearTimeout(c),l=null,V?tt(n.errors,D,V):Bt(n.errors,D)),(V?!ii(oe,V):oe)||!Vn(te)||Y){const se={...te,...Y&&ur(N)?{isValid:N}:{},errors:n.errors,name:D};n={...n,...se},f.state.next(se)}},R=async D=>{A(D,!0);const N=await t.resolver(i,t.context,bV(D||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return A(D),N},L=async D=>{const{errors:N}=await R(D);if(D)for(const V of D){const te=ue(N,V);te?tt(n.errors,V,te):Bt(n.errors,V)}else n.errors=N;return N},k=async(D,N,V={valid:!0})=>{for(const te in D){const oe=D[te];if(oe){const{_f:Y,...se}=oe;if(Y){const ze=a.array.has(Y.name);A([te],!0);const Ke=await k8(oe,i,v,t.shouldUseNativeValidation&&!N,ze);if(A([te]),Ke[Y.name]&&(V.valid=!1,N))break;!N&&(ue(Ke,Y.name)?ze?mV(n.errors,Ke,Y.name):tt(n.errors,Y.name,Ke[Y.name]):Bt(n.errors,Y.name))}se&&await k(se,N,V)}}return V.valid},M=()=>{for(const D of a.unMount){const N=ue(r,D);N&&(N._f.refs?N._f.refs.every(V=>!ch(V)):!ch(N._f.ref))&&_(D)}a.unMount=new Set},U=(D,N)=>(D&&N&&tt(i,D,N),!ii(G(),o)),X=(D,N,V)=>Lx(D,a,{...s.mount?i:bt(N)?o:jr(D)?{[D]:N}:N},V,N),F=D=>bc(ue(s.mount?i:o,D,e.shouldUnregister?ue(o,D,[]):[])),J=(D,N,V={})=>{const te=ue(r,D);let oe=N;if(te){const Y=te._f;Y&&(!Y.disabled&&tt(i,D,Fx(N,Y)),oe=gf(Y.ref)&&ln(N)?"":N,Xx(Y.ref)?[...Y.ref.options].forEach(se=>se.selected=oe.includes(se.value)):Y.refs?gc(Y.ref)?Y.refs.length>1?Y.refs.forEach(se=>(!se.defaultChecked||!se.disabled)&&(se.checked=Array.isArray(oe)?!!oe.find(ze=>ze===se.value):oe===se.value)):Y.refs[0]&&(Y.refs[0].checked=!!oe):Y.refs.forEach(se=>se.checked=se.value===oe):nP(Y.ref)?Y.ref.value="":(Y.ref.value=oe,Y.ref.type||f.values.next({name:D,values:{...i}})))}(V.shouldDirty||V.shouldTouch)&&C(D,oe,V.shouldTouch,V.shouldDirty,!0),V.shouldValidate&&B(D)},K=(D,N,V)=>{for(const te in N){const oe=N[te],Y=`${D}.${te}`,se=ue(r,Y);(a.array.has(D)||!wf(oe)||se&&!se._f)&&!cs(oe)?K(Y,oe,V):J(Y,oe,V)}},Z=(D,N,V={})=>{const te=ue(r,D),oe=a.array.has(D),Y=pn(N);tt(i,D,Y),oe?(f.array.next({name:D,values:{...i}}),(u.isDirty||u.dirtyFields)&&V.shouldDirty&&f.state.next({name:D,dirtyFields:$c(o,i),isDirty:U(D,Y)})):te&&!te._f&&!ln(Y)?K(D,Y,V):J(D,Y,V),C8(D,a)&&f.state.next({...n}),f.values.next({name:s.mount?D:void 0,values:{...i}})},z=async D=>{const N=D.target;let V=N.name,te=!0;const oe=ue(r,V),Y=()=>N.type?uh(oe._f):kx(D),se=ze=>{te=Number.isNaN(ze)||ze===ue(i,V,ze)};if(oe){let ze,Ke;const it=Y(),Xe=D.type===yf.BLUR||D.type===yf.FOCUS_OUT,Se=!wV(oe._f)&&!t.resolver&&!ue(n.errors,V)&&!oe._f.deps||xV(Xe,ue(n.touchedFields,V),n.isSubmitted,y,p),nn=C8(V,a,Xe);tt(i,V,it),Xe?(oe._f.onBlur&&oe._f.onBlur(D),l&&l(0)):oe._f.onChange&&oe._f.onChange(D);const nr=C(V,it,Xe,!1),Ar=!Vn(nr)||nn;if(!Xe&&f.values.next({name:V,type:D.type,values:{...i}}),Se)return u.isValid&&b(),Ar&&f.state.next({name:V,...nn?{}:nr});if(!Xe&&nn&&f.state.next({...n}),t.resolver){const{errors:xe}=await R([V]);if(se(it),te){const Ge=j8(n.errors,r,V),O=j8(xe,r,Ge.name||V);ze=O.error,V=O.name,Ke=Vn(xe)}}else A([V],!0),ze=(await k8(oe,i,v,t.shouldUseNativeValidation))[V],A([V]),se(it),te&&(ze?Ke=!1:u.isValid&&(Ke=await k(r,!0)));te&&(oe._f.deps&&B(oe._f.deps),H(V,Ke,ze,nr))}},I=(D,N)=>{if(ue(n.errors,N)&&D.focus)return D.focus(),1},B=async(D,N={})=>{let V,te;const oe=Cu(D);if(t.resolver){const Y=await L(bt(D)?D:oe);V=Vn(Y),te=D?!oe.some(se=>ue(Y,se)):V}else D?(te=(await Promise.all(oe.map(async Y=>{const se=ue(r,Y);return await k(se&&se._f?{[Y]:se}:se)}))).every(Boolean),!(!te&&!n.isValid)&&b()):te=V=await k(r);return f.state.next({...!jr(D)||u.isValid&&V!==n.isValid?{}:{name:D},...t.resolver||!D?{isValid:V}:{},errors:n.errors}),N.shouldFocus&&!te&&dl(r,I,D?oe:a.mount),te},G=D=>{const N={...o,...s.mount?i:{}};return bt(D)?N:jr(D)?ue(N,D):D.map(V=>ue(N,V))},T=(D,N)=>({invalid:!!ue((N||n).errors,D),isDirty:!!ue((N||n).dirtyFields,D),isTouched:!!ue((N||n).touchedFields,D),isValidating:!!ue((N||n).validatingFields,D),error:ue((N||n).errors,D)}),W=D=>{D&&Cu(D).forEach(N=>Bt(n.errors,N)),f.state.next({errors:D?n.errors:{}})},q=(D,N,V)=>{const te=(ue(r,D,{_f:{}})._f||{}).ref;tt(n.errors,D,{...N,ref:te}),f.state.next({name:D,errors:n.errors,isValid:!1}),V&&V.shouldFocus&&te&&te.focus&&te.focus()},ae=(D,N)=>Ro(D)?f.values.subscribe({next:V=>D(X(void 0,N),V)}):X(D,N,!0),_=(D,N={})=>{for(const V of D?Cu(D):a.mount)a.mount.delete(V),a.array.delete(V),N.keepValue||(Bt(r,V),Bt(i,V)),!N.keepError&&Bt(n.errors,V),!N.keepDirty&&Bt(n.dirtyFields,V),!N.keepTouched&&Bt(n.touchedFields,V),!N.keepIsValidating&&Bt(n.validatingFields,V),!t.shouldUnregister&&!N.keepDefaultValue&&Bt(o,V);f.values.next({values:{...i}}),f.state.next({...n,...N.keepDirty?{isDirty:U()}:{}}),!N.keepIsValid&&b()},Pe=({disabled:D,name:N,field:V,fields:te,value:oe})=>{if(ur(D)){const Y=D?void 0:bt(oe)?uh(V?V._f:ue(te,N)._f):oe;tt(i,N,Y),C(N,Y,!1,!1,!0)}},ye=(D,N={})=>{let V=ue(r,D);const te=ur(N.disabled);return tt(r,D,{...V||{},_f:{...V&&V._f?V._f:{ref:{name:D}},name:D,mount:!0,...N}}),a.mount.add(D),V?Pe({field:V,disabled:N.disabled,name:D,value:N.value}):S(D,!0,N.value),{...te?{disabled:N.disabled}:{},...t.progressive?{required:!!N.required,min:Ma(N.min),max:Ma(N.max),minLength:Ma(N.minLength),maxLength:Ma(N.maxLength),pattern:Ma(N.pattern)}:{},name:D,onChange:z,onBlur:z,ref:oe=>{if(oe){ye(D,N),V=ue(r,D);const Y=bt(oe.value)&&oe.querySelectorAll&&oe.querySelectorAll("input,select,textarea")[0]||oe,se=gV(Y),ze=V._f.refs||[];if(se?ze.find(Ke=>Ke===Y):Y===V._f.ref)return;tt(r,D,{_f:{...V._f,...se?{refs:[...ze.filter(ch),Y,...Array.isArray(ue(o,D))?[{}]:[]],ref:{type:Y.type,name:D}}:{ref:Y}}}),S(D,!1,void 0,Y)}else V=ue(r,D,{}),V._f&&(V._f.mount=!1),(t.shouldUnregister||N.shouldUnregister)&&!(jx(a.array,D)&&s.action)&&a.unMount.add(D)}}},ie=()=>t.shouldFocusError&&dl(r,I,a.mount),je=D=>{ur(D)&&(f.state.next({disabled:D}),dl(r,(N,V)=>{let te=D;const oe=ue(r,V);oe&&ur(oe._f.disabled)&&(te||(te=oe._f.disabled)),N.disabled=te},0,!1))},be=(D,N)=>async V=>{let te;V&&(V.preventDefault&&V.preventDefault(),V.persist&&V.persist());let oe=pn(i);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Y,values:se}=await R();n.errors=Y,oe=se}else await k(r);if(Bt(n.errors,"root"),Vn(n.errors)){f.state.next({errors:{}});try{await D(oe,V)}catch(Y){te=Y}}else N&&await N({...n.errors},V),ie(),setTimeout(ie);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Vn(n.errors)&&!te,submitCount:n.submitCount+1,errors:n.errors}),te)throw te},we=(D,N={})=>{ue(r,D)&&(bt(N.defaultValue)?Z(D,pn(ue(o,D))):(Z(D,N.defaultValue),tt(o,D,pn(N.defaultValue))),N.keepTouched||Bt(n.touchedFields,D),N.keepDirty||(Bt(n.dirtyFields,D),n.isDirty=N.defaultValue?U(D,pn(ue(o,D))):U()),N.keepError||(Bt(n.errors,D),u.isValid&&b()),f.state.next({...n}))},me=(D,N={})=>{const V=D?pn(D):o,te=pn(V),oe=Vn(D),Y=oe?o:te;if(N.keepDefaultValues||(o=V),!N.keepValues){if(N.keepDirtyValues)for(const se of a.mount)ue(n.dirtyFields,se)?tt(Y,se,ue(i,se)):Z(se,ue(Y,se));else{if(_m&&bt(D))for(const se of a.mount){const ze=ue(r,se);if(ze&&ze._f){const Ke=Array.isArray(ze._f.refs)?ze._f.refs[0]:ze._f.ref;if(gf(Ke)){const it=Ke.closest("form");if(it){it.reset();break}}}}r={}}i=e.shouldUnregister?N.keepDefaultValues?pn(o):{}:pn(Y),f.array.next({values:{...Y}}),f.values.next({values:{...Y}})}a={mount:N.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!N.keepIsValid||!!N.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:N.keepSubmitCount?n.submitCount:0,isDirty:oe?!1:N.keepDirty?n.isDirty:!!(N.keepDefaultValues&&!ii(D,o)),isSubmitted:N.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:oe?[]:N.keepDirtyValues?N.keepDefaultValues&&i?$c(o,i):n.dirtyFields:N.keepDefaultValues&&D?$c(o,D):{},touchedFields:N.keepTouched?n.touchedFields:{},errors:N.keepErrors?n.errors:{},isSubmitSuccessful:N.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Oe=(D,N)=>me(Ro(D)?D(i):D,N);return{control:{register:ye,unregister:_,getFieldState:T,handleSubmit:be,setError:q,_executeSchema:R,_getWatch:X,_getDirty:U,_updateValid:b,_removeUnmounted:M,_updateFieldArray:h,_updateDisabledField:Pe,_getFieldArray:F,_reset:me,_resetDefaultValues:()=>Ro(t.defaultValues)&&t.defaultValues().then(D=>{Oe(D,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:D=>{n={...n,...D}},_disableForm:je,_subjects:f,_proxyFormState:u,_setErrors:w,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(D){s=D},get _defaultValues(){return o},get _names(){return a},set _names(D){a=D},get _formState(){return n},set _formState(D){n=D},get _options(){return t},set _options(D){t={...t,...D}}},trigger:B,register:ye,handleSubmit:be,watch:ae,setValue:Z,getValues:G,reset:Oe,resetField:we,clearErrors:W,unregister:_,setError:q,setFocus:(D,N={})=>{const V=ue(r,D),te=V&&V._f;if(te){const oe=te.refs?te.refs[0]:te.ref;oe.focus&&(oe.focus(),N.shouldSelect&&oe.select())}},getFieldState:T}}function RV(e={}){const t=ve.useRef(),n=ve.useRef(),[r,o]=ve.useState({isDirty:!1,isValidating:!1,isLoading:Ro(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ro(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...CV(e),formState:r});const i=t.current.control;return i._options=e,eP({subject:i._subjects.state,next:s=>{Ox(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),ve.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ve.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),ve.useEffect(()=>{e.values&&!ii(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[e.values,i]),ve.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ve.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),ve.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=zx(r,i),t.current}const pa=Nr({key:"currentUser",default:void 0}),DV=Nr({key:"currentJhData",default:{admin_access:!1,base_url:"/hub",options_form:!1,prefix:"/",user:"",xsrf_token:""}}),Oi=Nr({key:"currentNotification",default:void 0}),qx=Nr({key:"currentFormInput",default:void 0}),Jx=Nr({key:"currentImage",default:void 0}),Wx=Nr({key:"currentFile",default:void 0}),Qx=Nr({key:"currentSearchValue",default:""}),Kx=Nr({key:"currentFrameworks",default:[]}),Gx=Nr({key:"currentOwnershipValue",default:"Any"}),Zx=Nr({key:"currentSortValue",default:"Recently modified"}),Yx=({id:e})=>{const t=Dm(),[n,r]=g.useState(!1),[o]=_e(pa),[,i]=_e(Oi),[s,a]=_e(qx),[l,c]=g.useState(""),[u,f]=_e(Wx),[p,y]=_e(Jx),[v,m]=g.useState(!1),{data:b,error:A}=Er({queryKey:["app-form",e],queryFn:()=>Wt.get(`/server/${e}`).then(I=>I.data),enabled:!!e}),{data:h,isLoading:P}=Er({queryKey:["app-frameworks"],queryFn:()=>Wt.get("/frameworks/").then(I=>I.data)}),{data:w,isLoading:S}=Er({queryKey:["app-environments"],queryFn:()=>Wt.get("/conda-environments/").then(I=>I.data)}),{data:C,isLoading:H}=Er({queryKey:["app-profiles"],queryFn:()=>Wt.get("/spawner-profiles/").then(I=>I.data)}),{control:R,handleSubmit:L,reset:k,watch:M,formState:{errors:U}}=RV({defaultValues:{display_name:"",description:"",framework:"",thumbnail:"",filepath:"",conda_env:"",env:"",custom_command:"",profile:"",is_public:!1}}),X=M("framework"),F=({display_name:I,description:B,framework:G,thumbnail:T,filepath:W,conda_env:q,env:ae,custom_command:_,profile:Pe})=>{if(C&&C.length>0){const ye={jhub_app:!0,display_name:l||I,description:B,framework:G,thumbnail:T,filepath:W,conda_env:q,env:ae?JSON.parse(ae):null,custom_command:_,profile:Pe,is_public:v};a(ye),t(`/server-types${e?`?id=${e}`:""}`)}else{const ye={servername:l||I,user_options:{jhub_app:!0,name:l||I,display_name:I,description:B||"",framework:G,thumbnail:T||"",filepath:W||"",conda_env:q||"",env:ae?JSON.parse(ae):null,custom_command:_||"",profile:Pe||"",public:v}};r(!0),e?z(ye,{onSuccess:async()=>{window.location.assign(Qn)},onError:async ie=>{r(!1),i(ie.message)}}):Z(ye,{onSuccess:async ie=>{const je=o==null?void 0:o.name;if(je&&(ie==null?void 0:ie.length)>1){const be=ie[1];window.location.assign(`${Qn}/spawn-pending/${je}/${be}`)}},onError:async ie=>{r(!1),i(ie.message)}})}},J=async({servername:I,user_options:B})=>{const G={accept:"application/json","Content-Type":"multipart/form-data"},T=new FormData;return T.append("data",JSON.stringify({servername:I,user_options:B})),u&&T.append("thumbnail",u),(await Wt.post("/server",T,{headers:G})).data},K=async({servername:I,user_options:B})=>{const G={accept:"application/json","Content-Type":"multipart/form-data"},T=new FormData;return T.append("data",JSON.stringify({servername:I,user_options:B})),u?T.append("thumbnail",u):p&&T.append("thumbnail_data_url",p),(await Wt.put(`/server/${I}`,T,{headers:G})).data},{mutate:Z}=Zs({mutationFn:J,retry:1}),{mutate:z}=Zs({mutationFn:K,retry:1});return g.useEffect(()=>{b!=null&&b.name&&(b!=null&&b.user_options)&&(c(b.name),k({...b.user_options,env:b.user_options.env?JSON.stringify(b.user_options.env):void 0}),m(b.user_options.public),y(b.user_options.thumbnail))},[b==null?void 0:b.name,b==null?void 0:b.user_options,k,y]),g.useEffect(()=>{s&&(c(s.display_name),k({display_name:s.display_name||"",description:s.description||"",framework:s.framework||"",filepath:s.filepath||"",conda_env:s.conda_env||"",env:s.env?JSON.stringify(s.env):void 0,custom_command:s.custom_command||"",profile:s.profile||""}),m(s.is_public),y(s.thumbnail))},[s,k,y]),g.useEffect(()=>{A&&i(A.message)},[A,i]),d.jsxs("form",{id:"app-form",onSubmit:L(F),className:"form",noValidate:!0,children:[d.jsxs("div",{className:"form-section",children:[d.jsx("h2",{children:"App Info"}),d.jsx(Vr,{name:"display_name",control:R,rules:Qc,render:({field:{ref:I,...B}})=>{var G;return d.jsx(yr,{children:d.jsx(Gi,{...B,id:"display_name",label:"Name",placeholder:"Add app name (max. 16 characters)",autoFocus:!0,required:!0,error:!!((G=U.display_name)!=null&&G.message),inputProps:{maxLength:16}})})}}),d.jsx(Vr,{name:"description",control:R,render:({field:{ref:I,...B}})=>d.jsx(yr,{children:d.jsx(Gi,{...B,id:"description",label:"Description",placeholder:"Add app description (max. 75 characters)",multiline:!0,rows:4,inputProps:{maxLength:75}})})})]}),d.jsx("hr",{}),d.jsxs("div",{className:"form-section",children:[d.jsx("h2",{children:"Configuration"}),d.jsx(Vr,{name:"framework",control:R,rules:Qc,render:({field:{ref:I,...B}})=>{var G;return d.jsxs(yr,{children:[d.jsx(pv,{id:"framework-label",required:!0,children:"Framework"}),d.jsx(mv,{...B,id:"framework",label:"Framework",required:!0,error:!!((G=U.framework)!=null&&G.message),children:h==null?void 0:h.map(T=>d.jsx(gs,{value:T.name,children:T.display_name},T.name))})]})}}),X==="custom"?d.jsx(Vr,{name:"custom_command",control:R,rules:Qc,render:({field:{ref:I,...B}})=>d.jsx(yr,{children:d.jsx(Gi,{...B,id:"custom_command",label:"Custom Command",required:X==="custom"})})}):d.jsx(d.Fragment,{}),w&&w.length>0?d.jsx(Vr,{name:"conda_env",control:R,rules:Qc,render:({field:{ref:I,...B}})=>{var G;return d.jsxs(yr,{children:[d.jsx(pv,{id:"framework-label",required:!0,children:"Software Environment"}),d.jsx(mv,{...B,id:"conda_env",label:"Software Environment",required:!0,error:!!((G=U.conda_env)!=null&&G.message),children:w.map(T=>d.jsx(gs,{value:T,children:T},T))})]})}}):d.jsx(d.Fragment,{}),d.jsx(Vr,{name:"filepath",control:R,render:({field:{ref:I,...B}})=>{var G;return d.jsx(yr,{children:d.jsx(Gi,{...B,id:"filepath",label:"File path",placeholder:'Enter the path to the file, e.g. "/shared/users/panel_basic.py"',error:!!((G=U.filepath)!=null&&G.message)})})}}),d.jsx(Vr,{name:"env",control:R,render:({field:{ref:I,...B}})=>d.jsx(yr,{children:d.jsx(Gi,{...B,id:"env",label:"Environment Variables",placeholder:'Enter valid json: {"KEY_1":"VALUE_1","KEY_2":"VALUE_2"}'})})})]}),d.jsx("hr",{}),d.jsxs("div",{className:"form-section",children:[d.jsx("h2",{children:"Sharing"}),d.jsx(Vr,{name:"is_public",control:R,render:({field:{ref:I,value:B,onChange:G,...T}})=>d.jsx(yr,{children:d.jsx(al,{control:d.jsx(c6,{...T,id:"is_public",checked:v,onChange:()=>{m(!v)}}),label:"Allow Public Access"})})})]}),d.jsx("hr",{}),d.jsxs("div",{className:"form-section",children:[d.jsx("h2",{children:"App Thumbnail"}),d.jsx(Vr,{name:"thumbnail",control:R,render:({field:{ref:I,value:B,onChange:G,...T}})=>d.jsx(yr,{children:d.jsx(lF,{...T,id:"thumbnail",currentImage:p,setCurrentImage:y,currentFile:u,setCurrentFile:f})})})]}),d.jsx("hr",{}),d.jsxs("div",{className:"button-section",children:[d.jsx("div",{className:"prev",children:d.jsx(dt,{id:"cancel-btn",type:"button",variant:"text",color:"secondary",onClick:()=>Rr(`${Qn}`),children:"Cancel"})}),d.jsx("div",{className:"next",children:d.jsx(dt,{id:"submit-btn",type:"submit",variant:"contained",color:"primary",disabled:P||S||H||n,children:C&&C.length>0?d.jsx(d.Fragment,{children:"Next"}):e?d.jsx(d.Fragment,{children:"Save"}):d.jsx(d.Fragment,{children:"Create App"})})})]})]})};var _x={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s{const r=i9("button-group",t);return p.jsx("ul",{id:e,className:r,children:x.Children.map(n,(o,i)=>p.jsx("li",{className:"button-group-item",children:o},i))})},s9=({id:e,items:t})=>{const n=x.useRef(null),[r,o]=x.useState(null),i=!!r,s=l=>{l.preventDefault(),l.stopPropagation(),o(l.currentTarget)},a=()=>{o(null)};return p.jsxs("div",{className:"context-menu",id:e,tabIndex:0,ref:n,children:[p.jsx(Et,{id:"basic-button","aria-controls":i?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,onClick:s,children:"..."}),p.jsx(ag,{id:"basic-menu",anchorEl:r,open:i,onClose:a,sx:{"& .MuiPaper-root":{width:"151px"}},MenuListProps:{"aria-labelledby":"basic-button"},children:t.filter(l=>l.visible).map(l=>p.jsx(gs,{sx:{fontSize:"12px"},onClick:c=>{!l.disabled&&l.onClick&&l.onClick(c),a()},disabled:l.disabled,children:l.title},`menu-item-${l.id}`))})]})};var Gg={},jE={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(jE);var Rn=jE.exports,oh={};const a9=e_(aA);var Cb;function En(){return Cb||(Cb=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=a9}(oh)),oh}var l9=Rn;Object.defineProperty(Gg,"__esModule",{value:!0});var BE=Gg.default=void 0,c9=l9(En()),u9=p;BE=Gg.default=(0,c9.default)((0,u9.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1"}),"HomeRounded");var Qg={},d9=Rn;Object.defineProperty(Qg,"__esModule",{value:!0});var zE=Qg.default=void 0,f9=d9(En()),p9=p;zE=Qg.default=(0,f9.default)((0,p9.jsx)("path",{d:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0"}),"KeyboardArrowDownRounded");var Xg={},h9=Rn;Object.defineProperty(Xg,"__esModule",{value:!0});var UE=Xg.default=void 0,m9=h9(En()),v9=p;UE=Xg.default=(0,m9.default)((0,v9.jsx)("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71a.9959.9959 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0"}),"KeyboardArrowUpRounded");var Yg={},g9=Rn;Object.defineProperty(Yg,"__esModule",{value:!0});var VE=Yg.default=void 0,y9=g9(En()),b9=p;VE=Yg.default=(0,y9.default)((0,b9.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var Zg={},x9=Rn;Object.defineProperty(Zg,"__esModule",{value:!0});var WE=Zg.default=void 0,S9=x9(En()),C9=p;WE=Zg.default=(0,S9.default)((0,C9.jsx)("path",{fillRule:"evenodd",d:"M19 12.87c0-.47-.34-.85-.8-.98C16.93 11.54 16 10.38 16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.38-.93 2.54-2.2 2.89-.46.13-.8.51-.8.98V13c0 .55.45 1 1 1h4.98l.02 7c0 .55.45 1 1 1s1-.45 1-1l-.02-7H18c.55 0 1-.45 1-1z"}),"PushPinRounded");const wb=re(mu)(({theme:e})=>({fontWeight:700,paddingLeft:e.spacing(4),paddingTop:e.spacing(1),paddingBottom:e.spacing(1)})),Rb=re(ew)(({theme:e})=>({paddingLeft:e.spacing(4)})),w9=({...e})=>{const t=jo(),[n,r]=ge.useState(null),o=!!n,i=fL(t.breakpoints.down("sm")),{window:s}=e,[a,l]=x.useState(!i),[c]=kt(da),[,u]=kt(Ni),[d,f]=x.useState([]),{isLoading:b,error:m,data:g}=qr({queryKey:["service-data"],queryFn:()=>Xt.get("/services/").then(h=>h.data).then(h=>h),enabled:!!c}),C=()=>{l(h=>!h)};x.useEffect(()=>{!b&&g&&c&&f(()=>bE(g,c.name))},[b,g,c]),x.useEffect(()=>{u(m?m.message:void 0)},[m,u]),x.useEffect(()=>{l(!i)},[i]);const v=p.jsxs(on,{children:[p.jsx(_a,{disablePadding:!0,sx:{mt:10,mb:2},children:p.jsxs(ew,{sx:{pl:3},onClick:()=>_r(`${Kn}`),children:[p.jsx(l1,{children:p.jsx(BE,{})}),p.jsx(mu,{primary:"Home"})]})}),p.jsx(n1,{}),d.find(h=>h.pinned)?p.jsxs(p.Fragment,{children:[p.jsxs(am,{children:[p.jsx(_a,{disablePadding:!0,children:p.jsx(wb,{primary:"Pinned",disableTypography:!0})}),d.filter(h=>h.pinned).map((h,y)=>p.jsx(_a,{disablePadding:!0,children:p.jsxs(Rb,{onClick:()=>_r(h.url),children:[p.jsx(mu,{primary:h.name}),p.jsx(l1,{sx:{minWidth:"32px"},children:p.jsx(WE,{})})]})},y))]}),p.jsx(n1,{})]}):p.jsx(p.Fragment,{}),p.jsxs(am,{children:[p.jsx(_a,{disablePadding:!0,children:p.jsx(wb,{primary:"Services",disableTypography:!0,sx:{pt:2}})}),d.map((h,y)=>p.jsx(_a,{disablePadding:!0,children:p.jsx(Rb,{onClick:()=>_r(h.url),children:p.jsx(mu,{primary:h.name})})},y))]})]});return p.jsxs(on,{sx:{flexGrow:1},children:[p.jsx(RN,{position:"fixed",sx:{zIndex:h=>h.zIndex.drawer+1,backgroundColor:h=>h.palette.common.black},children:p.jsxs(HD,{children:[p.jsx(OC,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:C,sx:{mr:2,display:{sm:"none"}},children:p.jsx(VE,{})}),p.jsx(on,{component:"div",sx:{flexGrow:1,display:{xs:"none",sm:"block"}},children:p.jsx("a",{href:Kn,children:p.jsx("img",{src:D8(),alt:"logo",height:"28"})})}),p.jsxs(on,{sx:{display:{xs:"none",sm:"block"}},children:[p.jsxs(Et,{id:"profile-menu-btn","aria-controls":o?"profile-menu-list":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,onClick:h=>r(h.currentTarget),endIcon:o?p.jsx(UE,{}):p.jsx(zE,{}),sx:{color:t.palette.common.white,fontWeight:700},children:[c==null?void 0:c.name," ",c!=null&&c.admin?"(admin)":""]}),p.jsxs(ag,{id:"profile-menu-list",anchorEl:n,open:o,onClose:()=>r(null),MenuListProps:{"aria-labelledby":"profile-menu-btn"},sx:{marginTop:"20px"},children:[p.jsx(gs,{onClick:()=>_r(`${Kn}/token`),sx:{width:"180px"},children:"Tokens"}),c!=null&&c.admin?p.jsx(gs,{onClick:()=>_r(`${Kn}/admin`),children:"Admin"}):p.jsx(p.Fragment,{}),p.jsx(gs,{onClick:()=>_r(`${Kn}/logout`),children:"Logout"})]})]})]})}),p.jsx("nav",{children:p.jsx(aM,{container:s!==void 0?()=>s().document.body:void 0,variant:"persistent",open:a,onClose:C,ModalProps:{keepMounted:!0},sx:{"& .MuiDrawer-paper":{boxSizing:"border-box",width:240}},children:v})})]})},R9=({severity:e="error",message:t,onClose:n})=>p.jsx("div",{className:"alert-wrapper",children:t?p.jsx(dN,{id:"alert-notification",severity:e,onClose:n,children:t}):p.jsx(p.Fragment,{})});var Jg={},E9=Rn;Object.defineProperty(Jg,"__esModule",{value:!0});var HE=Jg.default=void 0,_9=E9(En()),k9=p;HE=Jg.default=(0,_9.default)((0,k9.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-1 16H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m-4.44-6.19-2.35 3.02-1.56-1.88c-.2-.25-.58-.24-.78.01l-1.74 2.23c-.26.33-.02.81.39.81h8.98c.41 0 .65-.47.4-.8l-2.55-3.39c-.19-.26-.59-.26-.79 0"}),"CropOriginalRounded");var ey={},T9=Rn;Object.defineProperty(ey,"__esModule",{value:!0});var KE=ey.default=void 0,A9=T9(En()),$9=p;KE=ey.default=(0,A9.default)((0,$9.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2zM18 4h-2.5l-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1"}),"DeleteRounded");var ty={},P9=Rn;Object.defineProperty(ty,"__esModule",{value:!0});var qE=ty.default=void 0,N9=P9(En()),I9=p;qE=ty.default=(0,N9.default)((0,I9.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile");var ny={},O9=Rn;Object.defineProperty(ny,"__esModule",{value:!0});var GE=ny.default=void 0,M9=O9(En()),L9=p;GE=ny.default=(0,M9.default)((0,L9.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const F9=({id:e,name:t,currentImage:n,setCurrentImage:r,currentFile:o,setCurrentFile:i,...s})=>{const[a,l]=x.useState(!1),[c,u]=x.useState(!1),d=x.useRef(null),f=S=>{S.preventDefault(),l(!0)},b=S=>{S.preventDefault(),l(!0)},m=S=>{S.preventDefault(),l(!1)},g=S=>{S.preventDefault(),l(!1);const R=S.dataTransfer.files[0];i(R)},C=S=>{if(!S.target.files)return;const R=S.target.files[0];i(R)},v=S=>{S.preventDefault(),u(!0)},h=S=>{S.preventDefault();const R=d.current;R&&R.click()},y=S=>{S.preventDefault();const R=d.current;R&&(R.value="",i(void 0),r(void 0))};return x.useEffect(()=>{const S=d.current;if(S&&S.files&&S.files.length>0){const R=S.files[0];i(R)}},[d,i]),p.jsxs("div",{id:`thumbnail-${e}`,className:"thumbnail",children:[p.jsxs("div",{id:`thumbnail-body-${e}`,className:`thumbnail-body ${a?"dragging":""} ${o||n?"selected":""}`,onDragOver:f,onDragEnter:b,onDragLeave:m,onDrop:g,children:[o||n?p.jsx("div",{className:"thumbnail-img-container",children:p.jsx("img",{src:o?URL.createObjectURL(o):n,alt:"App thumnail",className:"thumbnail-img"})}):p.jsx("div",{className:"thumbnail-icon-container",tabIndex:0,onClick:h,children:p.jsx(HE,{className:"thumbnail-icon"})}),p.jsx("input",{ref:d,id:e,name:t,type:"file",accept:"image/*",onChange:C,style:{display:"none"},...s})]}),p.jsxs("div",{className:"thumbnail-actions",children:[p.jsx(Et,{id:"view-thumbnail-btn",variant:"contained",color:"secondary",size:"small",startIcon:p.jsx(GE,{}),onClick:v,disabled:!o&&!n,children:"View Thumbnail"}),p.jsx(Et,{id:"upload-thumbnail-btn",variant:"contained",color:"secondary",size:"small",startIcon:p.jsx(qE,{}),onClick:h,children:"Upload Thumbnail"}),p.jsx(Et,{id:"remove-thumbnail-btn",variant:"contained",color:"secondary",size:"small",startIcon:p.jsx(KE,{}),onClick:y,disabled:!o&&!n,children:"Remove Thumbnail"})]}),p.jsx(hu,{onClose:()=>u(!1),open:c,children:p.jsx("img",{src:o?URL.createObjectURL(o):n,alt:"App thumnail"})})]})};var ry={},D9=Rn;Object.defineProperty(ry,"__esModule",{value:!0});var tp=ry.default=void 0,j9=D9(En()),B9=p;tp=ry.default=(0,j9.default)((0,B9.jsx)("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.9959.9959 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1"}),"ArrowBackRounded");const Nn=re("div")(({theme:e})=>({padding:e.spacing(0)})),z9=()=>p.jsx(on,{className:"container",children:p.jsxs(ic,{children:[p.jsx(Nn,{children:p.jsx("div",{className:"form-breadcrumb",children:p.jsx(Et,{id:"back-btn",type:"button",variant:"text",color:"primary",startIcon:p.jsx(tp,{}),onClick:()=>_r(Kn),children:"Back"})})}),p.jsxs(Nn,{children:[p.jsx("h1",{className:"form-heading",children:"Create a new app"}),p.jsxs("p",{className:"form-paragraph",children:["Begin your project by entering the details below. For more information about creating an app,"," ",p.jsx("a",{href:"https://jhub-apps.nebari.dev/docs/reference/create-app-form",target:"_blank",rel:"noopener noreferrer",className:"form-paragraph-link",children:"visit our docs"}),"."]})]}),p.jsx(Nn,{children:p.jsx(FE,{})})]})}),U9=()=>{const[e]=Nw(),t=e.get("id");return p.jsx(on,{className:"container",children:p.jsxs(ic,{children:[p.jsx(Nn,{children:p.jsx("div",{className:"form-breadcrumb",children:p.jsx(Et,{id:"back-btn",type:"button",variant:"text",color:"primary",startIcon:p.jsx(tp,{}),onClick:()=>_r(Kn),children:"Back"})})}),p.jsxs(Nn,{children:[p.jsx("h1",{className:"form-heading",children:"Edit app"}),p.jsxs("p",{className:"form-paragraph",children:["Edit your app details here. For more information on editing your app,"," ",p.jsx("a",{href:"https://jhub-apps.nebari.dev/docs/reference/create-app-form",target:"_blank",rel:"noopener noreferrer",className:"form-paragraph-link",children:"visit our docs"}),"."]})]}),p.jsx(Nn,{children:p.jsx(p.Fragment,{children:t?p.jsx(FE,{id:t}):p.jsx(p.Fragment,{children:"No app found."})})})]})})};var oy={},V9=Rn;Object.defineProperty(oy,"__esModule",{value:!0});var QE=oy.default=void 0,W9=V9(En()),H9=p;QE=oy.default=(0,W9.default)((0,H9.jsx)("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1"}),"AddRounded");var iy={},K9=Rn;Object.defineProperty(iy,"__esModule",{value:!0});var XE=iy.default=void 0,q9=K9(En()),G9=p;XE=iy.default=(0,q9.default)((0,G9.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V18c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-1.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05.02.01.03.03.04.04 1.14.83 1.93 1.94 1.93 3.41V18c0 .35-.07.69-.18 1H22c.55 0 1-.45 1-1v-1.5c0-2.33-4.67-3.5-7-3.5"}),"GroupRounded");var sy={},Q9=Rn;Object.defineProperty(sy,"__esModule",{value:!0});var YE=sy.default=void 0,X9=Q9(En()),Y9=p;YE=sy.default=(0,X9.default)((0,Y9.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2z"}),"LockRounded");var ay={},Z9=Rn;Object.defineProperty(ay,"__esModule",{value:!0});var ZE=ay.default=void 0,J9=Z9(En()),eW=p;ZE=ay.default=(0,J9.default)((0,eW.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"PublicRounded");const tW=({id:e,title:t,description:n,framework:r,thumbnail:o,url:i,username:s,isPublic:a=!1,isShared:l,serverStatus:c})=>{const[u,d]=x.useState(""),f=_f(),[b,m]=x.useState(!1),[,g]=kt(Ni),[C,v]=x.useState(!1),[h,y]=x.useState(!1),[S,R]=x.useState(!1);x.useEffect(()=>{c?d(c):g("Server status id undefined.")},[c,g]);const _=L=>{switch(L){case"Ready":return{bgcolor:"#ffffff",border:"1px solid #2E7D32"};case"Pending":return{bgcolor:"#EAB54E",color:"black"};case"Running":return{bgcolor:"#2E7D32",color:"white"};case"Unknown":return{bgcolor:"#79797C",color:"black"};default:return{bgcolor:"#F5F5F5",color:"black"}}},E=()=>a?p.jsx(ZE,{"data-testid":"PublicRoundedIcon"}):l?p.jsx(XE,{"data-testid":"GroupRoundedIcon"}):p.jsx(YE,{"data-testid":"LockRoundedIcon"}),k=async({id:L})=>{try{const Q=await Xt.post(`/server/${L}`);return P("Running"),Q}catch(Q){console.error("There was an error!",Q),g(Q.toString()),d("Error")}},F=async({id:L,remove:Q})=>{try{const A=await Xt.delete(`/server/${L}`,{params:{remove:Q}});return P(Q?"Deleted":"Ready"),A}catch(A){console.error("There was an error!",A),g(A.toString()),d("Error")}},P=L=>{d(L)},{mutate:V}=qs({mutationFn:k,retry:1}),{mutate:z}=qs({mutationFn:F,retry:1}),j=()=>{m(!0),z({id:e,remove:!0},{onSuccess:async()=>{m(!1),R(!1),f.invalidateQueries({queryKey:["app-state"]})},onError:async L=>{m(!1),g(L.message)}})},U=()=>{m(!0),V({id:e},{onSuccess:()=>{m(!1),v(!1),f.invalidateQueries({queryKey:["app-state"]})},onError:L=>{m(!1),console.error(L.message)}})},H=()=>{m(!0),z({id:e,remove:!1},{onSuccess:async()=>{m(!1),y(!1),f.invalidateQueries({queryKey:["app-state"]})},onError:async L=>{m(!1),g(L.message)}})},G=[{id:"start",title:"Start",onClick:()=>v(!0),visible:!0,disabled:c==="Running"},{id:"stop",title:"Stop",onClick:()=>y(!0),visible:!0,disabled:c==="Ready"||l},{id:"edit",title:"Edit",onClick:()=>window.location.href=`${ug}/edit-app?id=${e}`,visible:!0,disabled:l||e===""},{id:"delete",title:"Delete",onClick:()=>R(!0),visible:!0,disabled:l||e===""}],X=p.jsxs(p.Fragment,{children:[p.jsxs("p",{className:"card-dialog-body",children:["Are you sure you want to start ",p.jsx("b",{children:t}),"?"]}),p.jsxs(rh,{children:[p.jsx(Et,{id:"cancel-btn",variant:"text",color:"secondary",onClick:()=>v(!1),children:"Cancel"}),p.jsx(Et,{id:"start-btn",variant:"contained",color:"primary",onClick:()=>U(),disabled:b,children:"Start"})]})]}),I=p.jsxs(p.Fragment,{children:[p.jsxs("p",{className:"card-dialog-body",children:["Are you sure you want to stop ",p.jsx("b",{children:t}),"?"]}),p.jsxs(rh,{children:[p.jsx(Et,{id:"cancel-btn",variant:"text",color:"secondary",onClick:()=>y(!1),children:"Cancel"}),p.jsx(Et,{id:"stop-btn",variant:"contained",color:"primary",onClick:()=>H(),disabled:b,children:"Stop"})]})]}),M=p.jsxs(p.Fragment,{children:[p.jsxs("p",{className:"card-dialog-body",children:["Are you sure you want to delete ",p.jsx("b",{children:t}),"? This action is permanent and cannot be reversed."]}),p.jsxs(rh,{children:[p.jsx(Et,{id:"cancel-btn",variant:"text",color:"secondary",onClick:()=>R(!1),children:"Cancel"}),p.jsx(Et,{id:"delete-btn",variant:"contained",color:"primary",onClick:()=>j(),disabled:b,children:"Delete"})]})]});return p.jsx("div",{className:"card",id:`card-${e}`,tabIndex:0,children:p.jsx("a",{href:i,children:p.jsxs(jC,{id:`card-${e}`,tabIndex:0,className:"Mui-card",children:[p.jsxs("div",{className:"card-content-header",children:[p.jsx("div",{className:"chip-container",children:p.jsx("div",{className:"menu-chip",children:p.jsx(Ip,{label:u,"aria-label":"open menu",id:e,children:void 0,size:"small",className:"chip-chip",sx:{..._(u),"& .MuiChip-label":{color:_(u).color}}})})}),p.jsx(s9,{id:`card-menu-${e}`,items:G}),C&&p.jsxs(hu,{open:C,onClose:v,children:[p.jsxs(Lp,{children:["Start ",t]}),p.jsx(Mp,{children:X})]}),h&&p.jsxs(hu,{open:h,onClose:y,children:[p.jsxs(Lp,{children:["Stop ",t]}),p.jsx(Mp,{children:I})]}),S&&p.jsxs(hu,{open:S,onClose:R,children:[p.jsxs(Lp,{children:["Delete ",t]}),p.jsx(Mp,{children:M})]}),p.jsx(nO,{children:o?p.jsx("div",{className:"img-overlay",children:p.jsx("img",{src:o,alt:"App thumb"})}):p.jsx("div",{className:"img-overlay",children:p.jsx("img",{src:"/assets/images/app-placeholder.jpeg",alt:"App thumb"})})})]}),p.jsxs("div",{className:"card-content-content",children:[p.jsxs("div",{className:"chip-container",children:[p.jsx("div",{className:"menu-chip",children:p.jsx(Ip,{color:"default",variant:"outlined",label:r,id:`chip-${e}`,size:"small"})}),a&&p.jsx("div",{className:"menu-chip",children:p.jsx(Ip,{color:"default",variant:"outlined",label:"Public",id:`chip-${e}-public`,size:"small"})})]}),p.jsx("div",{className:"card-content-container",children:p.jsxs(BC,{className:"card-inner-content",children:[p.jsx("span",{className:"inline relative iconic",children:E()}),p.jsx(Tr,{gutterBottom:!0,variant:"h5",component:"div",className:"card-title",children:t}),p.jsxs(Tr,{variant:"body2",color:"text.secondary",className:"card-author",children:["Created by ",s]}),n&&p.jsx(Tr,{variant:"body2",color:"text.secondary",className:"card-description",children:n})]})})]})]})})})},Eb=({appType:e="My",filter:t})=>{const[n]=kt(da),[,r]=kt(Ni),[o,i]=x.useState([]),{isLoading:s,error:a,data:l}=qr({queryKey:["app-state"],queryFn:()=>Xt.get("/server/").then(c=>c.data).then(c=>c),enabled:!!n});return x.useEffect(()=>{if(!s&&l){const c=t.toLowerCase(),u=L8(l,e,(n==null?void 0:n.name)??"").map(d=>({...d,status:jm(d)}));i(()=>u.filter(d=>{var f,b;return d.name.toLowerCase().includes(c)||((f=d.description)==null?void 0:f.toLowerCase().includes(c))||((b=d.framework)==null?void 0:b.toLowerCase().includes(c))}))}},[s,l,e,t,n==null?void 0:n.name]),x.useEffect(()=>{r(a?a.message:void 0)},[a,r]),p.jsx(on,{children:p.jsxs(ic,{children:[p.jsx(Nn,{children:p.jsxs(on,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingBottom:"48px"},children:[p.jsx("div",{className:"grid-heading-left",children:p.jsxs("h2",{children:[e," Apps"]})}),p.jsx("div",{className:"grid-heading-center",children:p.jsx("hr",{className:"grid-spacer"})}),p.jsx("div",{className:"grid-heading-right",children:p.jsxs("h2",{children:[o.length," apps"]})})]})}),p.jsx(Nn,{children:p.jsx(on,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px",justifyContent:"flex-start",paddingBottom:"48px"},children:s?p.jsx("div",{className:"font-bold",children:"Loading..."}):o.length>0?p.jsx(p.Fragment,{children:o.map(c=>p.jsx(tW,{id:c.id,title:c.name,description:c.description,thumbnail:c.thumbnail,framework:c.framework,permissions:c.public?"Public":"Private",url:c.url,ready:c.ready,serverStatus:c.status,username:c.username,isPublic:c.public,isShared:e==="Shared"},`app-${c.id}`))}):p.jsx("div",{children:"No apps available"})})})]})})},nW=()=>{const[e]=kt(da),[,t]=kt(Ni),[n,r]=x.useState([]),{isLoading:o,error:i,data:s}=qr({queryKey:["service-data"],queryFn:()=>Xt.get("/services/").then(l=>l.data).then(l=>l),enabled:!!e}),a=(l,c)=>{c?window.open(l,"_blank"):window.location.assign(l)};return x.useEffect(()=>{!o&&s&&e&&r(()=>bE(s,e.name))},[o,s,e]),x.useEffect(()=>{t(i?i.message:void 0)},[i,t]),p.jsx(on,{children:p.jsxs(ic,{children:[p.jsx(Nn,{children:p.jsxs(on,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingBottom:"48px"},children:[p.jsx("div",{className:"grid-heading-left",children:p.jsx("h2",{children:"Services"})}),p.jsx("div",{className:"grid-heading-center",children:p.jsx("hr",{className:"grid-spacer"})}),p.jsx("div",{className:"grid-heading-right",children:p.jsxs("h2",{children:[n.length," services"]})})]})}),p.jsx(Nn,{children:p.jsx(on,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px",justifyContent:"flex-start",paddingBottom:"48px"},children:o?p.jsx("div",{className:"font-bold",children:"Loading..."}):n.length>0?p.jsx(p.Fragment,{children:n.map((l,c)=>p.jsx(Et,{id:`service-${c}`,variant:"outlined",color:"secondary",style:{minWidth:"180px"},onClick:()=>{a(l.url,l.external)},children:l.name},`service-${c}`))}):p.jsx("div",{children:"No services available"})})})]})})},_b=()=>{const[e,t]=x.useState(""),n=r=>{const o=r.target;t(o.value)};return p.jsxs(on,{sx:{flexGrow:1},className:"container",children:[p.jsxs(Uc,{container:!0,spacing:2,paddingBottom:"48px",children:[p.jsx(Uc,{item:!0,xs:12,md:2,children:p.jsx(Nn,{children:p.jsx("h1",{children:"Home"})})}),p.jsx(Uc,{item:!0,xs:8,md:8,children:p.jsx(Nn,{children:p.jsx(qi,{id:"search",size:"small",placeholder:"Search...","aria-label":"Search for an app",className:"search-bar",onChange:n})})}),p.jsx(Uc,{item:!0,xs:4,md:2,children:p.jsx(Nn,{children:p.jsx(on,{display:"flex",justifyContent:"flex-end",children:p.jsx(Et,{id:"create-app",variant:"contained",color:"primary",startIcon:p.jsx(QE,{}),onClick:()=>{window.location.href=`${ug}/create-app`},children:"Create App"})})})})]}),p.jsx(nW,{}),p.jsx(Eb,{appType:"My",filter:e}),p.jsx(Eb,{appType:"Shared",filter:e})]})},rW=()=>{const[e]=Nw(),t=yg(),n=_f(),[r,o]=x.useState(!1),[i]=kt(da),[s,a]=kt(OE),[l]=kt(LE),[c]=kt(ME),[,u]=kt(Ni),[d,f]=ge.useState((s==null?void 0:s.profile)||""),b=e.get("id"),{data:m,isLoading:g,error:C}=qr({queryKey:["server-types"],queryFn:()=>Xt.get("/spawner-profiles/").then(E=>E.data).then(E=>E),enabled:!!i}),v=E=>{f(E),s&&a({...s,profile:E})},h=E=>{E.preventDefault();const k={servername:(s==null?void 0:s.display_name)||"",user_options:{jhub_app:!0,name:(s==null?void 0:s.display_name)||"",display_name:(s==null?void 0:s.display_name)||"",description:(s==null?void 0:s.description)||"",framework:(s==null?void 0:s.framework)||"",thumbnail:(s==null?void 0:s.thumbnail)||"",filepath:(s==null?void 0:s.filepath)||"",conda_env:(s==null?void 0:s.conda_env)||"",env:(s==null?void 0:s.env)||"",custom_command:(s==null?void 0:s.custom_command)||"",profile:(s==null?void 0:s.profile)||"",public:(s==null?void 0:s.is_public)||!1}};o(!0),b?_(k,{onSuccess:async()=>{n.invalidateQueries({queryKey:["app-state"]})},onError:async F=>{o(!1),u(F.message)}}):R(k,{onSuccess:async F=>{const P=i==null?void 0:i.name;if(P&&(F==null?void 0:F.length)>1){const V=F[1];window.location.assign(`/hub/spawn-pending/${P}/${V}`)}},onError:async F=>{o(!1),u(F.message)}})},y=async({servername:E,user_options:k})=>{const F={accept:"application/json","Content-Type":"multipart/form-data"},P=new FormData;return P.append("data",JSON.stringify({servername:E,user_options:k})),l&&P.append("thumbnail",l),(await Xt.post("/server",P,{headers:F})).data},S=async({servername:E,user_options:k})=>{const F={accept:"application/json","Content-Type":"multipart/form-data"},P=new FormData;return P.append("data",JSON.stringify({servername:E,user_options:k})),l?P.append("thumbnail",l):c&&P.append("thumbnail_data_url",c),(await Xt.put(`/server/${E}`,P,{headers:F})).data},{mutate:R}=qs({mutationFn:y,retry:1}),{mutate:_}=qs({mutationFn:S,retry:1});return p.jsxs("div",{className:"container",children:[p.jsx("div",{className:"form-breadcrumb",children:p.jsx(Et,{id:"back-btn",type:"button",variant:"text",color:"primary",startIcon:p.jsx(tp,{}),onClick:()=>t(b?`/edit-app?id=${b}`:"/create-app"),children:"Back"})}),p.jsxs("div",{className:"row",children:[p.jsx("h1",{className:"form-heading",children:"Server Type"}),p.jsxs("p",{className:"form-paragraph",children:["Please select the appropriate server for your app. For more information on server types,"," ",p.jsx("span",{children:p.jsx("a",{href:"https://www.nebari.dev/docs/welcome",target:"_blank",rel:"noopener noreferrer",className:"form-paragraph-link",children:"visit our docs"})}),"."]})]}),C?p.jsxs("div",{children:["An error occurred: ",C.message]}):g?p.jsx("div",{className:"font-bold center",children:"Loading..."}):m&&m.length>0?p.jsxs("form",{className:"form",onSubmit:h,children:[p.jsx("div",{className:"form-section",children:p.jsx(hD,{children:m==null?void 0:m.map((E,k)=>p.jsx(jC,{className:"server-type-card",onClick:()=>v(E.slug),tabIndex:0,children:p.jsxs(BC,{children:[p.jsx(GC,{value:E.slug,id:E.slug,control:p.jsx(dD,{checked:d?d===E.slug:k===0}),label:E.display_name},E.slug),p.jsx("p",{children:E.description})]})},`server-type-card-${E.slug}`))})}),p.jsx("hr",{}),p.jsxs("div",{className:"button-section",children:[p.jsx("div",{className:"prev",children:p.jsx(Et,{id:"cancel-btn",type:"button",variant:"text",color:"secondary",onClick:()=>_r(Kn),children:"Cancel"})}),p.jsx("div",{className:"next",children:p.jsx(Et,{id:"submit-btn",type:"submit",variant:"contained",color:"primary",disabled:r,children:b?p.jsx(p.Fragment,{children:"Save"}):p.jsx(p.Fragment,{children:"Create App"})})})]})]}):p.jsx("div",{children:"No servers available"})]})},oW=()=>{const[,e]=kt(r9),[,t]=kt(da),[n,r]=kt(Ni),{error:o,data:i}=qr({queryKey:["user-state"],queryFn:()=>Xt.get("/user").then(s=>s.data).then(s=>s)});return x.useEffect(()=>{o&&r(o.message)},[o,r]),x.useEffect(()=>{e(M8())},[e]),x.useEffect(()=>{i&&t({...i})},[i,t]),p.jsxs("div",{children:[p.jsx(w9,{}),p.jsxs(on,{component:"main",sx:{flexGrow:1,pt:9,pl:{xs:1,sm:33},pr:1},children:[n?p.jsx(R9,{message:n,onClose:()=>r(void 0)}):p.jsx(p.Fragment,{}),p.jsxs(w5,{children:[p.jsx(Gi,{path:"/home",element:p.jsx(_b,{})}),p.jsx(Gi,{path:"/create-app",element:p.jsx(z9,{})}),p.jsx(Gi,{path:"/edit-app",element:p.jsx(U9,{})}),p.jsx(Gi,{path:"/server-types",element:p.jsx(rW,{})}),p.jsx(Gi,{path:"/",element:p.jsx(_b,{})})]})]})]})},iW={50:"#2491FF",100:"#2491FF",200:"#2491FF",300:"#2491FF",400:"#2491FF",500:"#005EA2",600:"#1A4480",700:"#1A4480",800:"#1A4480",900:"#162E51"},Mt={50:"#F7F8F8",100:"#E1E3E4",200:"#C3C7CB",300:"#A6ACB2",400:"#90969C",500:"#5B5F63",600:"#44474A",700:"#3C3C3B",800:"#242628",900:"#1A1C1D"},Xc="#BA18DA",kb="#BA18DA10",Tb="#9B00CE",Vi="#18817A",sW="#18817A10",aW="#12635E",lW="#D72D47",cW="#F66A0A",gr="#FFFFFF",Ab="#000000",Yc=Kd({typography:{fontFamily:'"Inter", sans-serif'},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,style:{textTransform:"none",textWrap:"nowrap"}}},MuiFormControl:{defaultProps:{fullWidth:!0,sx:{marginBottom:"12px"}}},MuiTextField:{defaultProps:{autoComplete:"off",fullWidth:!0,sx:{marginBottom:"0"}}},MuiSelect:{defaultProps:{fullWidth:!0}}}}),uW=Kd(Yc,{palette:{primary:Yc.palette.augmentColor({color:{light:kb,main:Xc,dark:Tb,contrastText:gr},name:"primary"}),secondary:Yc.palette.augmentColor({color:{light:sW,main:Vi,dark:aW,contrastText:gr},name:"secondary"}),gray:Yc.palette.augmentColor({color:{light:Mt[300],main:Mt[500],dark:Mt[700],contrastText:Ab,50:Mt[50],100:Mt[100],200:Mt[200],300:Mt[300],400:Mt[400],500:Mt[500],600:Mt[600],700:Mt[700],800:Mt[800],900:Mt[900]},name:"gray"}),warning:{main:cW,contrastText:gr},error:{main:lW,contrastText:gr},info:{main:iW,contrastText:gr},success:{main:Vi[500],contrastText:gr},common:{black:Ab,white:gr}},components:{MuiButton:{variants:[{props:{variant:"contained",color:"primary"},style:{minWidth:"120px",backgroundColor:`${Xc}`,border:`1px solid ${Xc}`,fontWeight:700,"&:hover":{backgroundColor:`${Tb}`},"&:disabled":{borderColor:"transparent"}}},{props:{variant:"contained",color:"secondary"},style:{minWidth:"120px",backgroundColor:Mt[100],border:`1px solid ${Mt[100]}`,color:Mt[700],fontWeight:700,"&:hover":{backgroundColor:gr,filter:"brightness(0.96)"},"&:disabled":{borderColor:"transparent"}}},{props:{variant:"outlined",color:"secondary"},style:{minWidth:"120px",backgroundColor:gr,border:`2px solid ${Vi}`,color:`${Vi}`,fontWeight:700,textTransform:"none","&:hover":{backgroundColor:gr,borderWidth:2,border:`2px solid ${Vi}`,color:`${Vi}`}}},{props:{variant:"text",color:"primary"},style:{color:`${Xc}`,"&:focus":{backgroundColor:`${kb}`}}},{props:{variant:"text",color:"secondary"},style:{color:Mt[500],"&:focus":{backgroundColor:`${Mt[100]}`}}}]}}}),dW=new URL(window.location.href),fW=new vj;Sm.createRoot(document.getElementById("root")).render(p.jsx(ge.StrictMode,{children:p.jsx(k5,{basename:dW.pathname.indexOf("hub")===-1?ug:Kn,children:p.jsx(y6,{children:p.jsxs(tA,{theme:uW,children:[p.jsx(fO,{}),p.jsx(Sj,{client:fW,children:p.jsx(oW,{})})]})})})})); +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s{const r=EV("button-group",t);return d.jsx("ul",{id:e,className:r,children:g.Children.map(n,(o,i)=>d.jsx("li",{className:"button-group-item",children:o},i))})},kV=({id:e,items:t})=>{const n=g.useRef(null),[r,o]=g.useState(null),i=!!r,s=l=>{l.preventDefault(),l.stopPropagation(),o(l.currentTarget)},a=()=>{o(null)};return d.jsxs("div",{className:"context-menu",id:e,tabIndex:0,ref:n,children:[d.jsx(dt,{id:"basic-button","aria-controls":i?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,onClick:s,children:"..."}),d.jsx(ys,{id:"basic-menu",anchorEl:r,open:i,onClose:a,sx:{"& .MuiPaper-root":{width:"151px"}},MenuListProps:{"aria-labelledby":"basic-button"},children:t.filter(l=>l.visible).map(l=>d.jsx(gs,{sx:{fontSize:"12px"},onClick:c=>{!l.disabled&&l.onClick&&l.onClick(c),a()},disabled:l.disabled,children:l.title},`menu-item-${l.id}`))})]})};var oP={},$x={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($x);var en=$x.exports,fh={};const jV=h9(bS);var z8;function tn(){return z8||(z8=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=jV}(fh)),fh}var zV=en;Object.defineProperty(oP,"__esModule",{value:!0});var e9=oP.default=void 0,OV=zV(tn()),IV=d;e9=oP.default=(0,OV.default)((0,IV.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1"}),"HomeRounded");var iP={},LV=en;Object.defineProperty(iP,"__esModule",{value:!0});var pl=iP.default=void 0,BV=LV(tn()),MV=d;pl=iP.default=(0,BV.default)((0,MV.jsx)("path",{d:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0"}),"KeyboardArrowDownRounded");var sP={},NV=en;Object.defineProperty(sP,"__esModule",{value:!0});var hl=sP.default=void 0,XV=NV(tn()),UV=d;hl=sP.default=(0,XV.default)((0,UV.jsx)("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71a.9959.9959 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0"}),"KeyboardArrowUpRounded");var aP={},VV=en;Object.defineProperty(aP,"__esModule",{value:!0});var t9=aP.default=void 0,FV=VV(tn()),qV=d;t9=aP.default=(0,FV.default)((0,qV.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var lP={},JV=en;Object.defineProperty(lP,"__esModule",{value:!0});var n9=lP.default=void 0,WV=JV(tn()),QV=d;n9=lP.default=(0,WV.default)((0,QV.jsx)("path",{fillRule:"evenodd",d:"M19 12.87c0-.47-.34-.85-.8-.98C16.93 11.54 16 10.38 16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.38-.93 2.54-2.2 2.89-.46.13-.8.51-.8.98V13c0 .55.45 1 1 1h4.98l.02 7c0 .55.45 1 1 1s1-.45 1-1l-.02-7H18c.55 0 1-.45 1-1z"}),"PushPinRounded");const O8=re(gu)(({theme:e})=>({fontWeight:700,paddingLeft:e.spacing(4),paddingTop:e.spacing(1),paddingBottom:e.spacing(1)})),I8=re(c1)(({theme:e})=>({paddingLeft:e.spacing(4)})),KV=({...e})=>{const t=Uo(),[n,r]=ve.useState(null),o=!!n,i=M7(t.breakpoints.down("sm")),{window:s}=e,[a,l]=g.useState(!i),[c]=_e(pa),[,u]=_e(Oi),[f,p]=g.useState([]),{isLoading:y,error:v,data:m}=Er({queryKey:["service-data"],queryFn:()=>Wt.get("/services/").then(h=>h.data).then(h=>h),enabled:!!c}),b=()=>{l(h=>!h)};g.useEffect(()=>{!y&&m&&c&&p(()=>Dx(m,c.name))},[y,m,c]),g.useEffect(()=>{u(v?v.message:void 0)},[v,u]),g.useEffect(()=>{l(!i)},[i]);const A=d.jsxs(Et,{children:[d.jsx(Da,{disablePadding:!0,sx:{mt:10,mb:2},children:d.jsxs(c1,{sx:{pl:3},onClick:()=>Rr(`${Qn}`),children:[d.jsx(yg,{children:d.jsx(e9,{})}),d.jsx(gu,{primary:"Home"})]})}),d.jsx(cf,{}),f.find(h=>h.pinned)?d.jsxs(d.Fragment,{children:[d.jsxs(hv,{children:[d.jsx(Da,{disablePadding:!0,children:d.jsx(O8,{primary:"Pinned",disableTypography:!0})}),f.filter(h=>h.pinned).map((h,P)=>d.jsx(Da,{disablePadding:!0,children:d.jsxs(I8,{onClick:()=>Rr(h.url),children:[d.jsx(gu,{primary:h.name}),d.jsx(yg,{sx:{minWidth:"32px"},children:d.jsx(n9,{})})]})},P))]}),d.jsx(cf,{})]}):d.jsx(d.Fragment,{}),d.jsxs(hv,{children:[d.jsx(Da,{disablePadding:!0,children:d.jsx(O8,{primary:"Services",disableTypography:!0,sx:{pt:2}})}),f.map((h,P)=>d.jsx(Da,{disablePadding:!0,children:d.jsx(I8,{onClick:()=>Rr(h.url),children:d.jsx(gu,{primary:h.name})})},P))]})]});return d.jsxs(Et,{sx:{flexGrow:1},children:[d.jsx(MR,{position:"fixed",sx:{zIndex:h=>h.zIndex.drawer+1,backgroundColor:h=>h.palette.common.black},children:d.jsxs(v6,{children:[d.jsx(Jw,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:b,sx:{mr:2,display:{sm:"none"}},children:d.jsx(t9,{})}),d.jsx(Et,{component:"div",sx:{flexGrow:1,display:{xs:"none",sm:"block"}},children:d.jsx("a",{href:Qn,children:d.jsx("img",{src:cV(),alt:"logo",height:"28"})})}),d.jsxs(Et,{sx:{display:{xs:"none",sm:"block"}},children:[d.jsxs(dt,{id:"profile-menu-btn","aria-controls":o?"profile-menu-list":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,onClick:h=>r(h.currentTarget),endIcon:o?d.jsx(hl,{}):d.jsx(pl,{}),sx:{color:t.palette.common.white,fontWeight:700},children:[c==null?void 0:c.name," ",c!=null&&c.admin?"(admin)":""]}),d.jsxs(ys,{id:"profile-menu-list",anchorEl:n,open:o,onClose:()=>r(null),MenuListProps:{"aria-labelledby":"profile-menu-btn"},sx:{marginTop:"20px"},children:[d.jsx(gs,{onClick:()=>Rr(`${Qn}/token`),sx:{width:"180px"},children:"Tokens"}),c!=null&&c.admin?d.jsx(gs,{onClick:()=>Rr(`${Qn}/admin`),children:"Admin"}):d.jsx(d.Fragment,{}),d.jsx(gs,{onClick:()=>Rr(`${Qn}/logout`),children:"Logout"})]})]})]})}),d.jsx("nav",{children:d.jsx(OE,{container:s!==void 0?()=>s().document.body:void 0,variant:"persistent",open:a,onClose:b,ModalProps:{keepMounted:!0},sx:{"& .MuiDrawer-paper":{boxSizing:"border-box",width:240}},children:A})})]})},GV=({severity:e="error",message:t,onClose:n})=>d.jsx("div",{className:"alert-wrapper",children:t?d.jsx(HR,{id:"alert-notification",severity:e,onClose:n,children:t}):d.jsx(d.Fragment,{})});var cP={},ZV=en;Object.defineProperty(cP,"__esModule",{value:!0});var r9=cP.default=void 0,YV=ZV(tn()),_V=d;r9=cP.default=(0,YV.default)((0,_V.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-1 16H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m-4.44-6.19-2.35 3.02-1.56-1.88c-.2-.25-.58-.24-.78.01l-1.74 2.23c-.26.33-.02.81.39.81h8.98c.41 0 .65-.47.4-.8l-2.55-3.39c-.19-.26-.59-.26-.79 0"}),"CropOriginalRounded");var uP={},$V=en;Object.defineProperty(uP,"__esModule",{value:!0});var o9=uP.default=void 0,eF=$V(tn()),tF=d;o9=uP.default=(0,eF.default)((0,tF.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2zM18 4h-2.5l-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1"}),"DeleteRounded");var fP={},nF=en;Object.defineProperty(fP,"__esModule",{value:!0});var i9=fP.default=void 0,rF=nF(tn()),oF=d;i9=fP.default=(0,rF.default)((0,oF.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile");var dP={},iF=en;Object.defineProperty(dP,"__esModule",{value:!0});var s9=dP.default=void 0,sF=iF(tn()),aF=d;s9=dP.default=(0,sF.default)((0,aF.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const lF=({id:e,name:t,currentImage:n,setCurrentImage:r,currentFile:o,setCurrentFile:i,...s})=>{const[a,l]=g.useState(!1),[c,u]=g.useState(!1),f=g.useRef(null),p=w=>{w.preventDefault(),l(!0)},y=w=>{w.preventDefault(),l(!0)},v=w=>{w.preventDefault(),l(!1)},m=w=>{w.preventDefault(),l(!1);const S=w.dataTransfer.files[0];i(S)},b=w=>{if(!w.target.files)return;const S=w.target.files[0];i(S)},A=w=>{w.preventDefault(),u(!0)},h=w=>{w.preventDefault();const S=f.current;S&&S.click()},P=w=>{w.preventDefault();const S=f.current;S&&(S.value="",i(void 0),r(void 0))};return g.useEffect(()=>{const w=f.current;if(w&&w.files&&w.files.length>0){const S=w.files[0];i(S)}},[f,i]),d.jsxs("div",{id:`thumbnail-${e}`,className:"thumbnail",children:[d.jsxs("div",{id:`thumbnail-body-${e}`,className:`thumbnail-body ${a?"dragging":""} ${o||n?"selected":""}`,onDragOver:p,onDragEnter:y,onDragLeave:v,onDrop:m,children:[o||n?d.jsx("div",{className:"thumbnail-img-container",children:d.jsx("img",{src:o?URL.createObjectURL(o):n,alt:"App thumnail",className:"thumbnail-img"})}):d.jsx("div",{className:"thumbnail-icon-container",tabIndex:0,onClick:h,children:d.jsx(r9,{className:"thumbnail-icon"})}),d.jsx("input",{ref:f,id:e,name:t,type:"file",accept:"image/*",onChange:b,style:{display:"none"},...s})]}),d.jsxs("div",{className:"thumbnail-actions",children:[d.jsx(dt,{id:"view-thumbnail-btn",variant:"contained",color:"secondary",size:"small",startIcon:d.jsx(s9,{}),onClick:A,disabled:!o&&!n,children:"View Thumbnail"}),d.jsx(dt,{id:"upload-thumbnail-btn",variant:"contained",color:"secondary",size:"small",startIcon:d.jsx(i9,{}),onClick:h,children:"Upload Thumbnail"}),d.jsx(dt,{id:"remove-thumbnail-btn",variant:"contained",color:"secondary",size:"small",startIcon:d.jsx(o9,{}),onClick:P,disabled:!o&&!n,children:"Remove Thumbnail"})]}),d.jsx(Pu,{onClose:()=>u(!1),open:c,children:d.jsx("img",{src:o?URL.createObjectURL(o):n,alt:"App thumnail"})})]})};var pP={},cF=en;Object.defineProperty(pP,"__esModule",{value:!0});var lp=pP.default=void 0,uF=cF(tn()),fF=d;lp=pP.default=(0,uF.default)((0,fF.jsx)("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.9959.9959 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1"}),"ArrowBackRounded");const Xt=re("div")(({theme:e})=>({padding:e.spacing(0)})),dF=()=>d.jsx(Et,{className:"container",children:d.jsxs(uc,{children:[d.jsx(Xt,{children:d.jsx("div",{className:"form-breadcrumb",children:d.jsx(dt,{id:"back-btn",type:"button",variant:"text",color:"primary",startIcon:d.jsx(lp,{}),onClick:()=>Rr(Qn),children:"Back"})})}),d.jsxs(Xt,{children:[d.jsx("h1",{className:"form-heading",children:"Create a new app"}),d.jsxs("p",{className:"form-paragraph",children:["Begin your project by entering the details below. For more information about creating an app,"," ",d.jsx("a",{href:"https://jhub-apps.nebari.dev/docs/reference/create-app-form",target:"_blank",rel:"noopener noreferrer",className:"form-paragraph-link",children:"visit our docs"}),"."]})]}),d.jsx(Xt,{children:d.jsx(Yx,{})})]})}),pF=()=>{const[e]=U1(),t=e.get("id");return d.jsx(Et,{className:"container",children:d.jsxs(uc,{children:[d.jsx(Xt,{children:d.jsx("div",{className:"form-breadcrumb",children:d.jsx(dt,{id:"back-btn",type:"button",variant:"text",color:"primary",startIcon:d.jsx(lp,{}),onClick:()=>Rr(Qn),children:"Back"})})}),d.jsxs(Xt,{children:[d.jsx("h1",{className:"form-heading",children:"Edit app"}),d.jsxs("p",{className:"form-paragraph",children:["Edit your app details here. For more information on editing your app,"," ",d.jsx("a",{href:"https://jhub-apps.nebari.dev/docs/reference/create-app-form",target:"_blank",rel:"noopener noreferrer",className:"form-paragraph-link",children:"visit our docs"}),"."]})]}),d.jsx(Xt,{children:d.jsx(d.Fragment,{children:t?d.jsx(Yx,{id:t}):d.jsx(d.Fragment,{children:"No app found."})})})]})})};var hP={},hF=en;Object.defineProperty(hP,"__esModule",{value:!0});var a9=hP.default=void 0,vF=hF(tn()),AF=d;a9=hP.default=(0,vF.default)((0,AF.jsx)("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1"}),"AddRounded");var vP={},mF=en;Object.defineProperty(vP,"__esModule",{value:!0});var l9=vP.default=void 0,PF=mF(tn()),yF=d;l9=vP.default=(0,PF.default)((0,yF.jsx)("path",{d:"M4.25 5.61C6.57 8.59 10 13 10 13v5c0 1.1.9 2 2 2s2-.9 2-2v-5s3.43-4.41 5.75-7.39c.51-.66.04-1.61-.8-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAltRounded");var AP={},gF=en;Object.defineProperty(AP,"__esModule",{value:!0});var c9=AP.default=void 0,bF=gF(tn()),wF=d;c9=AP.default=(0,bF.default)((0,wF.jsx)("path",{d:"M4 18h4c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1m1 6h10c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1"}),"SortRounded");const L8=re(dt)(({theme:e})=>({color:e.palette.common.black,borderColor:e.palette.common.black,"&:hover":{color:e.palette.common.black,borderColor:e.palette.common.black},marginRight:"16px"})),xF=({data:e,currentUser:t,setApps:n})=>{const[r]=_e(Qx),[o,i]=ve.useState(null),[s,a]=ve.useState(null),[l,c]=ve.useState(null),u=!!o,f=!!s,p=!!l,[y,v]=_e(Kx),[m,b]=_e(Gx),[A,h]=_e(Zx),[P]=g.useState(!1),{data:w,isLoading:S}=Er({queryKey:["app-frameworks"],queryFn:()=>Wt.get("/frameworks/").then(M=>M.data)}),C=M=>{const X=M.target.value;y.includes(X)?v(F=>F.filter(J=>J!==X)):v(F=>[...F,X])},H=M=>{b(M)},R=M=>{h(M),n(Gv(e,t,r,m,y,M)),c(null)},L=()=>{i(null),n(Gv(e,t,r,m,y,A))},k=()=>{v([]),b("Any")};return d.jsxs(Lo,{container:!0,spacing:2,paddingBottom:"32px",children:[d.jsx(Lo,{item:!0,xs:12,md:4,children:d.jsxs(Xt,{children:[d.jsx(L8,{id:"filters-btn",variant:"outlined",color:"secondary",onClick:M=>i(M.currentTarget),startIcon:d.jsx(l9,{}),endIcon:u?d.jsx(hl,{}):d.jsx(pl,{}),disabled:S||!1,children:"Filters"}),d.jsx(ys,{id:"filters-list",anchorEl:o,open:u,onClose:()=>i(null),MenuListProps:{"aria-labelledby":"filters-btn"},children:d.jsxs(Et,{component:"form",name:"filters-form",sx:{width:"450px",px:"16px",py:"8px"},children:[d.jsx(yu,{id:"frameworks-label",sx:{py:"16px",fontSize:"14px",fontWeight:600},children:"Frameworks"}),d.jsx(Et,{children:w==null?void 0:w.map(M=>d.jsx(al,{control:d.jsx(IT,{value:M.display_name}),label:M.display_name,sx:{width:"120px"},onClick:C,checked:y.includes(M.display_name)},M.name))}),d.jsx(cf,{sx:{mt:"24px",mb:"16px"}}),d.jsx(yu,{id:"ownership-label",sx:{pb:"16px",fontSize:"14px",fontWeight:600},children:"Ownership"}),d.jsx(Et,{sx:{pb:"24px"},children:d.jsx(Av,{"aria-labelledby":"ownership-label",defaultValue:"any",name:"ownership-group",row:!0,children:H6.map(M=>d.jsx(al,{control:d.jsx(vv,{value:M}),label:M,onClick:()=>H(M),checked:m===M},M))})}),d.jsxs(Du,{children:[d.jsx(dt,{id:"clear-filters-btn",variant:"text",color:"secondary",size:"small",onClick:k,children:"Clear"}),d.jsx(dt,{id:"apply-filters-btn",variant:"contained",size:"small",onClick:L,children:"Apply"})]})]})}),d.jsx(L8,{id:"bulk-actions-btn",variant:"outlined",color:"secondary",onClick:M=>a(M.currentTarget),endIcon:f?d.jsx(hl,{}):d.jsx(pl,{}),disabled:!P,children:"Bulk Actions"}),d.jsx(ys,{id:"bulk-actions-list",anchorEl:s,open:f,onClose:()=>a(null),MenuListProps:{"aria-labelledby":"bulk-actions-btn"},children:d.jsx(Et,{component:"form",name:"bulk-actions-form",sx:{px:"16px",py:"8px"}})})]})}),d.jsx(Lo,{container:!0,item:!0,xs:8,md:8,direction:"row",sx:{display:"flex",justifyContent:"flex-end",flexWrap:"nowrap"},children:d.jsx(Xt,{children:d.jsxs(Et,{sx:{display:"flex",flexDirection:"row"},children:[d.jsx(c9,{sx:{pr:"8px"}}),d.jsx(yu,{id:"sort-by-label",sx:{fontSize:"14px",fontWeight:500,pr:"8px",color:"common.black"},children:"Sort by:"}),d.jsx(dt,{id:"sort-by-btn",variant:"text",color:"secondary",onClick:M=>c(M.currentTarget),sx:{position:"relative",bottom:"8px",fontWeight:600,width:"180px",color:"common.black"},endIcon:p?d.jsx(hl,{}):d.jsx(pl,{}),children:A}),d.jsx(ys,{id:"sort-by-list",anchorEl:l,open:p,onClose:()=>c(null),MenuListProps:{"aria-labelledby":"sort-by-btn"},children:d.jsx(Et,{component:"form",name:"sort-by-form",sx:{px:"16px"},children:d.jsx(Av,{defaultValue:"any",name:"sort-by-group","aria-describedby":"sort-by-label",children:C6.map(M=>d.jsx(al,{control:d.jsx(vv,{value:M}),label:M,onClick:()=>R(M),checked:A===M},M))})})})]})})})]})};var mP={},SF=en;Object.defineProperty(mP,"__esModule",{value:!0});var u9=mP.default=void 0,HF=SF(tn()),CF=d;u9=mP.default=(0,HF.default)((0,CF.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V18c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-1.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05.02.01.03.03.04.04 1.14.83 1.93 1.94 1.93 3.41V18c0 .35-.07.69-.18 1H22c.55 0 1-.45 1-1v-1.5c0-2.33-4.67-3.5-7-3.5"}),"GroupRounded");var PP={},RF=en;Object.defineProperty(PP,"__esModule",{value:!0});var f9=PP.default=void 0,DF=RF(tn()),TF=d;f9=PP.default=(0,DF.default)((0,TF.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2z"}),"LockRounded");var yP={},EF=en;Object.defineProperty(yP,"__esModule",{value:!0});var d9=yP.default=void 0,kF=EF(tn()),jF=d;d9=yP.default=(0,kF.default)((0,jF.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"PublicRounded");const zF=({id:e,title:t,description:n,framework:r,thumbnail:o,url:i,username:s,isPublic:a=!1,isShared:l,serverStatus:c})=>{const[u,f]=g.useState(""),p=zd(),[y,v]=g.useState(!1),[,m]=_e(Oi),[b,A]=g.useState(!1),[h,P]=g.useState(!1),[w,S]=g.useState(!1);g.useEffect(()=>{c?f(c):m("Server status id undefined.")},[c,m]);const C=B=>{switch(B){case"Ready":return{bgcolor:"#ffffff",border:"1px solid #2E7D32"};case"Pending":return{bgcolor:"#EAB54E",color:"black"};case"Running":return{bgcolor:"#2E7D32",color:"white"};case"Unknown":return{bgcolor:"#79797C",color:"black"};default:return{bgcolor:"#F5F5F5",color:"black"}}},H=()=>a?d.jsx(d9,{"data-testid":"PublicRoundedIcon"}):l?d.jsx(u9,{"data-testid":"GroupRoundedIcon"}):d.jsx(f9,{"data-testid":"LockRoundedIcon"}),R=async({id:B})=>{try{const G=await Wt.post(`/server/${B}`);return k("Running"),G}catch(G){console.error("There was an error!",G),m(G.toString()),f("Error")}},L=async({id:B,remove:G})=>{try{const T=await Wt.delete(`/server/${B}`,{params:{remove:G}});return k(G?"Deleted":"Ready"),T}catch(T){console.error("There was an error!",T),m(T.toString()),f("Error")}},k=B=>{f(B)},{mutate:M}=Zs({mutationFn:R,retry:1}),{mutate:U}=Zs({mutationFn:L,retry:1}),X=()=>{v(!0),U({id:e,remove:!0},{onSuccess:async()=>{v(!1),S(!1),p.invalidateQueries({queryKey:["app-state"]})},onError:async B=>{v(!1),m(B.message)}})},F=()=>{v(!0),M({id:e},{onSuccess:()=>{v(!1),A(!1),p.invalidateQueries({queryKey:["app-state"]})},onError:B=>{v(!1),console.error(B.message)}})},J=()=>{v(!0),U({id:e,remove:!1},{onSuccess:async()=>{v(!1),P(!1),p.invalidateQueries({queryKey:["app-state"]})},onError:async B=>{v(!1),m(B.message)}})},K=[{id:"start",title:"Start",onClick:()=>A(!0),visible:!0,disabled:c==="Running"},{id:"stop",title:"Stop",onClick:()=>P(!0),visible:!0,disabled:c==="Ready"||l},{id:"edit",title:"Edit",onClick:()=>window.location.href=`${gm}/edit-app?id=${e}`,visible:!0,disabled:l||e===""},{id:"delete",title:"Delete",onClick:()=>S(!0),visible:!0,disabled:l||e===""}],Z=d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"card-dialog-body",children:["Are you sure you want to start ",d.jsx("b",{children:t}),"?"]}),d.jsxs(Du,{children:[d.jsx(dt,{id:"cancel-btn",variant:"text",color:"secondary",onClick:()=>A(!1),children:"Cancel"}),d.jsx(dt,{id:"start-btn",variant:"contained",color:"primary",onClick:()=>F(),disabled:y,children:"Start"})]})]}),z=d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"card-dialog-body",children:["Are you sure you want to stop ",d.jsx("b",{children:t}),"?"]}),d.jsxs(Du,{children:[d.jsx(dt,{id:"cancel-btn",variant:"text",color:"secondary",onClick:()=>P(!1),children:"Cancel"}),d.jsx(dt,{id:"stop-btn",variant:"contained",color:"primary",onClick:()=>J(),disabled:y,children:"Stop"})]})]}),I=d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"card-dialog-body",children:["Are you sure you want to delete ",d.jsx("b",{children:t}),"? This action is permanent and cannot be reversed."]}),d.jsxs(Du,{children:[d.jsx(dt,{id:"cancel-btn",variant:"text",color:"secondary",onClick:()=>S(!1),children:"Cancel"}),d.jsx(dt,{id:"delete-btn",variant:"contained",color:"primary",onClick:()=>X(),disabled:y,children:"Delete"})]})]});return d.jsx("div",{className:"card",id:`card-${e}`,tabIndex:0,children:d.jsx("a",{href:i,children:d.jsxs(Zw,{id:`card-${e}`,tabIndex:0,className:"Mui-card",children:[d.jsxs("div",{className:"card-content-header",children:[d.jsx("div",{className:"chip-container",children:d.jsx("div",{className:"menu-chip",children:d.jsx(Xp,{label:u,"aria-label":"open menu",id:e,children:void 0,size:"small",className:"chip-chip",sx:{...C(u),"& .MuiChip-label":{color:C(u).color}}})})}),d.jsx(kV,{id:`card-menu-${e}`,items:K}),b&&d.jsxs(Pu,{open:b,onClose:A,children:[d.jsxs(qp,{children:["Start ",t]}),d.jsx(Fp,{children:Z})]}),h&&d.jsxs(Pu,{open:h,onClose:P,children:[d.jsxs(qp,{children:["Stop ",t]}),d.jsx(Fp,{children:z})]}),w&&d.jsxs(Pu,{open:w,onClose:S,children:[d.jsxs(qp,{children:["Delete ",t]}),d.jsx(Fp,{children:I})]}),d.jsx(AT,{children:o?d.jsx("div",{className:"img-overlay",children:d.jsx("img",{src:o,alt:"App thumb"})}):d.jsx("div",{className:"img-overlay",children:d.jsx("img",{src:"/assets/images/app-placeholder.jpeg",alt:"App thumb"})})})]}),d.jsxs("div",{className:"card-content-content",children:[d.jsxs("div",{className:"chip-container",children:[d.jsx("div",{className:"menu-chip",children:d.jsx(Xp,{color:"default",variant:"outlined",label:r,id:`chip-${e}`,size:"small"})}),a&&d.jsx("div",{className:"menu-chip",children:d.jsx(Xp,{color:"default",variant:"outlined",label:"Public",id:`chip-${e}-public`,size:"small"})})]}),d.jsx("div",{className:"card-content-container",children:d.jsxs(Yw,{className:"card-inner-content",children:[d.jsx("span",{className:"inline relative iconic",children:H()}),d.jsx(Tr,{gutterBottom:!0,variant:"h5",component:"div",className:"card-title",children:t}),d.jsxs(Tr,{variant:"body2",color:"text.secondary",className:"card-author",children:["Created by ",s]}),n&&d.jsx(Tr,{variant:"body2",color:"text.secondary",className:"card-description",children:n})]})})]})]})})})},OF=({apps:e})=>d.jsx(d.Fragment,{children:e.map(t=>d.jsx(zF,{id:t.id,title:t.name,description:t.description,thumbnail:t.thumbnail,framework:t.framework,url:t.url,ready:t.ready,serverStatus:t.status,username:t.username,isPublic:t.public,isShared:t.shared},`app-${t.id}`))}),IF=()=>{const[e]=_e(pa),[,t]=_e(Oi),[,n]=_e(Qx),[r]=_e(Kx),[o]=_e(Gx),[i]=_e(Zx),[s,a]=g.useState([]),{isLoading:l,error:c,data:u}=Er({queryKey:["app-state"],queryFn:()=>Wt.get("/server/").then(p=>p.data).then(p=>p),enabled:!!e}),f=p=>{const y=p.target;n(y.value),u&&e&&a(Gv(u,e,y.value,o,r,i))};return g.useEffect(()=>{if(!l&&u){const p=Tx(u,"all",(e==null?void 0:e.name)??"").map(y=>({...y,status:Kv(y)}));a(p)}},[l,u,e]),g.useEffect(()=>{t(c?c.message:void 0)},[c,t]),d.jsx(Et,{children:d.jsxs(uc,{children:[d.jsx(Xt,{children:d.jsxs(Lo,{container:!0,spacing:2,children:[d.jsx(Lo,{item:!0,xs:12,md:4,children:d.jsx(Xt,{children:d.jsx("h2",{children:"Apps"})})}),d.jsxs(Lo,{container:!0,item:!0,xs:8,md:8,direction:"row",sx:{display:"flex",justifyContent:"flex-end",flexWrap:"nowrap"},children:[d.jsx(Xt,{children:d.jsx(Gi,{id:"search",size:"small",placeholder:"Search...","aria-label":"Search for an app",onChange:f,sx:{width:{sm:"200px",md:"300px",lg:"600px"},pr:"16px"}})}),d.jsx(Xt,{children:d.jsx(dt,{id:"create-app",variant:"contained",color:"primary",startIcon:d.jsx(a9,{}),onClick:()=>{window.location.href=`${gm}/create-app`},children:"Create App"})})]})]})}),d.jsx(Xt,{sx:{pt:"16px",pb:"24px"},children:d.jsx(cf,{})}),d.jsx(Xt,{children:u&&e?d.jsx(xF,{data:u,currentUser:e,setApps:a}):d.jsx(d.Fragment,{})}),d.jsx(Xt,{children:d.jsx(Et,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px",justifyContent:"flex-start",paddingBottom:"48px"},children:l?d.jsx("div",{className:"font-bold",children:"Loading..."}):s.length>0?d.jsx(OF,{apps:s}):d.jsx("div",{children:"No apps available"})})})]})})},LF=()=>{const[e]=_e(pa),[,t]=_e(Oi),[n,r]=g.useState([]),{isLoading:o,error:i,data:s}=Er({queryKey:["service-data"],queryFn:()=>Wt.get("/services/").then(l=>l.data).then(l=>l),enabled:!!e}),a=(l,c)=>{c?window.open(l,"_blank"):window.location.assign(l)};return g.useEffect(()=>{!o&&s&&e&&r(()=>Dx(s,e.name))},[o,s,e]),g.useEffect(()=>{t(i?i.message:void 0)},[i,t]),d.jsx(Et,{children:d.jsxs(uc,{children:[d.jsx(Xt,{children:d.jsxs(Et,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingBottom:"48px"},children:[d.jsx("div",{className:"grid-heading-left",children:d.jsx("h2",{children:"Services"})}),d.jsx("div",{className:"grid-heading-center",children:d.jsx("hr",{className:"grid-spacer"})}),d.jsx("div",{className:"grid-heading-right",children:d.jsxs("h2",{children:[n.length," services"]})})]})}),d.jsx(Xt,{children:d.jsx(Et,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px",justifyContent:"flex-start",paddingBottom:"48px"},children:o?d.jsx("div",{className:"font-bold",children:"Loading..."}):n.length>0?d.jsx(d.Fragment,{children:n.map((l,c)=>d.jsx(dt,{id:`service-${c}`,variant:"outlined",color:"secondary",style:{minWidth:"180px"},onClick:()=>{a(l.url,l.external)},children:l.name},`service-${c}`))}):d.jsx("div",{children:"No services available"})})})]})})},B8=()=>d.jsxs(Et,{sx:{flexGrow:1},className:"container",children:[d.jsx(Lo,{container:!0,spacing:2,paddingBottom:"48px",children:d.jsx(Lo,{item:!0,xs:12,md:2,children:d.jsx(Xt,{children:d.jsx("h1",{children:"Home"})})})}),d.jsx(LF,{}),d.jsx(IF,{})]}),BF=()=>{const[e]=U1(),t=Dm(),n=zd(),[r,o]=g.useState(!1),[i]=_e(pa),[s,a]=_e(qx),[l]=_e(Wx),[c]=_e(Jx),[,u]=_e(Oi),[f,p]=ve.useState((s==null?void 0:s.profile)||""),y=e.get("id"),{data:v,isLoading:m,error:b}=Er({queryKey:["server-types"],queryFn:()=>Wt.get("/spawner-profiles/").then(H=>H.data).then(H=>H),enabled:!!i}),A=H=>{p(H),s&&a({...s,profile:H})},h=H=>{H.preventDefault();const R={servername:(s==null?void 0:s.display_name)||"",user_options:{jhub_app:!0,name:(s==null?void 0:s.display_name)||"",display_name:(s==null?void 0:s.display_name)||"",description:(s==null?void 0:s.description)||"",framework:(s==null?void 0:s.framework)||"",thumbnail:(s==null?void 0:s.thumbnail)||"",filepath:(s==null?void 0:s.filepath)||"",conda_env:(s==null?void 0:s.conda_env)||"",env:(s==null?void 0:s.env)||"",custom_command:(s==null?void 0:s.custom_command)||"",profile:(s==null?void 0:s.profile)||"",public:(s==null?void 0:s.is_public)||!1}};o(!0),y?C(R,{onSuccess:async()=>{n.invalidateQueries({queryKey:["app-state"]})},onError:async L=>{o(!1),u(L.message)}}):S(R,{onSuccess:async L=>{const k=i==null?void 0:i.name;if(k&&(L==null?void 0:L.length)>1){const M=L[1];window.location.assign(`/hub/spawn-pending/${k}/${M}`)}},onError:async L=>{o(!1),u(L.message)}})},P=async({servername:H,user_options:R})=>{const L={accept:"application/json","Content-Type":"multipart/form-data"},k=new FormData;return k.append("data",JSON.stringify({servername:H,user_options:R})),l&&k.append("thumbnail",l),(await Wt.post("/server",k,{headers:L})).data},w=async({servername:H,user_options:R})=>{const L={accept:"application/json","Content-Type":"multipart/form-data"},k=new FormData;return k.append("data",JSON.stringify({servername:H,user_options:R})),l?k.append("thumbnail",l):c&&k.append("thumbnail_data_url",c),(await Wt.put(`/server/${H}`,k,{headers:L})).data},{mutate:S}=Zs({mutationFn:P,retry:1}),{mutate:C}=Zs({mutationFn:w,retry:1});return d.jsxs("div",{className:"container",children:[d.jsx("div",{className:"form-breadcrumb",children:d.jsx(dt,{id:"back-btn",type:"button",variant:"text",color:"primary",startIcon:d.jsx(lp,{}),onClick:()=>t(y?`/edit-app?id=${y}`:"/create-app"),children:"Back"})}),d.jsxs("div",{className:"row",children:[d.jsx("h1",{className:"form-heading",children:"Server Type"}),d.jsxs("p",{className:"form-paragraph",children:["Please select the appropriate server for your app. For more information on server types,"," ",d.jsx("span",{children:d.jsx("a",{href:"https://www.nebari.dev/docs/welcome",target:"_blank",rel:"noopener noreferrer",className:"form-paragraph-link",children:"visit our docs"})}),"."]})]}),b?d.jsxs("div",{children:["An error occurred: ",b.message]}):m?d.jsx("div",{className:"font-bold center",children:"Loading..."}):v&&v.length>0?d.jsxs("form",{className:"form",onSubmit:h,children:[d.jsx("div",{className:"form-section",children:d.jsx(Av,{children:v==null?void 0:v.map((H,R)=>d.jsx(Zw,{className:"server-type-card",onClick:()=>A(H.slug),tabIndex:0,children:d.jsxs(Yw,{children:[d.jsx(al,{value:H.slug,id:H.slug,control:d.jsx(vv,{checked:f?f===H.slug:R===0}),label:H.display_name},H.slug),d.jsx("p",{children:H.description})]})},`server-type-card-${H.slug}`))})}),d.jsx("hr",{}),d.jsxs("div",{className:"button-section",children:[d.jsx("div",{className:"prev",children:d.jsx(dt,{id:"cancel-btn",type:"button",variant:"text",color:"secondary",onClick:()=>Rr(Qn),children:"Cancel"})}),d.jsx("div",{className:"next",children:d.jsx(dt,{id:"submit-btn",type:"submit",variant:"contained",color:"primary",disabled:r,children:y?d.jsx(d.Fragment,{children:"Save"}):d.jsx(d.Fragment,{children:"Create App"})})})]})]}):d.jsx("div",{children:"No servers available"})]})},MF=()=>{const[,e]=_e(DV),[,t]=_e(pa),[n,r]=_e(Oi),{error:o,data:i}=Er({queryKey:["user-state"],queryFn:()=>Wt.get("/user").then(s=>s.data).then(s=>s)});return g.useEffect(()=>{o&&r(o.message)},[o,r]),g.useEffect(()=>{e(aV())},[e]),g.useEffect(()=>{i&&t({...i})},[i,t]),d.jsxs("div",{children:[d.jsx(KV,{}),d.jsxs(Et,{component:"main",sx:{flexGrow:1,pt:9,pl:{xs:1,sm:33},pr:1},children:[n?d.jsx(GV,{message:n,onClose:()=>r(void 0)}):d.jsx(d.Fragment,{}),d.jsxs(Gz,{children:[d.jsx(Zi,{path:"/home",element:d.jsx(B8,{})}),d.jsx(Zi,{path:"/create-app",element:d.jsx(dF,{})}),d.jsx(Zi,{path:"/edit-app",element:d.jsx(pF,{})}),d.jsx(Zi,{path:"/server-types",element:d.jsx(BF,{})}),d.jsx(Zi,{path:"/",element:d.jsx(B8,{})})]})]})]})},NF={50:"#2491FF",100:"#2491FF",200:"#2491FF",300:"#2491FF",400:"#2491FF",500:"#005EA2",600:"#1A4480",700:"#1A4480",800:"#1A4480",900:"#162E51"},Lt={50:"#F7F8F8",100:"#E1E3E4",200:"#C3C7CB",300:"#A6ACB2",400:"#90969C",500:"#5B5F63",600:"#44474A",700:"#3C3C3B",800:"#242628",900:"#1A1C1D"},eu="#BA18DA",M8="#BA18DA10",N8="#9B00CE",Ji="#18817A",XF="#18817A10",UF="#12635E",VF="#D72D47",FF="#F66A0A",Pr="#FFFFFF",X8="#000000",tu=ed({typography:{fontFamily:'"Inter", sans-serif'},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,style:{textTransform:"none",textWrap:"nowrap"}}},MuiFormControl:{defaultProps:{fullWidth:!0,sx:{marginBottom:"12px"}}},MuiTextField:{defaultProps:{autoComplete:"off",fullWidth:!0,sx:{marginBottom:"0"}}},MuiSelect:{defaultProps:{fullWidth:!0}}}}),qF=ed(tu,{palette:{primary:tu.palette.augmentColor({color:{light:M8,main:eu,dark:N8,contrastText:Pr},name:"primary"}),secondary:tu.palette.augmentColor({color:{light:XF,main:Ji,dark:UF,contrastText:Pr},name:"secondary"}),gray:tu.palette.augmentColor({color:{light:Lt[300],main:Lt[500],dark:Lt[700],contrastText:X8,50:Lt[50],100:Lt[100],200:Lt[200],300:Lt[300],400:Lt[400],500:Lt[500],600:Lt[600],700:Lt[700],800:Lt[800],900:Lt[900]},name:"gray"}),warning:{main:FF,contrastText:Pr},error:{main:VF,contrastText:Pr},info:{main:NF,contrastText:Pr},success:{main:Ji[500],contrastText:Pr},common:{black:X8,white:Pr}},components:{MuiButton:{variants:[{props:{variant:"contained",color:"primary"},style:{minWidth:"120px",backgroundColor:`${eu}`,border:`1px solid ${eu}`,fontWeight:700,"&:hover":{backgroundColor:`${N8}`},"&:disabled":{borderColor:"transparent"}}},{props:{variant:"contained",color:"secondary"},style:{minWidth:"120px",backgroundColor:Lt[100],border:`1px solid ${Lt[100]}`,color:Lt[700],fontWeight:700,"&:hover":{backgroundColor:Pr,filter:"brightness(0.96)"},"&:disabled":{borderColor:"transparent"}}},{props:{variant:"outlined",color:"secondary"},style:{minWidth:"120px",backgroundColor:Pr,border:`2px solid ${Ji}`,color:`${Ji}`,fontWeight:700,textTransform:"none","&:hover":{backgroundColor:Pr,borderWidth:2,border:`2px solid ${Ji}`,color:`${Ji}`}}},{props:{variant:"text",color:"primary"},style:{color:`${eu}`,"&:focus":{backgroundColor:`${M8}`}}},{props:{variant:"text",color:"secondary"},style:{minWidth:"100px",color:Lt[500],"&:focus":{backgroundColor:`${Lt[100]}`}}}]}}}),JF=new URL(window.location.href),WF=new V6;Ev.createRoot(document.getElementById("root")).render(d.jsx(ve.StrictMode,{children:d.jsx($z,{basename:JF.pathname.indexOf("hub")===-1?gm:Qn,children:d.jsx(qX,{children:d.jsxs(vS,{theme:qF,children:[d.jsx(NT,{}),d.jsx(Q6,{client:WF,children:d.jsx(MF,{})})]})})})})); diff --git a/jhub_apps/templates/style.css b/jhub_apps/templates/style.css index fdb98e2d..2b17bbae 100644 --- a/jhub_apps/templates/style.css +++ b/jhub_apps/templates/style.css @@ -383,13 +383,13 @@ a:focus { background-color: var(--gray-color) !important; } -.MuiButton-outlinedSecondary:not(:disabled) { +.MuiButton-outlinedSecondary:not(:disabled):not(#filters-btn) { color: var(--secondary-color) !important; background-color: #ffffff !important; border-color: var(--secondary-color) !important; } -.MuiButton-outlinedSecondary:hover { +.MuiButton-outlinedSecondary:hover:not(#filters-btn) { color: var(--secondary-color-dark) !important; background-color: #ffffff !important; border-color: var(--secondary-color-dark) !important; @@ -403,6 +403,10 @@ a:focus { color: var(--primary-color) !important; } +.MuiRadio-colorPrimary, .MuiCheckbox-colorPrimary { + color: var(--primary-color) !important; +} + .MuiCardContent-root:focus { outline-color: var(--primary-color) !important; } diff --git a/ui/jest.config.ts b/ui/jest.config.ts index 93c818cb..c048ce34 100644 --- a/ui/jest.config.ts +++ b/ui/jest.config.ts @@ -27,6 +27,7 @@ const config: JestConfigWithTsJest = { '!src/App.tsx', '!src/main.tsx', '!src/store.ts', + '!src/utils/axios.ts', '!**/*.d.ts', '!**/types.ts', '!**/index.ts', diff --git a/ui/src/pages/home/app-card/app-card.css b/ui/src/components/app-card/app-card.css similarity index 98% rename from ui/src/pages/home/app-card/app-card.css rename to ui/src/components/app-card/app-card.css index d7a5f64d..acc389ec 100644 --- a/ui/src/pages/home/app-card/app-card.css +++ b/ui/src/components/app-card/app-card.css @@ -5,6 +5,10 @@ box-shadow: 0px 1px 2px rgba(210, 210, 207, 0.7); } +.card > a { + text-decoration: none; +} + #card-test-app { position: relative; } diff --git a/ui/src/pages/home/app-card/app-card.test.tsx b/ui/src/components/app-card/app-card.test.tsx similarity index 99% rename from ui/src/pages/home/app-card/app-card.test.tsx rename to ui/src/components/app-card/app-card.test.tsx index d1a64533..149a13ee 100644 --- a/ui/src/pages/home/app-card/app-card.test.tsx +++ b/ui/src/components/app-card/app-card.test.tsx @@ -15,8 +15,9 @@ describe('AppCard', () => { mock.reset(); }); - afterAll(() => { - mock.restore(); + beforeEach(() => { + queryClient.clear(); + mock.reset(); }); test('renders default app card successfully', async () => { diff --git a/ui/src/pages/home/app-card/app-card.tsx b/ui/src/components/app-card/app-card.tsx similarity index 98% rename from ui/src/pages/home/app-card/app-card.tsx rename to ui/src/components/app-card/app-card.tsx index 818d1db5..33ec261d 100644 --- a/ui/src/pages/home/app-card/app-card.tsx +++ b/ui/src/components/app-card/app-card.tsx @@ -17,10 +17,8 @@ import { API_BASE_URL } from '@src/utils/constants'; import { useMutation, useQueryClient } from '@tanstack/react-query'; import React, { useEffect, useState } from 'react'; import { useRecoilState } from 'recoil'; -import ContextMenu, { - ContextMenuItem, -} from '../../../components/context-menu/context-menu'; -import { currentNotification } from '../../../store'; +import { currentNotification } from '../../store'; +import ContextMenu, { ContextMenuItem } from '../context-menu/context-menu'; import './app-card.css'; interface AppCard { id: string; diff --git a/ui/src/components/app-form/app-form.test.tsx b/ui/src/components/app-form/app-form.test.tsx index bfe1de1c..180ade5f 100644 --- a/ui/src/components/app-form/app-form.test.tsx +++ b/ui/src/components/app-form/app-form.test.tsx @@ -84,7 +84,7 @@ describe('AppForm', () => { btn.click(); }); } - }, 7000); + }); test('simulates creating a standard app with thumbnail', async () => { mock.onGet(new RegExp('/frameworks')).reply(200, frameworks); @@ -131,7 +131,7 @@ describe('AppForm', () => { btn.click(); }); } - }, 7000); + }); test('simulates creating a standard app with onSubmit', async () => { mock.onGet(new RegExp('/frameworks')).reply(200, frameworks); @@ -163,7 +163,7 @@ describe('AppForm', () => { btn.click(); }); } - }, 10000); + }); test('simulates creating an app with additional fields', async () => { mock.onGet(new RegExp('/frameworks')).reply(200, frameworks); diff --git a/ui/src/data/api.ts b/ui/src/data/api.ts index 99068cc7..d0878f8b 100644 --- a/ui/src/data/api.ts +++ b/ui/src/data/api.ts @@ -3,6 +3,7 @@ import { AppProfileProps, AppQueryGetProps, } from '@src/types/api'; +import { JhApp } from '@src/types/jupyterhub'; import { UserState } from '@src/types/user'; export const frameworks: AppFrameworkProps[] = [ @@ -81,6 +82,7 @@ export const serverApps = { url: '/user/test', ready: true, user_options: {}, + last_activity: new Date(), }, { name: 'test-app', @@ -88,6 +90,7 @@ export const serverApps = { pending: null, ready: true, + last_activity: new Date().getHours() - 1, stopped: false, user_options: { name: 'test-app', @@ -111,6 +114,7 @@ export const serverApps = { started: true, pending: null, ready: false, + last_activity: new Date().getHours() - 3, stopped: false, user_options: { name: 'test-app-2', @@ -133,6 +137,7 @@ export const serverApps = { started: true, pending: null, ready: false, + last_activity: new Date().getHours() - 2, stopped: false, user_options: { name: 'test-app-3', @@ -154,6 +159,7 @@ export const serverApps = { pending: null, ready: false, + last_activity: new Date().getHours() - 4, stopped: true, user_options: { name: 'test-app-4', @@ -176,6 +182,7 @@ export const serverApps = { pending: null, ready: true, + last_activity: new Date(), stopped: false, user_options: { name: 'shared-app', @@ -196,6 +203,41 @@ export const serverApps = { ], }; +export const apps: JhApp[] = [ + { + id: 'test-app-1', + name: 'test-app-1', + description: 'Test App 1', + framework: 'streamlit', + url: '/user/test/test-app-1/', + thumbnail: '', + username: 'test', + ready: true, + public: false, + shared: false, + last_activity: new Date(), + pending: false, + stopped: false, + status: 'running', + }, + { + id: 'test-app-2', + name: 'test-app-2', + description: 'Test App 2', + framework: 'panel', + url: '/user/test/test-app-2/', + thumbnail: '', + username: 'test', + ready: false, + public: false, + shared: false, + last_activity: new Date(), + pending: false, + stopped: false, + status: 'ready', + }, +]; + export const services = { JupyterLab: { display: true, diff --git a/ui/src/pages/home/apps-grid/apps-grid.tsx b/ui/src/pages/home/apps-grid/apps-grid.tsx deleted file mode 100644 index 16250e37..00000000 --- a/ui/src/pages/home/apps-grid/apps-grid.tsx +++ /dev/null @@ -1,144 +0,0 @@ -import { Box, Stack } from '@mui/material'; -import { JhApp } from '@src/types/jupyterhub'; -import { UserState } from '@src/types/user'; -import axios from '@src/utils/axios'; -import { getAppStatus, getApps } from '@src/utils/jupyterhub'; -import { useQuery } from '@tanstack/react-query'; -import React, { useEffect, useState } from 'react'; -import { useRecoilState } from 'recoil'; -import { - currentNotification, - currentUser as defaultUser, -} from '../../../store'; -import { Item } from '../../../styles/styled-item'; -import AppCard from '../app-card/app-card'; - -interface AppsGridProps { - appType?: 'My' | 'Shared'; - filter: string; -} - -export const AppsGrid = ({ - appType = 'My', - filter, -}: AppsGridProps): React.ReactElement => { - const [currentUser] = useRecoilState(defaultUser); - const [, setCurrentNotification] = useRecoilState( - currentNotification, - ); - const [apps, setApps] = useState([]); - - const { - isLoading, - error, - data: serverData, - } = useQuery({ - queryKey: ['app-state'], - queryFn: () => - axios - .get(`/server/`) - .then((response) => { - return response.data; - }) - .then((data) => { - return data; - }), - enabled: !!currentUser, - }); - - useEffect(() => { - if (!isLoading && serverData) { - const filterToLower = filter.toLowerCase(); - const appsWithStatus = getApps( - serverData, - appType, - currentUser?.name ?? '', - ).map((app) => ({ - ...app, - status: getAppStatus(app), // Compute and assign the status here - })); - - setApps(() => - appsWithStatus.filter( - (app) => - app.name.toLowerCase().includes(filterToLower) || - app.description?.toLowerCase().includes(filterToLower) || - app.framework?.toLowerCase().includes(filterToLower), - ), - ); - } - }, [isLoading, serverData, appType, filter, currentUser?.name]); - - useEffect(() => { - if (error) { - setCurrentNotification(error.message); - } else { - setCurrentNotification(undefined); - } - }, [error, setCurrentNotification]); - - return ( - - - - -
-

{appType} Apps

-
-
-
-
-
-

{apps.length} apps

-
-
-
- - - {isLoading ? ( -
Loading...
- ) : apps.length > 0 ? ( - <> - {apps.map((app: JhApp) => ( - - ))} - - ) : ( -
No apps available
- )} -
-
-
-
- ); -}; diff --git a/ui/src/pages/home/apps-section/app-filters/app-filters.test.tsx b/ui/src/pages/home/apps-section/app-filters/app-filters.test.tsx new file mode 100644 index 00000000..8193d4e2 --- /dev/null +++ b/ui/src/pages/home/apps-section/app-filters/app-filters.test.tsx @@ -0,0 +1,209 @@ +import { frameworks, serverApps, userState } from '@src/data/api'; +import { currentUser } from '@src/data/user'; +import axios from '@src/utils/axios'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import '@testing-library/jest-dom'; +import { act, render, waitFor } from '@testing-library/react'; +import MockAdapter from 'axios-mock-adapter'; +import { RecoilRoot } from 'recoil'; +import { currentUser as defaultUser } from '../../../../store'; +import { AppFilters } from './app-filters'; + +describe('AppFilters', () => { + const queryClient = new QueryClient(); + const mock = new MockAdapter(axios); + beforeAll(() => { + mock.reset(); + }); + + beforeEach(() => { + queryClient.clear(); + mock.reset(); + }); + + test('renders default successfully', () => { + const { baseElement } = render( + + + + + , + ); + expect(baseElement).toBeTruthy(); + }); + + test('should sort apps', async () => { + const spy = jest.fn(); + const { baseElement } = render( + set(defaultUser, currentUser)}> + + + + , + ); + + const btn = baseElement.querySelector('#sort-by-btn') as HTMLButtonElement; + await act(async () => { + btn.click(); + }); + + waitFor(() => { + const form = baseElement.querySelector( + '#sort-by-form', + ) as HTMLFormElement; + expect(form).toBeTruthy(); + }); + + let menuItem = baseElement.querySelectorAll( + '.MuiFormControlLabel-root', + )[2] as HTMLAnchorElement; + await act(async () => { + menuItem.click(); + }); + + await act(async () => { + btn.click(); + }); + + waitFor(() => { + const form = baseElement.querySelector( + '#sort-by-form', + ) as HTMLFormElement; + expect(form).toBeTruthy(); + }); + menuItem = baseElement.querySelectorAll( + '.MuiFormControlLabel-root', + )[1] as HTMLAnchorElement; + await act(async () => { + menuItem.click(); + }); + + await act(async () => { + btn.click(); + }); + + waitFor(() => { + const form = baseElement.querySelector( + '#sort-by-form', + ) as HTMLFormElement; + expect(form).toBeTruthy(); + }); + menuItem = baseElement.querySelectorAll( + '.MuiFormControlLabel-root', + )[0] as HTMLAnchorElement; + await act(async () => { + menuItem.click(); + }); + expect(menuItem).toBeTruthy(); + expect(spy).toHaveBeenCalled(); + }); + + test('should filter all apps', async () => { + const spy = jest.fn(); + mock.onGet(new RegExp('/frameworks')).reply(200, frameworks); + queryClient.setQueryData(['app-frameworks'], frameworks); + const { baseElement } = render( + set(defaultUser, currentUser)}> + + + + , + ); + + const btn = baseElement.querySelector('#filters-btn') as HTMLButtonElement; + await act(async () => { + btn.click(); + }); + + waitFor(() => { + const form = baseElement.querySelector( + '#filters-form', + ) as HTMLFormElement; + expect(form).toBeTruthy(); + }); + + const frameworkItem = baseElement.querySelectorAll( + '.MuiFormControlLabel-root', + )[0] as HTMLLabelElement; + await act(async () => { + frameworkItem.click(); + }); + expect(frameworkItem).toBeTruthy(); + + let ownershipItem = baseElement.querySelectorAll( + '.MuiFormControlLabel-root', + )[6] as HTMLLabelElement; + await act(async () => { + ownershipItem.click(); + }); + ownershipItem = baseElement.querySelectorAll( + '.MuiFormControlLabel-root', + )[7] as HTMLLabelElement; + await act(async () => { + ownershipItem.click(); + }); + expect(ownershipItem).toBeTruthy(); + + const applyButton = baseElement.querySelector( + '#apply-filters-btn', + ) as HTMLButtonElement; + await act(async () => { + applyButton.click(); + }); + + expect(spy).toHaveBeenCalled(); + }); + + test('should filter my apps', async () => { + const spy = jest.fn(); + mock.onGet(new RegExp('/frameworks')).reply(200, frameworks); + queryClient.setQueryData(['app-frameworks'], frameworks); + const { baseElement } = render( + set(defaultUser, currentUser)}> + + + + , + ); + + const btn = baseElement.querySelector('#filters-btn') as HTMLButtonElement; + await act(async () => { + btn.click(); + }); + + waitFor(() => { + const form = baseElement.querySelector( + '#filters-form', + ) as HTMLFormElement; + expect(form).toBeTruthy(); + }); + + const frameworkItem = baseElement.querySelectorAll( + '.MuiFormControlLabel-root', + )[0] as HTMLLabelElement; + await act(async () => { + frameworkItem.click(); + }); + expect(frameworkItem).toBeTruthy(); + + const ownershipItem = baseElement.querySelectorAll( + '.MuiFormControlLabel-root', + )[6] as HTMLLabelElement; + await act(async () => { + ownershipItem.click(); + }); + + const applyButton = baseElement.querySelector( + '#apply-filters-btn', + ) as HTMLButtonElement; + await act(async () => { + applyButton.click(); + }); + + expect(spy).toHaveBeenCalled(); + }); +}); diff --git a/ui/src/pages/home/apps-section/app-filters/app-filters.tsx b/ui/src/pages/home/apps-section/app-filters/app-filters.tsx new file mode 100644 index 00000000..30c376bb --- /dev/null +++ b/ui/src/pages/home/apps-section/app-filters/app-filters.tsx @@ -0,0 +1,351 @@ +import FilterAltRoundedIcon from '@mui/icons-material/FilterAltRounded'; +import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded'; +import KeyboardArrowUpRoundedIcon from '@mui/icons-material/KeyboardArrowUpRounded'; +import SortRounded from '@mui/icons-material/SortRounded'; +import { + Box, + Button, + Checkbox, + Divider, + FormControlLabel, + FormLabel, + Grid, + Menu, + Radio, + RadioGroup, +} from '@mui/material'; +import { ButtonGroup } from '@src/components'; +import { AppFrameworkProps } from '@src/types/api'; +import { JhApp } from '@src/types/jupyterhub'; +import { UserState } from '@src/types/user'; +import axios from '@src/utils/axios'; +import { OWNERSHIP_TYPES, SORT_TYPES } from '@src/utils/constants'; +import { filterAndSortApps } from '@src/utils/jupyterhub'; +import { useQuery } from '@tanstack/react-query'; +import React, { SyntheticEvent, useState } from 'react'; +import { useRecoilState } from 'recoil'; +import { + currentFrameworks as defaultFrameworks, + currentOwnershipValue as defaultOwnershipValue, + currentSearchValue as defaultSearchValue, + currentSortValue as defaultSortValue, +} from '../../../../store'; +import { StyledFilterButton } from '../../../../styles/styled-filter-button'; +import { Item } from '../../../../styles/styled-item'; + +/* eslint-disable @typescript-eslint/no-explicit-any */ +interface AppFiltersProps { + data: any; + currentUser: UserState; + setApps: React.Dispatch>; +} + +export const AppFilters = ({ + data, + currentUser, + setApps, +}: AppFiltersProps): React.ReactElement => { + const [currentSearchValue] = useRecoilState(defaultSearchValue); + const [filtersAnchorEl, setFiltersAnchorEl] = + React.useState(null); + const [bulkActionsAnchorEl, setBulkActionsAnchorEl] = + React.useState(null); + const [sortByAnchorEl, setSortByAnchorEl] = + React.useState(null); + const filtersOpen = Boolean(filtersAnchorEl); + const bulkActionsOpen = Boolean(bulkActionsAnchorEl); + const sortByOpen = Boolean(sortByAnchorEl); + const [currentFrameworks, setCurrentFrameworks] = + useRecoilState(defaultFrameworks); + const [currentOwnershipValue, setCurrentOwnershipValue] = useRecoilState( + defaultOwnershipValue, + ); + const [currentSortValue, setCurrentSortValue] = + useRecoilState(defaultSortValue); + const [hasBulkSelections] = useState(false); + + const { data: frameworks, isLoading: frameworksLoading } = useQuery< + AppFrameworkProps[], + { message: string } + >({ + queryKey: ['app-frameworks'], + queryFn: () => + axios.get('/frameworks/').then((response) => { + return response.data; + }), + }); + + const handleFrameworkChange = (event: SyntheticEvent) => { + const target = event.target as HTMLInputElement; + const value = target.value; + if (currentFrameworks.includes(value)) { + setCurrentFrameworks((prev) => prev.filter((item) => item !== value)); + } else { + setCurrentFrameworks((prev) => [...prev, value]); + } + }; + + const handleOwnershipTypeChange = (value: string) => { + setCurrentOwnershipValue(value); + }; + + const handleSortByClick = (value: string) => { + setCurrentSortValue(value); + setApps( + filterAndSortApps( + data, + currentUser, + currentSearchValue, + currentOwnershipValue, + currentFrameworks, + value, + ), + ); + setSortByAnchorEl(null); + }; + + const handleApplyFilters = () => { + setFiltersAnchorEl(null); + setApps( + filterAndSortApps( + data, + currentUser, + currentSearchValue, + currentOwnershipValue, + currentFrameworks, + currentSortValue, + ), + ); + }; + + const handleClearFilters = () => { + setCurrentFrameworks([]); + setCurrentOwnershipValue('Any'); + }; + + return ( + + + + setFiltersAnchorEl(event.currentTarget)} + startIcon={} + endIcon={ + filtersOpen ? ( + + ) : ( + + ) + } + disabled={frameworksLoading || false} + > + Filters + + setFiltersAnchorEl(null)} + MenuListProps={{ + 'aria-labelledby': 'filters-btn', + }} + > + + + Frameworks + + + {frameworks?.map((framework) => ( + } + label={framework.display_name} + sx={{ width: '120px' }} + onClick={handleFrameworkChange} + checked={currentFrameworks.includes(framework.display_name)} + /> + ))} + + + + Ownership + + + + {OWNERSHIP_TYPES.map((value) => ( + } + label={value} + onClick={() => handleOwnershipTypeChange(value)} + checked={currentOwnershipValue === value} + /> + ))} + + + + + + + + + setBulkActionsAnchorEl(event.currentTarget)} + endIcon={ + bulkActionsOpen ? ( + + ) : ( + + ) + } + disabled={!hasBulkSelections} + > + Bulk Actions + + setBulkActionsAnchorEl(null)} + MenuListProps={{ + 'aria-labelledby': 'bulk-actions-btn', + }} + > + + + + + + + + + + Sort by: + + + setSortByAnchorEl(null)} + MenuListProps={{ + 'aria-labelledby': 'sort-by-btn', + }} + > + + + {SORT_TYPES.map((value) => ( + } + label={value} + onClick={() => handleSortByClick(value)} + checked={currentSortValue === value} + /> + ))} + + + + + + + + ); +}; diff --git a/ui/src/pages/home/apps-section/app-grid/app-grid.test.tsx b/ui/src/pages/home/apps-section/app-grid/app-grid.test.tsx new file mode 100644 index 00000000..3b63feb4 --- /dev/null +++ b/ui/src/pages/home/apps-section/app-grid/app-grid.test.tsx @@ -0,0 +1,39 @@ +import { apps } from '@src/data/api'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import '@testing-library/jest-dom'; +import { act, render } from '@testing-library/react'; +import { BrowserRouter } from 'react-router-dom'; +import { RecoilRoot } from 'recoil'; +import { AppGrid } from './app-grid'; + +describe('AppGrid', () => { + const queryClient = new QueryClient(); + test('should render successfully', async () => { + const { baseElement } = render( + + + + + , + ); + await act(async () => { + expect(baseElement).toBeTruthy(); + }); + }); + + test('should render with mock data', async () => { + const { baseElement } = render( + + + + + + + , + ); + await act(async () => { + const cards = baseElement.querySelectorAll('.card'); + expect(cards).toHaveLength(apps.length); + }); + }); +}); diff --git a/ui/src/pages/home/apps-section/app-grid/app-grid.tsx b/ui/src/pages/home/apps-section/app-grid/app-grid.tsx new file mode 100644 index 00000000..7da9b1c8 --- /dev/null +++ b/ui/src/pages/home/apps-section/app-grid/app-grid.tsx @@ -0,0 +1,30 @@ +import { JhApp } from '@src/types/jupyterhub'; +import React from 'react'; +import AppCard from '../../../../components/app-card/app-card'; + +interface AppsGridProps { + apps: JhApp[]; +} + +export const AppGrid = ({ apps }: AppsGridProps): React.ReactElement => { + return ( + <> + {apps.map((app: JhApp) => ( + + ))} + + ); +}; diff --git a/ui/src/pages/home/apps-grid/apps-grid.test.tsx b/ui/src/pages/home/apps-section/apps-section.test.tsx similarity index 71% rename from ui/src/pages/home/apps-grid/apps-grid.test.tsx rename to ui/src/pages/home/apps-section/apps-section.test.tsx index 5ac96202..6863dbf8 100644 --- a/ui/src/pages/home/apps-grid/apps-grid.test.tsx +++ b/ui/src/pages/home/apps-section/apps-section.test.tsx @@ -3,13 +3,13 @@ import { currentUser } from '@src/data/user'; import axios from '@src/utils/axios'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import '@testing-library/jest-dom'; -import { render } from '@testing-library/react'; +import { act, fireEvent, render } from '@testing-library/react'; import MockAdapter from 'axios-mock-adapter'; import { RecoilRoot } from 'recoil'; import { currentUser as defaultUser } from '../../../store'; -import { AppsGrid } from './apps-grid'; +import { AppsSection } from './apps-section'; -describe('AppsGrid', () => { +describe('AppsSection', () => { const queryClient = new QueryClient(); const mock = new MockAdapter(axios); beforeAll(() => { @@ -25,37 +25,36 @@ describe('AppsGrid', () => { const { baseElement } = render( - + , ); const header = baseElement.querySelector('h2'); expect(baseElement).toBeTruthy(); - expect(header).toHaveTextContent('My Apps'); + expect(header).toHaveTextContent('Apps'); }); - test('renders shared apps grid successfully', () => { + test('renders with mocked data', async () => { + mock.onGet(new RegExp('/server/')).reply(200, serverApps); + queryClient.setQueryData(['app-state'], serverApps); const { baseElement } = render( - + set(defaultUser, currentUser)}> - + , ); - const header = baseElement.querySelector('h2'); - - expect(baseElement).toBeTruthy(); - expect(header).toHaveTextContent('Shared Apps'); + expect(baseElement.querySelectorAll('.card')).toHaveLength(6); }); - test('renders a message when no apps and filter', () => { + test('renders a message when no apps', () => { queryClient.setQueryData(['app-state'], null); mock.onGet(new RegExp('/server/')).reply(200, null); const { baseElement } = render( - + , ); @@ -68,49 +67,51 @@ describe('AppsGrid', () => { const { baseElement } = render( set(defaultUser, currentUser)}> - + , ); expect(baseElement).toHaveTextContent('Loading...'); }); - test('renders with mocked data', async () => { - mock.onGet(new RegExp('/server/')).reply(200, serverApps); - queryClient.setQueryData(['app-state'], serverApps); + test('renders with data error', async () => { + queryClient.setQueryData(['app-state'], null); + mock.onGet().reply(500, { message: 'Some error' }); const { baseElement } = render( - set(defaultUser, currentUser)}> + - + , ); - expect(baseElement.querySelectorAll('.card')).toHaveLength(5); + expect(baseElement).toHaveTextContent('No apps available'); }); - test('renders with mocked data and filter', async () => { + test('should search apps', async () => { mock.onGet(new RegExp('/server/')).reply(200, serverApps); queryClient.setQueryData(['app-state'], serverApps); const { baseElement } = render( set(defaultUser, currentUser)}> - + , ); - expect(baseElement.querySelectorAll('.card')).toHaveLength(1); - }); - test('renders with data error', async () => { - queryClient.setQueryData(['app-state'], null); - mock.onGet().reply(500, { message: 'Some error' }); - const { baseElement } = render( - - - - - , - ); - expect(baseElement).toHaveTextContent('No apps available'); + const input = baseElement.querySelector('#search') as HTMLInputElement; + await act(async () => { + fireEvent.change(input, { target: { value: '' } }); + fireEvent.change(input, { target: { value: 'test' } }); + }); + await act(async () => { + fireEvent.change(input, { target: { value: '' } }); + fireEvent.change(input, { target: { value: 'cras' } }); + }); + await act(async () => { + fireEvent.change(input, { target: { value: '' } }); + fireEvent.change(input, { target: { value: 'panel' } }); + }); + const cards = baseElement.querySelectorAll('.card'); + expect(cards).toHaveLength(2); }); }); diff --git a/ui/src/pages/home/apps-section/apps-section.tsx b/ui/src/pages/home/apps-section/apps-section.tsx new file mode 100644 index 00000000..ee163a88 --- /dev/null +++ b/ui/src/pages/home/apps-section/apps-section.tsx @@ -0,0 +1,183 @@ +import AddIcon from '@mui/icons-material/AddRounded'; +import { Box, Button, Divider, Grid, Stack, TextField } from '@mui/material'; +import { JhApp } from '@src/types/jupyterhub'; +import { UserState } from '@src/types/user'; +import axios from '@src/utils/axios'; +import { API_BASE_URL } from '@src/utils/constants'; +import { + filterAndSortApps, + getAppStatus, + getApps, +} from '@src/utils/jupyterhub'; +import { useQuery } from '@tanstack/react-query'; +import React, { SyntheticEvent, useEffect, useState } from 'react'; +import { useRecoilState } from 'recoil'; +import { + currentNotification, + currentSearchValue, + currentFrameworks as defaultFrameworks, + currentOwnershipValue as defaultOwnershipValue, + currentSortValue as defaultSortValue, + currentUser as defaultUser, +} from '../../../store'; +import { Item } from '../../../styles/styled-item'; +import { AppFilters } from './app-filters/app-filters'; +import { AppGrid } from './app-grid/app-grid'; + +export const AppsSection = (): React.ReactElement => { + const [currentUser] = useRecoilState(defaultUser); + const [, setCurrentNotification] = useRecoilState( + currentNotification, + ); + const [, setCurrentSearchValue] = useRecoilState(currentSearchValue); + const [currentFrameworks] = useRecoilState(defaultFrameworks); + const [currentOwnershipValue] = useRecoilState(defaultOwnershipValue); + const [currentSortValue] = useRecoilState(defaultSortValue); + const [apps, setApps] = useState([]); + + const { + isLoading, + error, + data: serverData, + } = useQuery({ + queryKey: ['app-state'], + queryFn: () => + axios + .get(`/server/`) + .then((response) => { + return response.data; + }) + .then((data) => { + return data; + }), + enabled: !!currentUser, + }); + + const handleSearch = (event: SyntheticEvent) => { + const target = event.target as HTMLInputElement; + setCurrentSearchValue(target.value); + if (serverData && currentUser) { + setApps( + filterAndSortApps( + serverData, + currentUser, + target.value, + currentOwnershipValue, + currentFrameworks, + currentSortValue, + ), + ); + } + }; + + useEffect(() => { + if (!isLoading && serverData) { + const appsWithStatus = getApps( + serverData, + 'all', + currentUser?.name ?? '', + ).map((app) => ({ + ...app, + status: getAppStatus(app), // Compute and assign the status here + })); + setApps(appsWithStatus); + } + }, [isLoading, serverData, currentUser]); + + useEffect(() => { + if (error) { + setCurrentNotification(error.message); + } else { + setCurrentNotification(undefined); + } + }, [error, setCurrentNotification]); + + return ( + + + + + + +

Apps

+
+
+ + + + + + + + +
+
+ + + + + {serverData && currentUser ? ( + + ) : ( + <> + )} + + + + {isLoading ? ( +
Loading...
+ ) : apps.length > 0 ? ( + + ) : ( +
No apps available
+ )} +
+
+
+
+ ); +}; diff --git a/ui/src/pages/home/home.css b/ui/src/pages/home/home.css deleted file mode 100644 index 220f62c9..00000000 --- a/ui/src/pages/home/home.css +++ /dev/null @@ -1,4 +0,0 @@ -.search-bar { - width: 100%; - margin-top: 0; -} diff --git a/ui/src/pages/home/home.test.tsx b/ui/src/pages/home/home.test.tsx index ec432b74..40acd9d9 100644 --- a/ui/src/pages/home/home.test.tsx +++ b/ui/src/pages/home/home.test.tsx @@ -54,16 +54,7 @@ describe('Home', () => { const { getByText } = render(componentWrapper); await act(async () => { expect(getByText('Services')).toBeTruthy(); - expect(getByText('My Apps')).toBeTruthy(); - }); - }); - - test('should update search value on input change', async () => { - const { getByPlaceholderText } = render(componentWrapper); - await act(async () => { - const searchInput = getByPlaceholderText('Search...') as HTMLInputElement; - fireEvent.change(searchInput, { target: { value: 'Test' } }); - expect(searchInput.value).toBe('Test'); + expect(getByText('Apps')).toBeTruthy(); }); }); }); diff --git a/ui/src/pages/home/home.tsx b/ui/src/pages/home/home.tsx index 2fe3d4a7..a219f957 100644 --- a/ui/src/pages/home/home.tsx +++ b/ui/src/pages/home/home.tsx @@ -1,20 +1,10 @@ -import AddIcon from '@mui/icons-material/AddRounded'; -import { Box, Button, Grid, TextField } from '@mui/material'; -import { API_BASE_URL } from '@src/utils/constants'; -import React, { SyntheticEvent, useState } from 'react'; +import { Box, Grid } from '@mui/material'; +import React from 'react'; import { Item } from '../../styles/styled-item'; -import { AppsGrid } from './apps-grid/apps-grid'; -import './home.css'; +import { AppsSection } from './apps-section/apps-section'; import { ServicesGrid } from './services-grid/services-grid'; export const Home = (): React.ReactElement => { - const [searchValue, setSearchValue] = useState(''); - - const handleSearch = (event: SyntheticEvent) => { - const target = event.target as HTMLInputElement; - setSearchValue(target.value); - }; - return ( @@ -23,39 +13,9 @@ export const Home = (): React.ReactElement => {

Home

- - - - - - - - - - - - - - +
); }; diff --git a/ui/src/store.ts b/ui/src/store.ts index b57b1a21..a5b946c7 100644 --- a/ui/src/store.ts +++ b/ui/src/store.ts @@ -40,11 +40,35 @@ const currentFile = atom({ default: undefined, }); +const currentSearchValue = atom({ + key: 'currentSearchValue', + default: '', +}); + +const currentFrameworks = atom({ + key: 'currentFrameworks', + default: [], +}); + +const currentOwnershipValue = atom({ + key: 'currentOwnershipValue', + default: 'Any', +}); + +const currentSortValue = atom({ + key: 'currentSortValue', + default: 'Recently modified', +}); + export { currentFile, currentFormInput, + currentFrameworks, currentImage, currentJhData, currentNotification, + currentOwnershipValue, + currentSearchValue, + currentSortValue, currentUser, }; diff --git a/ui/src/styles/styled-filter-button.tsx b/ui/src/styles/styled-filter-button.tsx new file mode 100644 index 00000000..a99a0ca0 --- /dev/null +++ b/ui/src/styles/styled-filter-button.tsx @@ -0,0 +1,11 @@ +import { Button, styled } from '@mui/material'; + +export const StyledFilterButton = styled(Button)(({ theme }) => ({ + color: theme.palette.common.black, + borderColor: theme.palette.common.black, + '&:hover': { + color: theme.palette.common.black, + borderColor: theme.palette.common.black, + }, + marginRight: '16px', +})); diff --git a/ui/src/theme/theme.tsx b/ui/src/theme/theme.tsx index 3dc6efe4..5dd037d6 100644 --- a/ui/src/theme/theme.tsx +++ b/ui/src/theme/theme.tsx @@ -213,6 +213,7 @@ export const theme = createTheme(baseTheme, { { props: { variant: 'text', color: 'secondary' }, style: { + minWidth: '100px', color: gray[500], '&:focus': { backgroundColor: `${gray[100]}`, diff --git a/ui/src/types/jupyterhub.ts b/ui/src/types/jupyterhub.ts index b9550b9c..df84a251 100644 --- a/ui/src/types/jupyterhub.ts +++ b/ui/src/types/jupyterhub.ts @@ -19,6 +19,8 @@ export interface JhApp { username?: string; ready: boolean; public: boolean; + shared: boolean; + last_activity: Date; pending?: boolean; stopped?: boolean; status: string; diff --git a/ui/src/utils/constants.ts b/ui/src/utils/constants.ts index 572c17fa..3cc1bcc1 100644 --- a/ui/src/utils/constants.ts +++ b/ui/src/utils/constants.ts @@ -12,3 +12,6 @@ export const DEFAULT_APP_THUMBNAIL = // TODO: Add default services with service card updates: 'JupyterLab', 'VSCode', 'Environments' export const DEFAULT_PINNED_SERVICES: string[] = []; + +export const OWNERSHIP_TYPES = ['Any', 'Owned by me', 'Shared with me']; +export const SORT_TYPES = ['Recently modified', 'Name: A-Z', 'Name: Z-A']; diff --git a/ui/src/utils/jupyterhub.test.ts b/ui/src/utils/jupyterhub.test.ts index 3c9e14ce..3b7c2ca9 100644 --- a/ui/src/utils/jupyterhub.test.ts +++ b/ui/src/utils/jupyterhub.test.ts @@ -1,7 +1,9 @@ import { serverApps } from '@src/data/api'; import { servicesFull } from '@src/data/jupyterhub'; +import { currentUser } from '@src/data/user'; import { JhServiceFull } from '@src/types/jupyterhub'; import { + filterAndSortApps, getAppLogoUrl, getApps, getFriendlyFrameworkName, @@ -58,15 +60,20 @@ describe('JupyterHub utils', () => { }); test('returns an array of JhApp for shared apps', () => { - const result = getApps(serverApps, 'Shared', 'testUser'); + const result = getApps(serverApps, 'shared', 'testUser'); expect(result.length).toEqual(1); }); test('returns an array of JhApp for non-shared apps', () => { - const result = getApps(serverApps, 'My', 'testUser'); + const result = getApps(serverApps, 'mine', 'testUser'); expect(result.length).toEqual(5); }); + test('returns an array of JhApp for all apps', () => { + const result = getApps(serverApps, 'all', 'testUser'); + expect(result.length).toEqual(6); + }); + test('returns the framework name with the first letter capitalized', () => { const result = getFriendlyFrameworkName('python'); expect(result).toBe('Python'); @@ -82,4 +89,16 @@ describe('JupyterHub utils', () => { navigateToUrl(mockUrl); expect(document.location.href).toBe(mockUrl); }); + + test('filters and sorts apps', () => { + const apps = filterAndSortApps( + serverApps, + currentUser, + '', + 'all', + [], + 'name', + ); + expect(apps.length).toBe(6); + }); }); diff --git a/ui/src/utils/jupyterhub.ts b/ui/src/utils/jupyterhub.ts index c495b6a4..6c4bc10e 100644 --- a/ui/src/utils/jupyterhub.ts +++ b/ui/src/utils/jupyterhub.ts @@ -1,5 +1,6 @@ import { JhApp, JhService, JhServiceFull } from '@src/types/jupyterhub'; import { JhData } from '@src/types/jupyterhub.ts'; +import { UserState } from '@src/types/user'; import { DEFAULT_APP_THUMBNAIL, DEFAULT_PINNED_SERVICES } from './constants'; export const getJhData = (): JhData => { @@ -25,13 +26,25 @@ export const getServices = (services: JhServiceFull[], user: string) => { }; /* eslint-disable @typescript-eslint/no-explicit-any */ -export const getApps = (servers: any, appType: string, username: string) => { +export const getApps = ( + servers: any, + ownershipType: string, + username: string, +) => { const serverApps = []; const filteredApps: JhApp[] = []; - if (appType.toLowerCase() === 'shared') { - serverApps.push(...servers.shared_apps); - } else { - serverApps.push(...servers.user_apps); + if (ownershipType === 'shared' || ownershipType === 'all') { + serverApps.push( + ...servers.shared_apps.map((server: any) => ({ + ...server, + shared: true, + })), + ); + } + if (ownershipType === 'mine' || ownershipType === 'all') { + serverApps.push( + ...servers.user_apps.map((server: any) => ({ ...server, shared: false })), + ); // Add default app manually const defaultApp = serverApps.find( (app: any) => app.name === '' && !app.user_options?.jhub_app, @@ -51,6 +64,8 @@ export const getApps = (servers: any, appType: string, username: string) => { pending: defaultApp.pending, stopped: defaultApp.stopped, public: false, + shared: false, + last_activity: defaultApp.last_activity, status: appStatus, }); } @@ -72,6 +87,8 @@ export const getApps = (servers: any, appType: string, username: string) => { pending: server.pending, stopped: server.stopped, public: app.public, + shared: server.shared, + last_activity: server.last_activity, status: appStatus, }); } @@ -105,3 +122,47 @@ export const getAppStatus = (app: JhApp): string => { return 'Unknown'; } }; + +/* eslint-disable @typescript-eslint/no-explicit-any */ +export const filterAndSortApps = ( + data: any, + currentUser: UserState, + searchValue: string, + ownershipValue: string, + frameworkValues: string[], + sortByValue: string, +) => { + const searchToLower = searchValue.toLowerCase(); + const ownershipType = + ownershipValue === 'Owned by me' + ? 'mine' + : ownershipValue === 'Shared with me' + ? 'shared' + : 'all'; + + // Get Apps based on ownership type and search value + const apps = getApps(data, ownershipType, currentUser?.name ?? '') + .filter( + (app) => + app.name.toLowerCase().includes(searchToLower) || + app.description?.toLowerCase().includes(searchToLower) || + app.framework?.toLowerCase().includes(searchToLower), + ) + .filter((app) => { + if (frameworkValues.length > 0) { + return frameworkValues.includes(app.framework); + } + return true; + }); + + // Sort Apps based on sort value + apps.sort((a, b) => { + if (sortByValue === 'Recently modified') { + return a.last_activity > b.last_activity ? -1 : 1; + } else if (sortByValue === 'Name: A-Z') { + return a.name > b.name ? 1 : -1; + } + return a.name > b.name ? -1 : 1; + }); + return apps; +};